#include "rt5350.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
- compatible = "MZK-DP150N", "ralink,rt5350-soc";
+ compatible = "planex,mzk-dp150n", "ralink,rt5350-soc";
model = "Planex MZK-DP150N";
gpio-leds {
power {
label = "mzk-dp150n:green:power";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
};
reset {
label = "reset";
- gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
};
};
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
- reg = <0 0>;
- linux,modalias = "m25p80", "s25fl064k";
+ reg = <0>;
spi-max-frequency = <10000000>;
partition@0 {
reg = <0x50000 0x3b0000>;
};
};
+};
- spidev@1 {
+&spi1 {
+ spidev@0 {
compatible = "linux,spidev";
spi-max-frequency = <10000000>;
- reg = <1 0>;
+ reg = <0>;
};
};