18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2500-pinctrl.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: ASPEED AST2500 Pin Controller 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Andrew Jeffery <andrew@aj.id.au> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: |+ 138c2ecf20Sopenharmony_ci The pin controller node should be the child of a syscon node with the 148c2ecf20Sopenharmony_ci required property: 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci - compatible: Should be one of the following: 178c2ecf20Sopenharmony_ci "aspeed,ast2500-scu", "syscon", "simple-mfd" 188c2ecf20Sopenharmony_ci "aspeed,g5-scu", "syscon", "simple-mfd" 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci Refer to the the bindings described in 218c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/mfd/syscon.yaml 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciproperties: 248c2ecf20Sopenharmony_ci compatible: 258c2ecf20Sopenharmony_ci const: aspeed,ast2500-pinctrl 268c2ecf20Sopenharmony_ci reg: 278c2ecf20Sopenharmony_ci description: | 288c2ecf20Sopenharmony_ci A hint for the memory regions associated with the pin-controller 298c2ecf20Sopenharmony_ci aspeed,external-nodes: 308c2ecf20Sopenharmony_ci minItems: 2 318c2ecf20Sopenharmony_ci maxItems: 2 328c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/phandle-array 338c2ecf20Sopenharmony_ci description: | 348c2ecf20Sopenharmony_ci A cell of phandles to external controller nodes: 358c2ecf20Sopenharmony_ci 0: compatible with "aspeed,ast2500-gfx", "syscon" 368c2ecf20Sopenharmony_ci 1: compatible with "aspeed,ast2500-lhc", "syscon" 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_cipatternProperties: 398c2ecf20Sopenharmony_ci '^.*$': 408c2ecf20Sopenharmony_ci if: 418c2ecf20Sopenharmony_ci type: object 428c2ecf20Sopenharmony_ci then: 438c2ecf20Sopenharmony_ci patternProperties: 448c2ecf20Sopenharmony_ci "^function|groups$": 458c2ecf20Sopenharmony_ci $ref: "/schemas/types.yaml#/definitions/string" 468c2ecf20Sopenharmony_ci enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, 478c2ecf20Sopenharmony_ci ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, DDCCLK, DDCDAT, 488c2ecf20Sopenharmony_ci ESPI, FWSPICS1, FWSPICS2, GPID0, GPID2, GPID4, GPID6, GPIE0, GPIE2, 498c2ecf20Sopenharmony_ci GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C14, I2C3, I2C4, I2C5, 508c2ecf20Sopenharmony_ci I2C6, I2C7, I2C8, I2C9, LAD0, LAD1, LAD2, LAD3, LCLK, LFRAME, LPCHC, 518c2ecf20Sopenharmony_ci LPCPD, LPCPLUS, LPCPME, LPCRST, LPCSMI, LSIRQ, MAC1LINK, MAC2LINK, 528c2ecf20Sopenharmony_ci MDIO1, MDIO2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, 538c2ecf20Sopenharmony_ci NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, 548c2ecf20Sopenharmony_ci NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PNOR, PWM0, 558c2ecf20Sopenharmony_ci PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1, 568c2ecf20Sopenharmony_ci RMII2, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13, 578c2ecf20Sopenharmony_ci SALT14, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8, SALT9, SCL1, 588c2ecf20Sopenharmony_ci SCL2, SD1, SD2, SDA1, SDA2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, SIOPBO, 598c2ecf20Sopenharmony_ci SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, SPI1DEBUG, 608c2ecf20Sopenharmony_ci SPI1PASSTHRU, SPI2CK, SPI2CS0, SPI2CS1, SPI2MISO, SPI2MOSI, TIMER3, 618c2ecf20Sopenharmony_ci TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, TXD2, TXD3, TXD4, UART6, 628c2ecf20Sopenharmony_ci USB11BHID, USB2AD, USB2AH, USB2BD, USB2BH, USBCKI, VGABIOSROM, VGAHS, 638c2ecf20Sopenharmony_ci VGAVS, VPI24, VPO, WDTRST1, WDTRST2] 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_cirequired: 668c2ecf20Sopenharmony_ci - compatible 678c2ecf20Sopenharmony_ci - aspeed,external-nodes 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ciadditionalProperties: false 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciexamples: 728c2ecf20Sopenharmony_ci - | 738c2ecf20Sopenharmony_ci apb { 748c2ecf20Sopenharmony_ci compatible = "simple-bus"; 758c2ecf20Sopenharmony_ci #address-cells = <1>; 768c2ecf20Sopenharmony_ci #size-cells = <1>; 778c2ecf20Sopenharmony_ci ranges; 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci syscon: scu@1e6e2000 { 808c2ecf20Sopenharmony_ci compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd"; 818c2ecf20Sopenharmony_ci reg = <0x1e6e2000 0x1a8>; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci pinctrl: pinctrl { 848c2ecf20Sopenharmony_ci compatible = "aspeed,g5-pinctrl"; 858c2ecf20Sopenharmony_ci aspeed,external-nodes = <&gfx>, <&lhc>; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci pinctrl_i2c3_default: i2c3_default { 888c2ecf20Sopenharmony_ci function = "I2C3"; 898c2ecf20Sopenharmony_ci groups = "I2C3"; 908c2ecf20Sopenharmony_ci }; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci pinctrl_gpioh0_unbiased_default: gpioh0 { 938c2ecf20Sopenharmony_ci pins = "A18"; 948c2ecf20Sopenharmony_ci bias-disable; 958c2ecf20Sopenharmony_ci }; 968c2ecf20Sopenharmony_ci }; 978c2ecf20Sopenharmony_ci }; 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci gfx: display@1e6e6000 { 1008c2ecf20Sopenharmony_ci compatible = "aspeed,ast2500-gfx", "syscon"; 1018c2ecf20Sopenharmony_ci reg = <0x1e6e6000 0x1000>; 1028c2ecf20Sopenharmony_ci }; 1038c2ecf20Sopenharmony_ci }; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci lpc: lpc@1e789000 { 1068c2ecf20Sopenharmony_ci compatible = "aspeed,ast2500-lpc", "simple-mfd"; 1078c2ecf20Sopenharmony_ci reg = <0x1e789000 0x1000>; 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci #address-cells = <1>; 1108c2ecf20Sopenharmony_ci #size-cells = <1>; 1118c2ecf20Sopenharmony_ci ranges = <0x0 0x1e789000 0x1000>; 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci lpc_host: lpc-host@80 { 1148c2ecf20Sopenharmony_ci compatible = "aspeed,ast2500-lpc-host", "simple-mfd", "syscon"; 1158c2ecf20Sopenharmony_ci reg = <0x80 0x1e0>; 1168c2ecf20Sopenharmony_ci reg-io-width = <4>; 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci #address-cells = <1>; 1198c2ecf20Sopenharmony_ci #size-cells = <1>; 1208c2ecf20Sopenharmony_ci ranges = <0x0 0x80 0x1e0>; 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci lhc: lhc@20 { 1238c2ecf20Sopenharmony_ci compatible = "aspeed,ast2500-lhc"; 1248c2ecf20Sopenharmony_ci reg = <0x20 0x24>, <0x48 0x8>; 1258c2ecf20Sopenharmony_ci }; 1268c2ecf20Sopenharmony_ci }; 1278c2ecf20Sopenharmony_ci }; 128