aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/files/arch
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-11-26 10:20:03 +0100
committerMathias Kresin <dev@kresin.me>2016-11-27 15:33:54 +0100
commit3228c2a682f287337db3dda880bc1e35ebaa7ce9 (patch)
treee9a18daf4f259d4e3d0a786ecdcc9f76dd0328a1 /target/linux/ipq806x/files/arch
parente3caadc69d405a74f9643134bc5074607f2a999b (diff)
downloadupstream-3228c2a682f287337db3dda880bc1e35ebaa7ce9.tar.gz
upstream-3228c2a682f287337db3dda880bc1e35ebaa7ce9.tar.bz2
upstream-3228c2a682f287337db3dda880bc1e35ebaa7ce9.zip
ipq806x: more dts cleanup
Remove the wifi5g LED from the the d7800, r7500 and r7800. Albeit this GPIO is mentioned in the GPL tarball, it doesn't do anything. The 2.4/5 GHz LEDs are connected to the wifi chips and not be controlled from the the userspace. Use the LEDs names/colours as they are used in the board manuals. Merge redundant LED configurations. Use the phy[0|1]tpt trigger for the wireless LEDs. Remove the workarounds for the not controllable wireless LEDs. Fix spi compatible strings and remove superfluous spi-max-frequency parameters. If there are two power leds, use one for indicating normal operation and one for failsafe/upgrade. Keep the on/off state of the main power led during boot. Use the usb pinmux settings from the nbg6817 gpl sources. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ipq806x/files/arch')
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-c2600.dts11
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts39
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500.dts39
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts4
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts2
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts50
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts21
7 files changed, 75 insertions, 91 deletions
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-c2600.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
index f22838f7b4..7eeaab1557 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
@@ -150,7 +150,6 @@
spi5: spi@1a280000 {
status = "ok";
- spi-max-frequency = <50000000>;
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
@@ -474,18 +473,18 @@
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
};
- wan_red {
- label = "c2600:orange:wan";
+ wan_amber {
+ label = "c2600:amber:wan";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
};
- wan_blue {
+ wan_white {
label = "c2600:white:wan";
gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
};
- power: status {
- label = "c2600:white:status";
+ power: power {
+ label = "c2600:white:power";
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
index 4af56bae49..a8a613945f 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
@@ -25,10 +25,10 @@
serial0 = &uart4;
mdio-gpio0 = &mdio0;
- led-boot = &power;
- led-failsafe = &power;
- led-running = &power;
- led-upgrade = &power;
+ led-boot = &power_white;
+ led-failsafe = &power_amber;
+ led-running = &power_white;
+ led-upgrade = &power_amber;
};
chosen {
@@ -59,7 +59,7 @@
led_pins: led_pins {
mux {
pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
- "gpio24","gpio26", "gpio53", "gpio64", "gpio67";
+ "gpio24","gpio26", "gpio53", "gpio64";
function = "gpio";
drive-strength = <2>;
bias-pull-up;
@@ -354,27 +354,27 @@
pinctrl-names = "default";
usb1 {
- label = "d7800:amber:usb1";
+ label = "d7800:white:usb1";
gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
};
- usb3 {
- label = "d7800:amber:usb3";
+ usb2 {
+ label = "d7800:white:usb2";
gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
};
- status {
- label = "d7800:amber:status";
+ power_amber: power_amber {
+ label = "d7800:amber:power";
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
};
- internet {
- label = "d7800:white:internet";
+ wan_white {
+ label = "d7800:white:wan";
gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
};
- wan {
- label = "d7800:white:wan";
+ wan_amber {
+ label = "d7800:amber:wan";
gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
};
@@ -388,21 +388,16 @@
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
};
- power: power {
+ power_white: power_white {
label = "d7800:white:power";
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
- rfkill {
- label = "d7800:white:rfkill";
+ wifi {
+ label = "d7800:white:wifi";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
};
-
- wifi5g {
- label = "d7800:white:wifi5g";
- gpios = <&qcom_pinmux 67 GPIO_ACTIVE_HIGH>;
- };
};
};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500.dts
index 7fcbb0c878..fc35df7e68 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500.dts
@@ -25,10 +25,10 @@
serial0 = &uart4;
mdio-gpio0 = &mdio0;
- led-boot = &power;
- led-failsafe = &power;
- led-running = &power;
- led-upgrade = &power;
+ led-boot = &power_white;
+ led-failsafe = &power_amber;
+ led-running = &power_white;
+ led-upgrade = &power_amber;
};
chosen {
@@ -59,7 +59,7 @@
led_pins: led_pins {
mux {
pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
- "gpio24","gpio26", "gpio53", "gpio64", "gpio67";
+ "gpio24","gpio26", "gpio53", "gpio64";
function = "gpio";
drive-strength = <2>;
bias-pull-up;
@@ -321,27 +321,27 @@
pinctrl-names = "default";
usb1 {
- label = "r7500:amber:usb1";
+ label = "r7500:white:usb1";
gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
};
- usb3 {
- label = "r7500:amber:usb3";
+ usb2 {
+ label = "r7500:white:usb2";
gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
};
- status {
- label = "r7500:amber:status";
+ power_amber: power_amber {
+ label = "r7500:amber:power";
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
};
- internet {
- label = "r7500:white:internet";
+ wan_white {
+ label = "r7500:white:wan";
gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
};
- wan {
- label = "r7500:white:wan";
+ wan_amber {
+ label = "r7500:amber:wan";
gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
};
@@ -355,21 +355,16 @@
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
};
- power: power {
+ power_white: power_white {
label = "r7500:white:power";
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
- rfkill {
- label = "r7500:white:rfkill";
+ wifi {
+ label = "r7500:white:wifi";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
};
-
- wifi5g {
- label = "r7500:white:wifi5g";
- gpios = <&qcom_pinmux 67 GPIO_ACTIVE_HIGH>;
- };
};
};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts
index 67af68ee98..4edfbeb72d 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r7500v2.dts
@@ -404,8 +404,8 @@
default-state = "keep";
};
- rfkill {
- label = "r7500v2:white:rfkill";
+ wifi {
+ label = "r7500v2:white:wifi";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
};
};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
index ec0aa0c0ee..407c180ec5 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts
@@ -129,7 +129,6 @@
spi4: spi@1a280000 {
status = "ok";
- spi-max-frequency = <50000000>;
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
@@ -401,6 +400,7 @@
power: power {
label = "vr2600v:white:power";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
+ default-state = "keep";
};
phone {
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts
index d23d57aa47..abc381a15e 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts
@@ -58,19 +58,12 @@
};
led_pins: led_pins {
- off {
- pins = "gpio26", "gpio33", "gpio64";
+ mux {
+ pins = "gpio9", "gpio26", "gpio33", "gpio64";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
-
- on {
- pins = "gpio9";
- function = "gpio";
- drive-strength = <2>;
- bias-pull-up;
- };
};
mdio0_pins: mdio0_pins {
@@ -117,38 +110,40 @@
};
usb0_pwr_en_pins: usb0_pwr_en_pins {
- pwr {
- pins = "gpio14";
+ mux {
+ pins = "gpio16", "gpio17";
function = "gpio";
drive-strength = <12>;
+ };
+
+ pwr {
+ pins = "gpio17";
bias-pull-down;
output-high;
};
ovc {
- pins = "gpio15";
- function = "gpio";
- drive-strength = <12>;
+ pins = "gpio16";
bias-pull-up;
- output-high;
};
};
usb1_pwr_en_pins: usb1_pwr_en_pins {
- pwr {
- pins = "gpio17";
+ mux {
+ pins = "gpio14", "gpio15";
function = "gpio";
drive-strength = <12>;
+ };
+
+ pwr {
+ pins = "gpio14";
bias-pull-down;
output-high;
};
ovc {
- pins = "gpio16";
- function = "gpio";
- drive-strength = <12>;
+ pins = "gpio15";
bias-pull-up;
- output-high;
};
};
};
@@ -173,14 +168,14 @@
spi4: spi@1a280000 {
status = "ok";
- spi-max-frequency = <50000000>;
+
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
flash: m25p80@0 {
- compatible = "s25fl512s";
+ compatible = "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <51200000>;
@@ -371,17 +366,22 @@
power: power {
label = "nbg6817:white:power";
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
+ default-state = "keep";
};
- wifi {
- label = "nbg6817:amber:wifi";
+ wifi2g {
+ label = "nbg6817:amber:wifi2g";
gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
};
+ /* wifi2g amber from the manual is missing */
+
wifi5g {
label = "nbg6817:amber:wifi5g";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
};
+
+ /* wifi5g amber from the manual is missing */
};
};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts
index 42d6e2b7a0..79c8334a42 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts
@@ -31,7 +31,7 @@
mdio-gpio0 = &mdio0;
led-boot = &power_white;
- led-failsafe = &power_white;
+ led-failsafe = &power_amber;
led-running = &power_white;
led-upgrade = &power_amber;
};
@@ -62,7 +62,7 @@
led_pins: led_pins {
pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
- "gpio24","gpio26", "gpio53", "gpio64", "gpio67";
+ "gpio24","gpio26", "gpio53", "gpio64";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
@@ -221,7 +221,7 @@
spi5: spi@1a280000 {
status = "ok";
- spi-max-frequency = <50000000>;
+
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
@@ -244,14 +244,14 @@
status = "ok";
spi6: spi@16580000 {
status = "ok";
- spi-max-frequency = <6000000>;
+
pinctrl-0 = <&spi6_pins>;
pinctrl-names = "default";
cs-gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
spi-nor@0 {
- compatible = "spi-nor";
+ compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <6000000>;
};
@@ -516,7 +516,7 @@
power_white: power_white {
label = "r7800:white:power";
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
- default-state = "on";
+ default-state = "keep";
};
power_amber: power_amber {
@@ -549,8 +549,8 @@
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
};
- rfkill {
- label = "r7800:white:rfkill";
+ wifi {
+ label = "r7800:white:wifi";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
};
@@ -558,11 +558,6 @@
label = "r7800:white:wps";
gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
};
-
- wifi {
- label = "r7800:white:wifi";
- gpios = <&qcom_pinmux 67 GPIO_ACTIVE_HIGH>;
- };
};
};