mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
b756ea2a90
Upstream pinctrl driver in drivers/staging uses groups/function/ralink,num-gpios instead of ralink,group/ralink,function/ralink,nr-gpio Replace these properties in dts as well as the pinctrl driver in patches-4.14. This commit is created using: sed -i 's/ralink,group/groups/g' sed -i 's/ralink,function/function/g' sed -i 's/ralink,nr-gpio/ralink,num-gpios/g' Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
54 lines
833 B
Plaintext
54 lines
833 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 {
|
|
groups = "gpio";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
led_pins: led {
|
|
gpio {
|
|
groups = "wled_an";
|
|
function = "gpio";
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
spidev@1 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "linux,spidev";
|
|
reg = <1>;
|
|
spi-max-frequency = <10000000>;
|
|
};
|
|
};
|