xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,msm8909-tlmm.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,msm8909-tlmm.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: Qualcomm Technologies, Inc. MSM8909 TLMM block
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Stephan Gerhold <stephan@gerhold.net>
11b97ee269SEmmanuel Vadot
12b97ee269SEmmanuel Vadotdescription: |
138bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm MSM8909 SoC.
14b97ee269SEmmanuel Vadot
15b97ee269SEmmanuel VadotallOf:
16b97ee269SEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
17b97ee269SEmmanuel Vadot
18b97ee269SEmmanuel Vadotproperties:
19b97ee269SEmmanuel Vadot  compatible:
20b97ee269SEmmanuel Vadot    const: qcom,msm8909-tlmm
21b97ee269SEmmanuel Vadot
22b97ee269SEmmanuel Vadot  reg:
23b97ee269SEmmanuel Vadot    maxItems: 1
24b97ee269SEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot  interrupts:
26cb7aa33aSEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
28b97ee269SEmmanuel Vadot  gpio-reserved-ranges: true
29b97ee269SEmmanuel Vadot
30b97ee269SEmmanuel VadotpatternProperties:
318bab661aSEmmanuel Vadot  "-state$":
32b97ee269SEmmanuel Vadot    oneOf:
33b97ee269SEmmanuel Vadot      - $ref: "#/$defs/qcom-msm8909-tlmm-state"
34b97ee269SEmmanuel Vadot      - patternProperties:
358bab661aSEmmanuel Vadot          "-pins$":
36b97ee269SEmmanuel Vadot            $ref: "#/$defs/qcom-msm8909-tlmm-state"
378bab661aSEmmanuel Vadot        additionalProperties: false
38b97ee269SEmmanuel Vadot
39b97ee269SEmmanuel Vadot$defs:
40b97ee269SEmmanuel Vadot  qcom-msm8909-tlmm-state:
41b97ee269SEmmanuel Vadot    type: object
42b97ee269SEmmanuel Vadot    description:
43b97ee269SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
44b97ee269SEmmanuel Vadot      Client device subnodes use below standard properties.
458bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
46fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
47b97ee269SEmmanuel Vadot
48b97ee269SEmmanuel Vadot    properties:
49b97ee269SEmmanuel Vadot      pins:
50b97ee269SEmmanuel Vadot        description:
51b97ee269SEmmanuel Vadot          List of gpio pins affected by the properties specified in this
52b97ee269SEmmanuel Vadot          subnode.
53b97ee269SEmmanuel Vadot        items:
54b97ee269SEmmanuel Vadot          oneOf:
55cb7aa33aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$"
56b97ee269SEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
57b97ee269SEmmanuel Vadot                      sdc2_data, qdsd_clk, qdsd_cmd, qdsd_data0, qdsd_data1,
58b97ee269SEmmanuel Vadot                      qdsd_data2, qdsd_data3 ]
59b97ee269SEmmanuel Vadot        minItems: 1
60b97ee269SEmmanuel Vadot        maxItems: 16
61b97ee269SEmmanuel Vadot
62b97ee269SEmmanuel Vadot      function:
63b97ee269SEmmanuel Vadot        description:
64b97ee269SEmmanuel Vadot          Specify the alternative function to be configured for the specified
65b97ee269SEmmanuel Vadot          pins.
66b97ee269SEmmanuel Vadot        enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0,
67b97ee269SEmmanuel Vadot                atest_char1, atest_char2, atest_char3, atest_combodac,
68b97ee269SEmmanuel Vadot                atest_gpsadc0, atest_gpsadc1, atest_wlan0, atest_wlan1,
69b97ee269SEmmanuel Vadot                bimc_dte0, bimc_dte1, blsp_i2c1, blsp_i2c2, blsp_i2c3,
70b97ee269SEmmanuel Vadot                blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_spi1, blsp_spi1_cs1,
71b97ee269SEmmanuel Vadot                blsp_spi1_cs2, blsp_spi1_cs3, blsp_spi2, blsp_spi2_cs1,
72b97ee269SEmmanuel Vadot                blsp_spi2_cs2, blsp_spi2_cs3, blsp_spi3, blsp_spi3_cs1,
73b97ee269SEmmanuel Vadot                blsp_spi3_cs2, blsp_spi3_cs3, blsp_spi4, blsp_spi5, blsp_spi6,
74b97ee269SEmmanuel Vadot                blsp_uart1, blsp_uart2, blsp_uim1, blsp_uim2, cam_mclk,
75b97ee269SEmmanuel Vadot                cci_async, cci_timer0, cci_timer1, cci_timer2, cdc_pdm0,
76b97ee269SEmmanuel Vadot                dbg_out, dmic0_clk, dmic0_data, ebi0_wrcdc, ebi2_a, ebi2_lcd,
77b97ee269SEmmanuel Vadot                ext_lpass, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a,
78b97ee269SEmmanuel Vadot                gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gpio,
79b97ee269SEmmanuel Vadot                gsm0_tx, ldo_en, ldo_update, m_voc, mdp_vsync, modem_tsync,
80b97ee269SEmmanuel Vadot                nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2,
81b97ee269SEmmanuel Vadot                pri_mi2s_data0_a, pri_mi2s_data0_b, pri_mi2s_data1_a,
82b97ee269SEmmanuel Vadot                pri_mi2s_data1_b, pri_mi2s_mclk_a, pri_mi2s_mclk_b,
83b97ee269SEmmanuel Vadot                pri_mi2s_sck_a, pri_mi2s_sck_b, pri_mi2s_ws_a, pri_mi2s_ws_b,
84b97ee269SEmmanuel Vadot                prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
85b97ee269SEmmanuel Vadot                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
86b97ee269SEmmanuel Vadot                pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1,
87b97ee269SEmmanuel Vadot                qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0,
88b97ee269SEmmanuel Vadot                qdss_cti_trig_out_a1, qdss_cti_trig_out_b0,
89b97ee269SEmmanuel Vadot                qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_tracectl_a,
90b97ee269SEmmanuel Vadot                qdss_tracedata_a, qdss_tracedata_b, sd_write, sec_mi2s,
91b97ee269SEmmanuel Vadot                smb_int, ssbi0, ssbi1, uim1_clk, uim1_data, uim1_present,
92b97ee269SEmmanuel Vadot                uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset,
93b97ee269SEmmanuel Vadot                uim3_clk, uim3_data, uim3_present, uim3_reset, uim_batt,
94b97ee269SEmmanuel Vadot                wcss_bt, wcss_fm, wcss_wlan ]
95b97ee269SEmmanuel Vadot
96b97ee269SEmmanuel Vadot    required:
97b97ee269SEmmanuel Vadot      - pins
98b97ee269SEmmanuel Vadot
99*8d13bc63SEmmanuel Vadotrequired:
100*8d13bc63SEmmanuel Vadot  - compatible
101*8d13bc63SEmmanuel Vadot  - reg
102*8d13bc63SEmmanuel Vadot
103*8d13bc63SEmmanuel VadotunevaluatedProperties: false
104*8d13bc63SEmmanuel Vadot
105b97ee269SEmmanuel Vadotexamples:
106b97ee269SEmmanuel Vadot  - |
107b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
108b97ee269SEmmanuel Vadot
109b97ee269SEmmanuel Vadot    pinctrl@1000000 {
110b97ee269SEmmanuel Vadot        compatible = "qcom,msm8909-tlmm";
111b97ee269SEmmanuel Vadot        reg = <0x1000000 0x300000>;
112b97ee269SEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
113b97ee269SEmmanuel Vadot        gpio-controller;
114b97ee269SEmmanuel Vadot        #gpio-cells = <2>;
115cb7aa33aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 113>;
116b97ee269SEmmanuel Vadot        interrupt-controller;
117b97ee269SEmmanuel Vadot        #interrupt-cells = <2>;
118b97ee269SEmmanuel Vadot
119b97ee269SEmmanuel Vadot        gpio-wo-subnode-state {
120b97ee269SEmmanuel Vadot            pins = "gpio1";
121b97ee269SEmmanuel Vadot            function = "gpio";
122b97ee269SEmmanuel Vadot        };
123b97ee269SEmmanuel Vadot
124b97ee269SEmmanuel Vadot        uart-w-subnodes-state {
1258bab661aSEmmanuel Vadot            rx-pins {
126b97ee269SEmmanuel Vadot                pins = "gpio4";
127b97ee269SEmmanuel Vadot                function = "blsp_uart1";
128b97ee269SEmmanuel Vadot                bias-pull-up;
129b97ee269SEmmanuel Vadot            };
130b97ee269SEmmanuel Vadot
1318bab661aSEmmanuel Vadot            tx-pins {
132b97ee269SEmmanuel Vadot                pins = "gpio5";
133b97ee269SEmmanuel Vadot                function = "blsp_uart1";
134b97ee269SEmmanuel Vadot                bias-disable;
135b97ee269SEmmanuel Vadot            };
136b97ee269SEmmanuel Vadot        };
137b97ee269SEmmanuel Vadot    };
138b97ee269SEmmanuel Vadot...
139