Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree file for Wiliboard WBD-222 |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "gemini.dtsi" |
| 9 | #include <dt-bindings/input/input.h> |
| 10 | |
| 11 | / { |
| 12 | model = "Wiliboard WBD-222"; |
| 13 | compatible = "wiliboard,wbd222", "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"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 37 | /* Conflict with ICE */ |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 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"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 47 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 48 | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
| 49 | default-state = "off"; |
| 50 | }; |
| 51 | led@2 { |
| 52 | label = "wbd111:green:L4"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 53 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 54 | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
| 55 | default-state = "off"; |
| 56 | }; |
| 57 | led@3 { |
| 58 | label = "wbd111:red:L4"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 59 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 60 | gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; |
| 61 | default-state = "off"; |
| 62 | }; |
| 63 | led@5 { |
| 64 | label = "wbd111:green:L3"; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 65 | /* Conflict with TVC and extended parallel flash */ |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 66 | gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
| 67 | default-state = "on"; |
| 68 | linux,default-trigger = "heartbeat"; |
| 69 | }; |
| 70 | }; |
| 71 | |
Linus Walleij | 66b2238 | 2017-11-19 10:46:16 +0100 | [diff] [blame] | 72 | mdio0: ethernet-phy { |
| 73 | compatible = "virtual,mdio-gpio"; |
| 74 | gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ |
| 75 | <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <0>; |
| 78 | |
| 79 | phy0: ethernet-phy@1 { |
| 80 | reg = <1>; |
| 81 | device_type = "ethernet-phy"; |
| 82 | }; |
| 83 | |
| 84 | phy1: ethernet-phy@3 { |
| 85 | reg = <3>; |
| 86 | device_type = "ethernet-phy"; |
| 87 | }; |
| 88 | }; |
| 89 | |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 90 | soc { |
| 91 | flash@30000000 { |
| 92 | status = "okay"; |
| 93 | /* 8MB of flash */ |
| 94 | reg = <0x30000000 0x00800000>; |
| 95 | |
| 96 | partition@0 { |
| 97 | label = "RedBoot"; |
| 98 | reg = <0x00000000 0x00020000>; |
| 99 | read-only; |
| 100 | }; |
| 101 | partition@20000 { |
| 102 | label = "kernel"; |
| 103 | reg = <0x00020000 0x00100000>; |
| 104 | }; |
| 105 | partition@120000 { |
| 106 | label = "rootfs"; |
| 107 | reg = <0x00120000 0x006a0000>; |
| 108 | }; |
| 109 | partition@7c0000 { |
| 110 | label = "VCTL"; |
| 111 | reg = <0x007c0000 0x00010000>; |
| 112 | read-only; |
| 113 | }; |
| 114 | partition@7d0000 { |
| 115 | label = "cfg"; |
| 116 | reg = <0x007d0000 0x00010000>; |
| 117 | read-only; |
| 118 | }; |
| 119 | partition@7e0000 { |
| 120 | label = "FIS"; |
| 121 | reg = <0x007e0000 0x00010000>; |
| 122 | read-only; |
| 123 | }; |
| 124 | }; |
Linus Walleij | f328c2e | 2017-07-05 16:59:33 +0200 | [diff] [blame] | 125 | |
| 126 | syscon: syscon@40000000 { |
| 127 | pinctrl { |
| 128 | /* |
| 129 | * gpio0agrp cover line 0-4 |
| 130 | * gpio0bgrp cover line 5 |
| 131 | */ |
| 132 | gpio0_default_pins: pinctrl-gpio0 { |
| 133 | mux { |
| 134 | function = "gpio0"; |
| 135 | groups = "gpio0agrp", |
| 136 | "gpio0bgrp"; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | gpio0: gpio@4d000000 { |
| 143 | pinctrl-names = "default"; |
| 144 | pinctrl-0 = <&gpio0_default_pins>; |
| 145 | }; |
Linus Walleij | e80da43 | 2017-10-11 19:49:13 +0200 | [diff] [blame^] | 146 | |
| 147 | pci@50000000 { |
| 148 | status = "okay"; |
| 149 | interrupt-map-mask = <0xf800 0 0 7>; |
| 150 | interrupt-map = |
| 151 | <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */ |
| 152 | <0x4800 0 0 2 &pci_intc 1>, |
| 153 | <0x4800 0 0 3 &pci_intc 2>, |
| 154 | <0x4800 0 0 4 &pci_intc 3>, |
| 155 | <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */ |
| 156 | <0x5000 0 0 2 &pci_intc 2>, |
| 157 | <0x5000 0 0 3 &pci_intc 3>, |
| 158 | <0x5000 0 0 4 &pci_intc 0>, |
| 159 | <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */ |
| 160 | <0x5800 0 0 2 &pci_intc 3>, |
| 161 | <0x5800 0 0 3 &pci_intc 0>, |
| 162 | <0x5800 0 0 4 &pci_intc 1>, |
| 163 | <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */ |
| 164 | <0x6000 0 0 2 &pci_intc 0>, |
| 165 | <0x6000 0 0 3 &pci_intc 1>, |
| 166 | <0x6000 0 0 4 &pci_intc 2>; |
| 167 | }; |
Linus Walleij | c4fa8b2 | 2017-01-21 20:55:46 +0100 | [diff] [blame] | 168 | }; |
| 169 | }; |