1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5def4c47SEmmanuel Vadot%YAML 1.2 3*5def4c47SEmmanuel Vadot--- 4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sc8180x-pinctrl.yaml# 5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5def4c47SEmmanuel Vadot 7*5def4c47SEmmanuel Vadottitle: Qualcomm Technologies, Inc. SC8180X TLMM block 8*5def4c47SEmmanuel Vadot 9*5def4c47SEmmanuel Vadotmaintainers: 10*5def4c47SEmmanuel Vadot - Bjorn Andersson <bjorn.andersson@linaro.org> 11*5def4c47SEmmanuel Vadot 12*5def4c47SEmmanuel Vadotdescription: | 13*5def4c47SEmmanuel Vadot This binding describes the Top Level Mode Multiplexer block found in the 14*5def4c47SEmmanuel Vadot SC8180X platform. 15*5def4c47SEmmanuel Vadot 16*5def4c47SEmmanuel VadotallOf: 17*5def4c47SEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 18*5def4c47SEmmanuel Vadot 19*5def4c47SEmmanuel Vadotproperties: 20*5def4c47SEmmanuel Vadot compatible: 21*5def4c47SEmmanuel Vadot const: qcom,sc8180x-tlmm 22*5def4c47SEmmanuel Vadot 23*5def4c47SEmmanuel Vadot reg: 24*5def4c47SEmmanuel Vadot maxItems: 3 25*5def4c47SEmmanuel Vadot 26*5def4c47SEmmanuel Vadot reg-names: 27*5def4c47SEmmanuel Vadot items: 28*5def4c47SEmmanuel Vadot - const: "west" 29*5def4c47SEmmanuel Vadot - const: "east" 30*5def4c47SEmmanuel Vadot - const: "south" 31*5def4c47SEmmanuel Vadot 32*5def4c47SEmmanuel Vadot interrupts: true 33*5def4c47SEmmanuel Vadot interrupt-controller: true 34*5def4c47SEmmanuel Vadot '#interrupt-cells': true 35*5def4c47SEmmanuel Vadot gpio-controller: true 36*5def4c47SEmmanuel Vadot gpio-reserved-ranges: true 37*5def4c47SEmmanuel Vadot '#gpio-cells': true 38*5def4c47SEmmanuel Vadot gpio-ranges: true 39*5def4c47SEmmanuel Vadot wakeup-parent: true 40*5def4c47SEmmanuel Vadot 41*5def4c47SEmmanuel Vadotrequired: 42*5def4c47SEmmanuel Vadot - compatible 43*5def4c47SEmmanuel Vadot - reg 44*5def4c47SEmmanuel Vadot - reg-names 45*5def4c47SEmmanuel Vadot 46*5def4c47SEmmanuel VadotadditionalProperties: false 47*5def4c47SEmmanuel Vadot 48*5def4c47SEmmanuel VadotpatternProperties: 49*5def4c47SEmmanuel Vadot '-state$': 50*5def4c47SEmmanuel Vadot oneOf: 51*5def4c47SEmmanuel Vadot - $ref: "#/$defs/qcom-sc8180x-tlmm-state" 52*5def4c47SEmmanuel Vadot - patternProperties: 53*5def4c47SEmmanuel Vadot ".*": 54*5def4c47SEmmanuel Vadot $ref: "#/$defs/qcom-sc8180x-tlmm-state" 55*5def4c47SEmmanuel Vadot 56*5def4c47SEmmanuel Vadot'$defs': 57*5def4c47SEmmanuel Vadot qcom-sc8180x-tlmm-state: 58*5def4c47SEmmanuel Vadot type: object 59*5def4c47SEmmanuel Vadot description: 60*5def4c47SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 61*5def4c47SEmmanuel Vadot Client device subnodes use below standard properties. 62*5def4c47SEmmanuel Vadot $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state" 63*5def4c47SEmmanuel Vadot 64*5def4c47SEmmanuel Vadot properties: 65*5def4c47SEmmanuel Vadot pins: 66*5def4c47SEmmanuel Vadot description: 67*5def4c47SEmmanuel Vadot List of gpio pins affected by the properties specified in this 68*5def4c47SEmmanuel Vadot subnode. 69*5def4c47SEmmanuel Vadot items: 70*5def4c47SEmmanuel Vadot oneOf: 71*5def4c47SEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-8][0-9])$" 72*5def4c47SEmmanuel Vadot - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] 73*5def4c47SEmmanuel Vadot minItems: 1 74*5def4c47SEmmanuel Vadot maxItems: 16 75*5def4c47SEmmanuel Vadot 76*5def4c47SEmmanuel Vadot function: 77*5def4c47SEmmanuel Vadot description: 78*5def4c47SEmmanuel Vadot Specify the alternative function to be configured for the specified 79*5def4c47SEmmanuel Vadot pins. 80*5def4c47SEmmanuel Vadot 81*5def4c47SEmmanuel Vadot enum: [ adsp_ext, agera_pll, aoss_cti, atest_char, atest_tsens, 82*5def4c47SEmmanuel Vadot atest_tsens2, atest_usb0, atest_usb1, atest_usb2, atest_usb3, 83*5def4c47SEmmanuel Vadot atest_usb4, audio_ref, btfm_slimbus, cam_mclk, cci_async, 84*5def4c47SEmmanuel Vadot cci_i2c, cci_timer0, cci_timer1, cci_timer2, cci_timer3, 85*5def4c47SEmmanuel Vadot cci_timer4, cci_timer5, cci_timer6, cci_timer7, cci_timer8, 86*5def4c47SEmmanuel Vadot cci_timer9, cri_trng, dbg_out, ddr_bist, ddr_pxi, debug_hot, 87*5def4c47SEmmanuel Vadot dp_hot, edp_hot, edp_lcd, emac_phy, emac_pps, gcc_gp1, gcc_gp2, 88*5def4c47SEmmanuel Vadot gcc_gp3, gcc_gp4, gcc_gp5, gpio, gps, grfc, hs1_mi2s, hs2_mi2s, 89*5def4c47SEmmanuel Vadot hs3_mi2s, jitter_bist, lpass_slimbus, m_voc, mdp_vsync, 90*5def4c47SEmmanuel Vadot mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4, 91*5def4c47SEmmanuel Vadot mdp_vsync5, mss_lte, nav_pps, pa_indicator, pci_e0, pci_e1, 92*5def4c47SEmmanuel Vadot pci_e2, pci_e3, phase_flag, pll_bist, pll_bypassnl, pll_reset, 93*5def4c47SEmmanuel Vadot pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, qdss_gpio, qlink, 94*5def4c47SEmmanuel Vadot qspi0, qspi0_clk, qspi0_cs, qspi1, qspi1_clk, qspi1_cs, 95*5def4c47SEmmanuel Vadot qua_mi2s, qup0, qup1, qup2, qup3, qup4, qup5, qup6, qup7, qup8, 96*5def4c47SEmmanuel Vadot qup9, qup10, qup11, qup12, qup13, qup14, qup15, qup16, qup17, 97*5def4c47SEmmanuel Vadot qup18, qup19, qup_l4, qup_l5, qup_l6, rgmii, sd_write, sdc4, 98*5def4c47SEmmanuel Vadot sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, spkr_i2s, ter_mi2s, tgu, 99*5def4c47SEmmanuel Vadot tsense_pwm1, tsense_pwm2, tsif1, tsif2, uim1, uim2, uim_batt, 100*5def4c47SEmmanuel Vadot usb0_phy, usb1_phy, usb2phy_ac, vfr_1, vsense_trigger, 101*5def4c47SEmmanuel Vadot wlan1_adc, wlan2_adc, wmss_reset ] 102*5def4c47SEmmanuel Vadot 103*5def4c47SEmmanuel Vadot bias-disable: true 104*5def4c47SEmmanuel Vadot bias-pull-down: true 105*5def4c47SEmmanuel Vadot bias-pull-up: true 106*5def4c47SEmmanuel Vadot drive-strength: true 107*5def4c47SEmmanuel Vadot input-enable: true 108*5def4c47SEmmanuel Vadot output-high: true 109*5def4c47SEmmanuel Vadot output-low: true 110*5def4c47SEmmanuel Vadot 111*5def4c47SEmmanuel Vadot required: 112*5def4c47SEmmanuel Vadot - pins 113*5def4c47SEmmanuel Vadot - function 114*5def4c47SEmmanuel Vadot 115*5def4c47SEmmanuel Vadot additionalProperties: false 116*5def4c47SEmmanuel Vadot 117*5def4c47SEmmanuel Vadotexamples: 118*5def4c47SEmmanuel Vadot - | 119*5def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 120*5def4c47SEmmanuel Vadot pinctrl@3100000 { 121*5def4c47SEmmanuel Vadot compatible = "qcom,sc8180x-tlmm"; 122*5def4c47SEmmanuel Vadot reg = <0x03100000 0x300000>, 123*5def4c47SEmmanuel Vadot <0x03500000 0x700000>, 124*5def4c47SEmmanuel Vadot <0x03d00000 0x300000>; 125*5def4c47SEmmanuel Vadot reg-names = "west", "east", "south"; 126*5def4c47SEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 127*5def4c47SEmmanuel Vadot gpio-controller; 128*5def4c47SEmmanuel Vadot #gpio-cells = <2>; 129*5def4c47SEmmanuel Vadot interrupt-controller; 130*5def4c47SEmmanuel Vadot #interrupt-cells = <2>; 131*5def4c47SEmmanuel Vadot gpio-ranges = <&tlmm 0 0 190>; 132*5def4c47SEmmanuel Vadot 133*5def4c47SEmmanuel Vadot gpio-wo-subnode-state { 134*5def4c47SEmmanuel Vadot pins = "gpio1"; 135*5def4c47SEmmanuel Vadot function = "gpio"; 136*5def4c47SEmmanuel Vadot }; 137*5def4c47SEmmanuel Vadot 138*5def4c47SEmmanuel Vadot uart-w-subnodes-state { 139*5def4c47SEmmanuel Vadot rx { 140*5def4c47SEmmanuel Vadot pins = "gpio4"; 141*5def4c47SEmmanuel Vadot function = "qup6"; 142*5def4c47SEmmanuel Vadot bias-pull-up; 143*5def4c47SEmmanuel Vadot }; 144*5def4c47SEmmanuel Vadot 145*5def4c47SEmmanuel Vadot tx { 146*5def4c47SEmmanuel Vadot pins = "gpio5"; 147*5def4c47SEmmanuel Vadot function = "qup6"; 148*5def4c47SEmmanuel Vadot bias-disable; 149*5def4c47SEmmanuel Vadot }; 150*5def4c47SEmmanuel Vadot }; 151*5def4c47SEmmanuel Vadot }; 152*5def4c47SEmmanuel Vadot... 153