mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
8b0c053671
This patch updates all current APM82181 devices over to that "new LED naming scheme". This includes many updates to the device-tree: - dropped the deprecated, but beloved "label" property. - rename all DT leds node names to led-#. - add function and color properties. - utilized panic-indicator property. - dropped led- aliases (see below). migration scripts for all devices are included. For more information. See: <https://www.kernel.org/doc/html/latest/leds/leds-class.html> For the future: It looks like the color+function properties won over the dt-alias / label. This will need to be wired up into openwrt eventually. For APM821xx the situation is that all devices have a dedicated power and fault indicator. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
97 lines
1.9 KiB
Plaintext
97 lines
1.9 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/dts-v1/;
|
|
|
|
#include "netgear-wndap6x0.dtsi"
|
|
|
|
/ {
|
|
model = "Netgear WNDAP660";
|
|
compatible = "netgear,wndap660", "apm,bluestone";
|
|
};
|
|
|
|
&LEDS {
|
|
led-5 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <1>;
|
|
gpios = <&GPIO0 22 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-6 {
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <0>;
|
|
gpios = <&GPIO0 23 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-7 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <2>;
|
|
gpios = <&GPIO0 9 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led-8 {
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <1>;
|
|
gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
&PCIE0 {
|
|
/*
|
|
* relevant lspci topology:
|
|
*
|
|
* -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
|
|
* +-03.0-[44]----00.0
|
|
*
|
|
*/
|
|
|
|
bridge@64,0 {
|
|
reg = <0x00400000 0 0 0 0>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
bridge@65,0 {
|
|
/* IDT PES3T3 PCI Express Switch */
|
|
compatible = "pci111d,8039";
|
|
reg = <0x00410000 0 0 0 0>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
bridge@66,2 {
|
|
compatible = "pci111d,8039";
|
|
reg = <0x00421000 0 0 0 0>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
wifi0: wifi@67,0 {
|
|
/* Atheros AR9380 2.4/5GHz */
|
|
compatible = "pci168c,0030";
|
|
reg = <0x00430000 0 0 0 0>;
|
|
interrupts = <3>; /* INTC */
|
|
};
|
|
};
|
|
|
|
bridge@66,3 {
|
|
compatible = "pci111d,8039";
|
|
reg = <0x00421800 0 0 0 0>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
wifi1: wifi@68,0 {
|
|
/* Atheros AR9380 2.4/5GHz */
|
|
compatible = "pci168c,0030";
|
|
reg = <0x00440000 0 0 0 0>;
|
|
interrupts = <4>; /* INTD */
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|