1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0 2930c54ffSAntony Pavlov/dts-v1/; 3930c54ffSAntony Pavlov 4930c54ffSAntony Pavlov#include <dt-bindings/gpio/gpio.h> 5930c54ffSAntony Pavlov#include <dt-bindings/input/input.h> 6930c54ffSAntony Pavlov 7930c54ffSAntony Pavlov#include "ar9331.dtsi" 8930c54ffSAntony Pavlov 9930c54ffSAntony Pavlov/ { 10930c54ffSAntony Pavlov model = "Onion Omega"; 11930c54ffSAntony Pavlov compatible = "onion,omega"; 12930c54ffSAntony Pavlov 13930c54ffSAntony Pavlov aliases { 14930c54ffSAntony Pavlov serial0 = &uart; 15930c54ffSAntony Pavlov }; 16930c54ffSAntony Pavlov 17930c54ffSAntony Pavlov memory@0 { 18930c54ffSAntony Pavlov device_type = "memory"; 19930c54ffSAntony Pavlov reg = <0x0 0x4000000>; 20930c54ffSAntony Pavlov }; 21930c54ffSAntony Pavlov 22930c54ffSAntony Pavlov leds { 23930c54ffSAntony Pavlov compatible = "gpio-leds"; 24930c54ffSAntony Pavlov 25*09e61efdSArınç ÜNAL led-system { 26930c54ffSAntony Pavlov label = "onion:amber:system"; 27930c54ffSAntony Pavlov gpios = <&gpio 27 GPIO_ACTIVE_LOW>; 28930c54ffSAntony Pavlov default-state = "off"; 29930c54ffSAntony Pavlov }; 30930c54ffSAntony Pavlov }; 31930c54ffSAntony Pavlov 3224babe69SAlban Bedel gpio-keys { 3324babe69SAlban Bedel compatible = "gpio-keys"; 34930c54ffSAntony Pavlov 355ee46bfbSKrzysztof Kozlowski button-0 { 36930c54ffSAntony Pavlov label = "reset"; 37930c54ffSAntony Pavlov linux,code = <KEY_RESTART>; 38930c54ffSAntony Pavlov gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; 39930c54ffSAntony Pavlov }; 40930c54ffSAntony Pavlov }; 41930c54ffSAntony Pavlov}; 42930c54ffSAntony Pavlov 43930c54ffSAntony Pavlov&ref { 44930c54ffSAntony Pavlov clock-frequency = <25000000>; 45930c54ffSAntony Pavlov}; 46930c54ffSAntony Pavlov 47930c54ffSAntony Pavlov&uart { 48930c54ffSAntony Pavlov status = "okay"; 49930c54ffSAntony Pavlov}; 50930c54ffSAntony Pavlov 51930c54ffSAntony Pavlov&gpio { 52930c54ffSAntony Pavlov status = "okay"; 53930c54ffSAntony Pavlov}; 54930c54ffSAntony Pavlov 55930c54ffSAntony Pavlov&usb { 56930c54ffSAntony Pavlov dr_mode = "host"; 57930c54ffSAntony Pavlov status = "okay"; 58930c54ffSAntony Pavlov}; 59930c54ffSAntony Pavlov 60930c54ffSAntony Pavlov&usb_phy { 61930c54ffSAntony Pavlov status = "okay"; 62930c54ffSAntony Pavlov}; 63930c54ffSAntony Pavlov 64930c54ffSAntony Pavlov&spi { 65930c54ffSAntony Pavlov num-chipselects = <1>; 66930c54ffSAntony Pavlov status = "okay"; 67930c54ffSAntony Pavlov 68930c54ffSAntony Pavlov /* Winbond 25Q128FVSG SPI flash */ 69930c54ffSAntony Pavlov spiflash: w25q128@0 { 70930c54ffSAntony Pavlov #address-cells = <1>; 71930c54ffSAntony Pavlov #size-cells = <1>; 72930c54ffSAntony Pavlov compatible = "winbond,w25q128", "jedec,spi-nor"; 73930c54ffSAntony Pavlov spi-max-frequency = <104000000>; 74930c54ffSAntony Pavlov reg = <0>; 75930c54ffSAntony Pavlov }; 76930c54ffSAntony Pavlov}; 77