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