xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/qcom,mdm9607-pinctrl.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,mdm9607-pinctrl.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Qualcomm Technologies, Inc. MDM9607 TLMM block
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Konrad Dybcio <konrad.dybcio@somainline.org>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotdescription: |
13354d7675SEmmanuel Vadot  This binding describes the Top Level Mode Multiplexer block found in the
14354d7675SEmmanuel Vadot  MDM9607 platform.
15354d7675SEmmanuel Vadot
16354d7675SEmmanuel VadotallOf:
17*e67e8565SEmmanuel Vadot  - $ref: "pinctrl.yaml#"
18354d7675SEmmanuel Vadot  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
19354d7675SEmmanuel Vadot
20354d7675SEmmanuel Vadotproperties:
21354d7675SEmmanuel Vadot  compatible:
22354d7675SEmmanuel Vadot    const: qcom,mdm9607-tlmm
23354d7675SEmmanuel Vadot
24354d7675SEmmanuel Vadot  reg:
25354d7675SEmmanuel Vadot    maxItems: 1
26354d7675SEmmanuel Vadot
27354d7675SEmmanuel Vadot  interrupts: true
28354d7675SEmmanuel Vadot  interrupt-controller: true
29354d7675SEmmanuel Vadot  '#interrupt-cells': true
30354d7675SEmmanuel Vadot  gpio-controller: true
31354d7675SEmmanuel Vadot  gpio-reserved-ranges: true
32354d7675SEmmanuel Vadot  '#gpio-cells': true
33354d7675SEmmanuel Vadot  gpio-ranges: true
34354d7675SEmmanuel Vadot  wakeup-parent: true
35354d7675SEmmanuel Vadot
36354d7675SEmmanuel Vadotrequired:
37354d7675SEmmanuel Vadot  - compatible
38354d7675SEmmanuel Vadot  - reg
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel VadotadditionalProperties: false
41354d7675SEmmanuel Vadot
42354d7675SEmmanuel VadotpatternProperties:
43354d7675SEmmanuel Vadot  '-state$':
44354d7675SEmmanuel Vadot    oneOf:
45354d7675SEmmanuel Vadot      - $ref: "#/$defs/qcom-mdm9607-tlmm-state"
46354d7675SEmmanuel Vadot      - patternProperties:
47354d7675SEmmanuel Vadot          ".*":
48354d7675SEmmanuel Vadot            $ref: "#/$defs/qcom-mdm9607-tlmm-state"
49354d7675SEmmanuel Vadot
50354d7675SEmmanuel Vadot'$defs':
51354d7675SEmmanuel Vadot  qcom-mdm9607-tlmm-state:
52354d7675SEmmanuel Vadot    type: object
53354d7675SEmmanuel Vadot    description:
54354d7675SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
55354d7675SEmmanuel Vadot      Client device subnodes use below standard properties.
56354d7675SEmmanuel Vadot    $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state"
57354d7675SEmmanuel Vadot
58354d7675SEmmanuel Vadot    properties:
59354d7675SEmmanuel Vadot      pins:
60354d7675SEmmanuel Vadot        description:
61354d7675SEmmanuel Vadot          List of gpio pins affected by the properties specified in this
62354d7675SEmmanuel Vadot          subnode.
63354d7675SEmmanuel Vadot        items:
64354d7675SEmmanuel Vadot          oneOf:
65354d7675SEmmanuel Vadot            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
66354d7675SEmmanuel Vadot            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
67354d7675SEmmanuel Vadot                      sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
68354d7675SEmmanuel Vadot                      qdsd_data3 ]
69354d7675SEmmanuel Vadot        minItems: 1
70354d7675SEmmanuel Vadot        maxItems: 16
71354d7675SEmmanuel Vadot
72354d7675SEmmanuel Vadot      function:
73354d7675SEmmanuel Vadot        description:
74354d7675SEmmanuel Vadot          Specify the alternative function to be configured for the specified
75354d7675SEmmanuel Vadot          pins.
76354d7675SEmmanuel Vadot
77354d7675SEmmanuel Vadot        enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0,
78354d7675SEmmanuel Vadot                atest_char1, atest_char2, atest_char3,
79354d7675SEmmanuel Vadot                atest_combodac_to_gpio_native, atest_gpsadc_dtest0_native,
80354d7675SEmmanuel Vadot                atest_gpsadc_dtest1_native, atest_tsens, backlight_en_b,
81354d7675SEmmanuel Vadot                bimc_dte0, bimc_dte1, blsp1_spi, blsp2_spi, blsp3_spi,
82354d7675SEmmanuel Vadot                blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5,
83354d7675SEmmanuel Vadot                blsp_i2c6, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4,
84354d7675SEmmanuel Vadot                blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uart3,
85354d7675SEmmanuel Vadot                blsp_uart4, blsp_uart5, blsp_uart6, blsp_uim1, blsp_uim2,
86354d7675SEmmanuel Vadot                codec_int, codec_rst, coex_uart, cri_trng, cri_trng0,
87354d7675SEmmanuel Vadot                cri_trng1, dbg_out, ebi0_wrcdc, ebi2_a, ebi2_a_d_8_b,
88354d7675SEmmanuel Vadot                ebi2_lcd, ebi2_lcd_cs_n_b, ebi2_lcd_te_b, eth_irq, eth_rst,
89354d7675SEmmanuel Vadot                gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b,
90354d7675SEmmanuel Vadot                gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gcc_tlmm, gmac_mdio,
91354d7675SEmmanuel Vadot                gpio, gsm0_tx, lcd_rst, ldo_en, ldo_update, m_voc, modem_tsync,
92354d7675SEmmanuel Vadot                nav_ptp_pps_in_a, nav_ptp_pps_in_b, nav_tsync_out_a,
93354d7675SEmmanuel Vadot                nav_tsync_out_b, pa_indicator, pbs0, pbs1, pbs2,
94354d7675SEmmanuel Vadot                pri_mi2s_data0_a, pri_mi2s_data1_a, pri_mi2s_mclk_a,
95354d7675SEmmanuel Vadot                pri_mi2s_sck_a, pri_mi2s_ws_a, prng_rosc, ptp_pps_out_a,
96354d7675SEmmanuel Vadot                ptp_pps_out_b, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
97354d7675SEmmanuel Vadot                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
98354d7675SEmmanuel Vadot                pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1,
99354d7675SEmmanuel Vadot                qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0,
100354d7675SEmmanuel Vadot                qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, qdss_cti_trig_out_b1,
101354d7675SEmmanuel Vadot                qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a,
102354d7675SEmmanuel Vadot                qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, rcm_marker1,
103354d7675SEmmanuel Vadot                rcm_marker2, sd_write, sec_mi2s, sensor_en, sensor_int2,
104354d7675SEmmanuel Vadot                sensor_int3, sensor_rst, ssbi1, ssbi2, touch_rst, ts_int,
105354d7675SEmmanuel Vadot                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
106354d7675SEmmanuel Vadot                uim2_data, uim2_present, uim2_reset, uim_batt, wlan_en1, ]
107354d7675SEmmanuel Vadot
108354d7675SEmmanuel Vadot      bias-disable: true
109354d7675SEmmanuel Vadot      bias-pull-down: true
110354d7675SEmmanuel Vadot      bias-pull-up: true
111354d7675SEmmanuel Vadot      drive-strength: true
112354d7675SEmmanuel Vadot      input-enable: true
113354d7675SEmmanuel Vadot      output-high: true
114354d7675SEmmanuel Vadot      output-low: true
115354d7675SEmmanuel Vadot
116354d7675SEmmanuel Vadot    required:
117354d7675SEmmanuel Vadot      - pins
118354d7675SEmmanuel Vadot      - function
119354d7675SEmmanuel Vadot
120354d7675SEmmanuel Vadot    additionalProperties: false
121354d7675SEmmanuel Vadot
122354d7675SEmmanuel Vadotexamples:
123354d7675SEmmanuel Vadot  - |
124354d7675SEmmanuel Vadot        #include <dt-bindings/interrupt-controller/arm-gic.h>
125354d7675SEmmanuel Vadot        tlmm: pinctrl@1000000 {
126354d7675SEmmanuel Vadot          compatible = "qcom,mdm9607-tlmm";
127354d7675SEmmanuel Vadot          reg = <0x01000000 0x300000>;
128354d7675SEmmanuel Vadot          interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
129354d7675SEmmanuel Vadot          gpio-controller;
130354d7675SEmmanuel Vadot          gpio-ranges = <&msmgpio 0 0 80>;
131354d7675SEmmanuel Vadot          #gpio-cells = <2>;
132354d7675SEmmanuel Vadot          interrupt-controller;
133354d7675SEmmanuel Vadot          #interrupt-cells = <2>;
134354d7675SEmmanuel Vadot        };
135