Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/E1700.dts
/* | /* | ||||
* Device Tree file for the Linksys E1700 | * Device Tree file for the Linksys E1700 | ||||
* | * | ||||
* Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org> | * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org> | ||||
* | * | ||||
* This file is licensed under the terms of the GNU General Public | * This file is licensed under the terms of the GNU General Public | ||||
* License version 2. This program is licensed "as is" without any | * License version 2. This program is licensed "as is" without any | ||||
* warranty of any kind, whether express or implied. | * warranty of any kind, whether express or implied. | ||||
*/ | */ | ||||
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "linksys,e1700", "ralink,mt7620a-soc"; | compatible = "linksys,e1700", "ralink,mt7620a-soc"; | ||||
model = "Linksys E1700"; | model = "Linksys E1700"; | ||||
gpio-keys-polled { | gpio-keys-polled { | ||||
compatible = "gpio-keys-polled"; | compatible = "gpio-keys-polled"; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
poll-interval = <20>; | poll-interval = <20>; | ||||
reset { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio0 1 0>; | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "wps"; | label = "wps"; | ||||
gpios = <&gpio0 2 0>; | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; | ||||
linux,code = <0x211>; | linux,code = <KEY_WPS_BUTTON>; | ||||
}; | }; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
power { | power { | ||||
label = "e1700:green:power"; | label = "e1700:green:power"; | ||||
gpios = <&gpio0 10 1>; | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wan { | wan { | ||||
label = "e1700:green:wps"; | label = "e1700:green:wps"; | ||||
gpios = <&gpio0 12 1>; | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&spi0 { | &spi0 { | ||||
status = "okay"; | status = "okay"; | ||||
m25p80@0 { | m25p80@0 { | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
compatible = "jedec,spi-nor"; | compatible = "jedec,spi-nor"; | ||||
reg = <0>; | reg = <0>; | ||||
linux,modalias = "m25p80", "mx25l6405d"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |