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