123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #include "mt7628an.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- / {
- compatible = "widora,neo", "mediatek,mt7628an-soc";
- aliases {
- led-boot = &led_wifi;
- led-failsafe = &led_wifi;
- led-running = &led_wifi;
- led-upgrade = &led_wifi;
- };
- chosen {
- bootargs = "console=ttyS0,115200";
- };
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x8000000>;
- };
- gpio-leds {
- compatible = "gpio-leds";
- led_wifi: wifi {
- label = "widora:orange:wifi";
- gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
- default-state = "on";
- };
- };
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
- wps {
- label = "reset";
- gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
- wgpio: gpio-wifi {
- compatible = "mediatek,gpio-wifi";
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- };
- };
- &pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "gpio";
- ralink,function = "gpio";
- };
- perst {
- ralink,group = "perst";
- ralink,function = "gpio";
- };
- refclk {
- ralink,group = "refclk";
- ralink,function = "gpio";
- };
- i2s {
- ralink,group = "i2s";
- ralink,function = "gpio";
- };
- spis {
- ralink,group = "spis";
- ralink,function = "gpio";
- };
- wled_kn {
- ralink,group = "wled_kn";
- ralink,function = "gpio";
- };
- wled_an {
- ralink,group = "wled_an";
- ralink,function = "wled_an";
- };
- wdt {
- ralink,group = "wdt";
- ralink,function = "gpio";
- };
- };
- };
- &i2c {
- status = "okay";
- };
- &uart1 {
- status = "okay";
- };
- &uart2 {
- status = "okay";
- };
- &pwm {
- status = "okay";
- };
- ðernet {
- mtd-mac-address = <&factory 0x28>;
- };
- &sdhci {
- status = "okay";
- mediatek,cd-low;
- };
- &wmac {
- status = "okay";
- };
|