mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

Bindings expect the LED node names to follow certain pattern, see dtbs_check warnings: kirkwood-ds409slim.dtb: gpio-leds-alarm-12: 'hdd1-green' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
46 lines
899 B
Plaintext
46 lines
899 B
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Device Tree file for d2 Network v2
|
|
*
|
|
* Copyright (C) 2014 Simon Guinot <simon.guinot@sequanux.org>
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <dt-bindings/leds/leds-ns2.h>
|
|
#include "kirkwood-netxbig.dtsi"
|
|
|
|
/ {
|
|
model = "LaCie d2 Network v2";
|
|
compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x10000000>;
|
|
};
|
|
|
|
ns2-leds {
|
|
compatible = "lacie,ns2-leds";
|
|
|
|
blue-sata {
|
|
label = "d2net_v2:blue:sata";
|
|
slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
|
cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
|
|
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>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led-red-fail {
|
|
label = "d2net_v2:red:fail";
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|