xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml (revision 79d770afa0d582956bc2cb577fc9e3b413702ab8)
17703f13aSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27703f13aSKrzysztof Kozlowski%YAML 1.2
37703f13aSKrzysztof Kozlowski---
47703f13aSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sc8280xp-tlmm.yaml#
57703f13aSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
67703f13aSKrzysztof Kozlowski
77703f13aSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SC8280XP TLMM block
87703f13aSKrzysztof Kozlowski
97703f13aSKrzysztof Kozlowskimaintainers:
107703f13aSKrzysztof Kozlowski  - Bjorn Andersson <bjorn.andersson@linaro.org>
117703f13aSKrzysztof Kozlowski
127703f13aSKrzysztof Kozlowskidescription: |
137703f13aSKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm SC8280XP SoC.
147703f13aSKrzysztof Kozlowski
157703f13aSKrzysztof KozlowskiallOf:
167703f13aSKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
177703f13aSKrzysztof Kozlowski
187703f13aSKrzysztof Kozlowskiproperties:
197703f13aSKrzysztof Kozlowski  compatible:
207703f13aSKrzysztof Kozlowski    const: qcom,sc8280xp-tlmm
217703f13aSKrzysztof Kozlowski
227703f13aSKrzysztof Kozlowski  reg:
237703f13aSKrzysztof Kozlowski    maxItems: 1
247703f13aSKrzysztof Kozlowski
2512a18bb7SKrzysztof Kozlowski  interrupts:
2612a18bb7SKrzysztof Kozlowski    maxItems: 1
2712a18bb7SKrzysztof Kozlowski
287703f13aSKrzysztof Kozlowski  gpio-reserved-ranges: true
297703f13aSKrzysztof Kozlowski
307703f13aSKrzysztof KozlowskipatternProperties:
317703f13aSKrzysztof Kozlowski  "-state$":
327703f13aSKrzysztof Kozlowski    oneOf:
337703f13aSKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sc8280xp-tlmm-state"
347703f13aSKrzysztof Kozlowski      - patternProperties:
357703f13aSKrzysztof Kozlowski          "-pins$":
367703f13aSKrzysztof Kozlowski            $ref: "#/$defs/qcom-sc8280xp-tlmm-state"
377703f13aSKrzysztof Kozlowski        additionalProperties: false
387703f13aSKrzysztof Kozlowski
397703f13aSKrzysztof Kozlowski$defs:
407703f13aSKrzysztof Kozlowski  qcom-sc8280xp-tlmm-state:
417703f13aSKrzysztof Kozlowski    type: object
427703f13aSKrzysztof Kozlowski    description:
437703f13aSKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
447703f13aSKrzysztof Kozlowski      Client device subnodes use below standard properties.
457703f13aSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
46aeffc733SKrzysztof Kozlowski    unevaluatedProperties: false
477703f13aSKrzysztof Kozlowski
487703f13aSKrzysztof Kozlowski    properties:
497703f13aSKrzysztof Kozlowski      pins:
507703f13aSKrzysztof Kozlowski        description:
517703f13aSKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
527703f13aSKrzysztof Kozlowski          subnode.
537703f13aSKrzysztof Kozlowski        items:
547703f13aSKrzysztof Kozlowski          oneOf:
557703f13aSKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-1][0-9]|22[0-7])$"
567703f13aSKrzysztof Kozlowski            - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset, ufs1_reset ]
577703f13aSKrzysztof Kozlowski        minItems: 1
587703f13aSKrzysztof Kozlowski        maxItems: 16
597703f13aSKrzysztof Kozlowski
607703f13aSKrzysztof Kozlowski      function:
617703f13aSKrzysztof Kozlowski        description:
627703f13aSKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
637703f13aSKrzysztof Kozlowski          pins.
647703f13aSKrzysztof Kozlowski
657703f13aSKrzysztof Kozlowski        enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async, cci_i2c,
667703f13aSKrzysztof Kozlowski                cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4,
677703f13aSKrzysztof Kozlowski                cci_timer5, cci_timer6, cci_timer7, cci_timer8, cci_timer9,
687703f13aSKrzysztof Kozlowski                cmu_rng, cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist,
697703f13aSKrzysztof Kozlowski                ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, ddr_pxi4, ddr_pxi5,
707703f13aSKrzysztof Kozlowski                ddr_pxi6, ddr_pxi7, dp2_hot, dp3_hot, edp0_lcd, edp1_lcd,
717703f13aSKrzysztof Kozlowski                edp2_lcd, edp3_lcd, edp_hot, emac0_dll, emac0_mcg0, emac0_mcg1,
727703f13aSKrzysztof Kozlowski                emac0_mcg2, emac0_mcg3, emac0_phy, emac0_ptp, emac1_dll0,
737703f13aSKrzysztof Kozlowski                emac1_dll1, emac1_mcg0, emac1_mcg1, emac1_mcg2, emac1_mcg3,
747703f13aSKrzysztof Kozlowski                emac1_phy, emac1_ptp, gcc_gp1, gcc_gp2, gcc_gp3, gcc_gp4,
757703f13aSKrzysztof Kozlowski                gcc_gp5, gpio, hs1_mi2s, hs2_mi2s, hs3_mi2s, ibi_i3c,
767703f13aSKrzysztof Kozlowski                jitter_bist, lpass_slimbus, mdp0_vsync0, mdp0_vsync1,
777703f13aSKrzysztof Kozlowski                mdp0_vsync2, mdp0_vsync3, mdp0_vsync4, mdp0_vsync5,
787703f13aSKrzysztof Kozlowski                mdp0_vsync6, mdp0_vsync7, mdp0_vsync8, mdp1_vsync0,
797703f13aSKrzysztof Kozlowski                mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4,
807703f13aSKrzysztof Kozlowski                mdp1_vsync5, mdp1_vsync6, mdp1_vsync7, mdp1_vsync8, mdp_vsync,
817703f13aSKrzysztof Kozlowski                mi2s0_data0, mi2s0_data1, mi2s0_sck, mi2s0_ws, mi2s1_data0,
827703f13aSKrzysztof Kozlowski                mi2s1_data1, mi2s1_sck, mi2s1_ws, mi2s2_data0, mi2s2_data1,
837703f13aSKrzysztof Kozlowski                mi2s2_sck, mi2s2_ws, mi2s_mclk1, mi2s_mclk2, pcie2a_clkreq,
847703f13aSKrzysztof Kozlowski                pcie2b_clkreq, pcie3a_clkreq, pcie3b_clkreq, pcie4_clkreq,
857703f13aSKrzysztof Kozlowski                phase_flag, pll_bist, pll_clk, prng_rosc0, prng_rosc1,
867703f13aSKrzysztof Kozlowski                prng_rosc2, prng_rosc3, qdss_cti, qdss_gpio, qspi, qspi_clk,
877703f13aSKrzysztof Kozlowski                qspi_cs, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8,
887703f13aSKrzysztof Kozlowski                qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17,
897703f13aSKrzysztof Kozlowski                qup18, qup19, qup20, qup21, qup22, qup23, rgmii_0, rgmii_1,
907703f13aSKrzysztof Kozlowski                sd_write, sdc40, sdc42, sdc43, sdc4_clk, sdc4_cmd, tb_trig,
917703f13aSKrzysztof Kozlowski                tgu, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4,
927703f13aSKrzysztof Kozlowski                usb0_dp, usb0_phy, usb0_sbrx, usb0_sbtx, usb0_usb4, usb1_dp,
937703f13aSKrzysztof Kozlowski                usb1_phy, usb1_sbrx, usb1_sbtx, usb1_usb4, usb2phy_ac,
947703f13aSKrzysztof Kozlowski                vsense_trigger ]
957703f13aSKrzysztof Kozlowski
967703f13aSKrzysztof Kozlowski    required:
977703f13aSKrzysztof Kozlowski      - pins
987703f13aSKrzysztof Kozlowski
99*79d770afSKrzysztof Kozlowskirequired:
100*79d770afSKrzysztof Kozlowski  - compatible
101*79d770afSKrzysztof Kozlowski  - reg
102*79d770afSKrzysztof Kozlowski
103*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
104*79d770afSKrzysztof Kozlowski
1057703f13aSKrzysztof Kozlowskiexamples:
1067703f13aSKrzysztof Kozlowski  - |
1077703f13aSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
1087703f13aSKrzysztof Kozlowski    pinctrl@f100000 {
1097703f13aSKrzysztof Kozlowski        compatible = "qcom,sc8280xp-tlmm";
1107703f13aSKrzysztof Kozlowski        reg = <0x0f100000 0x300000>;
1117703f13aSKrzysztof Kozlowski        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1127703f13aSKrzysztof Kozlowski        gpio-controller;
1137703f13aSKrzysztof Kozlowski        #gpio-cells = <2>;
1147703f13aSKrzysztof Kozlowski        interrupt-controller;
1157703f13aSKrzysztof Kozlowski        #interrupt-cells = <2>;
1167703f13aSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 230>;
1177703f13aSKrzysztof Kozlowski
1187703f13aSKrzysztof Kozlowski        gpio-wo-subnode-state {
1197703f13aSKrzysztof Kozlowski            pins = "gpio1";
1207703f13aSKrzysztof Kozlowski            function = "gpio";
1217703f13aSKrzysztof Kozlowski        };
1227703f13aSKrzysztof Kozlowski
1237703f13aSKrzysztof Kozlowski        uart-w-subnodes-state {
1247703f13aSKrzysztof Kozlowski            rx-pins {
1257703f13aSKrzysztof Kozlowski                pins = "gpio4";
1267703f13aSKrzysztof Kozlowski                function = "qup14";
1277703f13aSKrzysztof Kozlowski                bias-pull-up;
1287703f13aSKrzysztof Kozlowski            };
1297703f13aSKrzysztof Kozlowski
1307703f13aSKrzysztof Kozlowski            tx-pins {
1317703f13aSKrzysztof Kozlowski                pins = "gpio5";
1327703f13aSKrzysztof Kozlowski                function = "qup14";
1337703f13aSKrzysztof Kozlowski                bias-disable;
1347703f13aSKrzysztof Kozlowski            };
1357703f13aSKrzysztof Kozlowski        };
1367703f13aSKrzysztof Kozlowski    };
1377703f13aSKrzysztof Kozlowski...
138