2012-11-02 20:07:47 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-09-29 16:22:55 +00:00
|
|
|
#include "amazonse.dtsi"
|
2012-11-02 20:07:47 +00:00
|
|
|
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2012-11-02 20:07:47 +00:00
|
|
|
/ {
|
2012-12-15 02:00:20 +00:00
|
|
|
model = "DGN1000B - Netgear DGN1000B";
|
|
|
|
|
2012-11-02 20:07:47 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
|
2016-01-01 21:18:08 +00:00
|
|
|
|
2016-10-04 18:34:03 +00:00
|
|
|
aliases {
|
|
|
|
led-boot = &power;
|
|
|
|
led-failsafe = &power;
|
|
|
|
led-running = &power;
|
2016-01-01 21:18:47 +00:00
|
|
|
|
2016-10-04 18:34:03 +00:00
|
|
|
led-dsl = &dsl;
|
|
|
|
led-internet = &online_green;
|
2016-01-01 21:18:08 +00:00
|
|
|
};
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
reg = <0x0 0x1000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
fpi@10000000 {
|
|
|
|
gpio: pinmux@E100B10 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&state_default>;
|
|
|
|
|
|
|
|
state_default: pinmux {
|
|
|
|
asc {
|
|
|
|
lantiq,groups = "asc";
|
|
|
|
lantiq,function = "asc";
|
|
|
|
};
|
2012-12-15 02:00:20 +00:00
|
|
|
keys_in {
|
|
|
|
lantiq,pins = "io0",/* "io25", */"io29";
|
2012-11-02 20:07:47 +00:00
|
|
|
lantiq,pull = <2>;
|
2012-12-15 02:00:20 +00:00
|
|
|
lantiq,open-drain = <1>;
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
};
|
2016-01-17 19:56:03 +00:00
|
|
|
pins_spi_default: pins_spi_default {
|
|
|
|
spi_in {
|
|
|
|
lantiq,groups = "spi_di";
|
|
|
|
lantiq,function = "spi";
|
|
|
|
};
|
|
|
|
spi_out {
|
|
|
|
lantiq,groups = "spi_do", "spi_clk",
|
|
|
|
"spi_cs1";
|
|
|
|
lantiq,function = "spi";
|
|
|
|
lantiq,output = <1>;
|
|
|
|
};
|
|
|
|
};
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
etop@E180000 {
|
2012-12-15 02:00:20 +00:00
|
|
|
phy-mode = "mii";
|
2012-11-02 20:07:47 +00:00
|
|
|
mac-address = [ 00 11 22 33 44 55 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
spi@E100800 {
|
2016-01-17 19:56:03 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pins_spi_default>;
|
|
|
|
|
|
|
|
m25p80@1 {
|
2012-11-02 20:07:47 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2015-12-02 17:20:39 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2016-01-17 19:56:03 +00:00
|
|
|
reg = <1 0>;
|
2012-11-02 20:07:47 +00:00
|
|
|
spi-max-frequency = <5000000>;
|
|
|
|
|
2016-05-02 18:50:18 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-02 18:49:04 +00:00
|
|
|
|
2012-12-15 02:00:20 +00:00
|
|
|
ifxhcd@E101000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
2012-12-15 02:00:20 +00:00
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <100>;
|
|
|
|
|
2012-11-02 20:07:47 +00:00
|
|
|
reset {
|
2012-12-15 02:00:20 +00:00
|
|
|
label = "reset";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
2012-12-15 02:00:20 +00:00
|
|
|
rfkill {
|
|
|
|
label = "rfkill";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RFKILL>;
|
2012-12-15 02:00:20 +00:00
|
|
|
};
|
2012-11-02 20:07:47 +00:00
|
|
|
wps {
|
2012-12-15 02:00:20 +00:00
|
|
|
label = "wps";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
};
|
2012-12-15 02:00:20 +00:00
|
|
|
|
2012-11-02 20:07:47 +00:00
|
|
|
gpio-leds {
|
2016-01-01 21:17:50 +00:00
|
|
|
compatible = "gpio-leds";
|
2016-01-01 21:18:08 +00:00
|
|
|
dsl: dsl {
|
2016-01-01 21:18:54 +00:00
|
|
|
label = "dgn1000b:green:dsl";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
2012-11-02 20:07:47 +00:00
|
|
|
default-state = "on";
|
|
|
|
};
|
2016-01-01 21:18:54 +00:00
|
|
|
online_green: online {
|
|
|
|
label = "dgn1000b:green:online";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
2012-11-02 20:07:47 +00:00
|
|
|
default-state = "on";
|
|
|
|
};
|
2012-12-15 02:00:20 +00:00
|
|
|
online2 {
|
2016-01-01 21:18:54 +00:00
|
|
|
label = "dgn1000b:red:online";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
2012-11-02 20:07:47 +00:00
|
|
|
default-state = "on";
|
|
|
|
};
|
|
|
|
wps {
|
2016-01-01 21:18:54 +00:00
|
|
|
label = "dgn1000b:green:wps";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
2012-11-02 20:07:47 +00:00
|
|
|
default-state = "on";
|
|
|
|
};
|
2016-01-01 21:18:08 +00:00
|
|
|
power: power {
|
2016-01-01 21:18:54 +00:00
|
|
|
label = "dgn1000b:green:power";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
2016-01-01 21:18:47 +00:00
|
|
|
default-state = "keep";
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
2016-01-01 21:18:54 +00:00
|
|
|
/*
|
|
|
|
power red is missing
|
|
|
|
*/
|
2012-11-02 20:07:47 +00:00
|
|
|
};
|
|
|
|
};
|