// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "ar9330.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "ar9330.dtsi"
-
/ {
model = "PQI Air-Pen";
compatible = "pqi,air-pen", "qca,ar9330";
aliases {
- serial0 = &uart;
- led-boot = &wlan;
- led-failsafe = &wlan;
- led-upgrade = &wlan;
+ led-boot = &led_wlan;
+ led-failsafe = &led_wlan;
+ led-upgrade = &led_wlan;
};
leds {
compatible = "gpio-leds";
- wlan: wlan {
- label = "air-pen:blue:wlan";
+ led_wlan: wlan {
+ label = "blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
- default-state = "off";
linux,default-trigger = "phy0tpt";
};
wps {
- label = "air-pen:blue:wps";
+ label = "blue:wps";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
- default-state = "off";
};
};
keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
+ compatible = "gpio-keys";
wps {
label = "wps";
};
};
-&uart {
- status = "okay";
-};
-
-&gpio {
- status = "okay";
-};
-
&usb {
dr_mode = "host";
status = "okay";
};
&spi {
- num-cs = <1>;
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
reg = <0>;
partitions {
ð1 {
status = "okay";
+
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x2>;
};