Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include <dt-bindings/gpio/gpio.h>
0005 #include <dt-bindings/input/input.h>
0006 
0007 #include "ar9331.dtsi"
0008 
0009 / {
0010         model = "Dragino MS14 (Dragino 2)";
0011         compatible = "dragino,ms14";
0012 
0013         aliases {
0014                 serial0 = &uart;
0015         };
0016 
0017         memory@0 {
0018                 device_type = "memory";
0019                 reg = <0x0 0x4000000>;
0020         };
0021 
0022         leds {
0023                 compatible = "gpio-leds";
0024 
0025                 wlan {
0026                         label = "dragino2:red:wlan";
0027                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
0028                         default-state = "off";
0029                 };
0030 
0031                 lan {
0032                         label = "dragino2:red:lan";
0033                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
0034                         default-state = "off";
0035                 };
0036 
0037                 wan {
0038                         label = "dragino2:red:wan";
0039                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
0040                         default-state = "off";
0041                 };
0042 
0043                 system {
0044                         label = "dragino2:red:system";
0045                         gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
0046                         default-state = "off";
0047                 };
0048         };
0049 
0050         gpio-keys {
0051                 compatible = "gpio-keys";
0052 
0053                 button-0 {
0054                         label = "jumpstart";
0055                         linux,code = <KEY_WPS_BUTTON>;
0056                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
0057                 };
0058 
0059                 button-1 {
0060                         label = "reset";
0061                         linux,code = <KEY_RESTART>;
0062                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
0063                 };
0064         };
0065 };
0066 
0067 &ref {
0068         clock-frequency = <25000000>;
0069 };
0070 
0071 &uart {
0072         status = "okay";
0073 };
0074 
0075 &gpio {
0076         status = "okay";
0077 };
0078 
0079 &usb {
0080         dr_mode = "host";
0081         status = "okay";
0082 };
0083 
0084 &usb_phy {
0085         status = "okay";
0086 };
0087 
0088 &spi {
0089         num-chipselects = <1>;
0090         status = "okay";
0091 
0092         /* Winbond 25Q128BVFG SPI flash */
0093         spiflash: w25q128@0 {
0094                 #address-cells = <1>;
0095                 #size-cells = <1>;
0096                 compatible = "winbond,w25q128", "jedec,spi-nor";
0097                 spi-max-frequency = <104000000>;
0098                 reg = <0>;
0099         };
0100 };