#include "mt7620a.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
wps {
label = "wps";
- gpios = <&gpio0 11 1>;
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
- gpios = <&gpio1 2 1>;
+ gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
power {
label = "dch-m225:green:power";
- gpios = <&gpio1 5 1>;
+ gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
status {
label = "dch-m225:red:status";
- gpios = <&gpio1 0 1>;
+ gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};
};
"Headphones", "HP_L",
"Headphones", "HP_R";
simple-audio-card,mclk-fs = <256>;
- simple-audio-card,hp-det-gpio = <&gpio0 14 1>;
+ simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
simple-audio-card,cpu {
sound-dai = <&i2s>;
#sound-dai-cells = <0>;
status = "okay";
pinctrl-names = "default";
- pinctrl-0 = <&gpio_i2s_pins>, <&wm8960_mclk_pins>;
+ pinctrl-0 = <&mdio_refclk_pins>;
};
&spi0 {
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
- linux,modalias = "m25p80";
spi-max-frequency = <80000000>;
m25p,fast-read;
ralink,function = "gpio";
};
- pa {
- ralink,group = "pa";
- ralink,function = "pa";
- };
-
- wm8960_mclk_pins: wm8960_mclk {
- wm8960_mclk {
- ralink,group = "mdio";
- ralink,function = "refclk";
- };
+ gpio_i2s {
+ ralink,group = "uartf";
+ ralink,function = "gpio i2s";
};
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pa_pins>;
};
-