xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,msm8994-pinctrl.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,msm8994-pinctrl.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm MSM8994 TLMM pin controller
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Bjorn Andersson <andersson@kernel.org>
118bab661aSEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
128bab661aSEmmanuel Vadot
138bab661aSEmmanuel Vadotdescription:
148bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm MSM8994 SoC.
158bab661aSEmmanuel Vadot
168bab661aSEmmanuel Vadotproperties:
178bab661aSEmmanuel Vadot  compatible:
188bab661aSEmmanuel Vadot    enum:
198bab661aSEmmanuel Vadot      - qcom,msm8992-pinctrl
208bab661aSEmmanuel Vadot      - qcom,msm8994-pinctrl
218bab661aSEmmanuel Vadot
228bab661aSEmmanuel Vadot  reg:
238bab661aSEmmanuel Vadot    maxItems: 1
248bab661aSEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot  interrupts:
26cb7aa33aSEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
288bab661aSEmmanuel Vadot  gpio-reserved-ranges:
298bab661aSEmmanuel Vadot    minItems: 1
30cb7aa33aSEmmanuel Vadot    maxItems: 73
318bab661aSEmmanuel Vadot
328bab661aSEmmanuel Vadot  gpio-line-names:
33cb7aa33aSEmmanuel Vadot    maxItems: 146
348bab661aSEmmanuel Vadot
358bab661aSEmmanuel VadotpatternProperties:
368bab661aSEmmanuel Vadot  "-state$":
378bab661aSEmmanuel Vadot    oneOf:
388bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-msm8994-tlmm-state"
398bab661aSEmmanuel Vadot      - patternProperties:
408bab661aSEmmanuel Vadot          "-pins$":
418bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-msm8994-tlmm-state"
428bab661aSEmmanuel Vadot        additionalProperties: false
438bab661aSEmmanuel Vadot
448bab661aSEmmanuel Vadot$defs:
458bab661aSEmmanuel Vadot  qcom-msm8994-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:
60cb7aa33aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-3][0-9]|14[0-5])$"
618bab661aSEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk,
628bab661aSEmmanuel Vadot                      sdc2_cmd, sdc2_data, sdc3_clk, sdc3_cmd, sdc3_data ]
638bab661aSEmmanuel Vadot        minItems: 1
648bab661aSEmmanuel Vadot        maxItems: 36
658bab661aSEmmanuel Vadot
668bab661aSEmmanuel Vadot      function:
678bab661aSEmmanuel Vadot        description:
688bab661aSEmmanuel Vadot          Specify the alternative function to be configured for the specified
698bab661aSEmmanuel Vadot          pins.
708bab661aSEmmanuel Vadot
718bab661aSEmmanuel Vadot        enum: [ gpio, audio_ref_clk, blsp_i2c1, blsp_i2c2, blsp_i2c3,
728bab661aSEmmanuel Vadot                blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8,
738bab661aSEmmanuel Vadot                blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12, blsp_spi1,
748bab661aSEmmanuel Vadot                blsp_spi1_cs1, blsp_spi1_cs2, blsp_spi1_cs3, blsp_spi2,
758bab661aSEmmanuel Vadot                blsp_spi2_cs1, blsp_spi2_cs2, blsp_spi2_cs3, blsp_spi3,
768bab661aSEmmanuel Vadot                blsp_spi4, blsp_spi5, blsp_spi6, blsp_spi7, blsp_spi8,
778bab661aSEmmanuel Vadot                blsp_spi9, blsp_spi10, blsp_spi10_cs1, blsp_spi10_cs2,
788bab661aSEmmanuel Vadot                blsp_spi10_cs3, blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2,
798bab661aSEmmanuel Vadot                blsp_uart3, blsp_uart4, blsp_uart5, blsp_uart6, blsp_uart7,
808bab661aSEmmanuel Vadot                blsp_uart8, blsp_uart9, blsp_uart10, blsp_uart11, blsp_uart12,
818bab661aSEmmanuel Vadot                blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim4, blsp_uim5,
828bab661aSEmmanuel Vadot                blsp_uim6, blsp_uim7, blsp_uim8, blsp_uim9, blsp_uim10,
838bab661aSEmmanuel Vadot                blsp_uim11, blsp_uim12, blsp11_i2c_scl_b, blsp11_i2c_sda_b,
848bab661aSEmmanuel Vadot                blsp11_uart_rx_b, blsp11_uart_tx_b, cam_mclk0, cam_mclk1,
858bab661aSEmmanuel Vadot                cam_mclk2, cam_mclk3, cci_async_in0, cci_async_in1,
868bab661aSEmmanuel Vadot                cci_async_in2, cci_i2c0, cci_i2c1, cci_timer0, cci_timer1,
878bab661aSEmmanuel Vadot                cci_timer2, cci_timer3, cci_timer4, gcc_gp1_clk_a,
888bab661aSEmmanuel Vadot                gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b, gcc_gp3_clk_a,
898bab661aSEmmanuel Vadot                gcc_gp3_clk_b, gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, gp0_clk,
908bab661aSEmmanuel Vadot                gp1_clk, gps_tx, gsm_tx, hdmi_cec, hdmi_ddc, hdmi_hpd,
918bab661aSEmmanuel Vadot                hdmi_rcv, mdp_vsync, mss_lte, nav_pps, nav_tsync,
928bab661aSEmmanuel Vadot                qdss_cti_trig_in_a, qdss_cti_trig_in_b, qdss_cti_trig_in_c,
938bab661aSEmmanuel Vadot                qdss_cti_trig_in_d, qdss_cti_trig_out_a, qdss_cti_trig_out_b,
948bab661aSEmmanuel Vadot                qdss_cti_trig_out_c, qdss_cti_trig_out_d, qdss_traceclk_a,
958bab661aSEmmanuel Vadot                qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b,
968bab661aSEmmanuel Vadot                qdss_tracedata_a, qdss_tracedata_b, qua_mi2s, pci_e0, pci_e1,
978bab661aSEmmanuel Vadot                pri_mi2s, sdc4, sec_mi2s, slimbus, spkr_i2s, ter_mi2s, tsif1,
988bab661aSEmmanuel Vadot                tsif2, uim_batt_alarm, uim1, uim2, uim3, uim4 ]
998bab661aSEmmanuel Vadot
1008bab661aSEmmanuel Vadot    required:
1018bab661aSEmmanuel Vadot      - pins
1028bab661aSEmmanuel Vadot
1038bab661aSEmmanuel VadotallOf:
1048bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
1058bab661aSEmmanuel Vadot
1068bab661aSEmmanuel Vadotrequired:
1078bab661aSEmmanuel Vadot  - compatible
1088bab661aSEmmanuel Vadot  - reg
1098bab661aSEmmanuel Vadot
110*8d13bc63SEmmanuel VadotunevaluatedProperties: false
1118bab661aSEmmanuel Vadot
1128bab661aSEmmanuel Vadotexamples:
1138bab661aSEmmanuel Vadot  - |
1148bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1158bab661aSEmmanuel Vadot
1168bab661aSEmmanuel Vadot    tlmm: pinctrl@fd510000 {
1178bab661aSEmmanuel Vadot        compatible = "qcom,msm8994-pinctrl";
1188bab661aSEmmanuel Vadot        reg = <0xfd510000 0x4000>;
1198bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1208bab661aSEmmanuel Vadot        gpio-controller;
1218bab661aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 146>;
1228bab661aSEmmanuel Vadot        #gpio-cells = <2>;
1238bab661aSEmmanuel Vadot        interrupt-controller;
1248bab661aSEmmanuel Vadot        #interrupt-cells = <2>;
1258bab661aSEmmanuel Vadot
1268bab661aSEmmanuel Vadot        blsp1-uart2-default-state {
1278bab661aSEmmanuel Vadot            function = "blsp_uart2";
1288bab661aSEmmanuel Vadot            pins = "gpio4", "gpio5";
1298bab661aSEmmanuel Vadot            drive-strength = <16>;
1308bab661aSEmmanuel Vadot            bias-disable;
1318bab661aSEmmanuel Vadot        };
1328bab661aSEmmanuel Vadot
1338bab661aSEmmanuel Vadot        blsp1-spi1-default-state {
1348bab661aSEmmanuel Vadot            default-pins {
1358bab661aSEmmanuel Vadot                pins = "gpio0", "gpio1", "gpio3";
1368bab661aSEmmanuel Vadot                function = "blsp_spi1";
1378bab661aSEmmanuel Vadot                drive-strength = <10>;
1388bab661aSEmmanuel Vadot                bias-pull-down;
1398bab661aSEmmanuel Vadot            };
1408bab661aSEmmanuel Vadot
1418bab661aSEmmanuel Vadot            cs-pins {
1428bab661aSEmmanuel Vadot                pins = "gpio8";
1438bab661aSEmmanuel Vadot                function = "gpio";
1448bab661aSEmmanuel Vadot                drive-strength = <2>;
1458bab661aSEmmanuel Vadot                bias-disable;
1468bab661aSEmmanuel Vadot            };
1478bab661aSEmmanuel Vadot        };
1488bab661aSEmmanuel Vadot    };
149