1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot/dts-v1/; 3c66ec88fSEmmanuel Vadot 4c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 5c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h> 6c66ec88fSEmmanuel Vadot#include <dt-bindings/leds/common.h> 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadot#include "ar9331.dtsi" 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot/ { 11c66ec88fSEmmanuel Vadot model = "DPTechnics DPT-Module"; 12c66ec88fSEmmanuel Vadot compatible = "dptechnics,dpt-module"; 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot aliases { 15c66ec88fSEmmanuel Vadot serial0 = &uart; 16c66ec88fSEmmanuel Vadot }; 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot memory@0 { 19c66ec88fSEmmanuel Vadot device_type = "memory"; 20c66ec88fSEmmanuel Vadot reg = <0x0 0x4000000>; 21c66ec88fSEmmanuel Vadot }; 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot leds { 24c66ec88fSEmmanuel Vadot compatible = "gpio-leds"; 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot led-0 { 27c66ec88fSEmmanuel Vadot function = LED_FUNCTION_STATUS; 28c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 29c66ec88fSEmmanuel Vadot gpios = <&gpio 27 GPIO_ACTIVE_LOW>; 30c66ec88fSEmmanuel Vadot default-state = "off"; 31c66ec88fSEmmanuel Vadot }; 32c66ec88fSEmmanuel Vadot }; 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot gpio-keys { 35c66ec88fSEmmanuel Vadot compatible = "gpio-keys"; 36c66ec88fSEmmanuel Vadot 37*b97ee269SEmmanuel Vadot button-0 { 38c66ec88fSEmmanuel Vadot label = "reset"; 39c66ec88fSEmmanuel Vadot linux,code = <KEY_RESTART>; 40c66ec88fSEmmanuel Vadot gpios = <&gpio 11 GPIO_ACTIVE_LOW>; 41c66ec88fSEmmanuel Vadot }; 42c66ec88fSEmmanuel Vadot }; 43c66ec88fSEmmanuel Vadot}; 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot&ref { 46c66ec88fSEmmanuel Vadot clock-frequency = <25000000>; 47c66ec88fSEmmanuel Vadot}; 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot&uart { 50c66ec88fSEmmanuel Vadot status = "okay"; 51c66ec88fSEmmanuel Vadot}; 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot&gpio { 54c66ec88fSEmmanuel Vadot status = "okay"; 55c66ec88fSEmmanuel Vadot}; 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadot&usb { 58c66ec88fSEmmanuel Vadot dr_mode = "host"; 59c66ec88fSEmmanuel Vadot status = "okay"; 60c66ec88fSEmmanuel Vadot}; 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot&usb_phy { 63c66ec88fSEmmanuel Vadot status = "okay"; 64c66ec88fSEmmanuel Vadot}; 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot&spi { 67c66ec88fSEmmanuel Vadot num-chipselects = <1>; 68c66ec88fSEmmanuel Vadot status = "okay"; 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot /* Winbond 25Q128FVSG SPI flash */ 71c66ec88fSEmmanuel Vadot spiflash: w25q128@0 { 72c66ec88fSEmmanuel Vadot #address-cells = <1>; 73c66ec88fSEmmanuel Vadot #size-cells = <1>; 74c66ec88fSEmmanuel Vadot compatible = "winbond,w25q128", "jedec,spi-nor"; 75c66ec88fSEmmanuel Vadot spi-max-frequency = <104000000>; 76c66ec88fSEmmanuel Vadot reg = <0>; 77c66ec88fSEmmanuel Vadot }; 78c66ec88fSEmmanuel Vadot}; 79c66ec88fSEmmanuel Vadot 80c66ec88fSEmmanuel Vadotð0 { 81c66ec88fSEmmanuel Vadot status = "okay"; 82c66ec88fSEmmanuel Vadot}; 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel Vadotð1 { 85c66ec88fSEmmanuel Vadot status = "okay"; 86c66ec88fSEmmanuel Vadot}; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot&switch_port1 { 89c66ec88fSEmmanuel Vadot label = "lan0"; 90c66ec88fSEmmanuel Vadot status = "okay"; 91c66ec88fSEmmanuel Vadot}; 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot&phy_port0 { 94c66ec88fSEmmanuel Vadot status = "okay"; 95c66ec88fSEmmanuel Vadot}; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot&phy_port4 { 98c66ec88fSEmmanuel Vadot status = "okay"; 99c66ec88fSEmmanuel Vadot}; 100