1548e3320SBjorn Andersson# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2548e3320SBjorn Andersson%YAML 1.2 3548e3320SBjorn Andersson--- 4548e3320SBjorn Andersson$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml# 5548e3320SBjorn Andersson$schema: http://devicetree.org/meta-schemas/core.yaml# 6548e3320SBjorn Andersson 7548e3320SBjorn Anderssontitle: Qualcomm Technologies, Inc. SM8250 TLMM block 8548e3320SBjorn Andersson 9548e3320SBjorn Anderssonmaintainers: 10548e3320SBjorn Andersson - Bjorn Andersson <bjorn.andersson@linaro.org> 11548e3320SBjorn Andersson 12548e3320SBjorn Anderssondescription: | 13548e3320SBjorn Andersson This binding describes the Top Level Mode Multiplexer block found in the 14548e3320SBjorn Andersson SM8250 platform. 15548e3320SBjorn Andersson 16548e3320SBjorn Anderssonproperties: 17548e3320SBjorn Andersson compatible: 18548e3320SBjorn Andersson const: qcom,sm8250-pinctrl 19548e3320SBjorn Andersson 20548e3320SBjorn Andersson reg: 21548e3320SBjorn Andersson minItems: 3 22548e3320SBjorn Andersson maxItems: 3 23548e3320SBjorn Andersson 24548e3320SBjorn Andersson reg-names: 25548e3320SBjorn Andersson items: 26548e3320SBjorn Andersson - const: "west" 27548e3320SBjorn Andersson - const: "south" 28548e3320SBjorn Andersson - const: "north" 29548e3320SBjorn Andersson 30548e3320SBjorn Andersson interrupts: 31548e3320SBjorn Andersson description: Specifies the TLMM summary IRQ 32548e3320SBjorn Andersson maxItems: 1 33548e3320SBjorn Andersson 34548e3320SBjorn Andersson interrupt-controller: true 35548e3320SBjorn Andersson 36548e3320SBjorn Andersson '#interrupt-cells': 37548e3320SBjorn Andersson description: 38548e3320SBjorn Andersson Specifies the PIN numbers and Flags, as defined in defined in 39548e3320SBjorn Andersson include/dt-bindings/interrupt-controller/irq.h 40548e3320SBjorn Andersson const: 2 41548e3320SBjorn Andersson 42548e3320SBjorn Andersson gpio-controller: true 43548e3320SBjorn Andersson 44548e3320SBjorn Andersson '#gpio-cells': 45548e3320SBjorn Andersson description: Specifying the pin number and flags, as defined in 46548e3320SBjorn Andersson include/dt-bindings/gpio/gpio.h 47548e3320SBjorn Andersson const: 2 48548e3320SBjorn Andersson 49548e3320SBjorn Andersson gpio-ranges: 50548e3320SBjorn Andersson maxItems: 1 51548e3320SBjorn Andersson 52a094b8d8SKrzysztof Kozlowski gpio-reserved-ranges: 53a094b8d8SKrzysztof Kozlowski minItems: 1 54a094b8d8SKrzysztof Kozlowski maxItems: 90 55a094b8d8SKrzysztof Kozlowski 56a094b8d8SKrzysztof Kozlowski gpio-line-names: 57a094b8d8SKrzysztof Kozlowski maxItems: 180 58a094b8d8SKrzysztof Kozlowski 59933adebbSRob Herring wakeup-parent: true 60548e3320SBjorn Andersson 61548e3320SBjorn AnderssonpatternProperties: 62*a327e870SKrzysztof Kozlowski "-state$": 63*a327e870SKrzysztof Kozlowski oneOf: 64*a327e870SKrzysztof Kozlowski - $ref: "#/$defs/qcom-sm8250-tlmm-state" 65*a327e870SKrzysztof Kozlowski - patternProperties: 66*a327e870SKrzysztof Kozlowski "-pins$": 67*a327e870SKrzysztof Kozlowski $ref: "#/$defs/qcom-sm8250-tlmm-state" 68*a327e870SKrzysztof Kozlowski additionalProperties: false 69*a327e870SKrzysztof Kozlowski 70*a327e870SKrzysztof Kozlowski$defs: 71*a327e870SKrzysztof Kozlowski qcom-sm8250-tlmm-state: 72548e3320SBjorn Andersson type: object 73*a327e870SKrzysztof Kozlowski description: 74*a327e870SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 75*a327e870SKrzysztof Kozlowski Client device subnodes use below standard properties. 76fd69e8beSKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 77*a327e870SKrzysztof Kozlowski 78548e3320SBjorn Andersson properties: 79548e3320SBjorn Andersson pins: 80548e3320SBjorn Andersson description: 81548e3320SBjorn Andersson List of gpio pins affected by the properties specified in this 82548e3320SBjorn Andersson subnode. 83548e3320SBjorn Andersson items: 84548e3320SBjorn Andersson oneOf: 85548e3320SBjorn Andersson - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$" 86548e3320SBjorn Andersson - enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] 87548e3320SBjorn Andersson minItems: 1 88548e3320SBjorn Andersson maxItems: 36 89548e3320SBjorn Andersson 90548e3320SBjorn Andersson function: 91548e3320SBjorn Andersson description: 92548e3320SBjorn Andersson Specify the alternative function to be configured for the specified 93548e3320SBjorn Andersson pins. 94548e3320SBjorn Andersson 95548e3320SBjorn Andersson enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c, 96548e3320SBjorn Andersson cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng, 97548e3320SBjorn Andersson cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1, 98548e3320SBjorn Andersson ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio, 99548e3320SBjorn Andersson ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0, 100548e3320SBjorn Andersson mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1, 101548e3320SBjorn Andersson mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws, 102548e3320SBjorn Andersson mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1, 103548e3320SBjorn Andersson pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset, 104548e3320SBjorn Andersson pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3, 105548e3320SBjorn Andersson qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14, 106548e3320SBjorn Andersson qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6, 107548e3320SBjorn Andersson qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41, 108548e3320SBjorn Andersson sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1, 109548e3320SBjorn Andersson tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data, 110548e3320SBjorn Andersson tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en, 111548e3320SBjorn Andersson tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ] 112548e3320SBjorn Andersson 113548e3320SBjorn Andersson bias-pull-down: true 114548e3320SBjorn Andersson bias-pull-up: true 115548e3320SBjorn Andersson bias-disable: true 116fd69e8beSKrzysztof Kozlowski drive-strength: true 117548e3320SBjorn Andersson output-high: true 118548e3320SBjorn Andersson output-low: true 119548e3320SBjorn Andersson 120548e3320SBjorn Andersson required: 121548e3320SBjorn Andersson - pins 1226e6e1ef6SKrzysztof Kozlowski 123548e3320SBjorn Andersson additionalProperties: false 124548e3320SBjorn Andersson 125c09acbc4SRafał MiłeckiallOf: 126c09acbc4SRafał Miłecki - $ref: "pinctrl.yaml#" 127c09acbc4SRafał Miłecki 128548e3320SBjorn Anderssonrequired: 129548e3320SBjorn Andersson - compatible 130548e3320SBjorn Andersson - reg 131548e3320SBjorn Andersson - reg-names 132548e3320SBjorn Andersson - interrupts 133548e3320SBjorn Andersson - interrupt-controller 134548e3320SBjorn Andersson - '#interrupt-cells' 135548e3320SBjorn Andersson - gpio-controller 136548e3320SBjorn Andersson - '#gpio-cells' 137548e3320SBjorn Andersson - gpio-ranges 138548e3320SBjorn Andersson 139548e3320SBjorn AnderssonadditionalProperties: false 140548e3320SBjorn Andersson 141548e3320SBjorn Anderssonexamples: 142548e3320SBjorn Andersson - | 143548e3320SBjorn Andersson #include <dt-bindings/interrupt-controller/arm-gic.h> 144548e3320SBjorn Andersson pinctrl@1f00000 { 145548e3320SBjorn Andersson compatible = "qcom,sm8250-pinctrl"; 146548e3320SBjorn Andersson reg = <0x0f100000 0x300000>, 147548e3320SBjorn Andersson <0x0f500000 0x300000>, 148548e3320SBjorn Andersson <0x0f900000 0x300000>; 149548e3320SBjorn Andersson reg-names = "west", "south", "north"; 150548e3320SBjorn Andersson interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 151548e3320SBjorn Andersson gpio-controller; 152548e3320SBjorn Andersson #gpio-cells = <2>; 153548e3320SBjorn Andersson interrupt-controller; 154548e3320SBjorn Andersson #interrupt-cells = <2>; 155548e3320SBjorn Andersson gpio-ranges = <&tlmm 0 0 180>; 156548e3320SBjorn Andersson wakeup-parent = <&pdc>; 157548e3320SBjorn Andersson }; 158