mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
0b68d081eb
upstream driver merged 3 separated gpio banks into one gpio node. and gpioX Y in our local driver should be replaced with gpio X*32+Y. This patch is created using the following sed command: sed -i -r 's/(.*)gpio([0-9]) ([0-9]+)(.*)/echo "\1gpio $((\2*32+\3))\4"/ge' Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
54 lines
859 B
Plaintext
54 lines
859 B
Plaintext
/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 = <&gpio 44 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>;
|
|
};
|
|
};
|