1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-21 15:08:15 +02:00
openwrt/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
Chuanhong Guo b756ea2a90 ramips: replace pinctrl property names
Upstream pinctrl driver in drivers/staging uses
groups/function/ralink,num-gpios instead of
ralink,group/ralink,function/ralink,nr-gpio
Replace these properties in dts as well as the pinctrl driver in
patches-4.14.
This commit is created using:
sed -i 's/ralink,group/groups/g'
sed -i 's/ralink,function/function/g'
sed -i 's/ralink,nr-gpio/ralink,num-gpios/g'

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-04-12 22:29:17 +08:00

72 lines
1.0 KiB
Plaintext

#include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
leds {
compatible = "gpio-leds";
tx {
label = "awm002-evb:green:tx";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
};
rx {
label = "awm002-evb:green:rx";
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
};
wps {
label = "awm002-evb:green:wps";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;
reset_wps {
label = "reset_wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
};
};
&ethernet {
mtd-mac-address = <&factory 0x28>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0>;
};
&state_default {
gpio {
groups = "i2c", "jtag";
function = "gpio";
};
};
&esw {
mediatek,portmap = <0x3f>;
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};