Skip to content

Commit 4a74df7

Browse files
lbmenggregkh
authored andcommitted
riscv: dts: unmatched: Add gpio card detect to mmc-spi-slot
commit 298d03c upstream. Per HiFive Unmatched schematics, the card detect signal of the micro SD card is connected to gpio pin #15, which should be reflected in the DT via the <gpios> property, as described in Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt. [1] https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e68ce76f4192_hifive-unmatched-schematics-v3.pdf Signed-off-by: Bin Meng <bin.meng@windriver.com> Fixes: d573b55 ("riscv: dts: add initial board data for the SiFive HiFive Unmatched") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7fe286a commit 4a74df7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Copyright (c) 2020 SiFive, Inc */
33

44
#include "fu740-c000.dtsi"
5+
#include <dt-bindings/gpio/gpio.h>
56
#include <dt-bindings/interrupt-controller/irq.h>
67

78
/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
@@ -228,6 +229,7 @@
228229
spi-max-frequency = <20000000>;
229230
voltage-ranges = <3300 3300>;
230231
disable-wp;
232+
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
231233
};
232234
};
233235

0 commit comments

Comments
 (0)