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-pc2", "mediatek,mt7621-soc"; 10 model = "GB-PC2"; 11 12 memory@0 { 13 device_type = "memory"; 14 reg = <0x00000000 0x1c000000>, 15 <0x20000000 0x04000000>; 16 }; 17 18 chosen { 19 bootargs = "console=ttyS0,57600"; 20 }; 21 22 palmbus: palmbus@1e000000 { 23 i2c@900 { 24 status = "okay"; 25 }; 26 }; 27 28 gpio-keys { 29 compatible = "gpio-keys"; 30 31 reset { 32 label = "reset"; 33 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 34 linux,code = <KEY_RESTART>; 35 }; 36 }; 37}; 38 39&sdhci { 40 status = "okay"; 41}; 42 43&spi0 { 44 status = "okay"; 45 46 m25p80@0 { 47 #address-cells = <1>; 48 #size-cells = <1>; 49 compatible = "jedec,spi-nor"; 50 reg = <0>; 51 spi-max-frequency = <50000000>; 52 broken-flash-reset; 53 54 partition@0 { 55 label = "u-boot"; 56 reg = <0x0 0x30000>; 57 read-only; 58 }; 59 60 partition@30000 { 61 label = "u-boot-env"; 62 reg = <0x30000 0x10000>; 63 read-only; 64 }; 65 66 factory: partition@40000 { 67 label = "factory"; 68 reg = <0x40000 0x10000>; 69 read-only; 70 }; 71 72 partition@50000 { 73 label = "firmware"; 74 reg = <0x50000 0x1fb0000>; 75 }; 76 }; 77}; 78 79&pcie { 80 status = "okay"; 81}; 82 83&pinctrl { 84 pinctrl-names = "default"; 85 pinctrl-0 = <&state_default>; 86 87 state_default: state-default { 88 gpio-pinmux { 89 groups = "wdt"; 90 function = "gpio"; 91 }; 92 }; 93}; 94 95ðernet { 96 gmac1: mac@1 { 97 status = "okay"; 98 phy-handle = <ðphy7>; 99 }; 100 101 mdio-bus { 102 ethphy7: ethernet-phy@7 { 103 reg = <7>; 104 phy-mode = "rgmii-rxid"; 105 }; 106 }; 107}; 108 109&switch0 { 110 ports { 111 port@0 { 112 status = "okay"; 113 label = "ethblack"; 114 }; 115 116 port@4 { 117 status = "okay"; 118 label = "ethblue"; 119 }; 120 }; 121}; 122