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,ast2400-pinctrl.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: ASPEED AST2400 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,ast2400-scu", "syscon", "simple-mfd"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci  Refer to the the bindings described in
208c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/mfd/syscon.yaml
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciproperties:
238c2ecf20Sopenharmony_ci  compatible:
248c2ecf20Sopenharmony_ci    const: aspeed,ast2400-pinctrl
258c2ecf20Sopenharmony_ci  reg:
268c2ecf20Sopenharmony_ci    description: |
278c2ecf20Sopenharmony_ci      A hint for the memory regions associated with the pin-controller
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_cipatternProperties:
308c2ecf20Sopenharmony_ci  '^.*$':
318c2ecf20Sopenharmony_ci    if:
328c2ecf20Sopenharmony_ci      type: object
338c2ecf20Sopenharmony_ci    then:
348c2ecf20Sopenharmony_ci      patternProperties:
358c2ecf20Sopenharmony_ci        "^function|groups$":
368c2ecf20Sopenharmony_ci          $ref: "/schemas/types.yaml#/definitions/string"
378c2ecf20Sopenharmony_ci          enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15,
388c2ecf20Sopenharmony_ci                  ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, DDCCLK, DDCDAT,
398c2ecf20Sopenharmony_ci                  EXTRST, FLACK, FLBUSY, FLWP, GPID, GPID0, GPID2, GPID4, GPID6, GPIE0,
408c2ecf20Sopenharmony_ci                  GPIE2, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C14, I2C3, I2C4,
418c2ecf20Sopenharmony_ci                  I2C5, I2C6, I2C7, I2C8, I2C9, LPCPD, LPCPME, LPCRST, LPCSMI, MAC1LINK,
428c2ecf20Sopenharmony_ci                  MAC2LINK, MDIO1, MDIO2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2,
438c2ecf20Sopenharmony_ci                  NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4,
448c2ecf20Sopenharmony_ci                  NDTS4, NRI1, NRI2, NRI3, NRI4, NRTS1, NRTS2, NRTS3, OSCCLK, PWM0,
458c2ecf20Sopenharmony_ci                  PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1,
468c2ecf20Sopenharmony_ci                  RMII2, ROM16, ROM8, ROMCS1, ROMCS2, ROMCS3, ROMCS4, RXD1, RXD2, RXD3,
478c2ecf20Sopenharmony_ci                  RXD4, SALT1, SALT2, SALT3, SALT4, SD1, SD2, SGPMCK, SGPMI, SGPMLD,
488c2ecf20Sopenharmony_ci                  SGPMO, SGPSCK, SGPSI0, SGPSI1, SGPSLD, SIOONCTRL, SIOPBI, SIOPBO,
498c2ecf20Sopenharmony_ci                  SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1DEBUG, SPI1PASSTHRU,
508c2ecf20Sopenharmony_ci                  SPICS1, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, TXD2,
518c2ecf20Sopenharmony_ci                  TXD3, TXD4, UART6, USB11D1, USB11H2, USB2D1, USB2H1, USBCKI, VGABIOS_ROM,
528c2ecf20Sopenharmony_ci                  VGAHS, VGAVS, VPI18, VPI24, VPI30, VPO12, VPO24, WDTRST1, WDTRST2]
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_cirequired:
558c2ecf20Sopenharmony_ci  - compatible
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciadditionalProperties: false
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciexamples:
608c2ecf20Sopenharmony_ci  - |
618c2ecf20Sopenharmony_ci    syscon: scu@1e6e2000 {
628c2ecf20Sopenharmony_ci        compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd";
638c2ecf20Sopenharmony_ci        reg = <0x1e6e2000 0x1a8>;
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci        pinctrl: pinctrl {
668c2ecf20Sopenharmony_ci            compatible = "aspeed,g4-pinctrl";
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci            pinctrl_i2c3_default: i2c3_default {
698c2ecf20Sopenharmony_ci                function = "I2C3";
708c2ecf20Sopenharmony_ci                groups = "I2C3";
718c2ecf20Sopenharmony_ci            };
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci            pinctrl_gpioh0_unbiased_default: gpioh0 {
748c2ecf20Sopenharmony_ci                pins = "A8";
758c2ecf20Sopenharmony_ci                bias-disable;
768c2ecf20Sopenharmony_ci            };
778c2ecf20Sopenharmony_ci        };
788c2ecf20Sopenharmony_ci    };
79