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 22*12a18bb7SKrzysztof Kozlowski interrupts: 23*12a18bb7SKrzysztof Kozlowski maxItems: 1 24*12a18bb7SKrzysztof 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 46eed1015cSSricharan R 47eed1015cSSricharan R properties: 48eed1015cSSricharan R pins: 49eed1015cSSricharan R description: 50eed1015cSSricharan R List of gpio pins affected by the properties specified in this 51eed1015cSSricharan R subnode. 52eed1015cSSricharan R items: 53eed1015cSSricharan R oneOf: 54eed1015cSSricharan R - pattern: "^gpio([1-9]|[1-7][0-9]|80)$" 55eed1015cSSricharan R - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, 56eed1015cSSricharan R sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, 57eed1015cSSricharan R qdsd_data3 ] 58eed1015cSSricharan R minItems: 1 595cf95fcdSKrzysztof Kozlowski maxItems: 16 60eed1015cSSricharan R 61eed1015cSSricharan R function: 62eed1015cSSricharan R description: 63eed1015cSSricharan R Specify the alternative function to be configured for the specified 64eed1015cSSricharan R pins. 65eed1015cSSricharan R enum: [ adsp_ext, alsp_int, atest_bbrx0, atest_bbrx1, atest_char, 66eed1015cSSricharan R atest_char0, atest_char1, atest_char2, atest_char3, atest_combodac, 67eed1015cSSricharan R atest_gpsadc0, atest_gpsadc1, atest_tsens, atest_wlan0, 685d6f7ee5SKrzysztof Kozlowski atest_wlan1, backlight_en, bimc_dte0, bimc_dte1, blsp0_i2c, blsp1_i2c, 695d6f7ee5SKrzysztof Kozlowski blsp2_i2c, blsp3_i2c, blsp4_i2c, blsp5_i2c, blsp0_spi, blsp1_spi, 70eed1015cSSricharan R blsp1_spi_cs1, blsp1_spi_cs2, blsp1_spi_cs3, blsp2_spi, 71eed1015cSSricharan R blsp2_spi_cs1, blsp2_spi_cs2, blsp2_spi_cs3, blsp3_spi, 72eed1015cSSricharan R blsp3_spi_cs1, blsp3_spi_cs2, blsp3_spi_cs3, blsp4_spi, blsp5_spi, 735d6f7ee5SKrzysztof Kozlowski blsp0_uart, blsp1_uart, blsp2_uart, blsp1_uim, blsp2_uim, cam1_rst, 74eed1015cSSricharan R cam1_standby, cam_mclk0, cam_mclk1, cci_async, cci_i2c, cci_timer0, 75eed1015cSSricharan R cci_timer1, cci_timer2, cdc_pdm0, codec_mad, dbg_out, display_5v, 76eed1015cSSricharan R dmic0_clk, dmic0_data, dsi_rst, ebi0_wrcdc, euro_us, ext_lpass, 77eed1015cSSricharan R flash_strobe, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, 78eed1015cSSricharan R gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gpio, gsm0_tx0, 79eed1015cSSricharan R gsm0_tx1, gsm1_tx0, gsm1_tx1, gyro_accl, kpsns0, kpsns1, kpsns2, 80eed1015cSSricharan R ldo_en, ldo_update, mag_int, mdp_vsync, modem_tsync, m_voc, 81eed1015cSSricharan R nav_pps, nav_tsync, pa_indicator, pbs0, pbs1, pbs2, pri_mi2s, 82eed1015cSSricharan R pri_mi2s_ws, prng_rosc, pwr_crypto_enabled_a, pwr_crypto_enabled_b, 83eed1015cSSricharan R pwr_modem_enabled_a, pwr_modem_enabled_b, pwr_nav_enabled_a, 84eed1015cSSricharan R pwr_nav_enabled_b, qdss_ctitrig_in_a0, qdss_ctitrig_in_a1, 85eed1015cSSricharan R qdss_ctitrig_in_b0, qdss_ctitrig_in_b1, qdss_ctitrig_out_a0, 86eed1015cSSricharan R qdss_ctitrig_out_a1, qdss_ctitrig_out_b0, qdss_ctitrig_out_b1, 87eed1015cSSricharan R qdss_traceclk_a, qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, 8866649241SKrzysztof Kozlowski qdss_tracedata_a, qdss_tracedata_b, qpic_pad, reset_n, sd_card, 8966649241SKrzysztof Kozlowski sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2, 9066649241SKrzysztof Kozlowski uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ] 91eed1015cSSricharan R 92eed1015cSSricharan R bias-pull-down: true 93eed1015cSSricharan R bias-pull-up: true 94eed1015cSSricharan R bias-disable: true 950a1879f2SKrzysztof Kozlowski drive-strength: true 96eed1015cSSricharan R output-high: true 97eed1015cSSricharan R output-low: true 98eed1015cSSricharan R 99eed1015cSSricharan R required: 100eed1015cSSricharan R - pins 101eed1015cSSricharan R 102eed1015cSSricharan R additionalProperties: false 103eed1015cSSricharan R 104c09acbc4SRafał MiłeckiallOf: 1050a1879f2SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 106c09acbc4SRafał Miłecki 107eed1015cSSricharan Rrequired: 108eed1015cSSricharan R - compatible 109eed1015cSSricharan R - reg 110eed1015cSSricharan R 111eed1015cSSricharan RadditionalProperties: false 112eed1015cSSricharan R 113eed1015cSSricharan Rexamples: 114eed1015cSSricharan R - | 115eed1015cSSricharan R #include <dt-bindings/interrupt-controller/arm-gic.h> 116eed1015cSSricharan R tlmm: pinctrl@1000000 { 117eed1015cSSricharan R compatible = "qcom,ipq6018-pinctrl"; 118eed1015cSSricharan R reg = <0x01000000 0x300000>; 119eed1015cSSricharan R interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 120eed1015cSSricharan R interrupt-controller; 121eed1015cSSricharan R #interrupt-cells = <2>; 122eed1015cSSricharan R gpio-controller; 123eed1015cSSricharan R #gpio-cells = <2>; 124487ceef0SRob Herring gpio-ranges = <&tlmm 0 0 80>; 125eed1015cSSricharan R 1261379f675SKrzysztof Kozlowski serial3-state { 127eed1015cSSricharan R pins = "gpio44", "gpio45"; 128eed1015cSSricharan R function = "blsp2_uart"; 129eed1015cSSricharan R drive-strength = <8>; 130eed1015cSSricharan R bias-pull-down; 131eed1015cSSricharan R }; 132eed1015cSSricharan R }; 133