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 #include <dt-bindings/leds/common.h>
0007 
0008 #include "ar9331.dtsi"
0009 
0010 / {
0011         model = "DPTechnics DPT-Module";
0012         compatible = "dptechnics,dpt-module";
0013 
0014         aliases {
0015                 serial0 = &uart;
0016         };
0017 
0018         memory@0 {
0019                 device_type = "memory";
0020                 reg = <0x0 0x4000000>;
0021         };
0022 
0023         leds {
0024                 compatible = "gpio-leds";
0025 
0026                 led-0 {
0027                         function = LED_FUNCTION_STATUS;
0028                         color = <LED_COLOR_ID_GREEN>;
0029                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
0030                         default-state = "off";
0031                 };
0032         };
0033 
0034         gpio-keys {
0035                 compatible = "gpio-keys";
0036 
0037                 button-0 {
0038                         label = "reset";
0039                         linux,code = <KEY_RESTART>;
0040                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
0041                 };
0042         };
0043 };
0044 
0045 &ref {
0046         clock-frequency = <25000000>;
0047 };
0048 
0049 &uart {
0050         status = "okay";
0051 };
0052 
0053 &gpio {
0054         status = "okay";
0055 };
0056 
0057 &usb {
0058         dr_mode = "host";
0059         status = "okay";
0060 };
0061 
0062 &usb_phy {
0063         status = "okay";
0064 };
0065 
0066 &spi {
0067         num-chipselects = <1>;
0068         status = "okay";
0069 
0070         /* Winbond 25Q128FVSG SPI flash */
0071         spiflash: w25q128@0 {
0072                 #address-cells = <1>;
0073                 #size-cells = <1>;
0074                 compatible = "winbond,w25q128", "jedec,spi-nor";
0075                 spi-max-frequency = <104000000>;
0076                 reg = <0>;
0077         };
0078 };
0079 
0080 &eth0 {
0081         status = "okay";
0082 };
0083 
0084 &eth1 {
0085         status = "okay";
0086 };
0087 
0088 &switch_port1 {
0089         label = "lan0";
0090         status = "okay";
0091 };
0092 
0093 &phy_port0 {
0094         status = "okay";
0095 };
0096 
0097 &phy_port4 {
0098         status = "okay";
0099 };