2db37120e9baf5d65fd05e40ceb2caba2b2d9f69
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt5350_allnet_all5003.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "allnet,all5003", "ralink,rt5350-soc";
8 model = "Allnet ALL5003";
9
10 i2c-gpio {
11 #address-cells = <1>;
12 #size-cells = <0>;
13
14 compatible = "i2c-gpio";
15 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
16 i2c-gpio,delay-us = <10>;
17
18 pcf0: iexp@38 {
19 #gpio-cells = <2>;
20 compatible = "inxp,pcf8574a";
21 reg = <0x38>;
22 gpio-controller;
23 };
24
25 hwmon@4b {
26 compatible = "national,lm92";
27 reg = <0x4b>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 ld1 {
35 label = "green:ld1";
36 gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
37 };
38
39 ld2 {
40 label = "green:ld2";
41 gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
42 };
43 };
44 };
45
46 &spi0 {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <10000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 factory: partition@40000 {
72 compatible = "nvmem-cells";
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77 read-only;
78
79 eeprom_factory_0: eeprom@0 {
80 reg = <0x0 0x200>;
81 };
82
83 macaddr_factory_28: macaddr@28 {
84 reg = <0x28 0x6>;
85 };
86 };
87
88 partition@50000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x50000 0x1fb0000>;
92 };
93 };
94 };
95 };
96
97 &state_default {
98 gpio {
99 groups = "i2c", "jtag", "uartf";
100 function = "gpio";
101 };
102 };
103
104 &ethernet {
105 nvmem-cells = <&macaddr_factory_28>;
106 nvmem-cell-names = "mac-address";
107 };
108
109 &esw {
110 mediatek,portmap = <0x3f>;
111 };
112
113 &wmac {
114 nvmem-cells = <&eeprom_factory_0>;
115 nvmem-cell-names = "eeprom";
116 };