xref: /freebsd/sys/contrib/device-tree/src/mips/ralink/mt7621-gnubee-gb-pc2.dts (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
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		key-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	flash@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&gmac1 {
85	status = "okay";
86	phy-handle = <&ethphy7>;
87};
88
89&mdio {
90	ethphy7: ethernet-phy@7 {
91		reg = <7>;
92		phy-mode = "rgmii-rxid";
93	};
94};
95
96&switch0 {
97	ports {
98		port@0 {
99			status = "okay";
100			label = "ethblack";
101		};
102
103		port@4 {
104			status = "okay";
105			label = "ethblue";
106		};
107	};
108};
109