xref: /linux/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (revision dec1c62e91ba268ab2a6e339d4d7a59287d5eba1)
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-pc1", "mediatek,mt7621-soc";
11	model = "GB-PC1";
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	gpio-leds {
40		compatible = "gpio-leds";
41
42		power {
43			label = "green:power";
44			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
45			linux,default-trigger = "default-on";
46		};
47
48		system {
49			label = "green:system";
50			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
51			linux,default-trigger = "disk-activity";
52		};
53	};
54};
55
56&sdhci {
57	status = "okay";
58};
59
60&spi0 {
61	status = "okay";
62
63	flash@0 {
64		#address-cells = <1>;
65		#size-cells = <1>;
66		compatible = "jedec,spi-nor";
67		reg = <0>;
68		spi-max-frequency = <50000000>;
69		broken-flash-reset;
70
71		partition@0 {
72			label = "u-boot";
73			reg = <0x0 0x30000>;
74			read-only;
75		};
76
77		partition@30000 {
78			label = "u-boot-env";
79			reg = <0x30000 0x10000>;
80			read-only;
81		};
82
83		factory: partition@40000 {
84			label = "factory";
85			reg = <0x40000 0x10000>;
86			read-only;
87		};
88
89		partition@50000 {
90			label = "firmware";
91			reg = <0x50000 0x1fb0000>;
92		};
93	};
94};
95
96&pcie {
97	status = "okay";
98};
99
100&gmac1 {
101	status = "okay";
102	phy-handle = <&ethphy4>;
103};
104
105&mdio {
106	ethphy4: ethernet-phy@4 {
107		reg = <4>;
108	};
109};
110
111&switch0 {
112	ports {
113		port@0 {
114			status = "okay";
115			label = "ethblack";
116		};
117	};
118};
119