1eed1015cSSricharan R# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2eed1015cSSricharan R%YAML 1.2
3eed1015cSSricharan R---
4eed1015cSSricharan R$id: http://devicetree.org/schemas/pinctrl/qcom,ipq6018-pinctrl.yaml#
5eed1015cSSricharan R$schema: http://devicetree.org/meta-schemas/core.yaml#
6eed1015cSSricharan R
7eed1015cSSricharan Rtitle: Qualcomm Technologies, Inc. IPQ6018 TLMM block
8eed1015cSSricharan R
9eed1015cSSricharan Rmaintainers:
10eed1015cSSricharan R  - Sricharan R <sricharan@codeaurora.org>
11eed1015cSSricharan R
12eed1015cSSricharan Rdescription: |
13eed1015cSSricharan R  This binding describes the Top Level Mode Multiplexer block found in the
14eed1015cSSricharan R  IPQ6018 platform.
15eed1015cSSricharan R
16eed1015cSSricharan Rproperties:
17eed1015cSSricharan R  compatible:
18eed1015cSSricharan R    const: qcom,ipq6018-pinctrl
19eed1015cSSricharan R
20eed1015cSSricharan R  reg:
21eed1015cSSricharan R    maxItems: 1
22eed1015cSSricharan R
23*0a1879f2SKrzysztof Kozlowski  interrupts: true
24eed1015cSSricharan R  interrupt-controller: true
25*0a1879f2SKrzysztof Kozlowski  "#interrupt-cells": true
26eed1015cSSricharan R  gpio-controller: true
27*0a1879f2SKrzysztof Kozlowski  "#gpio-cells": true
28*0a1879f2SKrzysztof Kozlowski  gpio-ranges: true
29eed1015cSSricharan R
30eed1015cSSricharan RpatternProperties:
311379f675SKrzysztof Kozlowski  "-state$":
321379f675SKrzysztof Kozlowski    oneOf:
331379f675SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-ipq6018-tlmm-state"
341379f675SKrzysztof Kozlowski      - patternProperties:
351379f675SKrzysztof Kozlowski          "-pins$":
361379f675SKrzysztof Kozlowski            $ref: "#/$defs/qcom-ipq6018-tlmm-state"
371379f675SKrzysztof Kozlowski        additionalProperties: false
381379f675SKrzysztof Kozlowski
391379f675SKrzysztof Kozlowski$defs:
401379f675SKrzysztof Kozlowski  qcom-ipq6018-tlmm-state:
41eed1015cSSricharan R    description:
42eed1015cSSricharan R      Pinctrl node's client devices use subnodes for desired pin configuration.
43eed1015cSSricharan R      Client device subnodes use below standard properties.
44*0a1879f2SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
45eed1015cSSricharan R
46eed1015cSSricharan R    properties:
47eed1015cSSricharan R      pins:
48eed1015cSSricharan R        description:
49eed1015cSSricharan R          List of gpio pins affected by the properties specified in this
50eed1015cSSricharan R          subnode.
51eed1015cSSricharan R        items:
52eed1015cSSricharan R          oneOf:
53eed1015cSSricharan R            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
54eed1015cSSricharan R            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
55eed1015cSSricharan R                      sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
56eed1015cSSricharan R                      qdsd_data3 ]
57eed1015cSSricharan R        minItems: 1
585cf95fcdSKrzysztof Kozlowski        maxItems: 16
59eed1015cSSricharan R
60eed1015cSSricharan R      function:
61eed1015cSSricharan R        description:
62eed1015cSSricharan R          Specify the alternative function to be configured for the specified
63eed1015cSSricharan R          pins.
64eed1015cSSricharan R        enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char,
65eed1015cSSricharan R                atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac,
66eed1015cSSricharan R                atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0,
675d6f7ee5SKrzysztof Kozlowski                atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c,
685d6f7ee5SKrzysztof Kozlowski                blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi,
69eed1015cSSricharan R                blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi,
70eed1015cSSricharan R                blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi,
71eed1015cSSricharan R                blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi,
725d6f7ee5SKrzysztof Kozlowski                blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst,
73eed1015cSSricharan R                cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0,
74eed1015cSSricharan R                cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v,
75eed1015cSSricharan R                dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass,
76eed1015cSSricharan R                flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a,
77eed1015cSSricharan R                gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0,
78eed1015cSSricharan R                gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2,
79eed1015cSSricharan R                ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc,
80eed1015cSSricharan R                nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s,
81eed1015cSSricharan R                pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
82eed1015cSSricharan R                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
83eed1015cSSricharan R                pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1,
84eed1015cSSricharan R                qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0,
85eed1015cSSricharan R                qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1,
86eed1015cSSricharan R                qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b,
8766649241SKrzysztof Kozlowski                qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card,
8866649241SKrzysztof Kozlowski                sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2,
8966649241SKrzysztof Kozlowski                uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ]
90eed1015cSSricharan R
91eed1015cSSricharan R      bias-pull-down: true
92eed1015cSSricharan R      bias-pull-up: true
93eed1015cSSricharan R      bias-disable: true
94*0a1879f2SKrzysztof Kozlowski      drive-strength: true
95eed1015cSSricharan R      output-high: true
96eed1015cSSricharan R      output-low: true
97eed1015cSSricharan R
98eed1015cSSricharan R    required:
99eed1015cSSricharan R      - pins
100eed1015cSSricharan R
101eed1015cSSricharan R    additionalProperties: false
102eed1015cSSricharan R
103c09acbc4SRafał MiłeckiallOf:
104*0a1879f2SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
105c09acbc4SRafał Miłecki
106eed1015cSSricharan Rrequired:
107eed1015cSSricharan R  - compatible
108eed1015cSSricharan R  - reg
109eed1015cSSricharan R
110eed1015cSSricharan RadditionalProperties: false
111eed1015cSSricharan R
112eed1015cSSricharan Rexamples:
113eed1015cSSricharan R  - |
114eed1015cSSricharan R        #include <dt-bindings/interrupt-controller/arm-gic.h>
115eed1015cSSricharan R        tlmm: pinctrl@1000000 {
116eed1015cSSricharan R              compatible = "qcom,ipq6018-pinctrl";
117eed1015cSSricharan R              reg = <0x01000000 0x300000>;
118eed1015cSSricharan R              interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
119eed1015cSSricharan R              interrupt-controller;
120eed1015cSSricharan R              #interrupt-cells = <2>;
121eed1015cSSricharan R              gpio-controller;
122eed1015cSSricharan R              #gpio-cells = <2>;
123487ceef0SRob Herring              gpio-ranges = <&tlmm 0 0 80>;
124eed1015cSSricharan R
1251379f675SKrzysztof Kozlowski              serial3-state {
126eed1015cSSricharan R                      pins = "gpio44", "gpio45";
127eed1015cSSricharan R                      function = "blsp2_uart";
128eed1015cSSricharan R                      drive-strength = <8>;
129eed1015cSSricharan R                      bias-pull-down;
130eed1015cSSricharan R              };
131eed1015cSSricharan R        };
132