|
61 | 61 | chosen {
|
62 | 62 | bootargs = "earlyprintk console=ttyS0,115200";
|
63 | 63 | };
|
| 64 | +}; |
| 65 | + |
| 66 | +&ehci0 { |
| 67 | + status = "okay"; |
| 68 | +}; |
64 | 69 |
|
65 |
| - soc@01c00000 { |
66 |
| - mmc0: mmc@01c0f000 { |
67 |
| - pinctrl-names = "default"; |
68 |
| - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>; |
69 |
| - vmmc-supply = <®_vcc3v0>; |
70 |
| - bus-width = <4>; |
71 |
| - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ |
72 |
| - cd-inverted; |
73 |
| - status = "okay"; |
74 |
| - }; |
75 |
| - |
76 |
| - usbphy: phy@01c19400 { |
77 |
| - usb1_vbus-supply = <®_usb1_vbus>; |
78 |
| - status = "okay"; |
79 |
| - }; |
80 |
| - |
81 |
| - ehci0: usb@01c1a000 { |
82 |
| - status = "okay"; |
83 |
| - }; |
84 |
| - |
85 |
| - ohci0: usb@01c1a400 { |
86 |
| - status = "okay"; |
87 |
| - }; |
88 |
| - |
89 |
| - pio: pinctrl@01c20800 { |
90 |
| - mmc0_pins_a: mmc0@0 { |
91 |
| - /* external pull-ups missing for some pins */ |
92 |
| - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
93 |
| - }; |
94 |
| - |
95 |
| - mmc0_cd_pin_hummingbird: mmc0_cd_pin@0 { |
96 |
| - allwinner,pins = "PA8"; |
97 |
| - allwinner,function = "gpio_in"; |
98 |
| - allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
99 |
| - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
100 |
| - }; |
101 |
| - |
102 |
| - usb1_vbus_pin_a: usb1_vbus_pin@0 { |
103 |
| - allwinner,pins = "PH24"; |
104 |
| - allwinner,function = "gpio_out"; |
105 |
| - allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
106 |
| - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
107 |
| - }; |
108 |
| - }; |
109 |
| - |
110 |
| - uart0: serial@01c28000 { |
111 |
| - pinctrl-names = "default"; |
112 |
| - pinctrl-0 = <&uart0_pins_a>; |
113 |
| - status = "okay"; |
114 |
| - }; |
115 |
| - |
116 |
| - i2c0: i2c@01c2ac00 { |
117 |
| - pinctrl-names = "default"; |
118 |
| - pinctrl-0 = <&i2c0_pins_a>; |
119 |
| - /* pull-ups and devices require AXP221 DLDO3 */ |
120 |
| - status = "failed"; |
121 |
| - }; |
122 |
| - |
123 |
| - i2c1: i2c@01c2b000 { |
124 |
| - pinctrl-names = "default"; |
125 |
| - pinctrl-0 = <&i2c1_pins_a>; |
126 |
| - status = "okay"; |
127 |
| - }; |
128 |
| - |
129 |
| - i2c2: i2c@01c2b400 { |
130 |
| - pinctrl-names = "default"; |
131 |
| - pinctrl-0 = <&i2c2_pins_a>; |
132 |
| - status = "okay"; |
133 |
| - |
134 |
| - pcf8563: rtc@51 { |
135 |
| - compatible = "nxp,pcf8563"; |
136 |
| - reg = <0x51>; |
137 |
| - }; |
138 |
| - }; |
139 |
| - |
140 |
| - gmac: ethernet@01c30000 { |
141 |
| - pinctrl-names = "default"; |
142 |
| - pinctrl-0 = <&gmac_pins_rgmii_a>; |
143 |
| - phy = <&phy1>; |
144 |
| - phy-mode = "rgmii"; |
145 |
| - snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; |
146 |
| - snps,reset-active-low; |
147 |
| - snps,reset-delays-us = <0 10000 30000>; |
148 |
| - status = "okay"; |
149 |
| - |
150 |
| - phy1: ethernet-phy@1 { |
151 |
| - reg = <1>; |
152 |
| - }; |
153 |
| - }; |
| 70 | +&gmac { |
| 71 | + pinctrl-names = "default"; |
| 72 | + pinctrl-0 = <&gmac_pins_rgmii_a>; |
| 73 | + phy = <&phy1>; |
| 74 | + phy-mode = "rgmii"; |
| 75 | + snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; |
| 76 | + snps,reset-active-low; |
| 77 | + snps,reset-delays-us = <0 10000 30000>; |
| 78 | + status = "okay"; |
| 79 | + |
| 80 | + phy1: ethernet-phy@1 { |
| 81 | + reg = <1>; |
154 | 82 | };
|
| 83 | +}; |
| 84 | + |
| 85 | +&i2c0 { |
| 86 | + pinctrl-names = "default"; |
| 87 | + pinctrl-0 = <&i2c0_pins_a>; |
| 88 | + /* pull-ups and devices require AXP221 DLDO3 */ |
| 89 | + status = "failed"; |
| 90 | +}; |
| 91 | + |
| 92 | +&i2c1 { |
| 93 | + pinctrl-names = "default"; |
| 94 | + pinctrl-0 = <&i2c1_pins_a>; |
| 95 | + status = "okay"; |
| 96 | +}; |
| 97 | + |
| 98 | +&i2c2 { |
| 99 | + pinctrl-names = "default"; |
| 100 | + pinctrl-0 = <&i2c2_pins_a>; |
| 101 | + status = "okay"; |
| 102 | + |
| 103 | + pcf8563: rtc@51 { |
| 104 | + compatible = "nxp,pcf8563"; |
| 105 | + reg = <0x51>; |
| 106 | + }; |
| 107 | +}; |
| 108 | + |
| 109 | +&mmc0 { |
| 110 | + pinctrl-names = "default"; |
| 111 | + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>; |
| 112 | + vmmc-supply = <®_vcc3v0>; |
| 113 | + bus-width = <4>; |
| 114 | + cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ |
| 115 | + cd-inverted; |
| 116 | + status = "okay"; |
| 117 | +}; |
| 118 | + |
| 119 | +&mmc0_pins_a { |
| 120 | + /* external pull-ups missing for some pins */ |
| 121 | + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
| 122 | +}; |
155 | 123 |
|
156 |
| - reg_usb1_vbus: usb1-vbus { |
157 |
| - pinctrl-0 = <&usb1_vbus_pin_a>; |
158 |
| - gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ |
159 |
| - status = "okay"; |
| 124 | +&ohci0 { |
| 125 | + status = "okay"; |
| 126 | +}; |
| 127 | + |
| 128 | +&pio { |
| 129 | + mmc0_cd_pin_hummingbird: mmc0_cd_pin@0 { |
| 130 | + allwinner,pins = "PA8"; |
| 131 | + allwinner,function = "gpio_in"; |
| 132 | + allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 133 | + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
160 | 134 | };
|
161 | 135 | };
|
| 136 | + |
| 137 | +®_usb1_vbus { |
| 138 | + gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ |
| 139 | + status = "okay"; |
| 140 | +}; |
| 141 | + |
| 142 | +&uart0 { |
| 143 | + pinctrl-names = "default"; |
| 144 | + pinctrl-0 = <&uart0_pins_a>; |
| 145 | + status = "okay"; |
| 146 | +}; |
| 147 | + |
| 148 | +&usb1_vbus_pin_a { |
| 149 | + /* different pin from sunxi-common-regulators */ |
| 150 | + allwinner,pins = "PH24"; |
| 151 | +}; |
| 152 | + |
| 153 | +&usbphy { |
| 154 | + usb1_vbus-supply = <®_usb1_vbus>; |
| 155 | + status = "okay"; |
| 156 | +}; |
0 commit comments