// 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>;
linux,default-trigger = "phy0tpt";
};
wps {
- label = "air-pen:blue:wps";
+ label = "blue:wps";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
};
};
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 {
label = "art";
reg = <0x050000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_2: macaddr@2 {
+ reg = <0x2 0x6>;
+ };
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+ };
};
partition@60000 {
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
ð1 {
status = "okay";
+
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x2>;
+ nvmem-cells = <&macaddr_art_2>;
+ nvmem-cell-names = "mac-address";
};