0001 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 /dts-v1/;
0003
0004 #include "mt7621.dtsi"
0005
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include <dt-bindings/input/input.h>
0008
0009 / {
0010 compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
0011 model = "GB-PC2";
0012
0013 memory@0 {
0014 device_type = "memory";
0015 reg = <0x00000000 0x1c000000>,
0016 <0x20000000 0x04000000>;
0017 };
0018
0019 chosen {
0020 bootargs = "console=ttyS0,57600";
0021 };
0022
0023 palmbus: palmbus@1e000000 {
0024 i2c@900 {
0025 status = "okay";
0026 };
0027 };
0028
0029 gpio-keys {
0030 compatible = "gpio-keys";
0031
0032 key-reset {
0033 label = "reset";
0034 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
0035 linux,code = <KEY_RESTART>;
0036 };
0037 };
0038 };
0039
0040 &sdhci {
0041 status = "okay";
0042 };
0043
0044 &spi0 {
0045 status = "okay";
0046
0047 flash@0 {
0048 #address-cells = <1>;
0049 #size-cells = <1>;
0050 compatible = "jedec,spi-nor";
0051 reg = <0>;
0052 spi-max-frequency = <50000000>;
0053 broken-flash-reset;
0054
0055 partition@0 {
0056 label = "u-boot";
0057 reg = <0x0 0x30000>;
0058 read-only;
0059 };
0060
0061 partition@30000 {
0062 label = "u-boot-env";
0063 reg = <0x30000 0x10000>;
0064 read-only;
0065 };
0066
0067 factory: partition@40000 {
0068 label = "factory";
0069 reg = <0x40000 0x10000>;
0070 read-only;
0071 };
0072
0073 partition@50000 {
0074 label = "firmware";
0075 reg = <0x50000 0x1fb0000>;
0076 };
0077 };
0078 };
0079
0080 &pcie {
0081 status = "okay";
0082 };
0083
0084 &gmac1 {
0085 status = "okay";
0086 phy-handle = <ðphy7>;
0087 };
0088
0089 &mdio {
0090 ethphy7: ethernet-phy@7 {
0091 reg = <7>;
0092 phy-mode = "rgmii-rxid";
0093 };
0094 };
0095
0096 &switch0 {
0097 ports {
0098 port@0 {
0099 status = "okay";
0100 label = "ethblack";
0101 };
0102
0103 port@4 {
0104 status = "okay";
0105 label = "ethblue";
0106 };
0107 };
0108 };