aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
blob: afd0c93595dd27c3e51988e146cfe486c978c22f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/dts-v1/;

#include "mt7628an_wrtnode_wrtnode2.dtsi"

/ {
	compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
	model = "WRTnode2R";

	aliases {
		led-boot = &led_indicator;
		led-failsafe = &led_indicator;
		led-running = &led_indicator;
		led-upgrade = &led_indicator;
	};

	leds {
		compatible = "gpio-leds";

		pinctrl-names = "default";
		pinctrl-0 = <&led_pins>;

		led_indicator: indicator {
			label = "wrtnode:blue:indicator";
			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
		};
	};
};

&state_default {
	gpio {
		ralink,group = "gpio";
		ralink,function = "gpio";
	};
};

&pinctrl {
	led_pins: led {
		gpio {
			ralink,group = "wled_an";
			ralink,function = "gpio";
		};
	};
};

&spi0 {
	spidev@1 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "linux,spidev";
		reg = <1>;
		spi-max-frequency = <10000000>;
	};
};