Back to home page

OSCL-LXR

 
 

    


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