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