mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
e4ce3109f2
The node pinctrl0 is already set up in the SOC DTSI files, but defined again as member of pinctrl in most of the device DTS(I) files. This patch removes this redundancy for the entire ramips target. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
119 lines
1.6 KiB
Plaintext
119 lines
1.6 KiB
Plaintext
#include "mt7628an.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
compatible = "widora,neo", "mediatek,mt7628an-soc";
|
|
|
|
aliases {
|
|
led-boot = &led_wifi;
|
|
led-failsafe = &led_wifi;
|
|
led-running = &led_wifi;
|
|
led-upgrade = &led_wifi;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_wifi: wifi {
|
|
label = "widora:orange:wifi";
|
|
gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
wps {
|
|
label = "reset";
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
};
|
|
};
|
|
|
|
wgpio: gpio-wifi {
|
|
compatible = "mediatek,gpio-wifi";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
ralink,group = "gpio";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
perst {
|
|
ralink,group = "perst";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
refclk {
|
|
ralink,group = "refclk";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
i2s {
|
|
ralink,group = "i2s";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
spis {
|
|
ralink,group = "spis";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
wled_kn {
|
|
ralink,group = "wled_kn";
|
|
ralink,function = "gpio";
|
|
};
|
|
|
|
wled_an {
|
|
ralink,group = "wled_an";
|
|
ralink,function = "wled_an";
|
|
};
|
|
|
|
wdt {
|
|
ralink,group = "wdt";
|
|
ralink,function = "gpio";
|
|
};
|
|
};
|
|
|
|
&i2c {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm {
|
|
status = "okay";
|
|
};
|
|
|
|
ðernet {
|
|
mtd-mac-address = <&factory 0x28>;
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
mediatek,cd-low;
|
|
};
|
|
|
|
&wmac {
|
|
status = "okay";
|
|
};
|