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