* option) any later version.
*/
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
/include/ "fsl/p1010si-pre.dtsi"
/ {
reg = <0x0 0x0050000>;
label = "u-boot";
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_4fc00: macaddr@4fc00 {
+ reg = <0x4fc00 0x6>;
+ };
};
partition@50000 {
compatible = "gpio-leds";
system_green: system {
- gpios = <&gpio0 2 1>; /* active low */
+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
label = "tp-link:blue:system";
};
usb1 {
- gpios = <&gpio0 3 1>; /* active low */
+ gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
label = "tp-link:green:usb1";
};
usb2 {
- gpios = <&gpio0 4 1>; /* active low */
+ gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
label = "tp-link:green:usb2";
};
usbpower {
- gpios = <&gpio0 10 1>; /* active low */
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
label = "tp-link:usb:power";
};
};
reset {
label = "Reset button";
- gpios = <&gpio0 5 1>; /* active low */
- linux,code = <0x198>; /* KEY_RESTART */
+ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "RFKILL switch";
- gpios = <&gpio0 11 1>; /* active low */
- linux,code = <0xf7>; /* RFKill */
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKill>;
};
};
};
/delete-node/ crypto@30000; /* Pulled in by p1010si-post */
};
};
-
-&uboot {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_4fc00: macaddr@4fc00 {
- reg = <0x4fc00 0x6>;
- };
-};