xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/aspeed,ast2500-pinctrl.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-or-later
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2500-pinctrl.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: ASPEED AST2500 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,ast2500-scu", "syscon", "simple-mfd"
18c66ec88fSEmmanuel Vadot  			"aspeed,g5-scu", "syscon", "simple-mfd"
19c66ec88fSEmmanuel Vadot
20b97ee269SEmmanuel Vadot  Refer to the bindings described in
21c66ec88fSEmmanuel Vadot  Documentation/devicetree/bindings/mfd/syscon.yaml
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadotproperties:
24c66ec88fSEmmanuel Vadot  compatible:
25c66ec88fSEmmanuel Vadot    const: aspeed,ast2500-pinctrl
26c66ec88fSEmmanuel Vadot  reg:
275def4c47SEmmanuel Vadot    maxItems: 2
285def4c47SEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  aspeed,external-nodes:
30c66ec88fSEmmanuel Vadot    minItems: 2
31c66ec88fSEmmanuel Vadot    maxItems: 2
32c9ccf3a3SEmmanuel Vadot    items:
33c9ccf3a3SEmmanuel Vadot      maxItems: 1
34c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
35c66ec88fSEmmanuel Vadot    description: |
36c66ec88fSEmmanuel Vadot      A cell of phandles to external controller nodes:
37c66ec88fSEmmanuel Vadot      0: compatible with "aspeed,ast2500-gfx", "syscon"
38c66ec88fSEmmanuel Vadot      1: compatible with "aspeed,ast2500-lhc", "syscon"
39c66ec88fSEmmanuel Vadot
40*aa1a8ff2SEmmanuel VadotadditionalProperties:
41*aa1a8ff2SEmmanuel Vadot  $ref: pinmux-node.yaml#
42*aa1a8ff2SEmmanuel Vadot  additionalProperties: false
43*aa1a8ff2SEmmanuel Vadot
44*aa1a8ff2SEmmanuel Vadot  properties:
45*aa1a8ff2SEmmanuel Vadot    pins: true
46*aa1a8ff2SEmmanuel Vadot    bias-disable: true
47*aa1a8ff2SEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  patternProperties:
49c66ec88fSEmmanuel Vadot    "^function|groups$":
50c66ec88fSEmmanuel Vadot      enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15,
51c66ec88fSEmmanuel Vadot              ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, DDCCLK, DDCDAT,
52c66ec88fSEmmanuel Vadot              ESPI, FWSPICS1, FWSPICS2, GPID0, GPID2, GPID4, GPID6, GPIE0, GPIE2,
53c66ec88fSEmmanuel Vadot              GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C14, I2C3, I2C4, I2C5,
54c66ec88fSEmmanuel Vadot              I2C6, I2C7, I2C8, I2C9, LAD0, LAD1, LAD2, LAD3, LCLK, LFRAME, LPCHC,
55c66ec88fSEmmanuel Vadot              LPCPD, LPCPLUS, LPCPME, LPCRST, LPCSMI, LSIRQ, MAC1LINK, MAC2LINK,
56c66ec88fSEmmanuel Vadot              MDIO1, MDIO2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4,
57c66ec88fSEmmanuel Vadot              NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2,
58c66ec88fSEmmanuel Vadot              NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PNOR, PWM0,
59c66ec88fSEmmanuel Vadot              PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1,
60c66ec88fSEmmanuel Vadot              RMII2, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13,
61c66ec88fSEmmanuel Vadot              SALT14, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8, SALT9, SCL1,
62c66ec88fSEmmanuel Vadot              SCL2, SD1, SD2, SDA1, SDA2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, SIOPBO,
63c66ec88fSEmmanuel Vadot              SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, SPI1DEBUG,
64c66ec88fSEmmanuel Vadot              SPI1PASSTHRU, SPI2CK, SPI2CS0, SPI2CS1, SPI2MISO, SPI2MOSI, TIMER3,
65c66ec88fSEmmanuel Vadot              TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, TXD2, TXD3, TXD4, UART6,
66c66ec88fSEmmanuel Vadot              USB11BHID, USB2AD, USB2AH, USB2BD, USB2BH, USBCKI, VGABIOSROM, VGAHS,
67c66ec88fSEmmanuel Vadot              VGAVS, VPI24, VPO, WDTRST1, WDTRST2]
68c66ec88fSEmmanuel Vadot
69e67e8565SEmmanuel VadotallOf:
70fac71e4eSEmmanuel Vadot  - $ref: pinctrl.yaml#
71e67e8565SEmmanuel Vadot
72c66ec88fSEmmanuel Vadotrequired:
73c66ec88fSEmmanuel Vadot  - compatible
74c66ec88fSEmmanuel Vadot  - aspeed,external-nodes
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadotexamples:
77c66ec88fSEmmanuel Vadot  - |
78c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/clock/aspeed-clock.h>
79d5b0e70fSEmmanuel Vadot    scu@1e6e2000 {
80c66ec88fSEmmanuel Vadot        compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd";
81c66ec88fSEmmanuel Vadot        reg = <0x1e6e2000 0x1a8>;
82c9ccf3a3SEmmanuel Vadot        #clock-cells = <1>;
83c9ccf3a3SEmmanuel Vadot        #reset-cells = <1>;
84c66ec88fSEmmanuel Vadot
857ef62cebSEmmanuel Vadot        #address-cells = <1>;
867ef62cebSEmmanuel Vadot        #size-cells = <1>;
877ef62cebSEmmanuel Vadot        ranges = <0x0 0x1e6e2000 0x1000>;
887ef62cebSEmmanuel Vadot
89c66ec88fSEmmanuel Vadot        pinctrl: pinctrl {
905def4c47SEmmanuel Vadot            compatible = "aspeed,ast2500-pinctrl";
91c66ec88fSEmmanuel Vadot            aspeed,external-nodes = <&gfx>, <&lhc>;
92c66ec88fSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot            pinctrl_i2c3_default: i2c3_default {
94c66ec88fSEmmanuel Vadot                function = "I2C3";
95c66ec88fSEmmanuel Vadot                groups = "I2C3";
96c66ec88fSEmmanuel Vadot            };
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel Vadot            pinctrl_gpioh0_unbiased_default: gpioh0 {
99c66ec88fSEmmanuel Vadot                pins = "A18";
100c66ec88fSEmmanuel Vadot                bias-disable;
101c66ec88fSEmmanuel Vadot            };
102c66ec88fSEmmanuel Vadot        };
103c66ec88fSEmmanuel Vadot    };
104