0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree file for Wiliboard WBD-222
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "gemini.dtsi"
0009 #include <dt-bindings/input/input.h>
0010
0011 / {
0012 model = "Wiliboard WBD-222";
0013 compatible = "wiliboard,wbd222", "cortina,gemini";
0014 #address-cells = <1>;
0015 #size-cells = <1>;
0016
0017 memory@0 { /* 128 MB */
0018 device_type = "memory";
0019 reg = <0x00000000 0x8000000>;
0020 };
0021
0022 chosen {
0023 bootargs = "console=ttyS0,115200n8";
0024 stdout-path = &uart0;
0025 };
0026
0027 gpio_keys {
0028 compatible = "gpio-keys";
0029
0030 button-setup {
0031 debounce-interval = <100>;
0032 wakeup-source;
0033 linux,code = <KEY_SETUP>;
0034 label = "reset";
0035 /* Conflict with ICE */
0036 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
0037 };
0038 };
0039
0040 leds {
0041 compatible = "gpio-leds";
0042
0043 led-red-l3 {
0044 label = "wbd111:red:L3";
0045 /* Conflict with TVC and extended parallel flash */
0046 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
0047 default-state = "off";
0048 };
0049 led-green-l4 {
0050 label = "wbd111:green:L4";
0051 /* Conflict with TVC and extended parallel flash */
0052 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
0053 default-state = "off";
0054 };
0055 led-red-l4 {
0056 label = "wbd111:red:L4";
0057 /* Conflict with TVC and extended parallel flash */
0058 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
0059 default-state = "off";
0060 };
0061 led-green-l3 {
0062 label = "wbd111:green:L3";
0063 /* Conflict with TVC and extended parallel flash */
0064 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
0065 default-state = "on";
0066 linux,default-trigger = "heartbeat";
0067 };
0068 };
0069
0070 mdio0: mdio {
0071 compatible = "virtual,mdio-gpio";
0072 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
0073 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
0074 #address-cells = <1>;
0075 #size-cells = <0>;
0076
0077 phy0: ethernet-phy@1 {
0078 reg = <1>;
0079 device_type = "ethernet-phy";
0080 };
0081
0082 phy1: ethernet-phy@3 {
0083 reg = <3>;
0084 device_type = "ethernet-phy";
0085 };
0086 };
0087
0088 soc {
0089 flash@30000000 {
0090 status = "okay";
0091 /* 8MB of flash */
0092 reg = <0x30000000 0x00800000>;
0093
0094 partition@0 {
0095 label = "RedBoot";
0096 reg = <0x00000000 0x00020000>;
0097 read-only;
0098 };
0099 partition@20000 {
0100 label = "kernel";
0101 reg = <0x00020000 0x00100000>;
0102 };
0103 partition@120000 {
0104 label = "rootfs";
0105 reg = <0x00120000 0x006a0000>;
0106 };
0107 partition@7c0000 {
0108 label = "VCTL";
0109 reg = <0x007c0000 0x00010000>;
0110 read-only;
0111 };
0112 partition@7d0000 {
0113 label = "cfg";
0114 reg = <0x007d0000 0x00010000>;
0115 read-only;
0116 };
0117 partition@7e0000 {
0118 label = "FIS";
0119 reg = <0x007e0000 0x00010000>;
0120 read-only;
0121 };
0122 };
0123
0124 syscon: syscon@40000000 {
0125 pinctrl {
0126 /*
0127 * gpio0agrp cover line 0-4
0128 * gpio0bgrp cover line 5
0129 */
0130 gpio0_default_pins: pinctrl-gpio0 {
0131 mux {
0132 function = "gpio0";
0133 groups = "gpio0agrp",
0134 "gpio0bgrp";
0135 };
0136 };
0137 pinctrl-gmii {
0138 /* This platform use both the ethernet ports */
0139 mux {
0140 function = "gmii";
0141 groups = "gmii_gmac0_grp", "gmii_gmac1_grp";
0142 };
0143 };
0144 };
0145 };
0146
0147 gpio0: gpio@4d000000 {
0148 pinctrl-names = "default";
0149 pinctrl-0 = <&gpio0_default_pins>;
0150 };
0151
0152 pci@50000000 {
0153 status = "okay";
0154 };
0155
0156 ethernet@60000000 {
0157 status = "okay";
0158
0159 ethernet-port@0 {
0160 phy-mode = "rgmii";
0161 phy-handle = <&phy0>;
0162 };
0163 ethernet-port@1 {
0164 phy-mode = "rgmii";
0165 phy-handle = <&phy1>;
0166 };
0167 };
0168
0169 usb@68000000 {
0170 status = "okay";
0171 };
0172
0173 usb@69000000 {
0174 status = "okay";
0175 };
0176 };
0177 };