mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:36:55 +07:00
4fc5af8683
Since the LED modes mapping is no longer hardcoded inside the leds-ns2 driver, then it must be provided through the modes-map property in the ns2-leds nodes. Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
40 lines
733 B
Plaintext
40 lines
733 B
Plaintext
/dts-v1/;
|
|
|
|
#include <dt-bindings/leds/leds-ns2.h>
|
|
#include "kirkwood-ns2-common.dtsi"
|
|
|
|
/ {
|
|
model = "LaCie Network Space v2";
|
|
compatible = "lacie,netspace_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x10000000>;
|
|
};
|
|
|
|
ocp@f1000000 {
|
|
sata@80000 {
|
|
pinctrl-0 = <&pmx_ns2_sata0>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
nr-ports = <1>;
|
|
};
|
|
};
|
|
|
|
ns2-leds {
|
|
compatible = "lacie,ns2-leds";
|
|
|
|
blue-sata {
|
|
label = "ns2:blue:sata";
|
|
slow-gpio = <&gpio0 29 0>;
|
|
cmd-gpio = <&gpio0 30 0>;
|
|
modes-map = <NS_V2_LED_OFF 1 0
|
|
NS_V2_LED_ON 0 1
|
|
NS_V2_LED_ON 1 1
|
|
NS_V2_LED_SATA 0 0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ðphy0 { reg = <8>; };
|