projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: bump 4.14 to 4.14.41
[oweals/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
GL-MT300N.dts
diff --git
a/target/linux/ramips/dts/GL-MT300N.dts
b/target/linux/ramips/dts/GL-MT300N.dts
index 6a3600acb287f432690c8d2f732127b823d7fd53..27f3d065e10095a9703d48ce85e6766154c005ab 100644
(file)
--- a/
target/linux/ramips/dts/GL-MT300N.dts
+++ b/
target/linux/ramips/dts/GL-MT300N.dts
@@
-2,8
+2,11
@@
#include "mt7620a.dtsi"
#include "mt7620a.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
/ {
- compatible = "
GL-MT300N
", "ralink,mt7620a-soc";
+ compatible = "
glinet,gl-mt300n
", "ralink,mt7620a-soc";
model = "GL-MT300N";
chosen {
model = "GL-MT300N";
chosen {
@@
-15,17
+18,17
@@
wan {
label = "gl-mt300n:wan";
wan {
label = "gl-mt300n:wan";
- gpios = <&gpio2 0
1
>;
+ gpios = <&gpio2 0
GPIO_ACTIVE_LOW
>;
};
lan {
label = "gl-mt300n:lan";
};
lan {
label = "gl-mt300n:lan";
- gpios = <&gpio2 1
1
>;
+ gpios = <&gpio2 1
GPIO_ACTIVE_LOW
>;
};
wlan {
label = "gl-mt300n:wlan";
};
wlan {
label = "gl-mt300n:wlan";
- gpios = <&gpio3 0
1
>;
+ gpios = <&gpio3 0
GPIO_ACTIVE_LOW
>;
};
};
};
};
@@
-37,20
+40,20
@@
poll-interval = <20>;
reset {
label = "reset";
poll-interval = <20>;
reset {
label = "reset";
- gpios = <&gpio0 1
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio0 1
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
BTN_0 {
label = "BTN_0";
};
BTN_0 {
label = "BTN_0";
- gpios = <&gpio2 2
1
>;
- linux,code = <
0x10
0>;
+ gpios = <&gpio2 2
GPIO_ACTIVE_LOW
>;
+ linux,code = <
BTN_
0>;
};
BTN_1 {
label = "BTN_1";
};
BTN_1 {
label = "BTN_1";
- gpios = <&gpio2 3
1
>;
- linux,code = <
0x10
1>;
+ gpios = <&gpio2 3
GPIO_ACTIVE_LOW
>;
+ linux,code = <
BTN_
1>;
};
};
};
};
};
};
@@
-77,9
+80,8
@@
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
- compatible = "w25q128";
- reg = <0 0>;
- linux,modalias = "m25p80", "w25q128";
+ compatible = "jedec,spi-nor";
+ reg = <0>;
spi-max-frequency = <10000000>;
partition@0 {
spi-max-frequency = <10000000>;
partition@0 {
@@
-121,26
+123,13
@@
ðernet {
mtd-mac-address = <&factory 0x4000>;
ðernet {
mtd-mac-address = <&factory 0x4000>;
-
ralink,port-
map = "wllll";
+
mediatek,port
map = "wllll";
};
&wmac {
ralink,mtd-eeprom = <&factory 0>;
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0>;
};
-&pcie {
- status = "okay";
-
- pcie-bridge {
- mt76@0,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x8000>;
- mediatek,2ghz = <0>;
- };
- };
-};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
&pinctrl {
state_default: pinctrl0 {
gpio {