xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm8350-tlmm.yaml (revision 86a8754b08de4d9d5bd1f31b56283efb8763b8c7)
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
2516dc56ebSKrzysztof Kozlowski  interrupts: true
2616dc56ebSKrzysztof Kozlowski  interrupt-controller: true
2716dc56ebSKrzysztof Kozlowski  "#interrupt-cells": true
2816dc56ebSKrzysztof Kozlowski  gpio-controller: true
29*86a8754bSKrzysztof Kozlowski
30*86a8754bSKrzysztof Kozlowski  gpio-reserved-ranges:
31*86a8754bSKrzysztof Kozlowski    minItems: 1
32*86a8754bSKrzysztof Kozlowski    maxItems: 102
33*86a8754bSKrzysztof Kozlowski
34*86a8754bSKrzysztof Kozlowski  gpio-line-names:
35*86a8754bSKrzysztof Kozlowski    maxItems: 203
36*86a8754bSKrzysztof Kozlowski
3716dc56ebSKrzysztof Kozlowski  "#gpio-cells": true
3816dc56ebSKrzysztof Kozlowski  gpio-ranges: true
3916dc56ebSKrzysztof Kozlowski  wakeup-parent: true
4016dc56ebSKrzysztof Kozlowski
4116dc56ebSKrzysztof Kozlowskirequired:
4216dc56ebSKrzysztof Kozlowski  - compatible
4316dc56ebSKrzysztof Kozlowski  - reg
4416dc56ebSKrzysztof Kozlowski
4516dc56ebSKrzysztof KozlowskiadditionalProperties: false
4616dc56ebSKrzysztof Kozlowski
4716dc56ebSKrzysztof KozlowskipatternProperties:
4816dc56ebSKrzysztof Kozlowski  "-state$":
4916dc56ebSKrzysztof Kozlowski    oneOf:
5016dc56ebSKrzysztof Kozlowski      - $ref: "#/$defs/qcom-sm8350-tlmm-state"
5116dc56ebSKrzysztof Kozlowski      - patternProperties:
5216dc56ebSKrzysztof Kozlowski          "-pins$":
5316dc56ebSKrzysztof Kozlowski            $ref: "#/$defs/qcom-sm8350-tlmm-state"
5416dc56ebSKrzysztof Kozlowski        additionalProperties: false
5516dc56ebSKrzysztof Kozlowski
5616dc56ebSKrzysztof Kozlowski$defs:
5716dc56ebSKrzysztof Kozlowski  qcom-sm8350-tlmm-state:
5816dc56ebSKrzysztof Kozlowski    type: object
5916dc56ebSKrzysztof Kozlowski    description:
6016dc56ebSKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
6116dc56ebSKrzysztof Kozlowski      Client device subnodes use below standard properties.
6216dc56ebSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
6316dc56ebSKrzysztof Kozlowski
6416dc56ebSKrzysztof Kozlowski    properties:
6516dc56ebSKrzysztof Kozlowski      pins:
6616dc56ebSKrzysztof Kozlowski        description:
6716dc56ebSKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
6816dc56ebSKrzysztof Kozlowski          subnode.
6916dc56ebSKrzysztof Kozlowski        items:
7016dc56ebSKrzysztof Kozlowski          oneOf:
7116dc56ebSKrzysztof Kozlowski            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-3])$"
7216dc56ebSKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, sdc2_data ]
7316dc56ebSKrzysztof Kozlowski        minItems: 1
7416dc56ebSKrzysztof Kozlowski        maxItems: 36
7516dc56ebSKrzysztof Kozlowski
7616dc56ebSKrzysztof Kozlowski      function:
7716dc56ebSKrzysztof Kozlowski        description:
7816dc56ebSKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
7916dc56ebSKrzysztof Kozlowski          pins.
8016dc56ebSKrzysztof Kozlowski
8116dc56ebSKrzysztof Kozlowski        enum: [ atest_char, atest_usb, audio_ref, cam_mclk, cci_async,
8216dc56ebSKrzysztof Kozlowski                cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng,
8316dc56ebSKrzysztof Kozlowski                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
8416dc56ebSKrzysztof Kozlowski                ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
8516dc56ebSKrzysztof Kozlowski                gpio, ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
8616dc56ebSKrzysztof Kozlowski                mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
8716dc56ebSKrzysztof Kozlowski                mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck,
8816dc56ebSKrzysztof Kozlowski                mi2s1_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws,
8916dc56ebSKrzysztof Kozlowski                mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12,
9016dc56ebSKrzysztof Kozlowski                mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6,
9116dc56ebSKrzysztof Kozlowski                mss_grfc7, mss_grfc8, mss_grfc9, nav_gpio, pa_indicator,
9216dc56ebSKrzysztof Kozlowski                pcie0_clkreqn, pcie1_clkreqn, phase_flag, pll_bist, pll_clk,
9316dc56ebSKrzysztof Kozlowski                pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qlink0_enable,
9416dc56ebSKrzysztof Kozlowski                qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request,
9516dc56ebSKrzysztof Kozlowski                qlink1_wmss, qlink2_enable, qlink2_request, qlink2_wmss, qspi0,
9616dc56ebSKrzysztof Kozlowski                qspi1, qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10,
9716dc56ebSKrzysztof Kozlowski                qup11, qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19,
9816dc56ebSKrzysztof Kozlowski                qup2, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5,
9916dc56ebSKrzysztof Kozlowski                qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk,
10016dc56ebSKrzysztof Kozlowski                sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2,
10116dc56ebSKrzysztof Kozlowski                tgu_ch3, tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data,
10216dc56ebSKrzysztof Kozlowski                uim0_present, uim0_reset, uim1_clk, uim1_data, uim1_present,
10316dc56ebSKrzysztof Kozlowski                uim1_reset, usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ]
10416dc56ebSKrzysztof Kozlowski
10516dc56ebSKrzysztof Kozlowski
10616dc56ebSKrzysztof Kozlowski      bias-disable: true
10716dc56ebSKrzysztof Kozlowski      bias-pull-down: true
10816dc56ebSKrzysztof Kozlowski      bias-pull-up: true
10916dc56ebSKrzysztof Kozlowski      drive-strength: true
11016dc56ebSKrzysztof Kozlowski      input-enable: true
11116dc56ebSKrzysztof Kozlowski      output-high: true
11216dc56ebSKrzysztof Kozlowski      output-low: true
11316dc56ebSKrzysztof Kozlowski
11416dc56ebSKrzysztof Kozlowski    required:
11516dc56ebSKrzysztof Kozlowski      - pins
11616dc56ebSKrzysztof Kozlowski
11716dc56ebSKrzysztof Kozlowski    additionalProperties: false
11816dc56ebSKrzysztof Kozlowski
11916dc56ebSKrzysztof Kozlowskiexamples:
12016dc56ebSKrzysztof Kozlowski  - |
12116dc56ebSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
12216dc56ebSKrzysztof Kozlowski    pinctrl@f100000 {
12316dc56ebSKrzysztof Kozlowski        compatible = "qcom,sm8350-tlmm";
12416dc56ebSKrzysztof Kozlowski        reg = <0x0f100000 0x300000>;
12516dc56ebSKrzysztof Kozlowski        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
12616dc56ebSKrzysztof Kozlowski        gpio-controller;
12716dc56ebSKrzysztof Kozlowski        #gpio-cells = <2>;
12816dc56ebSKrzysztof Kozlowski        interrupt-controller;
12916dc56ebSKrzysztof Kozlowski        #interrupt-cells = <2>;
13016dc56ebSKrzysztof Kozlowski        gpio-ranges = <&tlmm 0 0 203>;
13116dc56ebSKrzysztof Kozlowski
13216dc56ebSKrzysztof Kozlowski        gpio-wo-subnode-state {
13316dc56ebSKrzysztof Kozlowski            pins = "gpio1";
13416dc56ebSKrzysztof Kozlowski            function = "gpio";
13516dc56ebSKrzysztof Kozlowski        };
13616dc56ebSKrzysztof Kozlowski
13716dc56ebSKrzysztof Kozlowski        uart-w-subnodes-state {
13816dc56ebSKrzysztof Kozlowski            rx-pins {
13916dc56ebSKrzysztof Kozlowski                pins = "gpio18";
14016dc56ebSKrzysztof Kozlowski                function = "qup3";
14116dc56ebSKrzysztof Kozlowski                bias-pull-up;
14216dc56ebSKrzysztof Kozlowski            };
14316dc56ebSKrzysztof Kozlowski
14416dc56ebSKrzysztof Kozlowski            tx-pins {
14516dc56ebSKrzysztof Kozlowski                pins = "gpio19";
14616dc56ebSKrzysztof Kozlowski                function = "qup3";
14716dc56ebSKrzysztof Kozlowski                bias-disable;
14816dc56ebSKrzysztof Kozlowski            };
14916dc56ebSKrzysztof Kozlowski        };
15016dc56ebSKrzysztof Kozlowski    };
15116dc56ebSKrzysztof Kozlowski...
152