compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc";
model = "D-Link DWR-921 C1";
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
+ aliases {
+ led-boot = &led_sstrenghg;
+ led-failsafe = &led_sstrenghg;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
poll-interval = <20>;
wps {
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
- sstrengthg {
+ led_sstrenghg: sstrengthg {
label = "dwr-921-c1:green:sigstrength";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
&spi0 {
status = "okay";
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
- partition@0 {
- label = "jboot";
- reg = <0x0 0x10000>;
- read-only;
- };
-
- partition@10000 {
- label = "firmware";
- reg = <0x10000 0xfe0000>;
- };
-
- config: partition@ff0000 {
- label = "config";
- reg = <0xff0000 0x10000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "jboot";
+ reg = <0x0 0x10000>;
+ read-only;
+ };
+
+ partition@10000 {
+ compatible = "amit,jimage";
+ label = "firmware";
+ reg = <0x10000 0xfe0000>;
+ };
+
+ config: partition@ff0000 {
+ label = "config";
+ reg = <0xff0000 0x10000>;
+ read-only;
+ };
};
};
};