blob: 38a49e7504785077bd809a078d082fd51a2f4dbf [file] [log] [blame]
Linus Walleij2aeeb182017-01-21 19:37:58 +01001/*
2 * Device Tree file for Wiliboard WBD-111
3 */
4
5/dts-v1/;
6
7#include "gemini.dtsi"
8#include <dt-bindings/input/input.h>
9
10/ {
11 model = "Wiliboard WBD-111";
12 compatible = "wiliboard,wbd111", "cortina,gemini";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 memory { /* 128 MB */
17 device_type = "memory";
18 reg = <0x00000000 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200n8";
23 stdout-path = &uart0;
24 };
25
26 gpio_keys {
27 compatible = "gpio-keys";
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 button@5 {
32 debounce_interval = <50>;
33 wakeup-source;
34 linux,code = <KEY_SETUP>;
35 label = "reset";
Linus Walleijf328c2e2017-07-05 16:59:33 +020036 /* Conflict with ICE */
Linus Walleij2aeeb182017-01-21 19:37:58 +010037 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led@1 {
45 label = "wbd111:red:L3";
Linus Walleijf328c2e2017-07-05 16:59:33 +020046 /* Conflict with TVC and extended parallel flash */
Linus Walleij2aeeb182017-01-21 19:37:58 +010047 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
48 default-state = "off";
49 };
50 led@2 {
51 label = "wbd111:green:L4";
Linus Walleijf328c2e2017-07-05 16:59:33 +020052 /* Conflict with TVC and extended parallel flash */
Linus Walleij2aeeb182017-01-21 19:37:58 +010053 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
54 default-state = "off";
55 };
56 led@3 {
57 label = "wbd111:red:L4";
Linus Walleijf328c2e2017-07-05 16:59:33 +020058 /* Conflict with TVC and extended parallel flash */
Linus Walleij2aeeb182017-01-21 19:37:58 +010059 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
60 default-state = "off";
61 };
62 led@5 {
63 label = "wbd111:green:L3";
Linus Walleijf328c2e2017-07-05 16:59:33 +020064 /* Conflict with TVC and extended parallel flash */
Linus Walleij2aeeb182017-01-21 19:37:58 +010065 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
66 default-state = "on";
67 linux,default-trigger = "heartbeat";
68 };
69 };
70
71 soc {
72 flash@30000000 {
73 status = "okay";
74 /* 8MB of flash */
75 reg = <0x30000000 0x00800000>;
76
77 partition@0 {
78 label = "RedBoot";
79 reg = <0x00000000 0x00020000>;
80 read-only;
81 };
82 partition@20000 {
83 label = "kernel";
84 reg = <0x00020000 0x00100000>;
85 };
86 partition@120000 {
87 label = "rootfs";
88 reg = <0x00120000 0x006a0000>;
89 };
90 partition@7c0000 {
91 label = "VCTL";
92 reg = <0x007c0000 0x00010000>;
93 read-only;
94 };
95 partition@7d0000 {
96 label = "cfg";
97 reg = <0x007d0000 0x00010000>;
98 read-only;
99 };
100 partition@7e0000 {
101 label = "FIS";
102 reg = <0x007e0000 0x00010000>;
103 read-only;
104 };
105 };
Linus Walleijf328c2e2017-07-05 16:59:33 +0200106
107 syscon: syscon@40000000 {
108 pinctrl {
109 /*
110 * gpio0agrp cover line 0-4
111 * gpio0bgrp cover line 5
112 */
113 gpio0_default_pins: pinctrl-gpio0 {
114 mux {
115 function = "gpio0";
116 groups = "gpio0agrp",
117 "gpio0bgrp";
118 };
119 };
120 };
121 };
122
123 gpio0: gpio@4d000000 {
124 pinctrl-names = "default";
125 pinctrl-0 = <&gpio0_default_pins>;
126 };
Linus Walleij2aeeb182017-01-21 19:37:58 +0100127 };
128};