/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+ leds {
+ boot = &power;
+ failsafe = &power;
+ running = &power;
+
+ usb = &usb1;
+ usb2 = &usb2;
+ };
};
memory@0 {
};
- spi@E100800 {
- compatible = "lantiq,spi-xway-broken";
- reg = <0xE100800 0x100>;
- interrupt-parent = <&icu0>;
- interrupts = <22 23 24>;
- #address-cells = <1>;
- #size-cells = <1>;
-
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0 0>;
- spi-max-frequency = <1000000>;
-
- partition@0 {
- reg = <0x0 0x20000>;
- label = "SPI (RO) U-Boot Image";
- read-only;
- };
-
- partition@20000 {
- reg = <0x20000 0x10000>;
- label = "ENV_MAC";
- read-only;
- };
-
- partition@30000 {
- reg = <0x30000 0x10000>;
- label = "DPF";
- read-only;
- };
-
- partition@40000 {
- reg = <0x40000 0x10000>;
- label = "NVRAM";
- read-only;
- };
-
- partition@500000 {
- reg = <0x50000 0x003a0000>;
- label = "kernel";
- };
- };
- };
-
gpio: pinmux@E100B10 {
compatible = "lantiq,pinctrl-xr9";
pinctrl-names = "default";
lantiq,groups = "stp";
lantiq,function = "stp";
};
- spi {
- lantiq,groups = "spi", "spi_cs4";
- lantiq,function = "spi";
- };
nand {
lantiq,groups = "nand cle", "nand ale",
"nand rd", "nand rdy";
lantiq,pull = <2>;
};
};
+ pins_spi_default: pins_spi_default {
+ spi_in {
+ lantiq,groups = "spi_di";
+ lantiq,function = "spi";
+ };
+ spi_out {
+ lantiq,groups = "spi_do", "spi_clk",
+ "spi_cs4";
+ lantiq,function = "spi";
+ lantiq,output = <1>;
+ };
+ };
};
eth@E108000 {
gpio-leds {
compatible = "gpio-leds";
- power {
- label = "power";
+ power: power {
+ label = "easy80920:green:power";
gpios = <&stp 9 0>;
- default-state = "on";
+ default-state = "keep";
};
warning {
- label = "warning";
+ label = "easy80920:green:warning";
gpios = <&stp 22 0>;
};
fxs1 {
- label = "fxs1";
+ label = "easy80920:green:fxs1";
gpios = <&stp 21 0>;
};
fxs2 {
- label = "fxs2";
+ label = "easy80920:green:fxs2";
gpios = <&stp 20 0>;
};
fxo {
- label = "fxo";
+ label = "easy80920:green:fxo";
gpios = <&stp 19 0>;
};
- usb1 {
- label = "usb1";
+ usb1: usb1 {
+ label = "easy80920:green:usb1";
gpios = <&stp 18 0>;
};
- usb2 {
- label = "usb2";
+ usb2: usb2 {
+ label = "easy80920:green:usb2";
gpios = <&stp 15 0>;
};
sd {
- label = "sd";
+ label = "easy80920:green:sd";
gpios = <&stp 14 0>;
};
wps {
- label = "wps";
+ label = "easy80920:green:wps";
gpios = <&stp 12 0>;
};
};
};
+
+&spi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pins_spi_default>;
+
+ status = "ok";
+
+ m25p80@4 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "jedec,spi-nor";
+ reg = <4 0>;
+ spi-max-frequency = <1000000>;
+
+ partition@0 {
+ reg = <0x0 0x20000>;
+ label = "SPI (RO) U-Boot Image";
+ read-only;
+ };
+
+ partition@20000 {
+ reg = <0x20000 0x10000>;
+ label = "ENV_MAC";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x30000 0x10000>;
+ label = "DPF";
+ read-only;
+ };
+
+ partition@40000 {
+ reg = <0x40000 0x10000>;
+ label = "NVRAM";
+ read-only;
+ };
+
+ partition@500000 {
+ reg = <0x50000 0x003a0000>;
+ label = "kernel";
+ };
+ };
+};