xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml (revision 79d770afa0d582956bc2cb577fc9e3b413702ab8)
116dc56ebSKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
216dc56ebSKrzysztof Kozlowski%YAML 1.2
316dc56ebSKrzysztof Kozlowski---
416dc56ebSKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sm8350-tlmm.yaml#
516dc56ebSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
616dc56ebSKrzysztof Kozlowski
716dc56ebSKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SM8350 TLMM block
816dc56ebSKrzysztof Kozlowski
916dc56ebSKrzysztof Kozlowskimaintainers:
1016dc56ebSKrzysztof Kozlowski  - Vinod Koul <vkoul@kernel.org>
1116dc56ebSKrzysztof Kozlowski
1216dc56ebSKrzysztof Kozlowskidescription:
1316dc56ebSKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm SM8350 SoC.
1416dc56ebSKrzysztof Kozlowski
1516dc56ebSKrzysztof KozlowskiallOf:
1616dc56ebSKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
1716dc56ebSKrzysztof Kozlowski
1816dc56ebSKrzysztof Kozlowskiproperties:
1916dc56ebSKrzysztof Kozlowski  compatible:
2016dc56ebSKrzysztof Kozlowski    const: qcom,sm8350-tlmm
2116dc56ebSKrzysztof Kozlowski
2216dc56ebSKrzysztof Kozlowski  reg:
2316dc56ebSKrzysztof Kozlowski    maxItems: 1
2416dc56ebSKrzysztof Kozlowski
2512a18bb7SKrzysztof Kozlowski  interrupts:
2612a18bb7SKrzysztof Kozlowski    maxItems: 1
2712a18bb7SKrzysztof Kozlowski
2886a8754bSKrzysztof Kozlowski  gpio-reserved-ranges:
2986a8754bSKrzysztof Kozlowski    minItems: 1
3086a8754bSKrzysztof Kozlowski    maxItems: 102
3186a8754bSKrzysztof Kozlowski
3286a8754bSKrzysztof Kozlowski  gpio-line-names:
3386a8754bSKrzysztof Kozlowski    maxItems: 203
3486a8754bSKrzysztof Kozlowski
3516dc56ebSKrzysztof KozlowskipatternProperties:
3616dc56ebSKrzysztof Kozlowski  "-state$":
3716dc56ebSKrzysztof Kozlowski    oneOf:
3816dc56ebSKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm8350-tlmm-state"
3916dc56ebSKrzysztof Kozlowski      - patternProperties:
4016dc56ebSKrzysztof Kozlowski          "-pins$":
4116dc56ebSKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm8350-tlmm-state"
4216dc56ebSKrzysztof Kozlowski        additionalProperties: false
4316dc56ebSKrzysztof Kozlowski
4416dc56ebSKrzysztof Kozlowski$defs:
4516dc56ebSKrzysztof Kozlowski  qcom-sm8350-tlmm-state:
4616dc56ebSKrzysztof Kozlowski    type: object
4716dc56ebSKrzysztof Kozlowski    description:
4816dc56ebSKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
4916dc56ebSKrzysztof Kozlowski      Client device subnodes use below standard properties.
5016dc56ebSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
51a3c355b5SKrzysztof Kozlowski    unevaluatedProperties: false
5216dc56ebSKrzysztof Kozlowski
5316dc56ebSKrzysztof Kozlowski    properties:
5416dc56ebSKrzysztof Kozlowski      pins:
5516dc56ebSKrzysztof Kozlowski        description:
5616dc56ebSKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
5716dc56ebSKrzysztof Kozlowski          subnode.
5816dc56ebSKrzysztof Kozlowski        items:
5916dc56ebSKrzysztof Kozlowski          oneOf:
6045277153SKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-2])$"
6116dc56ebSKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
6216dc56ebSKrzysztof Kozlowski        minItems: 1
6316dc56ebSKrzysztof Kozlowski        maxItems: 36
6416dc56ebSKrzysztof Kozlowski
6516dc56ebSKrzysztof Kozlowski      function:
6616dc56ebSKrzysztof Kozlowski        description:
6716dc56ebSKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
6816dc56ebSKrzysztof Kozlowski          pins.
6916dc56ebSKrzysztof Kozlowski
7016dc56ebSKrzysztof Kozlowski        enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async,
7116dc56ebSKrzysztof Kozlowski                cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng,
7216dc56ebSKrzysztof Kozlowski                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
7316dc56ebSKrzysztof Kozlowski                ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
7416dc56ebSKrzysztof Kozlowski                gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
7516dc56ebSKrzysztof Kozlowski                mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
7616dc56ebSKrzysztof Kozlowski                mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck,
7716dc56ebSKrzysztof Kozlowski                mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws,
7816dc56ebSKrzysztof Kozlowski                mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12,
7916dc56ebSKrzysztof Kozlowski                mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6,
8016dc56ebSKrzysztof Kozlowski                mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator,
8116dc56ebSKrzysztof Kozlowski                pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk,
8216dc56ebSKrzysztof Kozlowski                pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable,
8316dc56ebSKrzysztof Kozlowski                qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request,
8416dc56ebSKrzysztof Kozlowski                qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0,
8516dc56ebSKrzysztof Kozlowski                qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10,
8616dc56ebSKrzysztof Kozlowski                qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19,
8716dc56ebSKrzysztof Kozlowski                qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5,
8816dc56ebSKrzysztof Kozlowski                qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk,
8916dc56ebSKrzysztof Kozlowski                sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2,
9016dc56ebSKrzysztof Kozlowski                tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data,
9116dc56ebSKrzysztof Kozlowski                uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present,
9216dc56ebSKrzysztof Kozlowski                uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ]
9316dc56ebSKrzysztof Kozlowski
9416dc56ebSKrzysztof Kozlowski    required:
9516dc56ebSKrzysztof Kozlowski      - pins
9616dc56ebSKrzysztof Kozlowski
97*79d770afSKrzysztof Kozlowskirequired:
98*79d770afSKrzysztof Kozlowski  - compatible
99*79d770afSKrzysztof Kozlowski  - reg
100*79d770afSKrzysztof Kozlowski
101*79d770afSKrzysztof KozlowskiunevaluatedProperties: false
102*79d770afSKrzysztof Kozlowski
10316dc56ebSKrzysztof Kozlowskiexamples:
10416dc56ebSKrzysztof Kozlowski  - |
10516dc56ebSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
10616dc56ebSKrzysztof Kozlowski    pinctrl@f100000 {
10716dc56ebSKrzysztof Kozlowski        compatible = "qcom,sm8350-tlmm";
10816dc56ebSKrzysztof Kozlowski        reg = <0x0f100000 0x300000>;
10916dc56ebSKrzysztof Kozlowski        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
11016dc56ebSKrzysztof Kozlowski        gpio-controller;
11116dc56ebSKrzysztof Kozlowski        #gpio-cells = <2>;
11216dc56ebSKrzysztof Kozlowski        interrupt-controller;
11316dc56ebSKrzysztof Kozlowski        #interrupt-cells = <2>;
1146f4e10ffSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 204>; /* GPIOs + ufs_reset */
11516dc56ebSKrzysztof Kozlowski
11616dc56ebSKrzysztof Kozlowski        gpio-wo-subnode-state {
11716dc56ebSKrzysztof Kozlowski            pins = "gpio1";
11816dc56ebSKrzysztof Kozlowski            function = "gpio";
11916dc56ebSKrzysztof Kozlowski        };
12016dc56ebSKrzysztof Kozlowski
12116dc56ebSKrzysztof Kozlowski        uart-w-subnodes-state {
12216dc56ebSKrzysztof Kozlowski            rx-pins {
12316dc56ebSKrzysztof Kozlowski                pins = "gpio18";
12416dc56ebSKrzysztof Kozlowski                function = "qup3";
12516dc56ebSKrzysztof Kozlowski                bias-pull-up;
12616dc56ebSKrzysztof Kozlowski            };
12716dc56ebSKrzysztof Kozlowski
12816dc56ebSKrzysztof Kozlowski            tx-pins {
12916dc56ebSKrzysztof Kozlowski                pins = "gpio19";
13016dc56ebSKrzysztof Kozlowski                function = "qup3";
13116dc56ebSKrzysztof Kozlowski                bias-disable;
13216dc56ebSKrzysztof Kozlowski            };
13316dc56ebSKrzysztof Kozlowski        };
13416dc56ebSKrzysztof Kozlowski    };
13516dc56ebSKrzysztof Kozlowski...
136