1// SPDX-License-Identifier: GPL-2.0 2 3#include <dt-bindings/gpio/gpio.h> 4#include <dt-bindings/leds/common.h> 5 6/ { 7 leds0: leds { 8 compatible = "gpio-leds"; 9 10 led-heartbeat { 11 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 12 color = <LED_COLOR_ID_GREEN>; 13 function = LED_FUNCTION_HEARTBEAT; 14 linux,default-trigger = "heartbeat"; 15 label = "heartbeat"; 16 }; 17 }; 18 19 memory@0 { 20 device_type = "memory"; 21 reg = <0x00000000 0x02000000>; 22 }; 23 24 /* 8 Green LEDs */ 25 gpio0: gpio@91000000 { 26 compatible = "opencores,gpio"; 27 reg = <0x91000000 0x1>, <0x91000001 0x1>; 28 reg-names = "dat", "dirout"; 29 gpio-controller; 30 #gpio-cells = <2>; 31 }; 32 33 /* 4 DIP Switches */ 34 gpio1: gpio@92000000 { 35 compatible = "opencores,gpio"; 36 reg = <0x92000000 0x1>, <0x92000001 0x1>; 37 reg-names = "dat", "dirout"; 38 gpio-controller; 39 #gpio-cells = <2>; 40 status = "disabled"; 41 }; 42}; 43