Skip to content

Commit

Permalink
dir-300-b1: sdmod through spi-gpio
Browse files Browse the repository at this point in the history
For post https://woskit.blogspot.com/2018/11/dir-300-b1.html

Signed-off-by: Nikita Vostokov <yawosk@yandex.com>
  • Loading branch information
Nikita Vostokov committed Feb 29, 2020
1 parent 977c7f1 commit 8c474a4
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,11 @@
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};

wps {
label = "wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};

leds {
compatible = "gpio-leds";

status {
label = "dir-300-b1:amber:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};

led_status_green: status2 {
label = "dir-300-b1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};

wan {
label = "dir-300-b1:amber:wan";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
Expand All @@ -92,12 +76,26 @@
label = "dir-300-b1:green:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};

wps {
label = "dir-300-b1:blue:wps";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};

spi {
compatible = "spi-gpio";
#address-cells = <0x1>;
ranges;

gpio-sck = <&gpio0 8 GPIO_ACTIVE_LOW>;
gpio-miso = <&gpio0 13 GPIO_ACTIVE_LOW>;
gpio-mosi = <&gpio0 9 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
num-chipselects = <1>;

mmc-slot@0 {
compatible = "mmc-spi-slot";
reg = <0>;
voltage-ranges = <3300 3300>;
spi-max-frequency = <10000000>;
};
};
};

&state_default {
Expand Down

0 comments on commit 8c474a4

Please sign in to comment.