xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sm8350-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,sm8350-tlmm.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM8350 TLMM block
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Vinod Koul <vkoul@kernel.org>
118bab661aSEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription:
138bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SM8350 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,sm8350-tlmm
218bab661aSEmmanuel Vadot
228bab661aSEmmanuel Vadot  reg:
238bab661aSEmmanuel Vadot    maxItems: 1
248bab661aSEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot  interrupts:
26cb7aa33aSEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  gpio-reserved-ranges:
29cb7aa33aSEmmanuel Vadot    minItems: 1
30cb7aa33aSEmmanuel Vadot    maxItems: 102
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel Vadot  gpio-line-names:
33cb7aa33aSEmmanuel Vadot    maxItems: 203
34cb7aa33aSEmmanuel Vadot
358bab661aSEmmanuel VadotpatternProperties:
368bab661aSEmmanuel Vadot  "-state$":
378bab661aSEmmanuel Vadot    oneOf:
388bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-sm8350-tlmm-state"
398bab661aSEmmanuel Vadot      - patternProperties:
408bab661aSEmmanuel Vadot          "-pins$":
418bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-sm8350-tlmm-state"
428bab661aSEmmanuel Vadot        additionalProperties: false
438bab661aSEmmanuel Vadot
448bab661aSEmmanuel Vadot$defs:
458bab661aSEmmanuel Vadot  qcom-sm8350-tlmm-state:
468bab661aSEmmanuel Vadot    type: object
478bab661aSEmmanuel Vadot    description:
488bab661aSEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
498bab661aSEmmanuel Vadot      Client device subnodes use below standard properties.
508bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
528bab661aSEmmanuel Vadot
538bab661aSEmmanuel Vadot    properties:
548bab661aSEmmanuel Vadot      pins:
558bab661aSEmmanuel Vadot        description:
568bab661aSEmmanuel Vadot          List of gpio pins affected by the properties specified in this
578bab661aSEmmanuel Vadot          subnode.
588bab661aSEmmanuel Vadot        items:
598bab661aSEmmanuel Vadot          oneOf:
60cb7aa33aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-2])$"
618bab661aSEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
628bab661aSEmmanuel Vadot        minItems: 1
638bab661aSEmmanuel Vadot        maxItems: 36
648bab661aSEmmanuel Vadot
658bab661aSEmmanuel Vadot      function:
668bab661aSEmmanuel Vadot        description:
678bab661aSEmmanuel Vadot          Specify the alternative function to be configured for the specified
688bab661aSEmmanuel Vadot          pins.
698bab661aSEmmanuel Vadot
708bab661aSEmmanuel Vadot        enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async,
718bab661aSEmmanuel Vadot                cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng,
728bab661aSEmmanuel Vadot                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
738bab661aSEmmanuel Vadot                ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
748bab661aSEmmanuel Vadot                gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
758bab661aSEmmanuel Vadot                mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
768bab661aSEmmanuel Vadot                mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck,
778bab661aSEmmanuel Vadot                mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws,
788bab661aSEmmanuel Vadot                mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12,
798bab661aSEmmanuel Vadot                mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6,
808bab661aSEmmanuel Vadot                mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator,
818bab661aSEmmanuel Vadot                pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk,
828bab661aSEmmanuel Vadot                pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable,
838bab661aSEmmanuel Vadot                qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request,
848bab661aSEmmanuel Vadot                qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0,
858bab661aSEmmanuel Vadot                qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10,
868bab661aSEmmanuel Vadot                qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19,
878bab661aSEmmanuel Vadot                qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5,
888bab661aSEmmanuel Vadot                qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk,
898bab661aSEmmanuel Vadot                sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2,
908bab661aSEmmanuel Vadot                tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data,
918bab661aSEmmanuel Vadot                uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present,
928bab661aSEmmanuel Vadot                uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ]
938bab661aSEmmanuel Vadot
948bab661aSEmmanuel Vadot    required:
958bab661aSEmmanuel Vadot      - pins
968bab661aSEmmanuel Vadot
97*8d13bc63SEmmanuel Vadotrequired:
98*8d13bc63SEmmanuel Vadot  - compatible
99*8d13bc63SEmmanuel Vadot  - reg
100*8d13bc63SEmmanuel Vadot
101*8d13bc63SEmmanuel VadotunevaluatedProperties: false
102*8d13bc63SEmmanuel Vadot
1038bab661aSEmmanuel Vadotexamples:
1048bab661aSEmmanuel Vadot  - |
1058bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1068bab661aSEmmanuel Vadot    pinctrl@f100000 {
1078bab661aSEmmanuel Vadot        compatible = "qcom,sm8350-tlmm";
1088bab661aSEmmanuel Vadot        reg = <0x0f100000 0x300000>;
1098bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1108bab661aSEmmanuel Vadot        gpio-controller;
1118bab661aSEmmanuel Vadot        #gpio-cells = <2>;
1128bab661aSEmmanuel Vadot        interrupt-controller;
1138bab661aSEmmanuel Vadot        #interrupt-cells = <2>;
114cb7aa33aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 204>; /* GPIOs + ufs_reset */
1158bab661aSEmmanuel Vadot
1168bab661aSEmmanuel Vadot        gpio-wo-subnode-state {
1178bab661aSEmmanuel Vadot            pins = "gpio1";
1188bab661aSEmmanuel Vadot            function = "gpio";
1198bab661aSEmmanuel Vadot        };
1208bab661aSEmmanuel Vadot
1218bab661aSEmmanuel Vadot        uart-w-subnodes-state {
1228bab661aSEmmanuel Vadot            rx-pins {
1238bab661aSEmmanuel Vadot                pins = "gpio18";
1248bab661aSEmmanuel Vadot                function = "qup3";
1258bab661aSEmmanuel Vadot                bias-pull-up;
1268bab661aSEmmanuel Vadot            };
1278bab661aSEmmanuel Vadot
1288bab661aSEmmanuel Vadot            tx-pins {
1298bab661aSEmmanuel Vadot                pins = "gpio19";
1308bab661aSEmmanuel Vadot                function = "qup3";
1318bab661aSEmmanuel Vadot                bias-disable;
1328bab661aSEmmanuel Vadot            };
1338bab661aSEmmanuel Vadot        };
1348bab661aSEmmanuel Vadot    };
1358bab661aSEmmanuel Vadot...
136