diff options
author | Chen-Yu Tsai <wens@csie.org> | 2015-01-15 10:50:15 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-01-21 03:59:17 -0500 |
commit | 19f3af1df6d714dbfa89b2357efffd41cbc6b82c (patch) | |
tree | efbd13dbd2ff3d90e941fd99d7e4686500962187 /arch/arm/boot/dts/sun6i-a31-hummingbird.dts | |
parent | cd23e2e5ce874cef5c1adc469ca93c9a373b3804 (diff) |
ARM: dts: sun6i: Convert hummingbird a31 dts to label references
Using label references is preferred when override settings from the
included dtsi.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun6i-a31-hummingbird.dts')
-rw-r--r-- | arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 181 |
1 files changed, 88 insertions, 93 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts index ebd5f7854b1b..8b61b1b342e0 100644 --- a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts +++ b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts | |||
@@ -61,101 +61,96 @@ | |||
61 | chosen { | 61 | chosen { |
62 | bootargs = "earlyprintk console=ttyS0,115200"; | 62 | bootargs = "earlyprintk console=ttyS0,115200"; |
63 | }; | 63 | }; |
64 | }; | ||
65 | |||
66 | &ehci0 { | ||
67 | status = "okay"; | ||
68 | }; | ||
64 | 69 | ||
65 | soc@01c00000 { | 70 | &gmac { |
66 | mmc0: mmc@01c0f000 { | 71 | pinctrl-names = "default"; |
67 | pinctrl-names = "default"; | 72 | pinctrl-0 = <&gmac_pins_rgmii_a>; |
68 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>; | 73 | phy = <&phy1>; |
69 | vmmc-supply = <®_vcc3v0>; | 74 | phy-mode = "rgmii"; |
70 | bus-width = <4>; | 75 | snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; |
71 | cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ | 76 | snps,reset-active-low; |
72 | cd-inverted; | 77 | snps,reset-delays-us = <0 10000 30000>; |
73 | status = "okay"; | 78 | status = "okay"; |
74 | }; | 79 | |
75 | 80 | phy1: ethernet-phy@1 { | |
76 | usbphy: phy@01c19400 { | 81 | reg = <1>; |
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 | }; | ||
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 { | 124 | &ohci0 { |
157 | pinctrl-0 = <&usb1_vbus_pin_a>; | 125 | status = "okay"; |
158 | gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ | 126 | }; |
159 | status = "okay"; | 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 | }; | ||