aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-19 15:47:11 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-23 11:57:48 +0100
commit640a36aafcb5c247d5347e0b03f3cc49204d7941 (patch)
treeca4e6b4bce0ee4046c004456acfd7c04cfb925f3 /target/linux/ath79/dts
parentb7c58a1eeba5be2e1f77ec05b417be9d87e26916 (diff)
downloadupstream-640a36aafcb5c247d5347e0b03f3cc49204d7941.tar.gz
upstream-640a36aafcb5c247d5347e0b03f3cc49204d7941.tar.bz2
upstream-640a36aafcb5c247d5347e0b03f3cc49204d7941.zip
ath79: DTS style improvement for Ubiquiti XM and BZ devices
This applies minor style improvements and removes commented pll clock adjustments from ubnt_xm DTSI. The latter were introduced (already commented out) when adding ath79 target and have never been touched since then. For Unifi (BZ board), similar clock adjustments are employed and used. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/ar7241_ubnt_airrouter.dts2
-rw-r--r--target/linux/ath79/dts/ar7241_ubnt_unifi.dts10
-rw-r--r--target/linux/ath79/dts/ar7241_ubnt_xm.dtsi21
-rw-r--r--target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi1
4 files changed, 13 insertions, 21 deletions
diff --git a/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts b/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts
index 03306de5d9..ad2762e20c 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts
+++ b/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts
@@ -15,7 +15,7 @@
label-mac-device = &wifi;
};
- airrouter-leds {
+ leds {
compatible = "gpio-leds";
led_globe: globe {
diff --git a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
index 3e73eba9ed..5f12fd581b 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
+++ b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
@@ -78,30 +78,30 @@
read-only;
};
- partition@1 {
+ partition@40000 {
label = "u-boot-env";
reg = <0x040000 0x010000>;
};
- partition@2 {
+ partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};
- partition@3 {
+ partition@7a0000 {
label = "board_config";
reg = <0x7a0000 0x010000>;
read-only;
};
- partition@4 {
+ partition@7b0000 {
label = "cfg";
reg = <0x7b0000 0x040000>;
read-only;
};
- art: partition@5 {
+ art: partition@7f0000 {
label = "art";
reg = <0x7f0000 0x010000>;
read-only;
diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
index 687aef1112..e2b653b3a7 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
+++ b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
@@ -9,12 +9,6 @@
compatible = "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Networks XM (rev 1.0) board";
-/* extosc: ref {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <40000000>;
- };
-*/
keys {
compatible = "gpio-keys";
@@ -30,12 +24,9 @@
status = "okay";
};
-/*&pll {
- clocks = <&extosc>;
-};*/
-
&spi {
status = "okay";
+
num-cs = <1>;
flash@0 {
@@ -54,30 +45,30 @@
read-only;
};
- partition@1 {
+ partition@40000 {
label = "u-boot-env";
reg = <0x040000 0x010000>;
};
- partition@2 {
+ partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};
- partition@3 {
+ partition@7a0000 {
label = "board_config";
reg = <0x7a0000 0x010000>;
read-only;
};
- partition@4 {
+ partition@7b0000 {
label = "cfg";
reg = <0x7b0000 0x040000>;
read-only;
};
- art: partition@5 {
+ art: partition@7f0000 {
label = "art";
reg = <0x7f0000 0x010000>;
read-only;
diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi
index 337da5b4b7..75116edc51 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi
+++ b/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi
@@ -11,6 +11,7 @@
leds {
compatible = "gpio-leds";
+
link1 {
label = "ubnt:red:link1";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;