1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2e67e8565SEmmanuel Vadot%YAML 1.2 3e67e8565SEmmanuel Vadot--- 4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sm8450-pinctrl.yaml# 5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6e67e8565SEmmanuel Vadot 7e67e8565SEmmanuel Vadottitle: Qualcomm Technologies, Inc. SM8450 TLMM block 8e67e8565SEmmanuel Vadot 9e67e8565SEmmanuel Vadotmaintainers: 10e67e8565SEmmanuel Vadot - Vinod Koul <vkoul@kernel.org> 11e67e8565SEmmanuel Vadot 12e67e8565SEmmanuel Vadotdescription: | 13e67e8565SEmmanuel Vadot This binding describes the Top Level Mode Multiplexer (TLMM) block found 14e67e8565SEmmanuel Vadot in the SM8450 platform. 15e67e8565SEmmanuel Vadot 16e67e8565SEmmanuel VadotallOf: 17e67e8565SEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 18e67e8565SEmmanuel Vadot 19e67e8565SEmmanuel Vadotproperties: 20e67e8565SEmmanuel Vadot compatible: 21e67e8565SEmmanuel Vadot const: qcom,sm8450-tlmm 22e67e8565SEmmanuel Vadot 23e67e8565SEmmanuel Vadot reg: 24e67e8565SEmmanuel Vadot maxItems: 1 25e67e8565SEmmanuel Vadot 26e67e8565SEmmanuel Vadot interrupts: true 27e67e8565SEmmanuel Vadot interrupt-controller: true 28e67e8565SEmmanuel Vadot '#interrupt-cells': true 29e67e8565SEmmanuel Vadot gpio-controller: true 30*7ef62cebSEmmanuel Vadot 31*7ef62cebSEmmanuel Vadot gpio-reserved-ranges: 32*7ef62cebSEmmanuel Vadot minItems: 1 33*7ef62cebSEmmanuel Vadot maxItems: 105 34*7ef62cebSEmmanuel Vadot 35*7ef62cebSEmmanuel Vadot gpio-line-names: 36*7ef62cebSEmmanuel Vadot maxItems: 209 37*7ef62cebSEmmanuel Vadot 38e67e8565SEmmanuel Vadot '#gpio-cells': true 39e67e8565SEmmanuel Vadot gpio-ranges: true 40e67e8565SEmmanuel Vadot wakeup-parent: true 41e67e8565SEmmanuel Vadot 42e67e8565SEmmanuel Vadotrequired: 43e67e8565SEmmanuel Vadot - compatible 44e67e8565SEmmanuel Vadot - reg 45e67e8565SEmmanuel Vadot 46e67e8565SEmmanuel VadotadditionalProperties: false 47e67e8565SEmmanuel Vadot 48e67e8565SEmmanuel VadotpatternProperties: 49e67e8565SEmmanuel Vadot '-state$': 50e67e8565SEmmanuel Vadot oneOf: 51e67e8565SEmmanuel Vadot - $ref: "#/$defs/qcom-sm8450-tlmm-state" 52e67e8565SEmmanuel Vadot - patternProperties: 53*7ef62cebSEmmanuel Vadot "-pins$": 54e67e8565SEmmanuel Vadot $ref: "#/$defs/qcom-sm8450-tlmm-state" 55*7ef62cebSEmmanuel Vadot additionalProperties: false 56e67e8565SEmmanuel Vadot 57e67e8565SEmmanuel Vadot$defs: 58e67e8565SEmmanuel Vadot qcom-sm8450-tlmm-state: 59e67e8565SEmmanuel Vadot type: object 60e67e8565SEmmanuel Vadot description: 61e67e8565SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 62e67e8565SEmmanuel Vadot Client device subnodes use below standard properties. 63e67e8565SEmmanuel Vadot 64e67e8565SEmmanuel Vadot properties: 65e67e8565SEmmanuel Vadot pins: 66e67e8565SEmmanuel Vadot description: 67e67e8565SEmmanuel Vadot List of gpio pins affected by the properties specified in this 68e67e8565SEmmanuel Vadot subnode. 69e67e8565SEmmanuel Vadot items: 70e67e8565SEmmanuel Vadot oneOf: 71e67e8565SEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" 72e67e8565SEmmanuel Vadot - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 73e67e8565SEmmanuel Vadot minItems: 1 74e67e8565SEmmanuel Vadot maxItems: 36 75e67e8565SEmmanuel Vadot 76e67e8565SEmmanuel Vadot function: 77e67e8565SEmmanuel Vadot description: 78e67e8565SEmmanuel Vadot Specify the alternative function to be configured for the specified 79e67e8565SEmmanuel Vadot pins. 80e67e8565SEmmanuel Vadot enum: [ aon_cam, atest_char, atest_usb, audio_ref, cam_mclk, cci_async, 81e67e8565SEmmanuel Vadot cci_i2c, cci_timer, cmu_rng, coex_uart1, coex_uart2, cri_trng, 82e67e8565SEmmanuel Vadot cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 83e67e8565SEmmanuel Vadot ddr_pxi2, ddr_pxi3, dp_hot, gcc_gp1, gcc_gp2, gcc_gp3, 84e67e8565SEmmanuel Vadot gpio, ibi_i3c, jitter_bist, mdp_vsync, mdp_vsync0, mdp_vsync1, 85e67e8565SEmmanuel Vadot mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, mi2s0_sck, 86e67e8565SEmmanuel Vadot mi2s0_ws, mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, 87e67e8565SEmmanuel Vadot mss_grfc0, mss_grfc1, mss_grfc10, mss_grfc11, mss_grfc12, 88e67e8565SEmmanuel Vadot mss_grfc2, mss_grfc3, mss_grfc4, mss_grfc5, mss_grfc6, 89e67e8565SEmmanuel Vadot mss_grfc7, mss_grfc8, mss_grfc9, nav, pcie0_clkreqn, 90e67e8565SEmmanuel Vadot pcie1_clkreqn, phase_flag, pll_bist, pll_clk, pri_mi2s, 91e67e8565SEmmanuel Vadot prng_rosc, qdss_cti, qdss_gpio, qlink0_enable, qlink0_request, 92e67e8565SEmmanuel Vadot qlink0_wmss, qlink1_enable, qlink1_request, qlink1_wmss, 93e67e8565SEmmanuel Vadot qlink2_enable, qlink2_request, qlink2_wmss, qspi0, qspi1, 94e67e8565SEmmanuel Vadot qspi2, qspi3, qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, 95e67e8565SEmmanuel Vadot qup12, qup13, qup14, qup15, qup16, qup17, qup18, qup19, qup2, 96e67e8565SEmmanuel Vadot qup20, qup21, qup3, qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, 97e67e8565SEmmanuel Vadot qup_l5, qup_l6, sd_write, sdc40, sdc41, sdc42, sdc43, sdc4_clk, 98e67e8565SEmmanuel Vadot sdc4_cmd, sec_mi2s, tb_trig, tgu_ch0, tgu_ch1, tgu_ch2, 99e67e8565SEmmanuel Vadot tgu_ch3, tmess_prng0, tmess_prng1, tmess_prng2, tmess_prng3, 100e67e8565SEmmanuel Vadot tsense_pwm1, tsense_pwm2, uim0_clk, uim0_data, uim0_present, 101e67e8565SEmmanuel Vadot uim0_reset, uim1_clk, uim1_data, uim1_present, uim1_reset, 102e67e8565SEmmanuel Vadot usb2phy_ac, usb_phy, vfr_0, vfr_1, vsense_trigger ] 103e67e8565SEmmanuel Vadot 104e67e8565SEmmanuel Vadot bias-disable: true 105e67e8565SEmmanuel Vadot bias-pull-down: true 106e67e8565SEmmanuel Vadot bias-pull-up: true 107e67e8565SEmmanuel Vadot drive-strength: true 108e67e8565SEmmanuel Vadot input-enable: true 109e67e8565SEmmanuel Vadot output-high: true 110e67e8565SEmmanuel Vadot output-low: true 111e67e8565SEmmanuel Vadot 112e67e8565SEmmanuel Vadot required: 113e67e8565SEmmanuel Vadot - pins 114*7ef62cebSEmmanuel Vadot 115*7ef62cebSEmmanuel Vadot allOf: 116*7ef62cebSEmmanuel Vadot - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" 117*7ef62cebSEmmanuel Vadot - if: 118*7ef62cebSEmmanuel Vadot properties: 119*7ef62cebSEmmanuel Vadot pins: 120*7ef62cebSEmmanuel Vadot pattern: "^gpio([0-9]|[1-9][0-9]|1[0-9][0-9]|20[0-9])$" 121*7ef62cebSEmmanuel Vadot then: 122*7ef62cebSEmmanuel Vadot required: 123e67e8565SEmmanuel Vadot - function 124e67e8565SEmmanuel Vadot 125e67e8565SEmmanuel Vadot additionalProperties: false 126e67e8565SEmmanuel Vadot 127e67e8565SEmmanuel Vadotexamples: 128e67e8565SEmmanuel Vadot - | 129e67e8565SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 130e67e8565SEmmanuel Vadot pinctrl@f100000 { 131e67e8565SEmmanuel Vadot compatible = "qcom,sm8450-tlmm"; 132e67e8565SEmmanuel Vadot reg = <0x0f100000 0x300000>; 133e67e8565SEmmanuel Vadot gpio-controller; 134e67e8565SEmmanuel Vadot #gpio-cells = <2>; 135e67e8565SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 211>; 136e67e8565SEmmanuel Vadot interrupt-controller; 137e67e8565SEmmanuel Vadot #interrupt-cells = <2>; 138e67e8565SEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 139e67e8565SEmmanuel Vadot 140*7ef62cebSEmmanuel Vadot gpio-wo-state { 141e67e8565SEmmanuel Vadot pins = "gpio1"; 142e67e8565SEmmanuel Vadot function = "gpio"; 143e67e8565SEmmanuel Vadot }; 144e67e8565SEmmanuel Vadot 145*7ef62cebSEmmanuel Vadot uart-w-state { 146*7ef62cebSEmmanuel Vadot rx-pins { 147e67e8565SEmmanuel Vadot pins = "gpio26"; 148e67e8565SEmmanuel Vadot function = "qup7"; 149e67e8565SEmmanuel Vadot bias-pull-up; 150e67e8565SEmmanuel Vadot }; 151e67e8565SEmmanuel Vadot 152*7ef62cebSEmmanuel Vadot tx-pins { 153e67e8565SEmmanuel Vadot pins = "gpio27"; 154e67e8565SEmmanuel Vadot function = "qup7"; 155e67e8565SEmmanuel Vadot bias-disable; 156e67e8565SEmmanuel Vadot }; 157e67e8565SEmmanuel Vadot }; 158e67e8565SEmmanuel Vadot }; 159e67e8565SEmmanuel Vadot... 160