1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Device Tree file for Wiliboard WBD-111 4f126890aSEmmanuel Vadot */ 5f126890aSEmmanuel Vadot 6f126890aSEmmanuel Vadot/dts-v1/; 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot#include "gemini.dtsi" 9f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 10f126890aSEmmanuel Vadot 11f126890aSEmmanuel Vadot/ { 12f126890aSEmmanuel Vadot model = "Wiliboard WBD-111"; 13*01950c46SEmmanuel Vadot compatible = "wiligear,wiliboard-wbd111", "cortina,gemini"; 14f126890aSEmmanuel Vadot #address-cells = <1>; 15f126890aSEmmanuel Vadot #size-cells = <1>; 16f126890aSEmmanuel Vadot 17f126890aSEmmanuel Vadot memory@0 { 18f126890aSEmmanuel Vadot /* 128 MB */ 19f126890aSEmmanuel Vadot device_type = "memory"; 20f126890aSEmmanuel Vadot reg = <0x00000000 0x8000000>; 21f126890aSEmmanuel Vadot }; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot chosen { 24f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200n8"; 25f126890aSEmmanuel Vadot stdout-path = &uart0; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot gpio_keys { 29f126890aSEmmanuel Vadot compatible = "gpio-keys"; 30f126890aSEmmanuel Vadot 31*01950c46SEmmanuel Vadot button-reset { 32f126890aSEmmanuel Vadot debounce-interval = <100>; 33f126890aSEmmanuel Vadot wakeup-source; 34*01950c46SEmmanuel Vadot linux,code = <KEY_RESTART>; 35f126890aSEmmanuel Vadot label = "reset"; 36f126890aSEmmanuel Vadot /* Conflict with ICE */ 37f126890aSEmmanuel Vadot gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; 38f126890aSEmmanuel Vadot }; 39f126890aSEmmanuel Vadot }; 40f126890aSEmmanuel Vadot 41f126890aSEmmanuel Vadot leds { 42f126890aSEmmanuel Vadot compatible = "gpio-leds"; 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot led-red-l3 { 45f126890aSEmmanuel Vadot label = "wbd111:red:L3"; 46f126890aSEmmanuel Vadot /* Conflict with TVC and extended parallel flash */ 47f126890aSEmmanuel Vadot gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 48f126890aSEmmanuel Vadot default-state = "off"; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot led-green-l4 { 51f126890aSEmmanuel Vadot label = "wbd111:green:L4"; 52f126890aSEmmanuel Vadot /* Conflict with TVC and extended parallel flash */ 53f126890aSEmmanuel Vadot gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 54f126890aSEmmanuel Vadot default-state = "off"; 55f126890aSEmmanuel Vadot }; 56f126890aSEmmanuel Vadot led-red-l4 { 57f126890aSEmmanuel Vadot label = "wbd111:red:L4"; 58f126890aSEmmanuel Vadot /* Conflict with TVC and extended parallel flash */ 59f126890aSEmmanuel Vadot gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; 60f126890aSEmmanuel Vadot default-state = "off"; 61f126890aSEmmanuel Vadot }; 62f126890aSEmmanuel Vadot led-greeb-l3 { 63f126890aSEmmanuel Vadot label = "wbd111:green:L3"; 64f126890aSEmmanuel Vadot /* Conflict with TVC and extended parallel flash */ 65f126890aSEmmanuel Vadot gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; 66f126890aSEmmanuel Vadot default-state = "on"; 67f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 68f126890aSEmmanuel Vadot }; 69f126890aSEmmanuel Vadot }; 70f126890aSEmmanuel Vadot 71f126890aSEmmanuel Vadot mdio0: mdio { 72f126890aSEmmanuel Vadot compatible = "virtual,mdio-gpio"; 73f126890aSEmmanuel Vadot gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ 74f126890aSEmmanuel Vadot <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ 75f126890aSEmmanuel Vadot #address-cells = <1>; 76f126890aSEmmanuel Vadot #size-cells = <0>; 77f126890aSEmmanuel Vadot 78f126890aSEmmanuel Vadot phy0: ethernet-phy@1 { 79f126890aSEmmanuel Vadot reg = <1>; 80f126890aSEmmanuel Vadot device_type = "ethernet-phy"; 81f126890aSEmmanuel Vadot }; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot soc { 85f126890aSEmmanuel Vadot flash@30000000 { 86f126890aSEmmanuel Vadot status = "okay"; 87f126890aSEmmanuel Vadot /* 8MB of flash */ 88f126890aSEmmanuel Vadot reg = <0x30000000 0x00800000>; 89f126890aSEmmanuel Vadot 90f126890aSEmmanuel Vadot partitions { 91f126890aSEmmanuel Vadot compatible = "redboot-fis"; 92f126890aSEmmanuel Vadot /* Eraseblock at 0x7e0000 */ 93f126890aSEmmanuel Vadot fis-index-block = <0x3f>; 94f126890aSEmmanuel Vadot }; 95f126890aSEmmanuel Vadot }; 96f126890aSEmmanuel Vadot 97f126890aSEmmanuel Vadot syscon: syscon@40000000 { 98f126890aSEmmanuel Vadot pinctrl { 99f126890aSEmmanuel Vadot /* 100f126890aSEmmanuel Vadot * gpio0agrp cover line 0-4 101f126890aSEmmanuel Vadot * gpio0bgrp cover line 5 102f126890aSEmmanuel Vadot */ 103f126890aSEmmanuel Vadot gpio0_default_pins: pinctrl-gpio0 { 104f126890aSEmmanuel Vadot mux { 105f126890aSEmmanuel Vadot function = "gpio0"; 106f126890aSEmmanuel Vadot groups = "gpio0agrp", 107f126890aSEmmanuel Vadot "gpio0bgrp"; 108f126890aSEmmanuel Vadot }; 109f126890aSEmmanuel Vadot }; 110f126890aSEmmanuel Vadot }; 111f126890aSEmmanuel Vadot }; 112f126890aSEmmanuel Vadot 113f126890aSEmmanuel Vadot gpio0: gpio@4d000000 { 114f126890aSEmmanuel Vadot pinctrl-names = "default"; 115f126890aSEmmanuel Vadot pinctrl-0 = <&gpio0_default_pins>; 116f126890aSEmmanuel Vadot }; 117f126890aSEmmanuel Vadot 118f126890aSEmmanuel Vadot pci@50000000 { 119f126890aSEmmanuel Vadot status = "okay"; 120f126890aSEmmanuel Vadot }; 121f126890aSEmmanuel Vadot 122f126890aSEmmanuel Vadot ethernet@60000000 { 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot 125f126890aSEmmanuel Vadot ethernet-port@0 { 126f126890aSEmmanuel Vadot phy-mode = "rgmii"; 127f126890aSEmmanuel Vadot phy-handle = <&phy0>; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot ethernet-port@1 { 130f126890aSEmmanuel Vadot /* Not used in this platform */ 131f126890aSEmmanuel Vadot }; 132f126890aSEmmanuel Vadot }; 133f126890aSEmmanuel Vadot 134f126890aSEmmanuel Vadot usb@68000000 { 135f126890aSEmmanuel Vadot status = "okay"; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot usb@69000000 { 139f126890aSEmmanuel Vadot status = "okay"; 140f126890aSEmmanuel Vadot }; 141f126890aSEmmanuel Vadot }; 142f126890aSEmmanuel Vadot}; 143