xref: /linux/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
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";
11*70f8cd94SArınç ÜNAL	model = "GnuBee 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	gpio-keys {
247a6ee0bbSArınç ÜNAL		compatible = "gpio-keys";
257a6ee0bbSArınç ÜNAL
2662fb295cSKrzysztof Kozlowski		key-reset {
277a6ee0bbSArınç ÜNAL			label = "reset";
287a6ee0bbSArınç ÜNAL			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
297a6ee0bbSArınç ÜNAL			linux,code = <KEY_RESTART>;
307a6ee0bbSArınç ÜNAL		};
317a6ee0bbSArınç ÜNAL	};
327a6ee0bbSArınç ÜNAL
337a6ee0bbSArınç ÜNAL	gpio-leds {
347a6ee0bbSArınç ÜNAL		compatible = "gpio-leds";
357a6ee0bbSArınç ÜNAL
3609e61efdSArınç ÜNAL		led-power {
377a6ee0bbSArınç ÜNAL			label = "green:power";
387a6ee0bbSArınç ÜNAL			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
397a6ee0bbSArınç ÜNAL			linux,default-trigger = "default-on";
407a6ee0bbSArınç ÜNAL		};
417a6ee0bbSArınç ÜNAL
4209e61efdSArınç ÜNAL		led-system {
437a6ee0bbSArınç ÜNAL			label = "green:system";
447a6ee0bbSArınç ÜNAL			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
457a6ee0bbSArınç ÜNAL			linux,default-trigger = "disk-activity";
467a6ee0bbSArınç ÜNAL		};
477a6ee0bbSArınç ÜNAL	};
487a6ee0bbSArınç ÜNAL};
497a6ee0bbSArınç ÜNAL
505ae75a1aSArınç ÜNAL&mmc {
517a6ee0bbSArınç ÜNAL	status = "okay";
527a6ee0bbSArınç ÜNAL};
537a6ee0bbSArınç ÜNAL
547a6ee0bbSArınç ÜNAL&spi0 {
557a6ee0bbSArınç ÜNAL	status = "okay";
567a6ee0bbSArınç ÜNAL
5727498967SKrzysztof Kozlowski	flash@0 {
587a6ee0bbSArınç ÜNAL		#address-cells = <1>;
597a6ee0bbSArınç ÜNAL		#size-cells = <1>;
607a6ee0bbSArınç ÜNAL		compatible = "jedec,spi-nor";
617a6ee0bbSArınç ÜNAL		reg = <0>;
627a6ee0bbSArınç ÜNAL		spi-max-frequency = <50000000>;
637a6ee0bbSArınç ÜNAL		broken-flash-reset;
647a6ee0bbSArınç ÜNAL
657a6ee0bbSArınç ÜNAL		partition@0 {
667a6ee0bbSArınç ÜNAL			label = "u-boot";
677a6ee0bbSArınç ÜNAL			reg = <0x0 0x30000>;
687a6ee0bbSArınç ÜNAL			read-only;
697a6ee0bbSArınç ÜNAL		};
707a6ee0bbSArınç ÜNAL
717a6ee0bbSArınç ÜNAL		partition@30000 {
727a6ee0bbSArınç ÜNAL			label = "u-boot-env";
737a6ee0bbSArınç ÜNAL			reg = <0x30000 0x10000>;
747a6ee0bbSArınç ÜNAL			read-only;
757a6ee0bbSArınç ÜNAL		};
767a6ee0bbSArınç ÜNAL
777a6ee0bbSArınç ÜNAL		factory: partition@40000 {
787a6ee0bbSArınç ÜNAL			label = "factory";
797a6ee0bbSArınç ÜNAL			reg = <0x40000 0x10000>;
807a6ee0bbSArınç ÜNAL			read-only;
817a6ee0bbSArınç ÜNAL		};
827a6ee0bbSArınç ÜNAL
837a6ee0bbSArınç ÜNAL		partition@50000 {
847a6ee0bbSArınç ÜNAL			label = "firmware";
857a6ee0bbSArınç ÜNAL			reg = <0x50000 0x1fb0000>;
867a6ee0bbSArınç ÜNAL		};
877a6ee0bbSArınç ÜNAL	};
887a6ee0bbSArınç ÜNAL};
897a6ee0bbSArınç ÜNAL
907a6ee0bbSArınç ÜNAL&pcie {
917a6ee0bbSArınç ÜNAL	status = "okay";
927a6ee0bbSArınç ÜNAL};
937a6ee0bbSArınç ÜNAL
947a6ee0bbSArınç ÜNAL&switch0 {
957a6ee0bbSArınç ÜNAL	ports {
967a6ee0bbSArınç ÜNAL		port@0 {
977a6ee0bbSArınç ÜNAL			status = "okay";
987a6ee0bbSArınç ÜNAL			label = "ethblack";
997a6ee0bbSArınç ÜNAL		};
100bae83341SArınç ÜNAL
101bae83341SArınç ÜNAL		port@4 {
102bae83341SArınç ÜNAL			status = "okay";
103bae83341SArınç ÜNAL			label = "ethblue";
104bae83341SArınç ÜNAL		};
1057a6ee0bbSArınç ÜNAL	};
1067a6ee0bbSArınç ÜNAL};
107