1/dts-v1/; 2 3#include "mt7621.dtsi" 4 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/input/input.h> 7 8/ { 9 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; 10 model = "GB-PC1"; 11 12 memory@0 { 13 device_type = "memory"; 14 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; 15 }; 16 17 chosen { 18 bootargs = "console=ttyS0,57600"; 19 }; 20 21 palmbus: palmbus@1E000000 { 22 i2c@900 { 23 status = "okay"; 24 }; 25 }; 26 27 gpio-keys { 28 compatible = "gpio-keys"; 29 30 reset { 31 label = "reset"; 32 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 33 linux,code = <KEY_RESTART>; 34 }; 35 }; 36 37 gpio-leds { 38 compatible = "gpio-leds"; 39 40 system { 41 label = "gb-pc1:green:system"; 42 gpios = <&gpio 6 GPIO_ACTIVE_LOW>; 43 }; 44 45 status { 46 label = "gb-pc1:green:status"; 47 gpios = <&gpio 8 GPIO_ACTIVE_LOW>; 48 }; 49 50 lan1 { 51 label = "gb-pc1:green:lan1"; 52 gpios = <&gpio 24 GPIO_ACTIVE_LOW>; 53 }; 54 55 lan2 { 56 label = "gb-pc1:green:lan2"; 57 gpios = <&gpio 25 GPIO_ACTIVE_LOW>; 58 }; 59 }; 60}; 61 62&sdhci { 63 status = "okay"; 64}; 65 66&spi0 { 67 status = "okay"; 68 69 m25p80@0 { 70 #address-cells = <1>; 71 #size-cells = <1>; 72 compatible = "jedec,spi-nor"; 73 reg = <0>; 74 spi-max-frequency = <50000000>; 75 broken-flash-reset; 76 77 partition@0 { 78 label = "u-boot"; 79 reg = <0x0 0x30000>; 80 read-only; 81 }; 82 83 partition@30000 { 84 label = "u-boot-env"; 85 reg = <0x30000 0x10000>; 86 read-only; 87 }; 88 89 factory: partition@40000 { 90 label = "factory"; 91 reg = <0x40000 0x10000>; 92 read-only; 93 }; 94 95 partition@50000 { 96 label = "firmware"; 97 reg = <0x50000 0x1FB0000>; 98 }; 99 100 }; 101}; 102 103&pcie { 104 status = "okay"; 105}; 106 107&pinctrl { 108 state_default: pinctrl0 { 109 default_gpio: gpio { 110 groups = "wdt", "rgmii2", "uart3"; 111 function = "gpio"; 112 }; 113 }; 114}; 115 116&switch0 { 117 ports { 118 port@0 { 119 label = "ethblack"; 120 status = "ok"; 121 }; 122 port@4 { 123 label = "ethblue"; 124 status = "ok"; 125 }; 126 }; 127}; 128