1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 2 %YAML 1.2 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/qco 5 $schema: http://devicetree.org/meta-schemas/co 6 7 title: Qualcomm SM7150 TLMM pin controller 8 9 maintainers: 10 - Bjorn Andersson <andersson@kernel.org> 11 - Danila Tikhonov <danila@jiaxyga.com> 12 13 description: 14 Top Level Mode Multiplexer pin controller in 15 16 allOf: 17 - $ref: /schemas/pinctrl/qcom,tlmm-common.ya 18 19 properties: 20 compatible: 21 const: qcom,sm7150-tlmm 22 23 reg: 24 maxItems: 3 25 26 reg-names: 27 items: 28 - const: west 29 - const: north 30 - const: south 31 32 interrupts: 33 maxItems: 1 34 35 gpio-reserved-ranges: 36 minItems: 1 37 maxItems: 60 38 39 gpio-line-names: 40 maxItems: 119 41 42 patternProperties: 43 "-state$": 44 oneOf: 45 - $ref: "#/$defs/qcom-sm7150-tlmm-state" 46 - patternProperties: 47 "-pins$": 48 $ref: "#/$defs/qcom-sm7150-tlmm-st 49 additionalProperties: false 50 51 $defs: 52 qcom-sm7150-tlmm-state: 53 type: object 54 description: 55 Pinctrl node's client devices use subnod 56 Client device subnodes use below standar 57 $ref: qcom,tlmm-common.yaml#/$defs/qcom-tl 58 unevaluatedProperties: false 59 60 properties: 61 pins: 62 description: 63 List of gpio pins affected by the pr 64 subnode. 65 items: 66 oneOf: 67 - pattern: "^gpio([0-9]|[1-9][0-9] 68 - enum: [ sdc1_rclk, sdc1_clk, sdc 69 sdc2_cmd, sdc2_data, ufs 70 minItems: 1 71 maxItems: 36 72 73 function: 74 description: 75 Specify the alternative function to 76 pins. 77 78 enum: [ gpio, adsp_ext, agera_pll, aos 79 atest_tsens2, atest_usb1, ates 80 cci_i2c, cci_timer0, cci_timer 81 cci_timer4, dbg_out, ddr_bist, 82 ddr_pxi3, edp_hot, edp_lcd, gc 83 gp_pdm1, gp_pdm2, gps_tx, jitt 84 m_voc, mdp_vsync, mdp_vsync0, 85 mdp_vsync3, mss_lte, nav_pps_i 86 pci_e, phase_flag, pll_bist, p 87 pri_mi2s_ws, prng_rosc, qdss, 88 qlink_request, qua_mi2s, qup00 89 qup10, qup11, qup12, qup13, qu 90 sdc41, sdc42, sdc43, sdc4_clk, 91 tgu_ch0, tgu_ch1, tgu_ch2, tgu 92 tsif1_en, tsif1_error, tsif1_s 93 tsif2_en, tsif2_error, tsif2_s 94 uim1_present, uim1_reset, uim2 95 uim2_reset, uim_batt, usb_phy, 96 wlan1_adc0, wlan1_adc1, wlan2_ 97 wsa_data ] 98 99 required: 100 - pins 101 102 required: 103 - compatible 104 - reg 105 - reg-names 106 107 unevaluatedProperties: false 108 109 examples: 110 - | 111 #include <dt-bindings/interrupt-controller 112 113 tlmm: pinctrl@3500000 { 114 compatible = "qcom,sm7150-tlmm"; 115 reg = <0x03500000 0x300000>, 116 <0x03900000 0x300000>, 117 <0x03d00000 0x300000>; 118 reg-names = "west", "north", "south"; 119 interrupts = <GIC_SPI 208 IRQ_TYPE_LEV 120 gpio-ranges = <&tlmm 0 0 120>; 121 gpio-controller; 122 #gpio-cells = <2>; 123 interrupt-controller; 124 #interrupt-cells = <2>; 125 wakeup-parent = <&pdc>; 126 127 gpio-wo-state { 128 pins = "gpio1"; 129 function = "gpio"; 130 }; 131 132 uart-w-state { 133 rx-pins { 134 pins = "gpio44"; 135 function = "qup12"; 136 bias-pull-up; 137 }; 138 139 tx-pins { 140 pins = "gpio45"; 141 function = "qup12"; 142 bias-disable; 143 }; 144 }; 145 }; 146 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.