diff options
-rw-r--r-- | arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts | 272 |
1 files changed, 136 insertions, 136 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts b/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts index 89e38e9e0be6..edfb5b37939e 100644 --- a/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts +++ b/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts | |||
@@ -49,182 +49,182 @@ | |||
49 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 49 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
50 | 50 | ||
51 | / { | 51 | / { |
52 | model = "Banana Pi BPI-M1-Plus"; | 52 | model = "Banana Pi BPI-M1-Plus"; |
53 | compatible = "sinovoip,bpi-m1-plus", "allwinner,sun7i-a20"; | 53 | compatible = "sinovoip,bpi-m1-plus", "allwinner,sun7i-a20"; |
54 | 54 | ||
55 | aliases { | 55 | aliases { |
56 | serial0 = &uart0; | 56 | serial0 = &uart0; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | chosen { | 59 | chosen { |
60 | stdout-path = "serial0:115200n8"; | 60 | stdout-path = "serial0:115200n8"; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | leds { | 63 | leds { |
64 | compatible = "gpio-leds"; | 64 | compatible = "gpio-leds"; |
65 | pinctrl-names = "default"; | 65 | pinctrl-names = "default"; |
66 | pinctrl-0 = <&led_pins_bananapi>; | 66 | pinctrl-0 = <&led_pins_bananapi>; |
67 | 67 | ||
68 | green { | 68 | green { |
69 | label = "bananapi-m1-plus:green:usr"; | 69 | label = "bananapi-m1-plus:green:usr"; |
70 | gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; | 70 | gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | red { | 73 | red { |
74 | label = "bananapi-m1-plus:red:usr"; | 74 | label = "bananapi-m1-plus:red:usr"; |
75 | gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>; | 75 | gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>; |
76 | linux,default-trigger = "default-on"; | 76 | linux,default-trigger = "default-on"; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | }; | 79 | }; |
80 | 80 | ||
81 | mmc3_pwrseq: mmc3_pwrseq { | 81 | mmc3_pwrseq: mmc3_pwrseq { |
82 | compatible = "mmc-pwrseq-simple"; | 82 | compatible = "mmc-pwrseq-simple"; |
83 | pinctrl-names = "default"; | 83 | pinctrl-names = "default"; |
84 | pinctrl-0 = <&mmc3_pwrseq_pin_bananapim1plus>; | 84 | pinctrl-0 = <&mmc3_pwrseq_pin_bananapim1plus>; |
85 | reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 WL-PMU-EN */ | 85 | reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 WL-PMU-EN */ |
86 | }; | 86 | }; |
87 | 87 | ||
88 | reg_gmac_3v3: gmac-3v3 { | 88 | reg_gmac_3v3: gmac-3v3 { |
89 | compatible = "regulator-fixed"; | 89 | compatible = "regulator-fixed"; |
90 | pinctrl-names = "default"; | 90 | pinctrl-names = "default"; |
91 | pinctrl-0 = <&gmac_power_pin_bananapi>; | 91 | pinctrl-0 = <&gmac_power_pin_bananapi>; |
92 | regulator-name = "gmac-3v3"; | 92 | regulator-name = "gmac-3v3"; |
93 | regulator-min-microvolt = <3300000>; | 93 | regulator-min-microvolt = <3300000>; |
94 | regulator-max-microvolt = <3300000>; | 94 | regulator-max-microvolt = <3300000>; |
95 | startup-delay-us = <100000>; | 95 | startup-delay-us = <100000>; |
96 | enable-active-high; | 96 | enable-active-high; |
97 | gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; | 97 | gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; |
98 | }; | 98 | }; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | &ahci { | 101 | &ahci { |
102 | status = "okay"; | 102 | status = "okay"; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | &codec { | 105 | &codec { |
106 | status = "okay"; | 106 | status = "okay"; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | &ehci0 { | 109 | &ehci0 { |
110 | status = "okay"; | 110 | status = "okay"; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | &ehci1 { | 113 | &ehci1 { |
114 | status = "okay"; | 114 | status = "okay"; |
115 | }; | 115 | }; |
116 | 116 | ||
117 | &gmac { | 117 | &gmac { |
118 | pinctrl-names = "default"; | 118 | pinctrl-names = "default"; |
119 | pinctrl-0 = <&gmac_pins_rgmii_a>; | 119 | pinctrl-0 = <&gmac_pins_rgmii_a>; |
120 | phy = <&phy1>; | 120 | phy = <&phy1>; |
121 | phy-mode = "rgmii"; | 121 | phy-mode = "rgmii"; |
122 | phy-supply = <®_gmac_3v3>; | 122 | phy-supply = <®_gmac_3v3>; |
123 | status = "okay"; | 123 | status = "okay"; |
124 | 124 | ||
125 | phy1: ethernet-phy@1 { | 125 | phy1: ethernet-phy@1 { |
126 | reg = <1>; | 126 | reg = <1>; |
127 | }; | 127 | }; |
128 | }; | 128 | }; |
129 | 129 | ||
130 | &i2c0 { | 130 | &i2c0 { |
131 | pinctrl-names = "default"; | 131 | pinctrl-names = "default"; |
132 | pinctrl-0 = <&i2c0_pins_a>; | 132 | pinctrl-0 = <&i2c0_pins_a>; |
133 | status = "okay"; | 133 | status = "okay"; |
134 | 134 | ||
135 | axp209: pmic@34 { | 135 | axp209: pmic@34 { |
136 | compatible = "x-powers,axp209"; | 136 | compatible = "x-powers,axp209"; |
137 | reg = <0x34>; | 137 | reg = <0x34>; |
138 | interrupt-parent = <&nmi_intc>; | 138 | interrupt-parent = <&nmi_intc>; |
139 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | 139 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
140 | 140 | ||
141 | interrupt-controller; | 141 | interrupt-controller; |
142 | #interrupt-cells = <1>; | 142 | #interrupt-cells = <1>; |
143 | }; | 143 | }; |
144 | }; | 144 | }; |
145 | 145 | ||
146 | &ir0 { | 146 | &ir0 { |
147 | pinctrl-names = "default"; | 147 | pinctrl-names = "default"; |
148 | pinctrl-0 = <&ir0_rx_pins_a>; | 148 | pinctrl-0 = <&ir0_rx_pins_a>; |
149 | status = "okay"; | 149 | status = "okay"; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | &mmc0 { | 152 | &mmc0 { |
153 | pinctrl-names = "default"; | 153 | pinctrl-names = "default"; |
154 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>; | 154 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>; |
155 | vmmc-supply = <®_vcc3v3>; | 155 | vmmc-supply = <®_vcc3v3>; |
156 | bus-width = <4>; | 156 | bus-width = <4>; |
157 | cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ | 157 | cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ |
158 | cd-inverted; | 158 | cd-inverted; |
159 | status = "okay"; | 159 | status = "okay"; |
160 | }; | 160 | }; |
161 | 161 | ||
162 | &mmc3 { | 162 | &mmc3 { |
163 | #address-cells = <1>; | 163 | #address-cells = <1>; |
164 | #size-cells = <0>; | 164 | #size-cells = <0>; |
165 | pinctrl-names = "default"; | 165 | pinctrl-names = "default"; |
166 | pinctrl-0 = <&mmc3_pins_a>; | 166 | pinctrl-0 = <&mmc3_pins_a>; |
167 | vmmc-supply = <®_vcc3v3>; | 167 | vmmc-supply = <®_vcc3v3>; |
168 | mmc-pwrseq = <&mmc3_pwrseq>; | 168 | mmc-pwrseq = <&mmc3_pwrseq>; |
169 | bus-width = <4>; | 169 | bus-width = <4>; |
170 | non-removable; | 170 | non-removable; |
171 | enable-sdio-wakeup; | 171 | enable-sdio-wakeup; |
172 | status = "okay"; | 172 | status = "okay"; |
173 | 173 | ||
174 | brcmf: bcrmf@1 { | 174 | brcmf: bcrmf@1 { |
175 | reg = <1>; | 175 | reg = <1>; |
176 | compatible = "brcm,bcm4329-fmac"; | 176 | compatible = "brcm,bcm4329-fmac"; |
177 | interrupt-parent = <&pio>; | 177 | interrupt-parent = <&pio>; |
178 | interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>; | 178 | interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>; |
179 | interrupt-names = "host-wake"; | 179 | interrupt-names = "host-wake"; |
180 | }; | 180 | }; |
181 | }; | 181 | }; |
182 | 182 | ||
183 | &mmc3_pins_a { | 183 | &mmc3_pins_a { |
184 | /* AP6210 requires pull-up */ | 184 | /* AP6210 requires pull-up */ |
185 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; | 185 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
186 | }; | 186 | }; |
187 | 187 | ||
188 | &ohci0 { | 188 | &ohci0 { |
189 | status = "okay"; | 189 | status = "okay"; |
190 | }; | 190 | }; |
191 | 191 | ||
192 | &ohci1 { | 192 | &ohci1 { |
193 | status = "okay"; | 193 | status = "okay"; |
194 | }; | 194 | }; |
195 | 195 | ||
196 | &pio { | 196 | &pio { |
197 | gmac_power_pin_bananapi: gmac_power_pin@0 { | 197 | gmac_power_pin_bananapi: gmac_power_pin@0 { |
198 | allwinner,pins = "PH23"; | 198 | allwinner,pins = "PH23"; |
199 | allwinner,function = "gpio_out"; | 199 | allwinner,function = "gpio_out"; |
200 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 200 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
201 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 201 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
202 | }; | 202 | }; |
203 | 203 | ||
204 | led_pins_bananapi: led_pins@0 { | 204 | led_pins_bananapi: led_pins@0 { |
205 | allwinner,pins = "PH24", "PG2"; | 205 | allwinner,pins = "PH24", "PG2"; |
206 | allwinner,function = "gpio_out"; | 206 | allwinner,function = "gpio_out"; |
207 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 207 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
208 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 208 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
209 | }; | 209 | }; |
210 | 210 | ||
211 | mmc0_cd_pin_bananapi: mmc0_cd_pin@0 { | 211 | mmc0_cd_pin_bananapi: mmc0_cd_pin@0 { |
212 | allwinner,pins = "PH10"; | 212 | allwinner,pins = "PH10"; |
213 | allwinner,function = "gpio_in"; | 213 | allwinner,function = "gpio_in"; |
214 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 214 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
215 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; | 215 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
216 | }; | 216 | }; |
217 | 217 | ||
218 | mmc3_pwrseq_pin_bananapim1plus: mmc3_pwrseq_pin@0 { | 218 | mmc3_pwrseq_pin_bananapim1plus: mmc3_pwrseq_pin@0 { |
219 | allwinner,pins = "PH22"; | 219 | allwinner,pins = "PH22"; |
220 | allwinner,function = "gpio_out"; | 220 | allwinner,function = "gpio_out"; |
221 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 221 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
222 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 222 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
223 | }; | 223 | }; |
224 | }; | 224 | }; |
225 | 225 | ||
226 | &uart0 { | 226 | &uart0 { |
227 | pinctrl-names = "default"; | 227 | pinctrl-names = "default"; |
228 | pinctrl-0 = <&uart0_pins_a>; | 228 | pinctrl-0 = <&uart0_pins_a>; |
229 | status = "okay"; | 229 | status = "okay"; |
230 | }; | 230 | }; |