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