ramips: dts: drop memory nodes
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_samknows_whitebox-v8.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
9 model = "SamKnows Whitebox 8";
10
11 aliases {
12 led-boot = &led_wps;
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,57600";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_wps: wps {
26 label = "sk-wb8:green:wps";
27 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
28 };
29
30 usb {
31 label = "sk-wb8:green:usb";
32 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
34 linux,default-trigger = "usbport";
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41 wps {
42 label = "wps";
43 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46 reset {
47 label = "reset";
48 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &spi0 {
55 status = "okay";
56
57 m25p80@0 {
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <10000000>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x30000>;
70 read-only;
71 };
72
73 partition@30000 {
74 label = "u-boot-env";
75 reg = <0x30000 0x10000>;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82 };
83
84 partition@50000 {
85 compatible = "denx,uimage";
86 label = "firmware";
87 reg = <0x50000 0xfb0000>;
88 };
89 };
90 };
91 };
92
93 &pcie {
94 status = "okay";
95 };
96
97 &pcie0 {
98 mt76@0,0 {
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x8000>;
101 ieee80211-freq-limit = <5000000 6000000>;
102 };
103 };
104
105 &pcie1 {
106 mt76@0,0 {
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x0000>;
109 };
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0xe000>;
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
120 ralink,function = "gpio";
121 };
122 };
123 };