xref: /linux/Documentation/devicetree/bindings/pinctrl/qcom,sm6375-tlmm.yaml (revision b71b285a0fe760f550bc81f070acaecef0556277)
12064b662SKonrad Dybcio# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22064b662SKonrad Dybcio%YAML 1.2
32064b662SKonrad Dybcio---
42064b662SKonrad Dybcio$id: http://devicetree.org/schemas/pinctrl/qcom,sm6375-tlmm.yaml#
52064b662SKonrad Dybcio$schema: http://devicetree.org/meta-schemas/core.yaml#
62064b662SKonrad Dybcio
72064b662SKonrad Dybciotitle: Qualcomm Technologies, Inc. SM6375 TLMM block
82064b662SKonrad Dybcio
92064b662SKonrad Dybciomaintainers:
102064b662SKonrad Dybcio  - Konrad Dybcio <konrad.dybcio@somainline.org>
112064b662SKonrad Dybcio
122064b662SKonrad Dybciodescription: |
132064b662SKonrad Dybcio  This binding describes the Top Level Mode Multiplexer (TLMM) block found
142064b662SKonrad Dybcio  in the SM6375 platform.
152064b662SKonrad Dybcio
162064b662SKonrad DybcioallOf:
172064b662SKonrad Dybcio  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
182064b662SKonrad Dybcio
192064b662SKonrad Dybcioproperties:
202064b662SKonrad Dybcio  compatible:
212064b662SKonrad Dybcio    const: qcom,sm6375-tlmm
222064b662SKonrad Dybcio
232064b662SKonrad Dybcio  reg:
242064b662SKonrad Dybcio    maxItems: 1
252064b662SKonrad Dybcio
262064b662SKonrad Dybcio  interrupts: true
272064b662SKonrad Dybcio  interrupt-controller: true
282064b662SKonrad Dybcio  '#interrupt-cells': true
292064b662SKonrad Dybcio  gpio-controller: true
302064b662SKonrad Dybcio  gpio-reserved-ranges: true
312064b662SKonrad Dybcio  '#gpio-cells': true
322064b662SKonrad Dybcio  gpio-ranges: true
332064b662SKonrad Dybcio  wakeup-parent: true
342064b662SKonrad Dybcio
352064b662SKonrad Dybciorequired:
362064b662SKonrad Dybcio  - compatible
372064b662SKonrad Dybcio  - reg
382064b662SKonrad Dybcio
392064b662SKonrad DybcioadditionalProperties: false
402064b662SKonrad Dybcio
412064b662SKonrad DybciopatternProperties:
422064b662SKonrad Dybcio  '-state$':
432064b662SKonrad Dybcio    oneOf:
442064b662SKonrad Dybcio      - $ref: "#/$defs/qcom-sm6375-tlmm-state"
452064b662SKonrad Dybcio      - patternProperties:
4651af3784SKrzysztof Kozlowski          "-pins$":
472064b662SKonrad Dybcio            $ref: "#/$defs/qcom-sm6375-tlmm-state"
4851af3784SKrzysztof Kozlowski        additionalProperties: false
492064b662SKonrad Dybcio
502064b662SKonrad Dybcio$defs:
512064b662SKonrad Dybcio  qcom-sm6375-tlmm-state:
522064b662SKonrad Dybcio    type: object
532064b662SKonrad Dybcio    description:
542064b662SKonrad Dybcio      Pinctrl node's client devices use subnodes for desired pin configuration.
552064b662SKonrad Dybcio      Client device subnodes use below standard properties.
56*b71b285aSKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
572064b662SKonrad Dybcio
582064b662SKonrad Dybcio    properties:
592064b662SKonrad Dybcio      pins:
602064b662SKonrad Dybcio        description:
612064b662SKonrad Dybcio          List of gpio pins affected by the properties specified in this
622064b662SKonrad Dybcio          subnode.
632064b662SKonrad Dybcio        items:
642064b662SKonrad Dybcio          oneOf:
652064b662SKonrad Dybcio            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9]|15[0-6])$"
662064b662SKonrad Dybcio            - enum: [ ufs_reset, sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk,
672064b662SKonrad Dybcio                      sdc2_cmd, sdc2_data ]
682064b662SKonrad Dybcio        minItems: 1
692064b662SKonrad Dybcio        maxItems: 36
702064b662SKonrad Dybcio
712064b662SKonrad Dybcio      function:
722064b662SKonrad Dybcio        description:
732064b662SKonrad Dybcio          Specify the alternative function to be configured for the specified
742064b662SKonrad Dybcio          pins.
752064b662SKonrad Dybcio
762064b662SKonrad Dybcio        enum: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
772064b662SKonrad Dybcio                atest_char2, atest_char3, atest_tsens, atest_tsens2,
782064b662SKonrad Dybcio                atest_usb1, atest_usb10, atest_usb11, atest_usb12,
792064b662SKonrad Dybcio                atest_usb13, atest_usb2, atest_usb20, atest_usb21,
802064b662SKonrad Dybcio                atest_usb22, atest_usb23, audio_ref, btfm_slimbus, cam_mclk,
812064b662SKonrad Dybcio                cci_async, cci_i2c, cci_timer0, cci_timer1, cci_timer2,
822064b662SKonrad Dybcio                cci_timer3, cci_timer4, cri_trng, dbg_out, ddr_bist,
832064b662SKonrad Dybcio                ddr_pxi0, ddr_pxi1, ddr_pxi2, ddr_pxi3, dp_hot, edp_lcd,
842064b662SKonrad Dybcio                gcc_gp1, gcc_gp2, gcc_gp3, gp_pdm0, gp_pdm1, gp_pdm2, gpio,
852064b662SKonrad Dybcio                gps_tx, ibi_i3c, jitter_bist, ldo_en, ldo_update, lpass_ext,
862064b662SKonrad Dybcio                m_voc, mclk, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2,
872064b662SKonrad Dybcio                mdp_vsync3, mi2s_0, mi2s_1, mi2s_2, mss_lte, nav_gpio,
882064b662SKonrad Dybcio                nav_pps, pa_indicator, phase_flag0, phase_flag1, phase_flag10,
892064b662SKonrad Dybcio                phase_flag11, phase_flag12, phase_flag13, phase_flag14,
902064b662SKonrad Dybcio                phase_flag15, phase_flag16, phase_flag17, phase_flag18,
912064b662SKonrad Dybcio                phase_flag19, phase_flag2, phase_flag20, phase_flag21,
922064b662SKonrad Dybcio                phase_flag22, phase_flag23, phase_flag24, phase_flag25,
932064b662SKonrad Dybcio                phase_flag26, phase_flag27, phase_flag28, phase_flag29,
942064b662SKonrad Dybcio                phase_flag3, phase_flag30, phase_flag31, phase_flag4,
952064b662SKonrad Dybcio                phase_flag5, phase_flag6, phase_flag7, phase_flag8,
962064b662SKonrad Dybcio                phase_flag9, pll_bist, pll_bypassnl, pll_clk, pll_reset,
972064b662SKonrad Dybcio                prng_rosc0, prng_rosc1, prng_rosc2, prng_rosc3, qdss_cti,
982064b662SKonrad Dybcio                qdss_gpio, qdss_gpio0, qdss_gpio1, qdss_gpio10, qdss_gpio11,
992064b662SKonrad Dybcio                qdss_gpio12, qdss_gpio13, qdss_gpio14, qdss_gpio15,
1002064b662SKonrad Dybcio                qdss_gpio2, qdss_gpio3, qdss_gpio4, qdss_gpio5, qdss_gpio6,
1012064b662SKonrad Dybcio                qdss_gpio7, qdss_gpio8, qdss_gpio9, qlink0_enable,
1022064b662SKonrad Dybcio                qlink0_request, qlink0_wmss, qlink1_enable, qlink1_request,
1032064b662SKonrad Dybcio                qlink1_wmss, qup00, qup01, qup02, qup10, qup11_f1, qup11_f2,
1042064b662SKonrad Dybcio                qup12, qup13_f1, qup13_f2, qup14, sd_write, sdc1_tb, sdc2_tb,
1052064b662SKonrad Dybcio                sp_cmu, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm1,
1062064b662SKonrad Dybcio                tsense_pwm2, uim1_clk, uim1_data, uim1_present, uim1_reset,
1072064b662SKonrad Dybcio                uim2_clk, uim2_data, uim2_present, uim2_reset, usb2phy_ac,
1082064b662SKonrad Dybcio                usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1,
1092064b662SKonrad Dybcio                wlan2_adc0, wlan2_adc1 ]
1102064b662SKonrad Dybcio
1112064b662SKonrad Dybcio
1122064b662SKonrad Dybcio      bias-disable: true
1132064b662SKonrad Dybcio      bias-pull-down: true
1142064b662SKonrad Dybcio      bias-pull-up: true
1152064b662SKonrad Dybcio      drive-strength: true
1162064b662SKonrad Dybcio      input-enable: true
1172064b662SKonrad Dybcio      output-high: true
1182064b662SKonrad Dybcio      output-low: true
1192064b662SKonrad Dybcio
1202064b662SKonrad Dybcio    required:
1212064b662SKonrad Dybcio      - pins
122c8441085SKrzysztof Kozlowski
1232064b662SKonrad Dybcio    additionalProperties: false
1242064b662SKonrad Dybcio
1252064b662SKonrad Dybcioexamples:
1262064b662SKonrad Dybcio  - |
1272064b662SKonrad Dybcio    #include <dt-bindings/interrupt-controller/arm-gic.h>
1282064b662SKonrad Dybcio    pinctrl@500000 {
1292064b662SKonrad Dybcio        compatible = "qcom,sm6375-tlmm";
1302064b662SKonrad Dybcio        reg = <0x00500000 0x800000>;
1312064b662SKonrad Dybcio        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
1322064b662SKonrad Dybcio        gpio-controller;
1332064b662SKonrad Dybcio        #gpio-cells = <2>;
1342064b662SKonrad Dybcio        interrupt-controller;
1352064b662SKonrad Dybcio        #interrupt-cells = <2>;
1362064b662SKonrad Dybcio        gpio-ranges = <&tlmm 0 0 157>;
1372064b662SKonrad Dybcio
1382064b662SKonrad Dybcio        gpio-wo-subnode-state {
1392064b662SKonrad Dybcio            pins = "gpio1";
1402064b662SKonrad Dybcio            function = "gpio";
1412064b662SKonrad Dybcio        };
1422064b662SKonrad Dybcio
1432064b662SKonrad Dybcio        uart-w-subnodes-state {
14451af3784SKrzysztof Kozlowski            rx-pins {
1452064b662SKonrad Dybcio                pins = "gpio18";
1462064b662SKonrad Dybcio                function = "qup13_f2";
1472064b662SKonrad Dybcio                bias-pull-up;
1482064b662SKonrad Dybcio            };
1492064b662SKonrad Dybcio
15051af3784SKrzysztof Kozlowski            tx-pins {
1512064b662SKonrad Dybcio                pins = "gpio19";
1522064b662SKonrad Dybcio                function = "qup13_f2";
1532064b662SKonrad Dybcio                bias-disable;
1542064b662SKonrad Dybcio            };
1552064b662SKonrad Dybcio        };
1562064b662SKonrad Dybcio    };
1572064b662SKonrad Dybcio...
158