projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git]
/
target
/
linux
/
ramips
/
dts
/
HG255D.dts
diff --git
a/target/linux/ramips/dts/HG255D.dts
b/target/linux/ramips/dts/HG255D.dts
index 41b7ddd34e1626eec5583b941b8599f4662e104b..bed5977ac13946783c0a4118c02a81bacf155f36 100644
(file)
--- a/
target/linux/ramips/dts/HG255D.dts
+++ b/
target/linux/ramips/dts/HG255D.dts
@@
-1,24
+1,17
@@
/dts-v1/;
/dts-v1/;
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
/ {
- compatible = "
HG255D
", "ralink,rt3052-soc";
+ compatible = "
huawei,hg255d
", "ralink,rt3052-soc";
model = "HuaWei HG255D";
model = "HuaWei HG255D";
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
- ralink,function = "gpio";
- };
- };
- };
-
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x1000000>;
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x1000000>;
-
bank-width = <2>;
device-width = <2>;
#address-cells = <1>;
bank-width = <2>;
device-width = <2>;
#address-cells = <1>;
@@
-56,29
+49,35
@@
gpio-leds {
compatible = "gpio-leds";
gpio-leds {
compatible = "gpio-leds";
+
power {
power {
- label = "hg255d:power";
- gpios = <&gpio0 8
1
>;
+ label = "hg255d:
green:
power";
+ gpios = <&gpio0 8
GPIO_ACTIVE_LOW
>;
};
};
+
internet {
internet {
- label = "hg255d:internet";
- gpios = <&gpio0 13
1
>;
+ label = "hg255d:
green:
internet";
+ gpios = <&gpio0 13
GPIO_ACTIVE_LOW
>;
};
};
+
wifi {
wifi {
- label = "hg255d:wlan";
- gpios = <&gpio0 14
1
>;
+ label = "hg255d:
green:
wlan";
+ gpios = <&gpio0 14
GPIO_ACTIVE_LOW
>;
};
};
+
usb {
usb {
- label = "hg255d:usb";
- gpios = <&gpio0 9
1
>;
+ label = "hg255d:
green:
usb";
+ gpios = <&gpio0 9
GPIO_ACTIVE_LOW
>;
};
};
+
wps {
wps {
- label = "hg255d:wps";
- gpios = <&gpio0 12
1
>;
+ label = "hg255d:
green:
wps";
+ gpios = <&gpio0 12
GPIO_ACTIVE_LOW
>;
};
};
+
voice {
voice {
- label = "hg255d:voice";
- gpios = <&gpio0 5
1
>;
+ label = "hg255d:
green:
voice";
+ gpios = <&gpio0 5
GPIO_ACTIVE_LOW
>;
};
};
};
};
@@
-87,36
+86,48
@@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <10>;
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <10>;
+
reset {
label = "reset";
reset {
label = "reset";
- gpios = <&gpio0 4
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio0 4
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
};
+
wps {
label = "wps";
wps {
label = "wps";
- gpios = <&gpio0 10
1
>;
- linux,code = <
0x211
>;
+ gpios = <&gpio0 10
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_WPS_BUTTON
>;
};
};
+
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio0 0
1
>;
- linux,code = <
0xf7
>;
+ gpios = <&gpio0 0
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RFKILL
>;
};
};
};
};
+};
- ethernet@10100000 {
- mtd-mac-address = <&factory 0x28>;
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,function = "gpio";
+ };
};
};
+};
-
esw@10110000
{
-
ralink,portmap = <0x2f
>;
-
};
+
ðernet
{
+
mtd-mac-address = <&factory 0x28
>;
+};
-
wmac@10180000
{
-
ralink,mtd-eeprom = <&factory 0
>;
-
};
+
&esw
{
+
mediatek,portmap = <0x2f
>;
+};
- otg@101c0000 {
- status = "okay";
- };
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+ status = "okay";
};
};