Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3880040pxj; Tue, 15 Jun 2021 10:34:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX2la30dl5PaW/t9rZ5j0aOQC3fFurR5ua752WJPBHFPR+6o9E2KyZqMHY2iZbsQrtXRUc X-Received: by 2002:a17:907:2628:: with SMTP id aq8mr764753ejc.354.1623778468629; Tue, 15 Jun 2021 10:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623778468; cv=none; d=google.com; s=arc-20160816; b=FcUD5Yjeoh/B8vqwd67lt6x6C6SSy0cVI07xIeldM1Dbm5uaPCEHfW9tDcsPefuTE8 gkw0dBgp0RnW3oNDpbZJban4KeEuWbpr6eIxc2OUQrmVgjlvWmd9fdc9x6M6w75OhsY7 knlZ0NJol5+9oaHYv4H3QtczNpQqvfYWTw9mA/zXhx5A0WGld3XcxV+Uy8WtvqBF1yIa E9inis68vHAlLJpy7U4IjlEAnX7nDC4Uk2HNiQshGCCcspH/zmyb8sXkKmRZOW/9nnhZ e/HJ+Hv/2iHrrC3KYyWqp76fx+kWKGFYuzXv6RYm01jGS+3hzR75jvTTrfCRVmS2LCha mKZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Cfw616QMd35ucWBwYkKS91INEVQYUSQ8FWb4XV7WsMw=; b=TztDR5DHXoft8unRYXWuYhRHLW6uIBPjLTmdWAyotq26MKO6Ir+H4o9Zb/d/ggpKLk V5iJOJ+XkhyZTqZ686kpXKC7yUiVaWdu6AHrUzshBM9HPoOIBavHiYPRoxrssWc6iaqc tKXN57oD7MAofz+TvIoGp8jqWp8O547jSvEgUdyCsNlEgbnqRnC0WhgF1olZCCsOYkjo w9DXXxBPex2cZu6HXMXis2mrPqr5SA4D421bwwuzekPcF1tv5ySEvrKYnTmr5UprqMMF wLmLUM8W6CC6Tyj0bcj1T9F6drSkmbsiK7NXo8JyHk6qnVBroSRWEgWij0AwH8bLpUFt 2/XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo1si14991973ejb.590.2021.06.15.10.34.05; Tue, 15 Jun 2021 10:34:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbhFORfB (ORCPT + 99 others); Tue, 15 Jun 2021 13:35:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:34890 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230500AbhFORex (ORCPT ); Tue, 15 Jun 2021 13:34:53 -0400 X-UUID: a70f86e2f3ad466e8e22238fe7ee09cb-20210616 X-UUID: a70f86e2f3ad466e8e22238fe7ee09cb-20210616 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 655523478; Wed, 16 Jun 2021 01:32:45 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Jun 2021 01:32:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 16 Jun 2021 01:32:44 +0800 From: Tinghan Shen To: , CC: , , , , , , , , Wenbin Mei Subject: [PATCH 12/27] arm64: dts: mt8195: fix mmc driver Date: Wed, 16 Jun 2021 01:32:18 +0800 Message-ID: <20210615173233.26682-12-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.15.GIT In-Reply-To: <20210615173233.26682-1-tinghan.shen@mediatek.com> References: <20210615173233.26682-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wenbin Mei fix mmc driver with proper clock for mt8195 SoC. Signed-off-by: Wenbin Mei --- 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@11230000 { - compatible = "mediatek,mt8195-mmc", "mediatek,mt8192-mmc"; + compatible = "mediatek,mt8195-mmc", + "mediatek,mt8192-mmc", + "mediatek,mt8183-mmc"; reg = <0 0x11230000 0 0x10000>, <0 0x11f50000 0 0x1000>; interrupts = ; - 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@11240000 { - compatible = "mediatek,mt8195-mmc", "mediatek,mt8192-mmc"; + compatible = "mediatek,mt8195-mmc", + "mediatek,mt8192-mmc", + "mediatek,mt8183-mmc"; reg = <0 0x11240000 0 0x1000>, <0 0x11c70000 0 0x1000>; interrupts = ; - 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"; }; -- 2.18.0