2019-07-03 23:22:31 +02:00
|
|
|
#include "mt7628an_wrtnode_wrtnode2.dtsi"
|
2016-01-01 21:19:50 +00:00
|
|
|
|
|
|
|
/ {
|
2017-07-29 10:14:07 +08:00
|
|
|
compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
|
2016-01-01 21:19:50 +00:00
|
|
|
model = "WRTnode2R";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_indicator;
|
|
|
|
led-failsafe = &led_indicator;
|
|
|
|
led-running = &led_indicator;
|
|
|
|
led-upgrade = &led_indicator;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2016-01-01 21:19:50 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2019-04-11 22:26:28 +02:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&led_pins>;
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
led_indicator: indicator {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "blue:indicator";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
2018-07-22 10:33:42 +02:00
|
|
|
};
|
2016-01-01 21:19:50 +00:00
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "gpio";
|
|
|
|
function = "gpio";
|
2019-04-11 22:26:28 +02:00
|
|
|
};
|
2019-12-22 21:26:01 +01:00
|
|
|
};
|
2019-04-11 22:26:28 +02:00
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&pinctrl {
|
2019-04-11 22:26:28 +02:00
|
|
|
led_pins: led {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "wled_an";
|
|
|
|
function = "gpio";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2019-09-15 20:14:26 +02:00
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
spidev@1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "linux,spidev";
|
|
|
|
reg = <1>;
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
};
|
|
|
|
};
|