xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,mdm9607-tlmm.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28bab661aSEmmanuel Vadot%YAML 1.2
38bab661aSEmmanuel Vadot---
48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,mdm9607-tlmm.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. MDM9607 TLMM block
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Konrad Dybcio <konrad.dybcio@somainline.org>
118bab661aSEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription:
138bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm MDM9607 SoC.
148bab661aSEmmanuel Vadot
158bab661aSEmmanuel VadotallOf:
168bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
178bab661aSEmmanuel Vadot
188bab661aSEmmanuel Vadotproperties:
198bab661aSEmmanuel Vadot  compatible:
208bab661aSEmmanuel Vadot    const: qcom,mdm9607-tlmm
218bab661aSEmmanuel Vadot
228bab661aSEmmanuel Vadot  reg:
238bab661aSEmmanuel Vadot    maxItems: 1
248bab661aSEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot  interrupts:
26cb7aa33aSEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
288bab661aSEmmanuel Vadot  gpio-reserved-ranges: true
298bab661aSEmmanuel Vadot
308bab661aSEmmanuel VadotpatternProperties:
318bab661aSEmmanuel Vadot  "-state$":
328bab661aSEmmanuel Vadot    oneOf:
338bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-mdm9607-tlmm-state"
3484943d6fSEmmanuel Vadot      - additionalProperties: false
3584943d6fSEmmanuel Vadot        patternProperties:
368bab661aSEmmanuel Vadot          ".*":
378bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-mdm9607-tlmm-state"
388bab661aSEmmanuel Vadot
398bab661aSEmmanuel Vadot$defs:
408bab661aSEmmanuel Vadot  qcom-mdm9607-tlmm-state:
418bab661aSEmmanuel Vadot    type: object
428bab661aSEmmanuel Vadot    description:
438bab661aSEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
448bab661aSEmmanuel Vadot      Client device subnodes use below standard properties.
458bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
46fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
478bab661aSEmmanuel Vadot
488bab661aSEmmanuel Vadot    properties:
498bab661aSEmmanuel Vadot      pins:
508bab661aSEmmanuel Vadot        description:
518bab661aSEmmanuel Vadot          List of gpio pins affected by the properties specified in this
528bab661aSEmmanuel Vadot          subnode.
538bab661aSEmmanuel Vadot        items:
548bab661aSEmmanuel Vadot          oneOf:
558bab661aSEmmanuel Vadot            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
568bab661aSEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
578bab661aSEmmanuel Vadot                      sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
588bab661aSEmmanuel Vadot                      qdsd_data3 ]
598bab661aSEmmanuel Vadot        minItems: 1
608bab661aSEmmanuel Vadot        maxItems: 16
618bab661aSEmmanuel Vadot
628bab661aSEmmanuel Vadot      function:
638bab661aSEmmanuel Vadot        description:
648bab661aSEmmanuel Vadot          Specify the alternative function to be configured for the specified
658bab661aSEmmanuel Vadot          pins.
668bab661aSEmmanuel Vadot
678bab661aSEmmanuel Vadot        enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0,
688bab661aSEmmanuel Vadot                atest_char1, atest_char2, atest_char3,
698bab661aSEmmanuel Vadot                atest_combodac_to_gpio_native, atest_gpsadc_dtest0_native,
708bab661aSEmmanuel Vadot                atest_gpsadc_dtest1_native, atest_tsens, backlight_en_b,
718bab661aSEmmanuel Vadot                bimc_dte0, bimc_dte1, blsp1_spi, blsp2_spi, blsp3_spi,
728bab661aSEmmanuel Vadot                blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5,
738bab661aSEmmanuel Vadot                blsp_i2c6, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4,
748bab661aSEmmanuel Vadot                blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uart3,
758bab661aSEmmanuel Vadot                blsp_uart4, blsp_uart5, blsp_uart6, blsp_uim1, blsp_uim2,
768bab661aSEmmanuel Vadot                codec_int, codec_rst, coex_uart, cri_trng, cri_trng0,
778bab661aSEmmanuel Vadot                cri_trng1, dbg_out, ebi0_wrcdc, ebi2_a, ebi2_a_d_8_b,
788bab661aSEmmanuel Vadot                ebi2_lcd, ebi2_lcd_cs_n_b, ebi2_lcd_te_b, eth_irq, eth_rst,
798bab661aSEmmanuel Vadot                gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b,
808bab661aSEmmanuel Vadot                gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gcc_tlmm, gmac_mdio,
818bab661aSEmmanuel Vadot                gpio, gsm0_tx, lcd_rst, ldo_en, ldo_update, m_voc, modem_tsync,
828bab661aSEmmanuel Vadot                nav_ptp_pps_in_a, nav_ptp_pps_in_b, nav_tsync_out_a,
838bab661aSEmmanuel Vadot                nav_tsync_out_b, pa_indicator, pbs0, pbs1, pbs2,
848bab661aSEmmanuel Vadot                pri_mi2s_data0_a, pri_mi2s_data1_a, pri_mi2s_mclk_a,
858bab661aSEmmanuel Vadot                pri_mi2s_sck_a, pri_mi2s_ws_a, prng_rosc, ptp_pps_out_a,
868bab661aSEmmanuel Vadot                ptp_pps_out_b, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
878bab661aSEmmanuel Vadot                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
888bab661aSEmmanuel Vadot                pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1,
898bab661aSEmmanuel Vadot                qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0,
908bab661aSEmmanuel Vadot                qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, qdss_cti_trig_out_b1,
918bab661aSEmmanuel Vadot                qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a,
928bab661aSEmmanuel Vadot                qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, rcm_marker1,
938bab661aSEmmanuel Vadot                rcm_marker2, sd_write, sec_mi2s, sensor_en, sensor_int2,
948bab661aSEmmanuel Vadot                sensor_int3, sensor_rst, ssbi1, ssbi2, touch_rst, ts_int,
958bab661aSEmmanuel Vadot                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
968bab661aSEmmanuel Vadot                uim2_data, uim2_present, uim2_reset, uim_batt, wlan_en1, ]
978bab661aSEmmanuel Vadot
988bab661aSEmmanuel Vadot    required:
998bab661aSEmmanuel Vadot      - pins
1008bab661aSEmmanuel Vadot
101*8d13bc63SEmmanuel Vadotrequired:
102*8d13bc63SEmmanuel Vadot  - compatible
103*8d13bc63SEmmanuel Vadot  - reg
104*8d13bc63SEmmanuel Vadot
105*8d13bc63SEmmanuel VadotunevaluatedProperties: false
106*8d13bc63SEmmanuel Vadot
1078bab661aSEmmanuel Vadotexamples:
1088bab661aSEmmanuel Vadot  - |
1098bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1108bab661aSEmmanuel Vadot    tlmm: pinctrl@1000000 {
1118bab661aSEmmanuel Vadot        compatible = "qcom,mdm9607-tlmm";
1128bab661aSEmmanuel Vadot        reg = <0x01000000 0x300000>;
1138bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1148bab661aSEmmanuel Vadot        gpio-controller;
1158bab661aSEmmanuel Vadot        gpio-ranges = <&msmgpio 0 0 80>;
1168bab661aSEmmanuel Vadot        #gpio-cells = <2>;
1178bab661aSEmmanuel Vadot        interrupt-controller;
1188bab661aSEmmanuel Vadot        #interrupt-cells = <2>;
1198bab661aSEmmanuel Vadot    };
120