Commit | Line | Data |
---|---|---|
34ae6999 AJ |
1 | ============================= |
2 | Aspeed AST2400 Pin Controller | |
3 | ============================= | |
4 | ||
5 | Required properties for the AST2400: | |
6 | - compatible : Should be one of the following: | |
7 | "aspeed,ast2400-pinctrl" | |
8 | "aspeed,g4-pinctrl" | |
9 | ||
10 | The pin controller node should be the child of a syscon node with the required | |
11 | property: | |
12 | ||
13 | - compatible : Should be one of the following: | |
14 | "aspeed,ast2400-scu", "syscon", "simple-mfd" | |
15 | "aspeed,g4-scu", "syscon", "simple-mfd" | |
16 | ||
17 | Refer to the the bindings described in | |
18 | Documentation/devicetree/bindings/mfd/syscon.txt | |
19 | ||
20 | Subnode Format | |
21 | ============== | |
22 | ||
23 | The required properties of pinmux child nodes are: | |
24 | - function: the mux function to select | |
25 | - groups : the list of groups to select with this function | |
26 | ||
27 | Required properties of pinconf child nodes are: | |
28 | - groups: A list of groups to select (either this or "pins" must be | |
29 | specified) | |
30 | - pins : A list of ball names as strings, eg "D14" (either this or "groups" | |
31 | must be specified) | |
32 | ||
33 | Optional properties of pinconf child nodes are: | |
34 | - bias-disable : disable any pin bias | |
35 | - bias-pull-down: pull down the pin | |
36 | - drive-strength: sink or source at most X mA | |
37 | ||
38 | Definitions are as specified in | |
39 | Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt, with any | |
40 | further limitations as described above. | |
41 | ||
42 | For pinmux, each mux function has only one associated pin group. Each group is | |
43 | named by its function. The following values for the function and groups | |
44 | properties are supported: | |
45 | ||
46 | ACPI ADC0 ADC1 ADC10 ADC11 ADC12 ADC13 ADC14 ADC15 ADC2 ADC3 ADC4 ADC5 ADC6 | |
47 | ADC7 ADC8 ADC9 BMCINT DDCCLK DDCDAT EXTRST FLACK FLBUSY FLWP GPID GPID0 GPID2 | |
48 | GPID4 GPID6 GPIE0 GPIE2 GPIE4 GPIE6 I2C10 I2C11 I2C12 I2C13 I2C14 I2C3 I2C4 | |
49 | I2C5 I2C6 I2C7 I2C8 I2C9 LPCPD LPCPME LPCRST LPCSMI MAC1LINK MAC2LINK MDIO1 | |
50 | MDIO2 NCTS1 NCTS2 NCTS3 NCTS4 NDCD1 NDCD2 NDCD3 NDCD4 NDSR1 NDSR2 NDSR3 NDSR4 | |
51 | NDTR1 NDTR2 NDTR3 NDTR4 NDTS4 NRI1 NRI2 NRI3 NRI4 NRTS1 NRTS2 NRTS3 OSCCLK PWM0 | |
52 | PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 PWM7 RGMII1 RGMII2 RMII1 RMII2 ROM16 ROM8 ROMCS1 | |
53 | ROMCS2 ROMCS3 ROMCS4 RXD1 RXD2 RXD3 RXD4 SALT1 SALT2 SALT3 SALT4 SD1 SD2 SGPMCK | |
54 | SGPMI SGPMLD SGPMO SGPSCK SGPSI0 SGPSI1 SGPSLD SIOONCTRL SIOPBI SIOPBO SIOPWREQ | |
55 | SIOPWRGD SIOS3 SIOS5 SIOSCI SPI1 SPI1DEBUG SPI1PASSTHRU SPICS1 TIMER3 TIMER4 | |
56 | TIMER5 TIMER6 TIMER7 TIMER8 TXD1 TXD2 TXD3 TXD4 UART6 USB11D1 USB11H2 USB2D1 | |
57 | USB2H1 USBCKI VGABIOS_ROM VGAHS VGAVS VPI18 VPI24 VPI30 VPO12 VPO24 WDTRST1 | |
58 | WDTRST2 | |
59 | ||
60 | Example | |
61 | ======= | |
62 | ||
63 | syscon: scu@1e6e2000 { | |
64 | compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd"; | |
65 | reg = <0x1e6e2000 0x1a8>; | |
66 | ||
67 | pinctrl: pinctrl { | |
68 | compatible = "aspeed,g4-pinctrl"; | |
69 | ||
70 | pinctrl_i2c3_default: i2c3_default { | |
71 | function = "I2C3"; | |
72 | groups = "I2C3"; | |
73 | }; | |
74 | ||
75 | pinctrl_gpioh0_unbiased_default: gpioh0 { | |
76 | pins = "A8"; | |
77 | bias-disable; | |
78 | }; | |
79 | }; | |
80 | }; |