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