1 # SPDX-License-Identifier: GPL-2.0-or-later 1 # SPDX-License-Identifier: GPL-2.0-or-later 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/asp 4 $id: http://devicetree.org/schemas/pinctrl/aspeed,ast2500-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: ASPEED AST2500 Pin Controller 7 title: ASPEED AST2500 Pin Controller 8 8 9 maintainers: 9 maintainers: 10 - Andrew Jeffery <andrew@aj.id.au> 10 - Andrew Jeffery <andrew@aj.id.au> 11 11 12 description: |+ 12 description: |+ 13 The pin controller node should be the child 13 The pin controller node should be the child of a syscon node with the 14 required property: 14 required property: 15 15 16 - compatible: Should be one of the f 16 - compatible: Should be one of the following: 17 "aspeed,ast2500-scu", 17 "aspeed,ast2500-scu", "syscon", "simple-mfd" 18 "aspeed,g5-scu", "sysc 18 "aspeed,g5-scu", "syscon", "simple-mfd" 19 19 20 Refer to the bindings described in !! 20 Refer to the the bindings described in 21 Documentation/devicetree/bindings/mfd/syscon !! 21 Documentation/devicetree/bindings/mfd/syscon.txt 22 22 23 properties: 23 properties: 24 compatible: 24 compatible: 25 const: aspeed,ast2500-pinctrl 25 const: aspeed,ast2500-pinctrl 26 reg: << 27 maxItems: 2 << 28 << 29 aspeed,external-nodes: 26 aspeed,external-nodes: 30 minItems: 2 27 minItems: 2 31 maxItems: 2 28 maxItems: 2 32 items: !! 29 allOf: 33 maxItems: 1 !! 30 - $ref: /schemas/types.yaml#/definitions/phandle-array 34 $ref: /schemas/types.yaml#/definitions/pha << 35 description: | 31 description: | 36 A cell of phandles to external controlle 32 A cell of phandles to external controller nodes: 37 0: compatible with "aspeed,ast2500-gfx", 33 0: compatible with "aspeed,ast2500-gfx", "syscon" 38 1: compatible with "aspeed,ast2500-lpc", !! 34 1: compatible with "aspeed,ast2500-lhc", "syscon" 39 35 40 additionalProperties: !! 36 patternProperties: 41 $ref: pinmux-node.yaml# !! 37 '^.*$': 42 additionalProperties: false !! 38 if: 43 !! 39 type: object 44 properties: !! 40 then: 45 pins: true !! 41 patternProperties: 46 bias-disable: true !! 42 "^function|groups$": 47 !! 43 allOf: 48 patternProperties: !! 44 - $ref: "/schemas/types.yaml#/definitions/string" 49 "^function|groups$": !! 45 - enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, 50 enum: !! 46 ADC15, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, 51 - ACPI !! 47 DDCCLK, DDCDAT, ESPI, FWSPICS1, FWSPICS2, GPID0, GPID2, GPID4, 52 - ADC0 !! 48 GPID6, GPIE0, GPIE2, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, 53 - ADC1 !! 49 I2C14, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, LAD0, LAD1, 54 - ADC10 !! 50 LAD2, LAD3, LCLK, LFRAME, LPCHC, LPCPD, LPCPLUS, LPCPME, LPCRST, 55 - ADC11 !! 51 LPCSMI, LSIRQ, MAC1LINK, MAC2LINK, MDIO1, MDIO2, NCTS1, NCTS2, 56 - ADC12 !! 52 NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, 57 - ADC13 !! 53 NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, 58 - ADC14 !! 54 NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PNOR, PWM0, PWM1, PWM2, 59 - ADC15 !! 55 PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1, RMII2, RXD1, 60 - ADC2 !! 56 RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13, SALT14, 61 - ADC3 !! 57 SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8, SALT9, SCL1, 62 - ADC4 !! 58 SCL2, SD1, SD2, SDA1, SDA2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, 63 - ADC5 !! 59 SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, 64 - ADC6 !! 60 SPI1DEBUG, SPI1PASSTHRU, SPI2CK, SPI2CS0, SPI2CS1, SPI2MISO, 65 - ADC7 !! 61 SPI2MOSI, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, 66 - ADC8 !! 62 TXD2, TXD3, TXD4, UART6, USB11BHID, USB2AD, USB2AH, USB2BD, 67 - ADC9 !! 63 USB2BH, USBCKI, VGABIOSROM, VGAHS, VGAVS, VPI24, VPO, WDTRST1, 68 - BMCINT !! 64 WDTRST2, ] 69 - DDCCLK << 70 - DDCDAT << 71 - ESPI << 72 - FWSPICS1 << 73 - FWSPICS2 << 74 - GPID0 << 75 - GPID2 << 76 - GPID4 << 77 - GPID6 << 78 - GPIE0 << 79 - GPIE2 << 80 - GPIE4 << 81 - GPIE6 << 82 - I2C10 << 83 - I2C11 << 84 - I2C12 << 85 - I2C13 << 86 - I2C14 << 87 - I2C3 << 88 - I2C4 << 89 - I2C5 << 90 - I2C6 << 91 - I2C7 << 92 - I2C8 << 93 - I2C9 << 94 - LAD0 << 95 - LAD1 << 96 - LAD2 << 97 - LAD3 << 98 - LCLK << 99 - LFRAME << 100 - LPCHC << 101 - LPCPD << 102 - LPCPLUS << 103 - LPCPME << 104 - LPCRST << 105 - LPCSMI << 106 - LSIRQ << 107 - MAC1LINK << 108 - MAC2LINK << 109 - MDIO1 << 110 - MDIO2 << 111 - NCTS1 << 112 - NCTS2 << 113 - NCTS3 << 114 - NCTS4 << 115 - NDCD1 << 116 - NDCD2 << 117 - NDCD3 << 118 - NDCD4 << 119 - NDSR1 << 120 - NDSR2 << 121 - NDSR3 << 122 - NDSR4 << 123 - NDTR1 << 124 - NDTR2 << 125 - NDTR3 << 126 - NDTR4 << 127 - NRI1 << 128 - NRI2 << 129 - NRI3 << 130 - NRI4 << 131 - NRTS1 << 132 - NRTS2 << 133 - NRTS3 << 134 - NRTS4 << 135 - OSCCLK << 136 - PEWAKE << 137 - PNOR << 138 - PWM0 << 139 - PWM1 << 140 - PWM2 << 141 - PWM3 << 142 - PWM4 << 143 - PWM5 << 144 - PWM6 << 145 - PWM7 << 146 - RGMII1 << 147 - RGMII2 << 148 - RMII1 << 149 - RMII2 << 150 - RXD1 << 151 - RXD2 << 152 - RXD3 << 153 - RXD4 << 154 - SALT1 << 155 - SALT10 << 156 - SALT11 << 157 - SALT12 << 158 - SALT13 << 159 - SALT14 << 160 - SALT2 << 161 - SALT3 << 162 - SALT4 << 163 - SALT5 << 164 - SALT6 << 165 - SALT7 << 166 - SALT8 << 167 - SALT9 << 168 - SCL1 << 169 - SCL2 << 170 - SD1 << 171 - SD2 << 172 - SDA1 << 173 - SDA2 << 174 - SGPM << 175 - SGPS1 << 176 - SGPS2 << 177 - SIOONCTRL << 178 - SIOPBI << 179 - SIOPBO << 180 - SIOPWREQ << 181 - SIOPWRGD << 182 - SIOS3 << 183 - SIOS5 << 184 - SIOSCI << 185 - SPI1 << 186 - SPI1CS1 << 187 - SPI1DEBUG << 188 - SPI1PASSTHRU << 189 - SPI2CK << 190 - SPI2CS0 << 191 - SPI2CS1 << 192 - SPI2MISO << 193 - SPI2MOSI << 194 - TIMER3 << 195 - TIMER4 << 196 - TIMER5 << 197 - TIMER6 << 198 - TIMER7 << 199 - TIMER8 << 200 - TXD1 << 201 - TXD2 << 202 - TXD3 << 203 - TXD4 << 204 - UART6 << 205 - USB11BHID << 206 - USB2AD << 207 - USB2AH << 208 - USB2BD << 209 - USB2BH << 210 - USBCKI << 211 - VGABIOSROM << 212 - VGAHS << 213 - VGAVS << 214 - VPI24 << 215 - VPO << 216 - WDTRST1 << 217 - WDTRST2 << 218 << 219 allOf: << 220 - $ref: pinctrl.yaml# << 221 65 222 required: 66 required: 223 - compatible 67 - compatible 224 - aspeed,external-nodes 68 - aspeed,external-nodes 225 69 226 examples: 70 examples: 227 - | 71 - | 228 #include <dt-bindings/clock/aspeed-clock.h !! 72 apb { 229 scu@1e6e2000 { !! 73 compatible = "simple-bus"; 230 compatible = "aspeed,ast2500-scu", "sy << 231 reg = <0x1e6e2000 0x1a8>; << 232 #clock-cells = <1>; << 233 #reset-cells = <1>; << 234 << 235 #address-cells = <1>; 74 #address-cells = <1>; 236 #size-cells = <1>; 75 #size-cells = <1>; 237 ranges = <0x0 0x1e6e2000 0x1000>; !! 76 ranges; 238 77 239 pinctrl: pinctrl { !! 78 syscon: scu@1e6e2000 { 240 compatible = "aspeed,ast2500-pinct !! 79 compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd"; 241 aspeed,external-nodes = <&gfx>, <& !! 80 reg = <0x1e6e2000 0x1a8>; 242 !! 81 243 pinctrl_i2c3_default: i2c3_default !! 82 pinctrl: pinctrl { 244 function = "I2C3"; !! 83 compatible = "aspeed,g5-pinctrl"; 245 groups = "I2C3"; !! 84 aspeed,external-nodes = <&gfx>, <&lhc>; >> 85 >> 86 pinctrl_i2c3_default: i2c3_default { >> 87 function = "I2C3"; >> 88 groups = "I2C3"; >> 89 }; >> 90 >> 91 pinctrl_gpioh0_unbiased_default: gpioh0 { >> 92 pins = "A18"; >> 93 bias-disable; >> 94 }; 246 }; 95 }; >> 96 }; >> 97 >> 98 gfx: display@1e6e6000 { >> 99 compatible = "aspeed,ast2500-gfx", "syscon"; >> 100 reg = <0x1e6e6000 0x1000>; >> 101 }; >> 102 }; >> 103 >> 104 lpc: lpc@1e789000 { >> 105 compatible = "aspeed,ast2500-lpc", "simple-mfd"; >> 106 reg = <0x1e789000 0x1000>; >> 107 >> 108 #address-cells = <1>; >> 109 #size-cells = <1>; >> 110 ranges = <0x0 0x1e789000 0x1000>; 247 111 248 pinctrl_gpioh0_unbiased_default: g !! 112 lpc_host: lpc-host@80 { 249 pins = "A18"; !! 113 compatible = "aspeed,ast2500-lpc-host", "simple-mfd", "syscon"; 250 bias-disable; !! 114 reg = <0x80 0x1e0>; >> 115 reg-io-width = <4>; >> 116 >> 117 #address-cells = <1>; >> 118 #size-cells = <1>; >> 119 ranges = <0x0 0x80 0x1e0>; >> 120 >> 121 lhc: lhc@20 { >> 122 compatible = "aspeed,ast2500-lhc"; >> 123 reg = <0x20 0x24 0x48 0x8>; 251 }; 124 }; 252 }; 125 }; 253 }; 126 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.