xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sm8550-tlmm.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sm8550-tlmm.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM8550 TLMM block
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Abel Vesa <abel.vesa@linaro.org>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotdescription:
13cb7aa33aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SM8550 SoC.
14cb7aa33aSEmmanuel Vadot
15cb7aa33aSEmmanuel VadotallOf:
16cb7aa33aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
17cb7aa33aSEmmanuel Vadot
18cb7aa33aSEmmanuel Vadotproperties:
19cb7aa33aSEmmanuel Vadot  compatible:
20cb7aa33aSEmmanuel Vadot    const: qcom,sm8550-tlmm
21cb7aa33aSEmmanuel Vadot
22cb7aa33aSEmmanuel Vadot  reg:
23cb7aa33aSEmmanuel Vadot    maxItems: 1
24cb7aa33aSEmmanuel Vadot
25*8d13bc63SEmmanuel Vadot  interrupts:
26*8d13bc63SEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  gpio-reserved-ranges:
29cb7aa33aSEmmanuel Vadot    minItems: 1
30cb7aa33aSEmmanuel Vadot    maxItems: 105
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel Vadot  gpio-line-names:
33cb7aa33aSEmmanuel Vadot    maxItems: 210
34cb7aa33aSEmmanuel Vadot
35cb7aa33aSEmmanuel VadotpatternProperties:
36cb7aa33aSEmmanuel Vadot  "-state$":
37cb7aa33aSEmmanuel Vadot    oneOf:
38cb7aa33aSEmmanuel Vadot      - $ref: "#/$defs/qcom-sm8550-tlmm-state"
39cb7aa33aSEmmanuel Vadot      - patternProperties:
40cb7aa33aSEmmanuel Vadot          "-pins$":
41cb7aa33aSEmmanuel Vadot            $ref: "#/$defs/qcom-sm8550-tlmm-state"
42cb7aa33aSEmmanuel Vadot        additionalProperties: false
43cb7aa33aSEmmanuel Vadot
44cb7aa33aSEmmanuel Vadot$defs:
45cb7aa33aSEmmanuel Vadot  qcom-sm8550-tlmm-state:
46cb7aa33aSEmmanuel Vadot    type: object
47cb7aa33aSEmmanuel Vadot    description:
48cb7aa33aSEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
49cb7aa33aSEmmanuel Vadot      Client device subnodes use below standard properties.
50cb7aa33aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
52cb7aa33aSEmmanuel Vadot
53cb7aa33aSEmmanuel Vadot    properties:
54cb7aa33aSEmmanuel Vadot      pins:
55cb7aa33aSEmmanuel Vadot        description:
56cb7aa33aSEmmanuel Vadot          List of gpio pins affected by the properties specified in this
57cb7aa33aSEmmanuel Vadot          subnode.
58cb7aa33aSEmmanuel Vadot        items:
59cb7aa33aSEmmanuel Vadot          oneOf:
60cb7aa33aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$"
61cb7aa33aSEmmanuel Vadot            - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ]
62cb7aa33aSEmmanuel Vadot        minItems: 1
63cb7aa33aSEmmanuel Vadot        maxItems: 36
64cb7aa33aSEmmanuel Vadot
65cb7aa33aSEmmanuel Vadot      function:
66cb7aa33aSEmmanuel Vadot        description:
67cb7aa33aSEmmanuel Vadot          Specify the alternative function to be configured for the specified
68cb7aa33aSEmmanuel Vadot          pins.
69cb7aa33aSEmmanuel Vadot        enum: [ aon_cci, aoss_cti, atest_char, atest_usb,
70cb7aa33aSEmmanuel Vadot                audio_ext_mclk0, audio_ext_mclk1, audio_ref_clk,
71cb7aa33aSEmmanuel Vadot                cam_aon_mclk4, cam_mclk, cci_async_in, cci_i2c_scl,
72cb7aa33aSEmmanuel Vadot                cci_i2c_sda, cci_timer, cmu_rng, coex_uart1_rx,
73cb7aa33aSEmmanuel Vadot                coex_uart1_tx, coex_uart2_rx, coex_uart2_tx,
74cb7aa33aSEmmanuel Vadot                cri_trng, dbg_out_clk, ddr_bist_complete,
75cb7aa33aSEmmanuel Vadot                ddr_bist_fail, ddr_bist_start, ddr_bist_stop,
76cb7aa33aSEmmanuel Vadot                ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot,
77cb7aa33aSEmmanuel Vadot                gcc_gp1, gcc_gp2, gcc_gp3, gpio, i2chub0_se0,
78cb7aa33aSEmmanuel Vadot                i2chub0_se1, i2chub0_se2, i2chub0_se3, i2chub0_se4,
79cb7aa33aSEmmanuel Vadot                i2chub0_se5, i2chub0_se6, i2chub0_se7, i2chub0_se8,
80cb7aa33aSEmmanuel Vadot                i2chub0_se9, i2s0_data0, i2s0_data1, i2s0_sck,
81cb7aa33aSEmmanuel Vadot                i2s0_ws, i2s1_data0, i2s1_data1, i2s1_sck, i2s1_ws,
82cb7aa33aSEmmanuel Vadot                ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0_out,
83cb7aa33aSEmmanuel Vadot                mdp_vsync1_out, mdp_vsync2_out, mdp_vsync3_out,
84cb7aa33aSEmmanuel Vadot                mdp_vsync_e, nav_gpio0, nav_gpio1, nav_gpio2,
85cb7aa33aSEmmanuel Vadot                pcie0_clk_req_n, pcie1_clk_req_n, phase_flag,
86cb7aa33aSEmmanuel Vadot                pll_bist_sync, pll_clk_aux, prng_rosc0, prng_rosc1,
87cb7aa33aSEmmanuel Vadot                prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio,
88cb7aa33aSEmmanuel Vadot                qlink0_enable, qlink0_request, qlink0_wmss,
89cb7aa33aSEmmanuel Vadot                qlink1_enable, qlink1_request, qlink1_wmss,
90cb7aa33aSEmmanuel Vadot                qlink2_enable, qlink2_request, qlink2_wmss,
91cb7aa33aSEmmanuel Vadot                qspi0, qspi1, qspi2, qspi3, qspi_clk, qspi_cs,
92cb7aa33aSEmmanuel Vadot                qup1_se0, qup1_se1, qup1_se2, qup1_se3, qup1_se4,
93cb7aa33aSEmmanuel Vadot                qup1_se5, qup1_se6, qup1_se7, qup2_se0,
94cb7aa33aSEmmanuel Vadot                qup2_se0_l0_mira, qup2_se0_l0_mirb, qup2_se0_l1_mira,
95cb7aa33aSEmmanuel Vadot                qup2_se0_l1_mirb, qup2_se0_l2_mira, qup2_se0_l2_mirb,
96cb7aa33aSEmmanuel Vadot                qup2_se0_l3_mira, qup2_se0_l3_mirb, qup2_se1,
97cb7aa33aSEmmanuel Vadot                qup2_se2, qup2_se3, qup2_se4, qup2_se5, qup2_se6,
98cb7aa33aSEmmanuel Vadot                qup2_se7, sd_write_protect, sdc40, sdc41, sdc42,
99cb7aa33aSEmmanuel Vadot                sdc43, sdc4_clk, sdc4_cmd, tb_trig_sdc2, tb_trig_sdc4,
100cb7aa33aSEmmanuel Vadot                tgu_ch0_trigout, tgu_ch1_trigout, tgu_ch2_trigout,
101cb7aa33aSEmmanuel Vadot                tgu_ch3_trigout, tmess_prng0, tmess_prng1, tmess_prng2,
102cb7aa33aSEmmanuel Vadot                tmess_prng3, tsense_pwm1, tsense_pwm2, tsense_pwm3,
103cb7aa33aSEmmanuel Vadot                uim0_clk, uim0_data, uim0_present, uim0_reset,
104cb7aa33aSEmmanuel Vadot                uim1_clk, uim1_data, uim1_present, uim1_reset,
105cb7aa33aSEmmanuel Vadot                usb1_hs, usb_phy, vfr_0, vfr_1, vsense_trigger_mirnat ]
106cb7aa33aSEmmanuel Vadot
107cb7aa33aSEmmanuel Vadot    required:
108cb7aa33aSEmmanuel Vadot      - pins
109cb7aa33aSEmmanuel Vadot
110cb7aa33aSEmmanuel Vadotrequired:
111cb7aa33aSEmmanuel Vadot  - compatible
112cb7aa33aSEmmanuel Vadot  - reg
113cb7aa33aSEmmanuel Vadot
114*8d13bc63SEmmanuel VadotunevaluatedProperties: false
115cb7aa33aSEmmanuel Vadot
116cb7aa33aSEmmanuel Vadotexamples:
117cb7aa33aSEmmanuel Vadot  - |
118cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
119cb7aa33aSEmmanuel Vadot    tlmm: pinctrl@f100000 {
120cb7aa33aSEmmanuel Vadot        compatible = "qcom,sm8550-tlmm";
121cb7aa33aSEmmanuel Vadot        reg = <0x0f100000 0x300000>;
122cb7aa33aSEmmanuel Vadot        gpio-controller;
123cb7aa33aSEmmanuel Vadot        #gpio-cells = <2>;
124cb7aa33aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 211>;
125cb7aa33aSEmmanuel Vadot        interrupt-controller;
126cb7aa33aSEmmanuel Vadot        #interrupt-cells = <2>;
127cb7aa33aSEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
128cb7aa33aSEmmanuel Vadot
129cb7aa33aSEmmanuel Vadot        gpio-wo-state {
130cb7aa33aSEmmanuel Vadot            pins = "gpio1";
131cb7aa33aSEmmanuel Vadot            function = "gpio";
132cb7aa33aSEmmanuel Vadot        };
133cb7aa33aSEmmanuel Vadot
134cb7aa33aSEmmanuel Vadot        uart-w-state {
135cb7aa33aSEmmanuel Vadot            rx-pins {
136cb7aa33aSEmmanuel Vadot                pins = "gpio26";
137cb7aa33aSEmmanuel Vadot                function = "qup2_se7";
138cb7aa33aSEmmanuel Vadot                bias-pull-up;
139cb7aa33aSEmmanuel Vadot            };
140cb7aa33aSEmmanuel Vadot
141cb7aa33aSEmmanuel Vadot            tx-pins {
142cb7aa33aSEmmanuel Vadot                pins = "gpio27";
143cb7aa33aSEmmanuel Vadot                function = "qup2_se7";
144cb7aa33aSEmmanuel Vadot                bias-disable;
145cb7aa33aSEmmanuel Vadot            };
146cb7aa33aSEmmanuel Vadot        };
147cb7aa33aSEmmanuel Vadot    };
148cb7aa33aSEmmanuel Vadot...
149