lantiq: fix up m25p80 device ids (#20975)
[openwrt/openwrt.git] / target / linux / lantiq / dts / DGN1000B.dts
1 /dts-v1/;
2
3 /include/ "amazonse.dtsi"
4
5 / {
6 model = "DGN1000B - Netgear DGN1000B";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 memory@0 {
13 reg = <0x0 0x1000000>;
14 };
15
16 fpi@10000000 {
17 gpio: pinmux@E100B10 {
18 pinctrl-names = "default";
19 pinctrl-0 = <&state_default>;
20
21 state_default: pinmux {
22 spi {
23 lantiq,groups = "spi", "spi_cs1";
24 lantiq,function = "spi";
25 };
26 asc {
27 lantiq,groups = "asc";
28 lantiq,function = "asc";
29 };
30 keys_in {
31 lantiq,pins = "io0",/* "io25", */"io29";
32 lantiq,pull = <2>;
33 lantiq,open-drain = <1>;
34 };
35 };
36 };
37
38 etop@E180000 {
39 phy-mode = "mii";
40 mac-address = [ 00 11 22 33 44 55 ];
41 };
42
43 spi@E100800 {
44 m25p80@0 {
45 #address-cells = <1>;
46 #size-cells = <1>;
47 compatible = "jedec,spi-nor";
48 reg = <0 0>;
49 spi-max-frequency = <5000000>;
50
51 partition@0 {
52 reg = <0x0 0x20000>;
53 label = "SPI (RO) U-Boot Image";
54 read-only;
55 };
56
57 partition@20000 {
58 reg = <0x20000 0x10000>;
59 label = "ENV_MAC";
60 read-only;
61 };
62
63 partition@30000 {
64 reg = <0x30000 0x10000>;
65 label = "DPF";
66 read-only;
67 };
68
69 partition@40000 {
70 reg = <0x40000 0x10000>;
71 label = "NVRAM";
72 read-only;
73 };
74
75 partition@500000 {
76 reg = <0x50000 0x003a0000>;
77 label = "kernel";
78 };
79 };
80 };
81 ifxhcd@E101000 {
82 status = "okay";
83 };
84 };
85
86 gpio-keys-polled {
87 compatible = "gpio-keys-polled";
88 #address-cells = <1>;
89 #size-cells = <0>;
90 poll-interval = <100>;
91
92 reset {
93 label = "reset";
94 gpios = <&gpio 0 1>;
95 linux,code = <0x198>;
96 };
97 rfkill {
98 label = "rfkill";
99 gpios = <&gpio 25 1>;
100 linux,code = <0xf7>;
101 };
102 wps {
103 label = "wps";
104 gpios = <&gpio 29 1>;
105 linux,code = <0x211>;
106 };
107 };
108
109 gpio-leds {
110 cmpatible = "gpio-leds";
111 dsl {
112 label = "dsl";
113 gpios = <&gpio 1 1>;
114 default-state = "on";
115 };
116 online {
117 label = "online";
118 gpios = <&gpio 2 1>;
119 default-state = "on";
120 };
121 online2 {
122 label = "online2";
123 gpios = <&gpio 3 1>;
124 default-state = "on";
125 };
126 wps {
127 label = "wps";
128 gpios = <&gpio 4 1>;
129 default-state = "on";
130 };
131 power {
132 label = "power";
133 gpios = <&gpio 13 1>;
134 default-state = "on";
135 };
136 };
137 };