Ver código fonte

sandbox: Add some test LEDs

Add some LEDs to the standard sandbox device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ziping Chen <techping.chan@gmail.com>
Simon Glass 7 anos atrás
pai
commit
a89c3a04bc
2 arquivos alterados com 14 adições e 0 exclusões
  1. 14 0
      arch/sandbox/dts/sandbox.dts
  2. 0 0
      cmd/legacy_led.c

+ 14 - 0
arch/sandbox/dts/sandbox.dts

@@ -123,6 +123,20 @@
 		yres = <768>;
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		iracibble {
+			gpios = <&gpio_a 1 0>;
+			label = "sandbox:red";
+		};
+
+		martinet {
+			gpios = <&gpio_a 2 0>;
+			label = "sandbox:green";
+		};
+	};
+
 	pci: pci-controller {
 		compatible = "sandbox,pci";
 		device_type = "pci";

+ 0 - 0
cmd/led.c → cmd/legacy_led.c