xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,sm6115-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,sm6115-tlmm.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM6115, SM4250 TLMM block
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Iskren Chernev <iskren.chernev@gmail.com>
118bab661aSEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription:
138bab661aSEmmanuel Vadot  Top Level Mode Multiplexer pin controller in Qualcomm SM4250 and SM6115
148bab661aSEmmanuel Vadot  SoCs.
158bab661aSEmmanuel Vadot
168bab661aSEmmanuel Vadotproperties:
178bab661aSEmmanuel Vadot  compatible:
188bab661aSEmmanuel Vadot    const: qcom,sm6115-tlmm
198bab661aSEmmanuel Vadot
208bab661aSEmmanuel Vadot  reg:
218bab661aSEmmanuel Vadot    maxItems: 3
228bab661aSEmmanuel Vadot
238bab661aSEmmanuel Vadot  reg-names:
248bab661aSEmmanuel Vadot    items:
258bab661aSEmmanuel Vadot      - const: west
268bab661aSEmmanuel Vadot      - const: south
278bab661aSEmmanuel Vadot      - const: east
288bab661aSEmmanuel Vadot
29cb7aa33aSEmmanuel Vadot  interrupts:
30cb7aa33aSEmmanuel Vadot    maxItems: 1
31cb7aa33aSEmmanuel Vadot
328bab661aSEmmanuel Vadot  gpio-reserved-ranges: true
338bab661aSEmmanuel Vadot
348bab661aSEmmanuel VadotpatternProperties:
358bab661aSEmmanuel Vadot  "-state$":
368bab661aSEmmanuel Vadot    oneOf:
378bab661aSEmmanuel Vadot      - $ref: "#/$defs/qcom-sm6115-tlmm-state"
388bab661aSEmmanuel Vadot      - patternProperties:
398bab661aSEmmanuel Vadot          "-pins$":
408bab661aSEmmanuel Vadot            $ref: "#/$defs/qcom-sm6115-tlmm-state"
418bab661aSEmmanuel Vadot        additionalProperties: false
428bab661aSEmmanuel Vadot
438bab661aSEmmanuel Vadot$defs:
448bab661aSEmmanuel Vadot  qcom-sm6115-tlmm-state:
458bab661aSEmmanuel Vadot    type: object
468bab661aSEmmanuel Vadot    description:
478bab661aSEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
488bab661aSEmmanuel Vadot      Client device subnodes use below standard properties.
498bab661aSEmmanuel Vadot    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
50fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
518bab661aSEmmanuel Vadot
528bab661aSEmmanuel Vadot    properties:
538bab661aSEmmanuel Vadot      pins:
548bab661aSEmmanuel Vadot        description:
558bab661aSEmmanuel Vadot          List of gpio pins affected by the properties specified in this
568bab661aSEmmanuel Vadot          subnode.
578bab661aSEmmanuel Vadot        items:
588bab661aSEmmanuel Vadot          oneOf:
598bab661aSEmmanuel Vadot            - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$"
608bab661aSEmmanuel Vadot            - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data,
618bab661aSEmmanuel Vadot                      sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ]
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, cam_mclk, cci_async, cci_i2c,
718bab661aSEmmanuel Vadot                cci_timer, cri_trng, dac_calib, dbg_out, ddr_bist, ddr_pxi0,
728bab661aSEmmanuel Vadot                ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
738bab661aSEmmanuel Vadot                gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, jitter_bist,
748bab661aSEmmanuel Vadot                mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, mpm_pwr, mss_lte,
758bab661aSEmmanuel Vadot                m_voc, nav_gpio, pa_indicator, pbs, pbs_out, phase_flag,
768bab661aSEmmanuel Vadot                pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti,
778bab661aSEmmanuel Vadot                qdss_gpio, qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb,
788bab661aSEmmanuel Vadot                sdc2_tb, sd_write, ssbi_wtr1, tgu, tsense_pwm, uim1_clk,
798bab661aSEmmanuel Vadot                uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data,
808bab661aSEmmanuel Vadot                uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger,
818bab661aSEmmanuel Vadot                wlan1_adc0, elan1_adc1 ]
828bab661aSEmmanuel Vadot
838bab661aSEmmanuel Vadot    required:
848bab661aSEmmanuel Vadot      - pins
858bab661aSEmmanuel Vadot
868bab661aSEmmanuel VadotallOf:
878bab661aSEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
888bab661aSEmmanuel Vadot
898bab661aSEmmanuel Vadotrequired:
908bab661aSEmmanuel Vadot  - compatible
918bab661aSEmmanuel Vadot  - reg
928bab661aSEmmanuel Vadot  - reg-names
938bab661aSEmmanuel Vadot
94*8d13bc63SEmmanuel VadotunevaluatedProperties: false
958bab661aSEmmanuel Vadot
968bab661aSEmmanuel Vadotexamples:
978bab661aSEmmanuel Vadot  - |
988bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
998bab661aSEmmanuel Vadot    tlmm: pinctrl@500000 {
1008bab661aSEmmanuel Vadot        compatible = "qcom,sm6115-tlmm";
1018bab661aSEmmanuel Vadot        reg = <0x500000 0x400000>,
1028bab661aSEmmanuel Vadot              <0x900000 0x400000>,
1038bab661aSEmmanuel Vadot              <0xd00000 0x400000>;
1048bab661aSEmmanuel Vadot        reg-names = "west", "south", "east";
1058bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
1068bab661aSEmmanuel Vadot        gpio-controller;
1078bab661aSEmmanuel Vadot        #gpio-cells = <2>;
1088bab661aSEmmanuel Vadot        interrupt-controller;
1098bab661aSEmmanuel Vadot        #interrupt-cells = <2>;
1108bab661aSEmmanuel Vadot        gpio-ranges = <&tlmm 0 0 114>;
1118bab661aSEmmanuel Vadot
1128bab661aSEmmanuel Vadot        sdc2_on_state: sdc2-on-state {
1138bab661aSEmmanuel Vadot            clk-pins {
1148bab661aSEmmanuel Vadot                pins = "sdc2_clk";
1158bab661aSEmmanuel Vadot                bias-disable;
1168bab661aSEmmanuel Vadot                drive-strength = <16>;
1178bab661aSEmmanuel Vadot            };
1188bab661aSEmmanuel Vadot
1198bab661aSEmmanuel Vadot            cmd-pins {
1208bab661aSEmmanuel Vadot                pins = "sdc2_cmd";
1218bab661aSEmmanuel Vadot                bias-pull-up;
1228bab661aSEmmanuel Vadot                drive-strength = <10>;
1238bab661aSEmmanuel Vadot            };
1248bab661aSEmmanuel Vadot
1258bab661aSEmmanuel Vadot            data-pins {
1268bab661aSEmmanuel Vadot                pins = "sdc2_data";
1278bab661aSEmmanuel Vadot                bias-pull-up;
1288bab661aSEmmanuel Vadot                drive-strength = <10>;
1298bab661aSEmmanuel Vadot            };
1308bab661aSEmmanuel Vadot
1318bab661aSEmmanuel Vadot            sd-cd-pins {
1328bab661aSEmmanuel Vadot                pins = "gpio88";
1338bab661aSEmmanuel Vadot                function = "gpio";
1348bab661aSEmmanuel Vadot                bias-pull-up;
1358bab661aSEmmanuel Vadot                drive-strength = <2>;
1368bab661aSEmmanuel Vadot            };
1378bab661aSEmmanuel Vadot        };
1388bab661aSEmmanuel Vadot    };
139