18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28bab661aSEmmanuel Vadot%YAML 1.2 38bab661aSEmmanuel Vadot--- 48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,qcs404-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm QCS404 TLMM pin controller 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 118bab661aSEmmanuel Vadot - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 128bab661aSEmmanuel Vadot 138bab661aSEmmanuel Vadotdescription: 148bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm QCS404 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel Vadotproperties: 178bab661aSEmmanuel Vadot compatible: 188bab661aSEmmanuel Vadot const: qcom,qcs404-pinctrl 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot reg: 218bab661aSEmmanuel Vadot maxItems: 3 228bab661aSEmmanuel Vadot 238bab661aSEmmanuel Vadot reg-names: 248bab661aSEmmanuel Vadot items: 258bab661aSEmmanuel Vadot - const: south 268bab661aSEmmanuel Vadot - const: north 278bab661aSEmmanuel Vadot - const: east 288bab661aSEmmanuel Vadot 29cb7aa33aSEmmanuel Vadot interrupts: 30cb7aa33aSEmmanuel Vadot maxItems: 1 31cb7aa33aSEmmanuel Vadot 328bab661aSEmmanuel Vadot gpio-reserved-ranges: 338bab661aSEmmanuel Vadot minItems: 1 348bab661aSEmmanuel Vadot maxItems: 60 358bab661aSEmmanuel Vadot 368bab661aSEmmanuel Vadot gpio-line-names: 378bab661aSEmmanuel Vadot maxItems: 120 388bab661aSEmmanuel Vadot 398bab661aSEmmanuel VadotpatternProperties: 408bab661aSEmmanuel Vadot "-state$": 418bab661aSEmmanuel Vadot oneOf: 428bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-qcs404-tlmm-state" 438bab661aSEmmanuel Vadot - patternProperties: 448bab661aSEmmanuel Vadot "-pins$": 458bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-qcs404-tlmm-state" 468bab661aSEmmanuel Vadot additionalProperties: false 478bab661aSEmmanuel Vadot 488bab661aSEmmanuel Vadot$defs: 498bab661aSEmmanuel Vadot qcom-qcs404-tlmm-state: 508bab661aSEmmanuel Vadot type: object 518bab661aSEmmanuel Vadot description: 528bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 538bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 548bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 55fac71e4eSEmmanuel Vadot unevaluatedProperties: false 568bab661aSEmmanuel Vadot 578bab661aSEmmanuel Vadot properties: 588bab661aSEmmanuel Vadot pins: 598bab661aSEmmanuel Vadot description: 608bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 618bab661aSEmmanuel Vadot subnode. 628bab661aSEmmanuel Vadot items: 638bab661aSEmmanuel Vadot oneOf: 648bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-1][0-9])$" 658bab661aSEmmanuel Vadot - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, 668bab661aSEmmanuel Vadot sdc2_cmd, sdc2_data, ufs_reset ] 678bab661aSEmmanuel Vadot minItems: 1 688bab661aSEmmanuel Vadot maxItems: 36 698bab661aSEmmanuel Vadot 708bab661aSEmmanuel Vadot function: 718bab661aSEmmanuel Vadot description: 728bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 738bab661aSEmmanuel Vadot pins. 748bab661aSEmmanuel Vadot 758bab661aSEmmanuel Vadot enum: [ gpio, adsp_ext, atest_char, atest_char0, atest_char1, 768bab661aSEmmanuel Vadot atest_char2, atest_char3, aud_cdc, audio_ts, bimc_dte0, 778bab661aSEmmanuel Vadot bimc_dte1, blsp_i2c0, blsp_i2c1, blsp_i2c3, blsp_i2c4, 788bab661aSEmmanuel Vadot blsp_i2c5, blsp_i2c_scl_a2, blsp_i2c_scl_b2, blsp_i2c_sda_a2, 798bab661aSEmmanuel Vadot blsp_i2c_sda_b2, blsp_spi0, blsp_spi2, blsp_spi3, blsp_spi4, 808bab661aSEmmanuel Vadot blsp_spi5, blsp_spi_clk_a1, blsp_spi_clk_b1, blsp_spi_cs_n_a1, 818bab661aSEmmanuel Vadot blsp_spi_cs_n_b1, blsp_spi_miso_a1, blsp_spi_miso_b1, 828bab661aSEmmanuel Vadot blsp_spi_mosi_a1, blsp_spi_mosi_b1, blsp_uart0, blsp_uart1, 838bab661aSEmmanuel Vadot blsp_uart2, blsp_uart3, blsp_uart5, blsp_uart_rx_a2, 848bab661aSEmmanuel Vadot blsp_uart_rx_b2, blsp_uart_tx_a2, blsp_uart_tx_b2, cri_trng, 858bab661aSEmmanuel Vadot cri_trng0, cri_trng1, dbg_out, dsd_clk_a, dsd_clk_b, ebi2_a, 868bab661aSEmmanuel Vadot ebi2_lcd, ebi_cdc, ebi_ch0, ext_lpass, ext_mclk0, ext_mclk1_a, 878bab661aSEmmanuel Vadot ext_mclk1_b, gcc_gp1_clk_a, gcc_gp1_clk_b, gcc_gp2_clk_a, 888bab661aSEmmanuel Vadot gcc_gp2_clk_b, gcc_gp3_clk_a, gcc_gp3_clk_b, gcc_plltest, 898bab661aSEmmanuel Vadot gcc_tlmm, hdmi_ddc, hdmi_dtest, hdmi_lbk0, hdmi_lbk1, 908bab661aSEmmanuel Vadot hdmi_lbk2, hdmi_lbk3, hdmi_lbk4, hdmi_lbk5, hdmi_lbk6, 918bab661aSEmmanuel Vadot hdmi_lbk7, hdmi_lbk8, hdmi_lbk9, hdmi_pixel, hdmi_rcv, hdmi_tx, 928bab661aSEmmanuel Vadot i2s_1, i2s_2, i2s_3_data0_a, i2s_3_data0_b, i2s_3_data1_a, 938bab661aSEmmanuel Vadot i2s_3_data1_b, i2s_3_data2_a, i2s_3_data2_b, i2s_3_data3_a, 948bab661aSEmmanuel Vadot i2s_3_data3_b, i2s_3_sck_a, i2s_3_sck_b, i2s_3_ws_a, 958bab661aSEmmanuel Vadot i2s_3_ws_b, i2s_4, ir_in, ldo_en, ldo_update, mclk_in1, 968bab661aSEmmanuel Vadot mclk_in2, m_voc, nfc_dwl, nfc_irq, pcie_clk, pll_bist, 978bab661aSEmmanuel Vadot prng_rosc, pwm_led1, pwm_led10, pwm_led11, pwm_led12, 988bab661aSEmmanuel Vadot pwm_led13, pwm_led14, pwm_led15, pwm_led16, pwm_led17, 998bab661aSEmmanuel Vadot pwm_led18, pwm_led19, pwm_led2, pwm_led20, pwm_led21, 1008bab661aSEmmanuel Vadot pwm_led22, pwm_led23, pwm_led24, pwm_led3, pwm_led4, pwm_led5, 1018bab661aSEmmanuel Vadot pwm_led6, pwm_led7, pwm_led8, pwm_led9, qdss_cti_trig_in_a0, 1028bab661aSEmmanuel Vadot qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, 1038bab661aSEmmanuel Vadot qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, 1048bab661aSEmmanuel Vadot qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, 1058bab661aSEmmanuel Vadot qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, 1068bab661aSEmmanuel Vadot qdss_tracedata_a, qdss_tracedata_b, rgb_clk, rgb_data0, 1078bab661aSEmmanuel Vadot rgb_data1, rgb_data2, rgb_data3, rgb_data4, rgb_data5, 1088bab661aSEmmanuel Vadot rgb_data6, rgb_data7, rgb_data_b0, rgb_data_b1, rgb_data_b2, 1098bab661aSEmmanuel Vadot rgb_data_b3, rgb_data_b4, rgb_data_b5, rgb_data_b6, 1108bab661aSEmmanuel Vadot rgb_data_b7, rgb_de, rgb_hsync, rgb_mdp, rgb_vsync, rgmi_dll1, 1118bab661aSEmmanuel Vadot rgmi_dll2, rgmii_ck, rgmii_ctl, rgmii_int, rgmii_mdc, 1128bab661aSEmmanuel Vadot rgmii_mdio, rgmii_rx, rgmii_tx, rgmii_wol, sd_write, 1138bab661aSEmmanuel Vadot spdifrx_opt, spi_lcd, spkr_dac0, wlan1_adc0, wlan1_adc1, 1148bab661aSEmmanuel Vadot wlan2_adc0, wlan2_adc1, wsa_en ] 1158bab661aSEmmanuel Vadot 1168bab661aSEmmanuel Vadot required: 1178bab661aSEmmanuel Vadot - pins 1188bab661aSEmmanuel Vadot 1198bab661aSEmmanuel VadotallOf: 1208bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 1218bab661aSEmmanuel Vadot 1228bab661aSEmmanuel Vadotrequired: 1238bab661aSEmmanuel Vadot - compatible 1248bab661aSEmmanuel Vadot - reg 1258bab661aSEmmanuel Vadot 126*8d13bc63SEmmanuel VadotunevaluatedProperties: false 1278bab661aSEmmanuel Vadot 1288bab661aSEmmanuel Vadotexamples: 1298bab661aSEmmanuel Vadot - | 1308bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1318bab661aSEmmanuel Vadot 1328bab661aSEmmanuel Vadot tlmm: pinctrl@1000000 { 1338bab661aSEmmanuel Vadot compatible = "qcom,qcs404-pinctrl"; 1348bab661aSEmmanuel Vadot reg = <0x01000000 0x200000>, 1358bab661aSEmmanuel Vadot <0x01300000 0x200000>, 1368bab661aSEmmanuel Vadot <0x07b00000 0x200000>; 1378bab661aSEmmanuel Vadot reg-names = "south", "north", "east"; 1388bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1398bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 120>; 1408bab661aSEmmanuel Vadot gpio-controller; 1418bab661aSEmmanuel Vadot #gpio-cells = <2>; 1428bab661aSEmmanuel Vadot interrupt-controller; 1438bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1448bab661aSEmmanuel Vadot 1458bab661aSEmmanuel Vadot 1468bab661aSEmmanuel Vadot blsp1-i2c1-default-state { 1478bab661aSEmmanuel Vadot pins = "gpio24", "gpio25"; 1488bab661aSEmmanuel Vadot function = "blsp_i2c1"; 1498bab661aSEmmanuel Vadot }; 1508bab661aSEmmanuel Vadot 1518bab661aSEmmanuel Vadot blsp1-i2c2-default-state { 1528bab661aSEmmanuel Vadot sda-pins { 1538bab661aSEmmanuel Vadot pins = "gpio19"; 1548bab661aSEmmanuel Vadot function = "blsp_i2c_sda_a2"; 1558bab661aSEmmanuel Vadot }; 1568bab661aSEmmanuel Vadot 1578bab661aSEmmanuel Vadot scl-pins { 1588bab661aSEmmanuel Vadot pins = "gpio20"; 1598bab661aSEmmanuel Vadot function = "blsp_i2c_scl_a2"; 1608bab661aSEmmanuel Vadot }; 1618bab661aSEmmanuel Vadot }; 1628bab661aSEmmanuel Vadot }; 163