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-pc1", "mediate 10 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; 11 model = "GnuBee GB-PC1"; 11 model = "GnuBee GB-PC1"; 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-power { 36 led-power { 37 label = "green:power"; 37 label = "green:power"; 38 gpios = <&gpio 6 GPIO_ 38 gpios = <&gpio 6 GPIO_ACTIVE_LOW>; 39 linux,default-trigger 39 linux,default-trigger = "default-on"; 40 }; 40 }; 41 41 42 led-system { 42 led-system { 43 label = "green:system" 43 label = "green:system"; 44 gpios = <&gpio 8 GPIO_ 44 gpios = <&gpio 8 GPIO_ACTIVE_LOW>; 45 linux,default-trigger 45 linux,default-trigger = "disk-activity"; 46 }; 46 }; 47 }; 47 }; 48 }; 48 }; 49 49 50 &mmc { 50 &mmc { 51 status = "okay"; 51 status = "okay"; 52 }; 52 }; 53 53 54 &spi0 { 54 &spi0 { 55 status = "okay"; 55 status = "okay"; 56 56 57 flash@0 { 57 flash@0 { 58 #address-cells = <1>; 58 #address-cells = <1>; 59 #size-cells = <1>; 59 #size-cells = <1>; 60 compatible = "jedec,spi-nor"; 60 compatible = "jedec,spi-nor"; 61 reg = <0>; 61 reg = <0>; 62 spi-max-frequency = <50000000> 62 spi-max-frequency = <50000000>; 63 broken-flash-reset; 63 broken-flash-reset; 64 64 65 partition@0 { 65 partition@0 { 66 label = "u-boot"; 66 label = "u-boot"; 67 reg = <0x0 0x30000>; 67 reg = <0x0 0x30000>; 68 read-only; 68 read-only; 69 }; 69 }; 70 70 71 partition@30000 { 71 partition@30000 { 72 label = "u-boot-env"; 72 label = "u-boot-env"; 73 reg = <0x30000 0x10000 73 reg = <0x30000 0x10000>; 74 read-only; 74 read-only; 75 }; 75 }; 76 76 77 factory: partition@40000 { 77 factory: partition@40000 { 78 label = "factory"; 78 label = "factory"; 79 reg = <0x40000 0x10000 79 reg = <0x40000 0x10000>; 80 read-only; 80 read-only; 81 }; 81 }; 82 82 83 partition@50000 { 83 partition@50000 { 84 label = "firmware"; 84 label = "firmware"; 85 reg = <0x50000 0x1fb00 85 reg = <0x50000 0x1fb0000>; 86 }; 86 }; 87 }; 87 }; 88 }; 88 }; 89 89 90 &pcie { 90 &pcie { 91 status = "okay"; 91 status = "okay"; 92 }; 92 }; 93 93 94 &switch0 { 94 &switch0 { 95 ports { 95 ports { 96 port@0 { 96 port@0 { 97 status = "okay"; 97 status = "okay"; 98 label = "ethblack"; 98 label = "ethblack"; 99 }; 99 }; 100 100 101 port@4 { 101 port@4 { 102 status = "okay"; 102 status = "okay"; 103 label = "ethblue"; 103 label = "ethblue"; 104 }; 104 }; 105 }; 105 }; 106 }; 106 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.