xref: /linux/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (revision 5ae75a1ae5c9eb6765a11c8f54554a1a889f2c7f)
17a6ee0bbSArınç ÜNAL// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27a6ee0bbSArınç ÜNAL/dts-v1/;
37a6ee0bbSArınç ÜNAL
47a6ee0bbSArınç ÜNAL#include "mt7621.dtsi"
57a6ee0bbSArınç ÜNAL
67a6ee0bbSArınç ÜNAL#include <dt-bindings/gpio/gpio.h>
77a6ee0bbSArınç ÜNAL#include <dt-bindings/input/input.h>
87a6ee0bbSArınç ÜNAL
97a6ee0bbSArınç ÜNAL/ {
107a6ee0bbSArınç ÜNAL	compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
117a6ee0bbSArınç ÜNAL	model = "GB-PC1";
127a6ee0bbSArınç ÜNAL
137a6ee0bbSArınç ÜNAL	memory@0 {
147a6ee0bbSArınç ÜNAL		device_type = "memory";
157a6ee0bbSArınç ÜNAL		reg = <0x00000000 0x1c000000>,
167a6ee0bbSArınç ÜNAL		      <0x20000000 0x04000000>;
177a6ee0bbSArınç ÜNAL	};
187a6ee0bbSArınç ÜNAL
197a6ee0bbSArınç ÜNAL	chosen {
207a6ee0bbSArınç ÜNAL		bootargs = "console=ttyS0,57600";
217a6ee0bbSArınç ÜNAL	};
227a6ee0bbSArınç ÜNAL
237a6ee0bbSArınç ÜNAL	palmbus: palmbus@1e000000 {
247a6ee0bbSArınç ÜNAL		i2c@900 {
257a6ee0bbSArınç ÜNAL			status = "okay";
267a6ee0bbSArınç ÜNAL		};
277a6ee0bbSArınç ÜNAL	};
287a6ee0bbSArınç ÜNAL
297a6ee0bbSArınç ÜNAL	gpio-keys {
307a6ee0bbSArınç ÜNAL		compatible = "gpio-keys";
317a6ee0bbSArınç ÜNAL
3262fb295cSKrzysztof Kozlowski		key-reset {
337a6ee0bbSArınç ÜNAL			label = "reset";
347a6ee0bbSArınç ÜNAL			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
357a6ee0bbSArınç ÜNAL			linux,code = <KEY_RESTART>;
367a6ee0bbSArınç ÜNAL		};
377a6ee0bbSArınç ÜNAL	};
387a6ee0bbSArınç ÜNAL
397a6ee0bbSArınç ÜNAL	gpio-leds {
407a6ee0bbSArınç ÜNAL		compatible = "gpio-leds";
417a6ee0bbSArınç ÜNAL
427a6ee0bbSArınç ÜNAL		power {
437a6ee0bbSArınç ÜNAL			label = "green:power";
447a6ee0bbSArınç ÜNAL			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
457a6ee0bbSArınç ÜNAL			linux,default-trigger = "default-on";
467a6ee0bbSArınç ÜNAL		};
477a6ee0bbSArınç ÜNAL
487a6ee0bbSArınç ÜNAL		system {
497a6ee0bbSArınç ÜNAL			label = "green:system";
507a6ee0bbSArınç ÜNAL			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
517a6ee0bbSArınç ÜNAL			linux,default-trigger = "disk-activity";
527a6ee0bbSArınç ÜNAL		};
537a6ee0bbSArınç ÜNAL	};
547a6ee0bbSArınç ÜNAL};
557a6ee0bbSArınç ÜNAL
56*5ae75a1aSArınç ÜNAL&mmc {
577a6ee0bbSArınç ÜNAL	status = "okay";
587a6ee0bbSArınç ÜNAL};
597a6ee0bbSArınç ÜNAL
607a6ee0bbSArınç ÜNAL&spi0 {
617a6ee0bbSArınç ÜNAL	status = "okay";
627a6ee0bbSArınç ÜNAL
6327498967SKrzysztof Kozlowski	flash@0 {
647a6ee0bbSArınç ÜNAL		#address-cells = <1>;
657a6ee0bbSArınç ÜNAL		#size-cells = <1>;
667a6ee0bbSArınç ÜNAL		compatible = "jedec,spi-nor";
677a6ee0bbSArınç ÜNAL		reg = <0>;
687a6ee0bbSArınç ÜNAL		spi-max-frequency = <50000000>;
697a6ee0bbSArınç ÜNAL		broken-flash-reset;
707a6ee0bbSArınç ÜNAL
717a6ee0bbSArınç ÜNAL		partition@0 {
727a6ee0bbSArınç ÜNAL			label = "u-boot";
737a6ee0bbSArınç ÜNAL			reg = <0x0 0x30000>;
747a6ee0bbSArınç ÜNAL			read-only;
757a6ee0bbSArınç ÜNAL		};
767a6ee0bbSArınç ÜNAL
777a6ee0bbSArınç ÜNAL		partition@30000 {
787a6ee0bbSArınç ÜNAL			label = "u-boot-env";
797a6ee0bbSArınç ÜNAL			reg = <0x30000 0x10000>;
807a6ee0bbSArınç ÜNAL			read-only;
817a6ee0bbSArınç ÜNAL		};
827a6ee0bbSArınç ÜNAL
837a6ee0bbSArınç ÜNAL		factory: partition@40000 {
847a6ee0bbSArınç ÜNAL			label = "factory";
857a6ee0bbSArınç ÜNAL			reg = <0x40000 0x10000>;
867a6ee0bbSArınç ÜNAL			read-only;
877a6ee0bbSArınç ÜNAL		};
887a6ee0bbSArınç ÜNAL
897a6ee0bbSArınç ÜNAL		partition@50000 {
907a6ee0bbSArınç ÜNAL			label = "firmware";
917a6ee0bbSArınç ÜNAL			reg = <0x50000 0x1fb0000>;
927a6ee0bbSArınç ÜNAL		};
937a6ee0bbSArınç ÜNAL	};
947a6ee0bbSArınç ÜNAL};
957a6ee0bbSArınç ÜNAL
967a6ee0bbSArınç ÜNAL&pcie {
977a6ee0bbSArınç ÜNAL	status = "okay";
987a6ee0bbSArınç ÜNAL};
997a6ee0bbSArınç ÜNAL
1006faf0dbdSArınç ÜNAL&gmac1 {
1016faf0dbdSArınç ÜNAL	status = "okay";
1026faf0dbdSArınç ÜNAL	phy-handle = <&ethphy4>;
1036faf0dbdSArınç ÜNAL};
1046faf0dbdSArınç ÜNAL
1056faf0dbdSArınç ÜNAL&mdio {
1066faf0dbdSArınç ÜNAL	ethphy4: ethernet-phy@4 {
1076faf0dbdSArınç ÜNAL		reg = <4>;
1086faf0dbdSArınç ÜNAL	};
1097a6ee0bbSArınç ÜNAL};
1107a6ee0bbSArınç ÜNAL
1117a6ee0bbSArınç ÜNAL&switch0 {
1127a6ee0bbSArınç ÜNAL	ports {
1137a6ee0bbSArınç ÜNAL		port@0 {
1147a6ee0bbSArınç ÜNAL			status = "okay";
1157a6ee0bbSArınç ÜNAL			label = "ethblack";
1167a6ee0bbSArınç ÜNAL		};
1177a6ee0bbSArınç ÜNAL	};
1187a6ee0bbSArınç ÜNAL};
119