mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-22 10:01:03 +00:00
ipq40xx: DTS style updates for OpenMesh devices
The OpenMesh related files were not updated since a while and the new coding style requirements weren't integrated. This can cause problems for new devices when an author uses these files as starting point. * use SPDX-License-Identifiers instead of full license texts * drop linux,default-trigger with value default-off for LEDs * led nodes with label "abc:xyz" should have name "xyz_abc" * led DT labels for "xyz_abc" should be "led_xyz_abc" * "m25p80@0" flash node should be renamed to "flash@0" * drop unnecessary empty lines Signed-off-by: Sven Eckelmann <sven@narfation.org> [minor commit title and message adjustments] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
9b42ecd10c
commit
ccfe61e259
@ -1,18 +1,6 @@
|
|||||||
|
// SPDX-License-Identifier: ISC
|
||||||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2017, Sven Eckelmann <sven.eckelmann@openmesh.com>
|
* Copyright (c) 2017, Sven Eckelmann <sven.eckelmann@openmesh.com>
|
||||||
*
|
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
|
||||||
* copyright notice and this permission notice appear in all copies.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
||||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
||||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qcom-ipq4019.dtsi"
|
#include "qcom-ipq4019.dtsi"
|
||||||
@ -95,30 +83,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
led-boot = &power;
|
led-boot = &led_status_green;
|
||||||
led-failsafe = &power;
|
led-failsafe = &led_status_green;
|
||||||
led-running = &power;
|
led-running = &led_status_green;
|
||||||
led-upgrade = &power;
|
led-upgrade = &led_status_green;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
red {
|
status_red {
|
||||||
label = "red:status";
|
label = "red:status";
|
||||||
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "default-off";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
power: green {
|
led_status_green: status_green {
|
||||||
label = "green:status";
|
label = "green:status";
|
||||||
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
blue {
|
status_blue {
|
||||||
label = "blue:status";
|
label = "blue:status";
|
||||||
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "default-off";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -168,7 +154,7 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
|
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
|
||||||
|
|
||||||
m25p80@0 {
|
flash@0 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
|
@ -1,18 +1,6 @@
|
|||||||
|
// SPDX-License-Identifier: ISC
|
||||||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
|
* Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.com>
|
||||||
*
|
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
|
||||||
* copyright notice and this permission notice appear in all copies.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
||||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
||||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qcom-ipq4019.dtsi"
|
#include "qcom-ipq4019.dtsi"
|
||||||
@ -98,30 +86,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
led-boot = &power;
|
led-boot = &led_status_green;
|
||||||
led-failsafe = &power;
|
led-failsafe = &led_status_green;
|
||||||
led-running = &power;
|
led-running = &led_status_green;
|
||||||
led-upgrade = &power;
|
led-upgrade = &led_status_green;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
red {
|
status_red {
|
||||||
label = "red:status";
|
label = "red:status";
|
||||||
gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "default-off";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
power: green {
|
led_status_green: status_green {
|
||||||
label = "green:status";
|
label = "green:status";
|
||||||
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
blue {
|
status_blue {
|
||||||
label = "blue:status";
|
label = "blue:status";
|
||||||
gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "default-off";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -178,7 +164,7 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
|
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
|
||||||
|
|
||||||
m25p80@0 {
|
flash@0 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
|
@ -647,7 +647,6 @@ define Device/openmesh_a62
|
|||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools
|
DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_DEVICES += openmesh_a62
|
TARGET_DEVICES += openmesh_a62
|
||||||
|
|
||||||
define Device/qcom_ap-dk01.1-c1
|
define Device/qcom_ap-dk01.1-c1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user