xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/aspeed,ast2600-pinctrl.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0+
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2600-pinctrl.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: ASPEED AST2600 Pin Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Andrew Jeffery <andrew@aj.id.au>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |+
13c66ec88fSEmmanuel Vadot  The pin controller node should be the child of a syscon node with the
14c66ec88fSEmmanuel Vadot  required property:
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  - compatible: Should be one of the following:
17c66ec88fSEmmanuel Vadot                "aspeed,ast2600-scu", "syscon", "simple-mfd"
18c66ec88fSEmmanuel Vadot
19b97ee269SEmmanuel Vadot  Refer to the bindings described in
20c66ec88fSEmmanuel Vadot  Documentation/devicetree/bindings/mfd/syscon.yaml
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadotproperties:
23c66ec88fSEmmanuel Vadot  compatible:
24c66ec88fSEmmanuel Vadot    const: aspeed,ast2600-pinctrl
25c66ec88fSEmmanuel Vadot
26*aa1a8ff2SEmmanuel VadotadditionalProperties:
27*aa1a8ff2SEmmanuel Vadot  $ref: pinmux-node.yaml#
28*aa1a8ff2SEmmanuel Vadot  additionalProperties: false
29*aa1a8ff2SEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  properties:
31c66ec88fSEmmanuel Vadot    function:
32c66ec88fSEmmanuel Vadot      enum: [ ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC2,
33c66ec88fSEmmanuel Vadot              ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMC, ESPI, ESPIALT,
34c9ccf3a3SEmmanuel Vadot              FSI1, FSI2, FWQSPI, FWSPIABR, FWSPID, FWSPIWP, GPIT0, GPIT1, GPIT2, GPIT3,
35c66ec88fSEmmanuel Vadot              GPIT4, GPIT5, GPIT6, GPIT7, GPIU0, GPIU1, GPIU2, GPIU3, GPIU4, GPIU5,
36c66ec88fSEmmanuel Vadot              GPIU6, GPIU7, I2C1, I2C10, I2C11, I2C12, I2C13, I2C14, I2C15, I2C16,
37c66ec88fSEmmanuel Vadot              I2C2, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, I3C3, I3C4, I3C5,
38c66ec88fSEmmanuel Vadot              I3C6, JTAGM, LHPD, LHSIRQ, LPC, LPCHC, LPCPD, LPCPME, LPCSMI, LSIRQ,
39c66ec88fSEmmanuel Vadot              MACLINK1, MACLINK2, MACLINK3, MACLINK4, MDIO1, MDIO2, MDIO3, MDIO4,
40c66ec88fSEmmanuel Vadot              NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2,
41c66ec88fSEmmanuel Vadot              NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4,
42c66ec88fSEmmanuel Vadot              NRTS1, NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PWM0, PWM1, PWM10, PWM11,
43c66ec88fSEmmanuel Vadot              PWM12, PWM13, PWM14, PWM15, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, PWM8,
44c66ec88fSEmmanuel Vadot              PWM9, RGMII1, RGMII2, RGMII3, RGMII4, RMII1, RMII2, RMII3, RMII4,
45c66ec88fSEmmanuel Vadot              RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13, SALT14,
46c66ec88fSEmmanuel Vadot              SALT15, SALT16, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8,
475956d97fSEmmanuel Vadot              SALT9, SD1, SD2, SGPM1, SGPM2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, SIOPBO,
485956d97fSEmmanuel Vadot              SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1ABR, SPI1CS1, SPI1WP, SPI2,
49c66ec88fSEmmanuel Vadot              SPI2CS1, SPI2CS2, TACH0, TACH1, TACH10, TACH11, TACH12, TACH13, TACH14,
50c66ec88fSEmmanuel Vadot              TACH15, TACH2, TACH3, TACH4, TACH5, TACH6, TACH7, TACH8, TACH9, THRU0,
51c66ec88fSEmmanuel Vadot              THRU1, THRU2, THRU3, TXD1, TXD2, TXD3, TXD4, UART10, UART11, UART12,
52c66ec88fSEmmanuel Vadot              UART13, UART6, UART7, UART8, UART9, USBAD, USBADP, USB2AH, USB2AHP,
53c66ec88fSEmmanuel Vadot              USB2BD, USB2BH, VB, VGAHS, VGAVS, WDTRST1, WDTRST2, WDTRST3, WDTRST4 ]
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadot    groups:
56c66ec88fSEmmanuel Vadot      enum: [ ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC2,
57c66ec88fSEmmanuel Vadot              ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMCG1, EMMCG4,
58c9ccf3a3SEmmanuel Vadot              EMMCG8, ESPI, ESPIALT, FSI1, FSI2, FWQSPI, FWSPIABR, FWSPID, FWSPIWP,
59c66ec88fSEmmanuel Vadot              GPIT0, GPIT1, GPIT2, GPIT3, GPIT4, GPIT5, GPIT6, GPIT7, GPIU0, GPIU1,
60c66ec88fSEmmanuel Vadot              GPIU2, GPIU3, GPIU4, GPIU5, GPIU6, GPIU7, HVI3C3, HVI3C4, I2C1, I2C10,
61c66ec88fSEmmanuel Vadot              I2C11, I2C12, I2C13, I2C14, I2C15, I2C16, I2C2, I2C3, I2C4, I2C5,
62c66ec88fSEmmanuel Vadot              I2C6, I2C7, I2C8, I2C9, I3C3, I3C4, I3C5, I3C6, JTAGM, LHPD, LHSIRQ,
63c66ec88fSEmmanuel Vadot              LPC, LPCHC, LPCPD, LPCPME, LPCSMI, LSIRQ, MACLINK1, MACLINK2, MACLINK3,
64c66ec88fSEmmanuel Vadot              MACLINK4, MDIO1, MDIO2, MDIO3, MDIO4, NCTS1, NCTS2, NCTS3, NCTS4,
65c66ec88fSEmmanuel Vadot              NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2,
66c66ec88fSEmmanuel Vadot              NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4,
67c66ec88fSEmmanuel Vadot              OSCCLK, PEWAKE, PWM0, PWM1, PWM10G0, PWM10G1, PWM11G0, PWM11G1, PWM12G0,
68c66ec88fSEmmanuel Vadot              PWM12G1, PWM13G0, PWM13G1, PWM14G0, PWM14G1, PWM15G0, PWM15G1, PWM2,
69c66ec88fSEmmanuel Vadot              PWM3, PWM4, PWM5, PWM6, PWM7, PWM8G0, PWM8G1, PWM9G0, PWM9G1, QSPI1,
70c66ec88fSEmmanuel Vadot              QSPI2, RGMII1, RGMII2, RGMII3, RGMII4, RMII1, RMII2, RMII3, RMII4,
71c66ec88fSEmmanuel Vadot              RXD1, RXD2, RXD3, RXD4, SALT1, SALT10G0, SALT10G1, SALT11G0, SALT11G1,
72c66ec88fSEmmanuel Vadot              SALT12G0, SALT12G1, SALT13G0, SALT13G1, SALT14G0, SALT14G1, SALT15G0,
73c66ec88fSEmmanuel Vadot              SALT15G1, SALT16G0, SALT16G1, SALT2, SALT3, SALT4, SALT5, SALT6,
745956d97fSEmmanuel Vadot              SALT7, SALT8, SALT9G0, SALT9G1, SD1, SD2, SD3, SGPM1, SGPM2, SGPS1, SGPS2,
755956d97fSEmmanuel Vadot              SIOONCTRL, SIOPBI, SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1,
765956d97fSEmmanuel Vadot              SPI1ABR, SPI1CS1, SPI1WP, SPI2, SPI2CS1, SPI2CS2, TACH0, TACH1, TACH10, TACH11,
77c66ec88fSEmmanuel Vadot              TACH12, TACH13, TACH14, TACH15, TACH2, TACH3, TACH4, TACH5, TACH6,
78c66ec88fSEmmanuel Vadot              TACH7, TACH8, TACH9, THRU0, THRU1, THRU2, THRU3, TXD1, TXD2, TXD3,
79c66ec88fSEmmanuel Vadot              TXD4, UART10, UART11, UART12G0, UART12G1, UART13G0, UART13G1, UART6,
80c66ec88fSEmmanuel Vadot              UART7, UART8, UART9, USBA, USBB, VB, VGAHS, VGAVS, WDTRST1, WDTRST2,
81c66ec88fSEmmanuel Vadot              WDTRST3, WDTRST4]
82c66ec88fSEmmanuel Vadot
83*aa1a8ff2SEmmanuel Vadot    pins: true
84*aa1a8ff2SEmmanuel Vadot    bias-disable: true
85*aa1a8ff2SEmmanuel Vadot
86e67e8565SEmmanuel VadotallOf:
87fac71e4eSEmmanuel Vadot  - $ref: pinctrl.yaml#
88e67e8565SEmmanuel Vadot
89c66ec88fSEmmanuel Vadotrequired:
90c66ec88fSEmmanuel Vadot  - compatible
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadotexamples:
93c66ec88fSEmmanuel Vadot  - |
94c66ec88fSEmmanuel Vadot    syscon: scu@1e6e2000 {
95c66ec88fSEmmanuel Vadot        compatible = "aspeed,ast2600-scu", "syscon", "simple-mfd";
96c66ec88fSEmmanuel Vadot        reg = <0x1e6e2000 0xf6c>;
977ef62cebSEmmanuel Vadot        #clock-cells = <1>;
987ef62cebSEmmanuel Vadot        #reset-cells = <1>;
997ef62cebSEmmanuel Vadot
1007ef62cebSEmmanuel Vadot        #address-cells = <1>;
1017ef62cebSEmmanuel Vadot        #size-cells = <1>;
1027ef62cebSEmmanuel Vadot        ranges = <0x0 0x1e6e2000 0x1000>;
103c66ec88fSEmmanuel Vadot
104c66ec88fSEmmanuel Vadot        pinctrl: pinctrl {
1055def4c47SEmmanuel Vadot            compatible = "aspeed,ast2600-pinctrl";
106c66ec88fSEmmanuel Vadot
107c66ec88fSEmmanuel Vadot            pinctrl_pwm10g1_default: pwm10g1_default {
108c66ec88fSEmmanuel Vadot                function = "PWM10";
109c66ec88fSEmmanuel Vadot                groups = "PWM10G1";
110c66ec88fSEmmanuel Vadot            };
111c66ec88fSEmmanuel Vadot
112c66ec88fSEmmanuel Vadot            pinctrl_gpioh0_unbiased_default: gpioh0 {
113c66ec88fSEmmanuel Vadot                pins = "A18";
114c66ec88fSEmmanuel Vadot                bias-disable;
115c66ec88fSEmmanuel Vadot            };
116c66ec88fSEmmanuel Vadot        };
117c66ec88fSEmmanuel Vadot    };
118