[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210516230551.12469-9-afaerber@suse.de>
Date: Mon, 17 May 2021 01:05:50 +0200
From: Andreas Färber <afaerber@...e.de>
To: linux-rockchip@...ts.infradead.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Andreas Färber <afaerber@...e.de>,
Rob Herring <robh+dt@...nel.org>,
Heiko Stuebner <heiko@...ech.de>, devicetree@...r.kernel.org
Subject: [PATCH 8/9] arm64: dts: rockchip: rk1808k-toybrick-m0: Enable eMMC
Add fake clocks (based on downstream kernel's debugfs clk_summary)
and enable eMMC.
Signed-off-by: Andreas Färber <afaerber@...e.de>
---
.../boot/dts/rockchip/rk1808k-toybrick-m0.dts | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts
index 15293a8576c6..aabe7a7034b2 100644
--- a/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts
+++ b/arch/arm64/boot/dts/rockchip/rk1808k-toybrick-m0.dts
@@ -38,6 +38,34 @@ vdd_cpu: vdd-cpu {
regulator-max-microvolt = <850000>;
vin-supply = <&vcc3v3_pcie>;
};
+
+ hclk_emmc: hclk-emmc {
+ compatible = "fixed-clock";
+ clock-frequency = <198000000>;
+ #clock-cells = <0>;
+ clock-output-names = "hclk_emmc";
+ };
+
+ sclk_emmc: sclk-emmc {
+ compatible = "fixed-clock";
+ clock-frequency = <297000000>;
+ #clock-cells = <0>;
+ clock-output-names = "sclk_emmc";
+ };
+
+ sclk_emmc_drv: sclk-emmc-drv {
+ compatible = "fixed-clock";
+ clock-frequency = <148500000>;
+ #clock-cells = <0>;
+ clock-output-names = "sclk_emmc_drv";
+ };
+
+ sclk_emmc_sample: sclk-emmc-sample {
+ compatible = "fixed-clock";
+ clock-frequency = <148500000>;
+ #clock-cells = <0>;
+ clock-output-names = "sclk_emmc_sample";
+ };
};
&cpu0 {
@@ -48,6 +76,16 @@ &cpu1 {
cpu-supply = <&vdd_cpu>;
};
+&emmc {
+ status = "okay";
+ clocks = <&hclk_emmc>, <&sclk_emmc>, <&sclk_emmc_drv>, <&sclk_emmc_sample>;
+ clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
+ cap-mmc-highspeed;
+ mmc-hs200-1_2v;
+ non-removable;
+ bus-width = <8>;
+};
+
&gic {
/delete-property/ interrupts;
};
--
2.31.1
Powered by blists - more mailing lists