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