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 = "Onion Omega";
0011         compatible = "onion,omega";
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                 system {
0026                         label = "onion:amber:system";
0027                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
0028                         default-state = "off";
0029                 };
0030         };
0031 
0032         gpio-keys {
0033                 compatible = "gpio-keys";
0034 
0035                 button-0 {
0036                         label = "reset";
0037                         linux,code = <KEY_RESTART>;
0038                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
0039                 };
0040         };
0041 };
0042 
0043 &ref {
0044         clock-frequency = <25000000>;
0045 };
0046 
0047 &uart {
0048         status = "okay";
0049 };
0050 
0051 &gpio {
0052         status = "okay";
0053 };
0054 
0055 &usb {
0056         dr_mode = "host";
0057         status = "okay";
0058 };
0059 
0060 &usb_phy {
0061         status = "okay";
0062 };
0063 
0064 &spi {
0065         num-chipselects = <1>;
0066         status = "okay";
0067 
0068         /* Winbond 25Q128FVSG SPI flash */
0069         spiflash: w25q128@0 {
0070                 #address-cells = <1>;
0071                 #size-cells = <1>;
0072                 compatible = "winbond,w25q128", "jedec,spi-nor";
0073                 spi-max-frequency = <104000000>;
0074                 reg = <0>;
0075         };
0076 };