xref: /openbmc/linux/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
173966aa6SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
273966aa6SKrzysztof Kozlowski%YAML 1.2
373966aa6SKrzysztof Kozlowski---
473966aa6SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,mdm9607-tlmm.yaml#
573966aa6SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
673966aa6SKrzysztof Kozlowski
773966aa6SKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. MDM9607 TLMM block
873966aa6SKrzysztof Kozlowski
973966aa6SKrzysztof Kozlowskimaintainers:
1073966aa6SKrzysztof Kozlowski  - Konrad Dybcio <konrad.dybcio@somainline.org>
1173966aa6SKrzysztof Kozlowski
1273966aa6SKrzysztof Kozlowskidescription:
1373966aa6SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm MDM9607 SoC.
1473966aa6SKrzysztof Kozlowski
1573966aa6SKrzysztof KozlowskiallOf:
1673966aa6SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
1773966aa6SKrzysztof Kozlowski
1873966aa6SKrzysztof Kozlowskiproperties:
1973966aa6SKrzysztof Kozlowski  compatible:
2073966aa6SKrzysztof Kozlowski    const: qcom,mdm9607-tlmm
2173966aa6SKrzysztof Kozlowski
2273966aa6SKrzysztof Kozlowski  reg:
2373966aa6SKrzysztof Kozlowski    maxItems: 1
2473966aa6SKrzysztof Kozlowski
2512a18bb7SKrzysztof Kozlowski  interrupts:
2612a18bb7SKrzysztof Kozlowski    maxItems: 1
2712a18bb7SKrzysztof Kozlowski
2873966aa6SKrzysztof Kozlowski  interrupt-controller: true
2973966aa6SKrzysztof Kozlowski  "#interrupt-cells": true
3073966aa6SKrzysztof Kozlowski  gpio-controller: true
3173966aa6SKrzysztof Kozlowski  gpio-reserved-ranges: true
3273966aa6SKrzysztof Kozlowski  "#gpio-cells": true
3373966aa6SKrzysztof Kozlowski  gpio-ranges: true
3473966aa6SKrzysztof Kozlowski  wakeup-parent: true
3573966aa6SKrzysztof Kozlowski
3673966aa6SKrzysztof Kozlowskirequired:
3773966aa6SKrzysztof Kozlowski  - compatible
3873966aa6SKrzysztof Kozlowski  - reg
3973966aa6SKrzysztof Kozlowski
4073966aa6SKrzysztof KozlowskiadditionalProperties: false
4173966aa6SKrzysztof Kozlowski
4273966aa6SKrzysztof KozlowskipatternProperties:
4373966aa6SKrzysztof Kozlowski  "-state$":
4473966aa6SKrzysztof Kozlowski    oneOf:
4573966aa6SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-mdm9607-tlmm-state"
4673966aa6SKrzysztof Kozlowski      - patternProperties:
4773966aa6SKrzysztof Kozlowski          ".*":
4873966aa6SKrzysztof Kozlowski            $ref: "#/$defs/qcom-mdm9607-tlmm-state"
4973966aa6SKrzysztof Kozlowski
5073966aa6SKrzysztof Kozlowski$defs:
5173966aa6SKrzysztof Kozlowski  qcom-mdm9607-tlmm-state:
5273966aa6SKrzysztof Kozlowski    type: object
5373966aa6SKrzysztof Kozlowski    description:
5473966aa6SKrzysztof Kozlowski      Pinctrl node's client devices use subnodes for desired pin configuration.
5573966aa6SKrzysztof Kozlowski      Client device subnodes use below standard properties.
5673966aa6SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
57*867bf150SKrzysztof Kozlowski    unevaluatedProperties: false
5873966aa6SKrzysztof Kozlowski
5973966aa6SKrzysztof Kozlowski    properties:
6073966aa6SKrzysztof Kozlowski      pins:
6173966aa6SKrzysztof Kozlowski        description:
6273966aa6SKrzysztof Kozlowski          List of gpio pins affected by the properties specified in this
6373966aa6SKrzysztof Kozlowski          subnode.
6473966aa6SKrzysztof Kozlowski        items:
6573966aa6SKrzysztof Kozlowski          oneOf:
6673966aa6SKrzysztof Kozlowski            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
6773966aa6SKrzysztof Kozlowski            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
6873966aa6SKrzysztof Kozlowski                      sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
6973966aa6SKrzysztof Kozlowski                      qdsd_data3 ]
7073966aa6SKrzysztof Kozlowski        minItems: 1
7173966aa6SKrzysztof Kozlowski        maxItems: 16
7273966aa6SKrzysztof Kozlowski
7373966aa6SKrzysztof Kozlowski      function:
7473966aa6SKrzysztof Kozlowski        description:
7573966aa6SKrzysztof Kozlowski          Specify the alternative function to be configured for the specified
7673966aa6SKrzysztof Kozlowski          pins.
7773966aa6SKrzysztof Kozlowski
7873966aa6SKrzysztof Kozlowski        enum: [ adsp_ext, atest_bbrx0, atest_bbrx1, atest_char, atest_char0,
7973966aa6SKrzysztof Kozlowski                atest_char1, atest_char2, atest_char3,
8073966aa6SKrzysztof Kozlowski                atest_combodac_to_gpio_native, atest_gpsadc_dtest0_native,
8173966aa6SKrzysztof Kozlowski                atest_gpsadc_dtest1_native, atest_tsens, backlight_en_b,
8273966aa6SKrzysztof Kozlowski                bimc_dte0, bimc_dte1, blsp1_spi, blsp2_spi, blsp3_spi,
8373966aa6SKrzysztof Kozlowski                blsp_i2c1, blsp_i2c2, blsp_i2c3, blsp_i2c4, blsp_i2c5,
8473966aa6SKrzysztof Kozlowski                blsp_i2c6, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4,
8573966aa6SKrzysztof Kozlowski                blsp_spi5, blsp_spi6, blsp_uart1, blsp_uart2, blsp_uart3,
8673966aa6SKrzysztof Kozlowski                blsp_uart4, blsp_uart5, blsp_uart6, blsp_uim1, blsp_uim2,
8773966aa6SKrzysztof Kozlowski                codec_int, codec_rst, coex_uart, cri_trng, cri_trng0,
8873966aa6SKrzysztof Kozlowski                cri_trng1, dbg_out, ebi0_wrcdc, ebi2_a, ebi2_a_d_8_b,
8973966aa6SKrzysztof Kozlowski                ebi2_lcd, ebi2_lcd_cs_n_b, ebi2_lcd_te_b, eth_irq, eth_rst,
9073966aa6SKrzysztof Kozlowski                gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, gcc_gp2_clk_b,
9173966aa6SKrzysztof Kozlowski                gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, gcc_tlmm, gmac_mdio,
9273966aa6SKrzysztof Kozlowski                gpio, gsm0_tx, lcd_rst, ldo_en, ldo_update, m_voc, modem_tsync,
9373966aa6SKrzysztof Kozlowski                nav_ptp_pps_in_a, nav_ptp_pps_in_b, nav_tsync_out_a,
9473966aa6SKrzysztof Kozlowski                nav_tsync_out_b, pa_indicator, pbs0, pbs1, pbs2,
9573966aa6SKrzysztof Kozlowski                pri_mi2s_data0_a, pri_mi2s_data1_a, pri_mi2s_mclk_a,
9673966aa6SKrzysztof Kozlowski                pri_mi2s_sck_a, pri_mi2s_ws_a, prng_rosc, ptp_pps_out_a,
9773966aa6SKrzysztof Kozlowski                ptp_pps_out_b, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
9873966aa6SKrzysztof Kozlowski                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
9973966aa6SKrzysztof Kozlowski                pwr_nav_enabled_b, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1,
10073966aa6SKrzysztof Kozlowski                qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_a0,
10173966aa6SKrzysztof Kozlowski                qdss_cti_trig_out_a1, qdss_cti_trig_out_b0, qdss_cti_trig_out_b1,
10273966aa6SKrzysztof Kozlowski                qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a,
10373966aa6SKrzysztof Kozlowski                qdss_tracectl_b, qdss_tracedata_a, qdss_tracedata_b, rcm_marker1,
10473966aa6SKrzysztof Kozlowski                rcm_marker2, sd_write, sec_mi2s, sensor_en, sensor_int2,
10573966aa6SKrzysztof Kozlowski                sensor_int3, sensor_rst, ssbi1, ssbi2, touch_rst, ts_int,
10673966aa6SKrzysztof Kozlowski                uim1_clk, uim1_data, uim1_present, uim1_reset, uim2_clk,
10773966aa6SKrzysztof Kozlowski                uim2_data, uim2_present, uim2_reset, uim_batt, wlan_en1, ]
10873966aa6SKrzysztof Kozlowski
10973966aa6SKrzysztof Kozlowski    required:
11073966aa6SKrzysztof Kozlowski      - pins
11173966aa6SKrzysztof Kozlowski
11273966aa6SKrzysztof Kozlowskiexamples:
11373966aa6SKrzysztof Kozlowski  - |
11473966aa6SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
11573966aa6SKrzysztof Kozlowski    tlmm: pinctrl@1000000 {
11673966aa6SKrzysztof Kozlowski        compatible = "qcom,mdm9607-tlmm";
11773966aa6SKrzysztof Kozlowski        reg = <0x01000000 0x300000>;
11873966aa6SKrzysztof Kozlowski        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
11973966aa6SKrzysztof Kozlowski        gpio-controller;
12073966aa6SKrzysztof Kozlowski        gpio-ranges = <&msmgpio 0 0 80>;
12173966aa6SKrzysztof Kozlowski        #gpio-cells = <2>;
12273966aa6SKrzysztof Kozlowski        interrupt-controller;
12373966aa6SKrzysztof Kozlowski        #interrupt-cells = <2>;
12473966aa6SKrzysztof Kozlowski    };
125