xref: /linux/scripts/dtc/include-prefixes/mips/qca/ar9331_dragino_ms14.dts (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
23b9ec1b3SAntony Pavlov/dts-v1/;
33b9ec1b3SAntony Pavlov
43b9ec1b3SAntony Pavlov#include <dt-bindings/gpio/gpio.h>
53b9ec1b3SAntony Pavlov#include <dt-bindings/input/input.h>
63b9ec1b3SAntony Pavlov
73b9ec1b3SAntony Pavlov#include "ar9331.dtsi"
83b9ec1b3SAntony Pavlov
93b9ec1b3SAntony Pavlov/ {
103b9ec1b3SAntony Pavlov	model = "Dragino MS14 (Dragino 2)";
113b9ec1b3SAntony Pavlov	compatible = "dragino,ms14";
123b9ec1b3SAntony Pavlov
133b9ec1b3SAntony Pavlov	aliases {
143b9ec1b3SAntony Pavlov		serial0 = &uart;
153b9ec1b3SAntony Pavlov	};
163b9ec1b3SAntony Pavlov
173b9ec1b3SAntony Pavlov	memory@0 {
183b9ec1b3SAntony Pavlov		device_type = "memory";
193b9ec1b3SAntony Pavlov		reg = <0x0 0x4000000>;
203b9ec1b3SAntony Pavlov	};
213b9ec1b3SAntony Pavlov
223b9ec1b3SAntony Pavlov	leds {
233b9ec1b3SAntony Pavlov		compatible = "gpio-leds";
243b9ec1b3SAntony Pavlov
25*09e61efdSArınç ÜNAL		led-wlan {
263b9ec1b3SAntony Pavlov			label = "dragino2:red:wlan";
273b9ec1b3SAntony Pavlov			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
283b9ec1b3SAntony Pavlov			default-state = "off";
293b9ec1b3SAntony Pavlov		};
303b9ec1b3SAntony Pavlov
31*09e61efdSArınç ÜNAL		led-lan {
323b9ec1b3SAntony Pavlov			label = "dragino2:red:lan";
333b9ec1b3SAntony Pavlov			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
343b9ec1b3SAntony Pavlov			default-state = "off";
353b9ec1b3SAntony Pavlov		};
363b9ec1b3SAntony Pavlov
37*09e61efdSArınç ÜNAL		led-wan {
383b9ec1b3SAntony Pavlov			label = "dragino2:red:wan";
393b9ec1b3SAntony Pavlov			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
403b9ec1b3SAntony Pavlov			default-state = "off";
413b9ec1b3SAntony Pavlov		};
423b9ec1b3SAntony Pavlov
43*09e61efdSArınç ÜNAL		led-system {
443b9ec1b3SAntony Pavlov			label = "dragino2:red:system";
453b9ec1b3SAntony Pavlov			gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
463b9ec1b3SAntony Pavlov			default-state = "off";
473b9ec1b3SAntony Pavlov		};
483b9ec1b3SAntony Pavlov	};
493b9ec1b3SAntony Pavlov
5024babe69SAlban Bedel	gpio-keys {
5124babe69SAlban Bedel		compatible = "gpio-keys";
523b9ec1b3SAntony Pavlov
535ee46bfbSKrzysztof Kozlowski		button-0 {
543b9ec1b3SAntony Pavlov			label = "jumpstart";
553b9ec1b3SAntony Pavlov			linux,code = <KEY_WPS_BUTTON>;
563b9ec1b3SAntony Pavlov			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
573b9ec1b3SAntony Pavlov		};
583b9ec1b3SAntony Pavlov
595ee46bfbSKrzysztof Kozlowski		button-1 {
603b9ec1b3SAntony Pavlov			label = "reset";
613b9ec1b3SAntony Pavlov			linux,code = <KEY_RESTART>;
623b9ec1b3SAntony Pavlov			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
633b9ec1b3SAntony Pavlov		};
643b9ec1b3SAntony Pavlov	};
653b9ec1b3SAntony Pavlov};
663b9ec1b3SAntony Pavlov
673b9ec1b3SAntony Pavlov&ref {
683b9ec1b3SAntony Pavlov	clock-frequency = <25000000>;
693b9ec1b3SAntony Pavlov};
703b9ec1b3SAntony Pavlov
713b9ec1b3SAntony Pavlov&uart {
723b9ec1b3SAntony Pavlov	status = "okay";
733b9ec1b3SAntony Pavlov};
743b9ec1b3SAntony Pavlov
753b9ec1b3SAntony Pavlov&gpio {
763b9ec1b3SAntony Pavlov	status = "okay";
773b9ec1b3SAntony Pavlov};
783b9ec1b3SAntony Pavlov
793b9ec1b3SAntony Pavlov&usb {
803b9ec1b3SAntony Pavlov	dr_mode = "host";
813b9ec1b3SAntony Pavlov	status = "okay";
823b9ec1b3SAntony Pavlov};
833b9ec1b3SAntony Pavlov
843b9ec1b3SAntony Pavlov&usb_phy {
853b9ec1b3SAntony Pavlov	status = "okay";
863b9ec1b3SAntony Pavlov};
873b9ec1b3SAntony Pavlov
883b9ec1b3SAntony Pavlov&spi {
893b9ec1b3SAntony Pavlov	num-chipselects = <1>;
903b9ec1b3SAntony Pavlov	status = "okay";
913b9ec1b3SAntony Pavlov
923b9ec1b3SAntony Pavlov	/* Winbond 25Q128BVFG SPI flash */
933b9ec1b3SAntony Pavlov	spiflash: w25q128@0 {
943b9ec1b3SAntony Pavlov		#address-cells = <1>;
953b9ec1b3SAntony Pavlov		#size-cells = <1>;
963b9ec1b3SAntony Pavlov		compatible = "winbond,w25q128", "jedec,spi-nor";
973b9ec1b3SAntony Pavlov		spi-max-frequency = <104000000>;
983b9ec1b3SAntony Pavlov		reg = <0>;
993b9ec1b3SAntony Pavlov	};
1003b9ec1b3SAntony Pavlov};
101