|
3 | 3 | /dts-v1/;
|
4 | 4 |
|
5 | 5 | #include <dt-bindings/gpio/gpio.h>
|
| 6 | +#include <dt-bindings/input/input.h> |
| 7 | +#include <dt-bindings/leds/common.h> |
6 | 8 | #include <dt-bindings/regulator/richtek,rt5190a-regulator.h>
|
7 | 9 |
|
8 | 10 | #include "mt7988a.dtsi"
|
|
12 | 14 | model = "Banana Pi BPI-R4";
|
13 | 15 | chassis-type = "embedded";
|
14 | 16 |
|
| 17 | + aliases { |
| 18 | + ethernet0 = &gmac0; |
| 19 | + ethernet1 = &gmac1; |
| 20 | + ethernet2 = &gmac2; |
| 21 | + led-boot = &led_green; |
| 22 | + led-failsafe = &led_green; |
| 23 | + led-running = &led_green; |
| 24 | + led-upgrade = &led_green; |
| 25 | + }; |
| 26 | + |
15 | 27 | chosen {
|
16 | 28 | stdout-path = "serial0:115200n8";
|
| 29 | + bootargs = "loglevel=8 pci=pcie_bus_perf ubi.block=0,fit root=/dev/fit0"; |
| 30 | + rootdisk-spim-nand = <&ubi_rootfs>; |
| 31 | + }; |
| 32 | + |
| 33 | + memory { |
| 34 | + reg = <0x00 0x40000000 0x00 0x10000000>; |
17 | 35 | };
|
18 | 36 |
|
19 | 37 | reg_1p8v: regulator-1p8v {
|
|
33 | 51 | regulator-boot-on;
|
34 | 52 | regulator-always-on;
|
35 | 53 | };
|
| 54 | + |
| 55 | + gpio-keys { |
| 56 | + compatible = "gpio-keys"; |
| 57 | + |
| 58 | + wps { |
| 59 | + label = "WPS"; |
| 60 | + linux,code = <KEY_RESTART>; |
| 61 | + gpios = <&pio 14 GPIO_ACTIVE_LOW>; |
| 62 | + }; |
| 63 | + }; |
| 64 | + |
| 65 | + gpio-leds { |
| 66 | + compatible = "gpio-leds"; |
| 67 | + |
| 68 | + led_green: led-green { |
| 69 | + function = LED_FUNCTION_STATUS; |
| 70 | + color = <LED_COLOR_ID_GREEN>; |
| 71 | + gpios = <&pio 79 GPIO_ACTIVE_HIGH>; |
| 72 | + default-state = "on"; |
| 73 | + }; |
| 74 | + |
| 75 | + led_blue: led-blue { |
| 76 | + function = LED_FUNCTION_WPS; |
| 77 | + color = <LED_COLOR_ID_BLUE>; |
| 78 | + gpios = <&pio 63 GPIO_ACTIVE_HIGH>; |
| 79 | + default-state = "off"; |
| 80 | + }; |
| 81 | + }; |
| 82 | +}; |
| 83 | + |
| 84 | +&cci { |
| 85 | + proc-supply = <&rt5190_buck3>; |
36 | 86 | };
|
37 | 87 |
|
38 | 88 | &cpu0 {
|
|
79 | 129 | };
|
80 | 130 | };
|
81 | 131 |
|
| 132 | +ð { |
| 133 | + status = "okay"; |
| 134 | +}; |
| 135 | + |
| 136 | +&gmac0 { |
| 137 | + status = "okay"; |
| 138 | +}; |
| 139 | + |
| 140 | +&switch { |
| 141 | + status = "okay"; |
| 142 | +}; |
| 143 | + |
| 144 | +&gsw_phy0 { |
| 145 | + pinctrl-names = "gbe-led"; |
| 146 | + pinctrl-0 = <&gbe0_led0_pins>; |
| 147 | +}; |
| 148 | + |
| 149 | +&gsw_port0 { |
| 150 | + label = "wan"; |
| 151 | +}; |
| 152 | + |
| 153 | +&gsw_phy0_led0 { |
| 154 | + status = "okay"; |
| 155 | + color = <LED_COLOR_ID_GREEN>; |
| 156 | +}; |
| 157 | + |
| 158 | +&gsw_phy1 { |
| 159 | + pinctrl-names = "gbe-led"; |
| 160 | + pinctrl-0 = <&gbe1_led0_pins>; |
| 161 | +}; |
| 162 | + |
| 163 | +&gsw_phy1_led0 { |
| 164 | + status = "okay"; |
| 165 | + color = <LED_COLOR_ID_GREEN>; |
| 166 | +}; |
| 167 | + |
| 168 | +&gsw_phy2 { |
| 169 | + pinctrl-names = "gbe-led"; |
| 170 | + pinctrl-0 = <&gbe2_led0_pins>; |
| 171 | +}; |
| 172 | + |
| 173 | +&gsw_phy2_led0 { |
| 174 | + status = "okay"; |
| 175 | + color = <LED_COLOR_ID_GREEN>; |
| 176 | +}; |
| 177 | + |
| 178 | +&gsw_phy3 { |
| 179 | + pinctrl-names = "gbe-led"; |
| 180 | + pinctrl-0 = <&gbe3_led0_pins>; |
| 181 | +}; |
| 182 | + |
| 183 | +&gsw_phy3_led0 { |
| 184 | + status = "okay"; |
| 185 | + color = <LED_COLOR_ID_GREEN>; |
| 186 | +}; |
| 187 | + |
82 | 188 | &i2c0 {
|
83 | 189 | pinctrl-names = "default";
|
84 | 190 | pinctrl-0 = <&i2c0_pins>;
|
|
146 | 252 | #address-cells = <1>;
|
147 | 253 | #size-cells = <0>;
|
148 | 254 |
|
149 |
| - i2c@0 { |
| 255 | + i2c@0 { //eeprom,rtc,ngff |
150 | 256 | #address-cells = <1>;
|
151 | 257 | #size-cells = <0>;
|
152 | 258 | reg = <0>;
|
153 | 259 |
|
154 | 260 | pcf8563: rtc@51 {
|
155 | 261 | compatible = "nxp,pcf8563";
|
156 | 262 | reg = <0x51>;
|
| 263 | + //interrupts = <&pio 6 IRQ_TYPE_LEVEL_LOW>; |
157 | 264 | #clock-cells = <0>;
|
| 265 | + //status = "disabled"; |
158 | 266 | };
|
159 | 267 |
|
160 | 268 | eeprom@57 {
|
161 | 269 | compatible = "atmel,24c02";
|
162 | 270 | reg = <0x57>;
|
| 271 | + address-bits = <8>; |
| 272 | + page-size = <8>; |
163 | 273 | size = <256>;
|
164 | 274 | };
|
165 | 275 |
|
|
176 | 286 | #size-cells = <0>;
|
177 | 287 | reg = <2>;
|
178 | 288 | };
|
| 289 | + |
| 290 | + i2c_wifi: i2c@3 { |
| 291 | + #address-cells = <1>; |
| 292 | + #size-cells = <0>; |
| 293 | + reg = <3>; |
| 294 | + |
| 295 | + status = "disabled"; |
| 296 | + }; |
179 | 297 | };
|
180 | 298 | };
|
181 | 299 |
|
|
392 | 510 | status = "okay";
|
393 | 511 | };
|
394 | 512 |
|
| 513 | +/*&fan { |
| 514 | + pwms = <&pwm 0 50000>; |
| 515 | + status = "okay"; |
| 516 | +};*/ |
| 517 | + |
395 | 518 | &serial0 {
|
396 | 519 | status = "okay";
|
397 | 520 | };
|
398 | 521 |
|
| 522 | +&spi0 { |
| 523 | + pinctrl-names = "default"; |
| 524 | + pinctrl-0 = <&spi0_flash_pins>; |
| 525 | + status = "okay"; |
| 526 | + |
| 527 | + spi_nand: spi_nand@0 { |
| 528 | + compatible = "spi-nand"; |
| 529 | + reg = <0>; |
| 530 | + spi-max-frequency = <52000000>; |
| 531 | + spi-tx-buswidth = <4>; |
| 532 | + spi-rx-buswidth = <4>; |
| 533 | + }; |
| 534 | +}; |
| 535 | + |
| 536 | +&spi1 { |
| 537 | + pinctrl-names = "default"; |
| 538 | + pinctrl-0 = <&spi1_pins>; |
| 539 | + status = "okay"; |
| 540 | +}; |
| 541 | + |
| 542 | +&spi_nand { |
| 543 | + partitions { |
| 544 | + compatible = "fixed-partitions"; |
| 545 | + #address-cells = <1>; |
| 546 | + #size-cells = <1>; |
| 547 | + |
| 548 | + partition@0 { |
| 549 | + label = "bl2"; |
| 550 | + reg = <0x0 0x200000>; |
| 551 | + read-only; |
| 552 | + }; |
| 553 | + |
| 554 | + partition@200000 { |
| 555 | + label = "ubi"; |
| 556 | + reg = <0x200000 0x7e00000>; |
| 557 | + compatible = "linux,ubi"; |
| 558 | + |
| 559 | + volumes { |
| 560 | + ubi-volume-ubootenv { |
| 561 | + volname = "ubootenv"; |
| 562 | + nvmem-layout { |
| 563 | + compatible = "u-boot,env-redundant-bool-layout"; |
| 564 | + }; |
| 565 | + }; |
| 566 | + |
| 567 | + ubi-volume-ubootenv2 { |
| 568 | + volname = "ubootenv2"; |
| 569 | + nvmem-layout { |
| 570 | + compatible = "u-boot,env-redundant-bool-layout"; |
| 571 | + }; |
| 572 | + }; |
| 573 | + |
| 574 | + ubi_rootfs: ubi-volume-fit { |
| 575 | + volname = "fit"; |
| 576 | + }; |
| 577 | + }; |
| 578 | + }; |
| 579 | + }; |
| 580 | +}; |
| 581 | + |
399 | 582 | &ssusb1 {
|
400 | 583 | status = "okay";
|
401 | 584 | };
|
|
407 | 590 | &watchdog {
|
408 | 591 | status = "okay";
|
409 | 592 | };
|
| 593 | + |
| 594 | +/*&xphy { |
| 595 | + status = "okay"; |
| 596 | +};*/ |
0 commit comments