Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 1 | /* |
| 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 Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 36 | /* Conflict with ICE */ |
Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 37 | 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 Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 46 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 47 | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
| 48 | default-state = "off"; |
| 49 | }; |
| 50 | led@2 { |
| 51 | label = "wbd111:green:L4"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 52 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 53 | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
| 54 | default-state = "off"; |
| 55 | }; |
| 56 | led@3 { |
| 57 | label = "wbd111:red:L4"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 58 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 59 | gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; |
| 60 | default-state = "off"; |
| 61 | }; |
| 62 | led@5 { |
| 63 | label = "wbd111:green:L3"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 64 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 65 | 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 Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame^] | 106 | |
| 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 Walleij | 2aeeb18 | 2017-01-21 19:37:58 +0100 | [diff] [blame] | 127 | }; |
| 128 | }; |