xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sm6125-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,sm6125-tlmm.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM6125 TLMM block
78bab661aSEmmanuel Vadot
88bab661aSEmmanuel Vadotmaintainers:
98bab661aSEmmanuel Vadot  - Martin Botka <martin.botka@somainline.org>
108bab661aSEmmanuel Vadot
118bab661aSEmmanuel Vadotdescription:
128bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SM6125 SoC.
138bab661aSEmmanuel Vadot
148bab661aSEmmanuel VadotallOf:
158bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
168bab661aSEmmanuel Vadot
178bab661aSEmmanuel Vadotproperties:
188bab661aSEmmanuel Vadot  compatible:
198bab661aSEmmanuel Vadot    const: qcom,sm6125-tlmm
208bab661aSEmmanuel Vadot
218bab661aSEmmanuel Vadot  reg:
228bab661aSEmmanuel Vadot    maxItems: 3
238bab661aSEmmanuel Vadot
248bab661aSEmmanuel Vadot  reg-names:
258bab661aSEmmanuel Vadot    items:
268bab661aSEmmanuel Vadot      - const: west
278bab661aSEmmanuel Vadot      - const: south
288bab661aSEmmanuel Vadot      - const: east
298bab661aSEmmanuel Vadot
30cb7aa33aSEmmanuel Vadot  interrupts:
31cb7aa33aSEmmanuel Vadot    maxItems: 1
32cb7aa33aSEmmanuel Vadot
338bab661aSEmmanuel Vadot  gpio-reserved-ranges: true
348bab661aSEmmanuel Vadot
358bab661aSEmmanuel VadotpatternProperties:
368bab661aSEmmanuel Vadot  "-state$":
378bab661aSEmmanuel Vadot    oneOf:
388bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-sm6125-tlmm-state"
398bab661aSEmmanuel Vadot      - patternProperties:
408bab661aSEmmanuel Vadot          "-pins$":
418bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-sm6125-tlmm-state"
428bab661aSEmmanuel Vadot        additionalProperties: false
438bab661aSEmmanuel Vadot
448bab661aSEmmanuel Vadot$defs:
458bab661aSEmmanuel Vadot  qcom-sm6125-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:
608bab661aSEmmanuel Vadot            - pattern: "^gpio[0-9]|[1-9][0-9]|1[0-2][0-9]|13[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: [ adsp_ext, agera_pll, atest_char, atest_char0, atest_char1,
718bab661aSEmmanuel Vadot                atest_char2, atest_char3, atest_tsens, atest_tsens2, atest_usb1,
728bab661aSEmmanuel Vadot                atest_usb10, atest_usb11, atest_usb12, atest_usb13, atest_usb2,
738bab661aSEmmanuel Vadot                atest_usb20, atest_usb21, atest_usb22, atest_usb23, aud_sb,
748bab661aSEmmanuel Vadot                audio_ref, cam_mclk, cci_async, cci_i2c, cci_timer0, cci_timer1,
758bab661aSEmmanuel Vadot                cci_timer2, cci_timer3, cci_timer4, copy_gp, copy_phase, cri_trng,
768bab661aSEmmanuel Vadot                cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
778bab661aSEmmanuel Vadot                ddr_pxi2, ddr_pxi3, debug_hot, dmic0_clk, dmic0_data, dmic1_clk,
788bab661aSEmmanuel Vadot                dmic1_data, dp_hot, edp_hot, edp_lcd, gcc_gp1, gcc_gp2, gcc_gp3,
798bab661aSEmmanuel Vadot                gp_pdm0, gp_pdm1, gp_pdm2, gpio, gps_tx, jitter_bist, ldo_en,
808bab661aSEmmanuel Vadot                ldo_update, m_voc, mclk1, mclk2, mdp_vsync, mdp_vsync0, mdp_vsync1,
818bab661aSEmmanuel Vadot                mdp_vsync2, mdp_vsync3, mdp_vsync4, mdp_vsync5, mpm_pwr, mss_lte,
828bab661aSEmmanuel Vadot                nav_pps, pa_indicator, phase_flag, pll_bist, pll_bypassnl, pll_reset,
838bab661aSEmmanuel Vadot                pri_mi2s, pri_mi2s_ws, prng_rosc, qca_sb, qdss_cti, qdss, qlink_enable,
848bab661aSEmmanuel Vadot                qlink_request, qua_mi2s, qui_mi2s, qup00, qup01, qup02, qup03, qup04,
858bab661aSEmmanuel Vadot                qup10, qup11, qup12, qup13, qup14, sd_write, sec_mi2s, sp_cmu, swr_rx,
868bab661aSEmmanuel Vadot                swr_tx, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, tsense_pwm,
878bab661aSEmmanuel Vadot                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data,
888bab661aSEmmanuel Vadot                uim2_present, uim2_reset, unused1, unused2, usb_phy, vfr_1, vsense_trigger,
898bab661aSEmmanuel Vadot                wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1, wsa_clk, wsa_data ]
908bab661aSEmmanuel Vadot
918bab661aSEmmanuel Vadot
928bab661aSEmmanuel Vadot    required:
938bab661aSEmmanuel Vadot      - pins
948bab661aSEmmanuel Vadot
95*8d13bc63SEmmanuel Vadotrequired:
96*8d13bc63SEmmanuel Vadot  - compatible
97*8d13bc63SEmmanuel Vadot  - reg
98*8d13bc63SEmmanuel Vadot  - reg-names
99*8d13bc63SEmmanuel Vadot
100*8d13bc63SEmmanuel VadotunevaluatedProperties: false
101*8d13bc63SEmmanuel Vadot
1028bab661aSEmmanuel Vadotexamples:
1038bab661aSEmmanuel Vadot  - |
1048bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1058bab661aSEmmanuel Vadot    pinctrl@500000 {
1068bab661aSEmmanuel Vadot        compatible = "qcom,sm6125-tlmm";
1078bab661aSEmmanuel Vadot        reg = <0x00500000 0x400000>,
1088bab661aSEmmanuel Vadot              <0x00900000 0x400000>,
1098bab661aSEmmanuel Vadot              <0x00d00000 0x400000>;
1108bab661aSEmmanuel Vadot        reg-names = "west", "south", "east";
1118bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
1128bab661aSEmmanuel Vadot        gpio-controller;
1138bab661aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 134>;
1148bab661aSEmmanuel Vadot        #gpio-cells = <2>;
1158bab661aSEmmanuel Vadot        interrupt-controller;
1168bab661aSEmmanuel Vadot        #interrupt-cells = <2>;
1178bab661aSEmmanuel Vadot
1188bab661aSEmmanuel Vadot        sdc2-off-state {
1198bab661aSEmmanuel Vadot            clk-pins {
1208bab661aSEmmanuel Vadot                pins = "sdc2_clk";
1218bab661aSEmmanuel Vadot                drive-strength = <2>;
1228bab661aSEmmanuel Vadot                bias-disable;
1238bab661aSEmmanuel Vadot            };
1248bab661aSEmmanuel Vadot
1258bab661aSEmmanuel Vadot            cmd-pins {
1268bab661aSEmmanuel Vadot                pins = "sdc2_cmd";
1278bab661aSEmmanuel Vadot                drive-strength = <2>;
1288bab661aSEmmanuel Vadot                bias-pull-up;
1298bab661aSEmmanuel Vadot            };
1308bab661aSEmmanuel Vadot
1318bab661aSEmmanuel Vadot            data-pins {
1328bab661aSEmmanuel Vadot                pins = "sdc2_data";
1338bab661aSEmmanuel Vadot                drive-strength = <2>;
1348bab661aSEmmanuel Vadot                bias-pull-up;
1358bab661aSEmmanuel Vadot            };
1368bab661aSEmmanuel Vadot        };
1378bab661aSEmmanuel Vadot    };
138