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:
106ec92173SKrzysztof Kozlowski  - Bjorn Andersson <andersson@kernel.org>
11eed1015cSSricharan R
1209f53706SKrzysztof Kozlowskidescription:
1309f53706SKrzysztof Kozlowski  Top Level Mode Multiplexer pin controller in Qualcomm IPQ6018 SoC.
14eed1015cSSricharan R
15eed1015cSSricharan Rproperties:
16eed1015cSSricharan R  compatible:
17eed1015cSSricharan R    const: qcom,ipq6018-pinctrl
18eed1015cSSricharan R
19eed1015cSSricharan R  reg:
20eed1015cSSricharan R    maxItems: 1
21eed1015cSSricharan R
2212a18bb7SKrzysztof Kozlowski  interrupts:
2312a18bb7SKrzysztof Kozlowski    maxItems: 1
2412a18bb7SKrzysztof Kozlowski
25eed1015cSSricharan R  interrupt-controller: true
260a1879f2SKrzysztof Kozlowski  "#interrupt-cells": true
27eed1015cSSricharan R  gpio-controller: true
280a1879f2SKrzysztof Kozlowski  "#gpio-cells": true
290a1879f2SKrzysztof Kozlowski  gpio-ranges: true
30eed1015cSSricharan R
31eed1015cSSricharan RpatternProperties:
321379f675SKrzysztof Kozlowski  "-state$":
331379f675SKrzysztof Kozlowski    oneOf:
341379f675SKrzysztof Kozlowski      - $ref: "#/$defs/qcom-ipq6018-tlmm-state"
351379f675SKrzysztof Kozlowski      - patternProperties:
361379f675SKrzysztof Kozlowski          "-pins$":
371379f675SKrzysztof Kozlowski            $ref: "#/$defs/qcom-ipq6018-tlmm-state"
381379f675SKrzysztof Kozlowski        additionalProperties: false
391379f675SKrzysztof Kozlowski
401379f675SKrzysztof Kozlowski$defs:
411379f675SKrzysztof Kozlowski  qcom-ipq6018-tlmm-state:
42eed1015cSSricharan R    description:
43eed1015cSSricharan R      Pinctrl node's client devices use subnodes for desired pin configuration.
44eed1015cSSricharan R      Client device subnodes use below standard properties.
450a1879f2SKrzysztof Kozlowski    $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
46*b64e1698SKrzysztof Kozlowski    unevaluatedProperties: false
47eed1015cSSricharan R
48eed1015cSSricharan R    properties:
49eed1015cSSricharan R      pins:
50eed1015cSSricharan R        description:
51eed1015cSSricharan R          List of gpio pins affected by the properties specified in this
52eed1015cSSricharan R          subnode.
53eed1015cSSricharan R        items:
54eed1015cSSricharan R          oneOf:
55eed1015cSSricharan R            - pattern: "^gpio([1-9]|[1-7][0-9]|80)$"
56eed1015cSSricharan R            - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd,
57eed1015cSSricharan R                      sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2,
58eed1015cSSricharan R                      qdsd_data3 ]
59eed1015cSSricharan R        minItems: 1
605cf95fcdSKrzysztof Kozlowski        maxItems: 16
61eed1015cSSricharan R
62eed1015cSSricharan R      function:
63eed1015cSSricharan R        description:
64eed1015cSSricharan R          Specify the alternative function to be configured for the specified
65eed1015cSSricharan R          pins.
66eed1015cSSricharan R        enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char,
67eed1015cSSricharan R                atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac,
68eed1015cSSricharan R                atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0,
695d6f7ee5SKrzysztof Kozlowski                atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c,
705d6f7ee5SKrzysztof Kozlowski                blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi,
71eed1015cSSricharan R                blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi,
72eed1015cSSricharan R                blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi,
73eed1015cSSricharan R                blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi,
745d6f7ee5SKrzysztof Kozlowski                blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst,
75eed1015cSSricharan R                cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0,
76eed1015cSSricharan R                cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v,
77eed1015cSSricharan R                dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass,
78eed1015cSSricharan R                flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a,
79eed1015cSSricharan R                gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0,
80eed1015cSSricharan R                gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2,
81eed1015cSSricharan R                ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc,
82eed1015cSSricharan R                nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s,
83eed1015cSSricharan R                pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b,
84eed1015cSSricharan R                pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a,
85eed1015cSSricharan R                pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1,
86eed1015cSSricharan R                qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0,
87eed1015cSSricharan R                qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1,
88eed1015cSSricharan R                qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b,
8966649241SKrzysztof Kozlowski                qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card,
9066649241SKrzysztof Kozlowski                sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2,
9166649241SKrzysztof Kozlowski                uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ]
92eed1015cSSricharan R
93eed1015cSSricharan R    required:
94eed1015cSSricharan R      - pins
95eed1015cSSricharan R
96c09acbc4SRafał MiłeckiallOf:
970a1879f2SKrzysztof Kozlowski  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
98c09acbc4SRafał Miłecki
99eed1015cSSricharan Rrequired:
100eed1015cSSricharan R  - compatible
101eed1015cSSricharan R  - reg
102eed1015cSSricharan R
103eed1015cSSricharan RadditionalProperties: false
104eed1015cSSricharan R
105eed1015cSSricharan Rexamples:
106eed1015cSSricharan R  - |
107eed1015cSSricharan R    #include <dt-bindings/interrupt-controller/arm-gic.h>
108eed1015cSSricharan R    tlmm: pinctrl@1000000 {
109eed1015cSSricharan R        compatible = "qcom,ipq6018-pinctrl";
110eed1015cSSricharan R        reg = <0x01000000 0x300000>;
111eed1015cSSricharan R        interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
112eed1015cSSricharan R        interrupt-controller;
113eed1015cSSricharan R        #interrupt-cells = <2>;
114eed1015cSSricharan R        gpio-controller;
115eed1015cSSricharan R        #gpio-cells = <2>;
116487ceef0SRob Herring        gpio-ranges = <&tlmm 0 0 80>;
117eed1015cSSricharan R
1181379f675SKrzysztof Kozlowski        serial3-state {
119eed1015cSSricharan R            pins = "gpio44", "gpio45";
120eed1015cSSricharan R            function = "blsp2_uart";
121eed1015cSSricharan R            drive-strength = <8>;
122eed1015cSSricharan R            bias-pull-down;
123eed1015cSSricharan R        };
124eed1015cSSricharan R    };
125