* [PATCH v2] powerpc/microwatt: Add litesd
@ 2022-09-30 6:50 Joel Stanley
2022-11-30 9:24 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Joel Stanley @ 2022-09-30 6:50 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Jeremy Kerr, Matt Johnston
This is the register layout of the litesd peripheral for the fusesoc
based Microwatt SoC.
It requires a description of the system clock, which is hardcoded to
100MHz.
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
v2:
* remove non-removable property
* Remove status=disabled
* Add clock
---
arch/powerpc/boot/dts/microwatt.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/powerpc/boot/dts/microwatt.dts b/arch/powerpc/boot/dts/microwatt.dts
index b69db1d275cd..269e930b3b0b 100644
--- a/arch/powerpc/boot/dts/microwatt.dts
+++ b/arch/powerpc/boot/dts/microwatt.dts
@@ -21,6 +21,14 @@ memory@0 {
reg = <0x00000000 0x00000000 0x00000000 0x10000000>;
};
+ clocks {
+ sys_clk: litex_sys_clk {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <100000000>;
+ };
+ };
+
cpus {
#size-cells = <0x00>;
#address-cells = <0x01>;
@@ -141,6 +149,20 @@ ethernet@8020000 {
litex,slot-size = <0x800>;
interrupts = <0x11 0x1>;
};
+
+ mmc@8040000 {
+ compatible = "litex,mmc";
+ reg = <0x8042800 0x800
+ 0x8041000 0x800
+ 0x8040800 0x800
+ 0x8042000 0x800
+ 0x8041800 0x800>;
+ reg-names = "phy", "core", "reader", "writer", "irq";
+ bus-width = <4>;
+ interrupts = <0x13 1>;
+ cap-sd-highspeed;
+ clocks = <&sys_clk>;
+ };
};
chosen {
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] powerpc/microwatt: Add litesd
2022-09-30 6:50 [PATCH v2] powerpc/microwatt: Add litesd Joel Stanley
@ 2022-11-30 9:24 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2022-11-30 9:24 UTC (permalink / raw)
To: Joel Stanley, linuxppc-dev; +Cc: Jeremy Kerr, Matt Johnston
On Fri, 30 Sep 2022 16:20:12 +0930, Joel Stanley wrote:
> This is the register layout of the litesd peripheral for the fusesoc
> based Microwatt SoC.
>
> It requires a description of the system clock, which is hardcoded to
> 100MHz.
>
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/microwatt: Add litesd
https://git.kernel.org/powerpc/c/5825603f67bc5ff445a1847302884154f0afa627
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-30 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-30 6:50 [PATCH v2] powerpc/microwatt: Add litesd Joel Stanley
2022-11-30 9:24 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).