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