1 // SPDX-License-Identifier: (GPL-2.0-only OR B 2 /dts-v1/; 3 4 #include "mt7621.dtsi" 5 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 9 / { 10 compatible = "gnubee,gb-pc2", "mediate 11 model = "GnuBee GB-PC2"; 12 13 memory@0 { 14 device_type = "memory"; 15 reg = <0x00000000 0x1c000000>, 16 <0x20000000 0x04000000>; 17 }; 18 19 chosen { 20 bootargs = "console=ttyS0,5760 21 }; 22 23 gpio-keys { 24 compatible = "gpio-keys"; 25 26 key-reset { 27 label = "reset"; 28 gpios = <&gpio 18 GPIO 29 linux,code = <KEY_REST 30 }; 31 }; 32 33 gpio-leds { 34 compatible = "gpio-leds"; 35 36 led-ethblack-green { 37 label = "green:ethblac 38 gpios = <&gpio 3 GPIO_ 39 }; 40 41 led-ethblue-green { 42 label = "green:ethblue 43 gpios = <&gpio 4 GPIO_ 44 }; 45 46 led-ethyellow-green { 47 label = "green:ethyell 48 gpios = <&gpio 15 GPIO 49 }; 50 51 led-ethyellow-orange { 52 label = "orange:ethyel 53 gpios = <&gpio 13 GPIO 54 }; 55 56 led-power { 57 label = "green:power"; 58 gpios = <&gpio 6 GPIO_ 59 linux,default-trigger 60 }; 61 62 led-system { 63 label = "green:system" 64 gpios = <&gpio 8 GPIO_ 65 linux,default-trigger 66 }; 67 }; 68 }; 69 70 &mmc { 71 status = "okay"; 72 }; 73 74 &spi0 { 75 status = "okay"; 76 77 flash@0 { 78 #address-cells = <1>; 79 #size-cells = <1>; 80 compatible = "jedec,spi-nor"; 81 reg = <0>; 82 spi-max-frequency = <50000000> 83 broken-flash-reset; 84 85 partition@0 { 86 label = "u-boot"; 87 reg = <0x0 0x30000>; 88 read-only; 89 }; 90 91 partition@30000 { 92 label = "u-boot-env"; 93 reg = <0x30000 0x10000 94 read-only; 95 }; 96 97 factory: partition@40000 { 98 label = "factory"; 99 reg = <0x40000 0x10000 100 read-only; 101 }; 102 103 partition@50000 { 104 label = "firmware"; 105 reg = <0x50000 0x1fb00 106 }; 107 }; 108 }; 109 110 &pcie { 111 status = "okay"; 112 }; 113 114 &gmac1 { 115 phy-mode = "rgmii-rxid"; 116 phy-handle = <ðphy5>; 117 118 fixed-link { 119 status = "disabled"; 120 }; 121 }; 122 123 &mdio { 124 ethphy5: ethernet-phy@5 { 125 reg = <5>; 126 }; 127 }; 128 129 &switch0 { 130 ports { 131 port@0 { 132 status = "okay"; 133 label = "ethblack"; 134 }; 135 136 port@4 { 137 status = "okay"; 138 label = "ethblue"; 139 }; 140 141 port@5 { 142 status = "disabled"; 143 }; 144 }; 145 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.