[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1623807002.15910.8.camel@mhfsdcap03>
Date: Wed, 16 Jun 2021 09:30:02 +0800
From: Wenbin Mei <wenbin.mei@...iatek.com>
To: Tinghan Shen <tinghan.shen@...iatek.com>
CC: <robh+dt@...nel.org>, <matthias.bgg@...il.com>,
<devicetree@...r.kernel.org>, <linux-mediatek@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <srv_heupstream@...iatek.com>,
<seiya.wang@...iatek.com>, <wenst@...gle.com>,
<Project_Global_Chrome_Upstream_Group@...iatek.com>
Subject: Re: [PATCH 12/27] arm64: dts: mt8195: fix mmc driver
On Wed, 2021-06-16 at 01:32 +0800, Tinghan Shen wrote:
> From: Wenbin Mei <wenbin.mei@...iatek.com>
>
> fix mmc driver with proper clock for mt8195 SoC.
>
> Signed-off-by: Wenbin Mei <wenbin.mei@...iatek.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8195.dtsi | 18 ++++++++++++++----
> 1 file changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> index 539f405a4f3d..327ff1b856d2 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> @@ -926,22 +926,32 @@
> };
>
> mmc0: mmc@...30000 {
> - compatible = "mediatek,mt8195-mmc", "mediatek,mt8192-mmc";
> + compatible = "mediatek,mt8195-mmc",
> + "mediatek,mt8192-mmc",
> + "mediatek,mt8183-mmc";
I have submitted a patch to fix the
dt-bindings(http://lists.infradead.org/pipermail/linux-mediatek/2021-June/025456.html), Now which should be:
compatible = "mediatek,mt8195-mmc", "mediatek,mt8183-mmc";
> reg = <0 0x11230000 0 0x10000>,
> <0 0x11f50000 0 0x1000>;
> interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>;
> - clocks = <&clk26m>, <&clk26m>, <&clk26m>;
> + clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>,
> + <&infracfg_ao CLK_INFRA_AO_MSDC0>,
> + <&infracfg_ao CLK_INFRA_AO_MSDC0_SRC>;
> clock-names = "source", "hclk", "source_cg";
> status = "disabled";
> };
>
> mmc1: mmc@...40000 {
> - compatible = "mediatek,mt8195-mmc", "mediatek,mt8192-mmc";
> + compatible = "mediatek,mt8195-mmc",
> + "mediatek,mt8192-mmc",
> + "mediatek,mt8183-mmc";
Ditto, this should be:
compatible = "mediatek,mt8195-mmc", "mediatek,mt8183-mmc";
> reg = <0 0x11240000 0 0x1000>,
> <0 0x11c70000 0 0x1000>;
> interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH 0>;
> - clocks = <&clk26m>, <&clk26m>, <&clk26m>;
> + clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>,
> + <&infracfg_ao CLK_INFRA_AO_MSDC1>,
> + <&infracfg_ao CLK_INFRA_AO_MSDC1_SRC>;
> clock-names = "source", "hclk", "source_cg";
> + assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
> + assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>;
> status = "disabled";
> };
>
Powered by blists - more mailing lists