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 = "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 palmbus: palmbus@1e000000 { >> 24 i2c@900 { >> 25 status = "okay"; >> 26 }; >> 27 }; >> 28 23 gpio-keys { 29 gpio-keys { 24 compatible = "gpio-keys"; 30 compatible = "gpio-keys"; 25 31 26 key-reset { !! 32 reset { 27 label = "reset"; 33 label = "reset"; 28 gpios = <&gpio 18 GPIO 34 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 29 linux,code = <KEY_REST 35 linux,code = <KEY_RESTART>; 30 }; 36 }; 31 }; 37 }; 32 38 33 gpio-leds { 39 gpio-leds { 34 compatible = "gpio-leds"; 40 compatible = "gpio-leds"; 35 41 36 led-power { !! 42 power { 37 label = "green:power"; 43 label = "green:power"; 38 gpios = <&gpio 6 GPIO_ 44 gpios = <&gpio 6 GPIO_ACTIVE_LOW>; 39 linux,default-trigger 45 linux,default-trigger = "default-on"; 40 }; 46 }; 41 47 42 led-system { !! 48 system { 43 label = "green:system" 49 label = "green:system"; 44 gpios = <&gpio 8 GPIO_ 50 gpios = <&gpio 8 GPIO_ACTIVE_LOW>; 45 linux,default-trigger 51 linux,default-trigger = "disk-activity"; 46 }; 52 }; 47 }; 53 }; 48 }; 54 }; 49 55 50 &mmc { !! 56 &sdhci { 51 status = "okay"; 57 status = "okay"; 52 }; 58 }; 53 59 54 &spi0 { 60 &spi0 { 55 status = "okay"; 61 status = "okay"; 56 62 57 flash@0 { !! 63 m25p80@0 { 58 #address-cells = <1>; 64 #address-cells = <1>; 59 #size-cells = <1>; 65 #size-cells = <1>; 60 compatible = "jedec,spi-nor"; 66 compatible = "jedec,spi-nor"; 61 reg = <0>; 67 reg = <0>; 62 spi-max-frequency = <50000000> 68 spi-max-frequency = <50000000>; 63 broken-flash-reset; 69 broken-flash-reset; 64 70 65 partition@0 { 71 partition@0 { 66 label = "u-boot"; 72 label = "u-boot"; 67 reg = <0x0 0x30000>; 73 reg = <0x0 0x30000>; 68 read-only; 74 read-only; 69 }; 75 }; 70 76 71 partition@30000 { 77 partition@30000 { 72 label = "u-boot-env"; 78 label = "u-boot-env"; 73 reg = <0x30000 0x10000 79 reg = <0x30000 0x10000>; 74 read-only; 80 read-only; 75 }; 81 }; 76 82 77 factory: partition@40000 { 83 factory: partition@40000 { 78 label = "factory"; 84 label = "factory"; 79 reg = <0x40000 0x10000 85 reg = <0x40000 0x10000>; 80 read-only; 86 read-only; 81 }; 87 }; 82 88 83 partition@50000 { 89 partition@50000 { 84 label = "firmware"; 90 label = "firmware"; 85 reg = <0x50000 0x1fb00 91 reg = <0x50000 0x1fb0000>; 86 }; 92 }; 87 }; 93 }; 88 }; 94 }; 89 95 90 &pcie { 96 &pcie { 91 status = "okay"; 97 status = "okay"; >> 98 }; >> 99 >> 100 &pinctrl { >> 101 pinctrl-names = "default"; >> 102 pinctrl-0 = <&state_default>; >> 103 >> 104 state_default: state-default { >> 105 gpio-pinmux { >> 106 groups = "rgmii2", "uart3", "wdt"; >> 107 function = "gpio"; >> 108 }; >> 109 }; >> 110 }; >> 111 >> 112 ðernet { >> 113 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>; 92 }; 114 }; 93 115 94 &switch0 { 116 &switch0 { 95 ports { 117 ports { 96 port@0 { 118 port@0 { 97 status = "okay"; 119 status = "okay"; 98 label = "ethblack"; 120 label = "ethblack"; 99 }; 121 }; 100 122 101 port@4 { 123 port@4 { 102 status = "okay"; 124 status = "okay"; 103 label = "ethblue"; 125 label = "ethblue"; 104 }; 126 }; 105 }; 127 }; 106 }; 128 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.