From patchwork Tue Jan 30 13:01:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 194169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1208591dyb; Tue, 30 Jan 2024 05:12:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEm/mPkyBxC+UMw3uH6BSv2mo3FfwGKLjZpnQNrrerpA3yoj7b4r/Ig5LezgHPoeK10BACn X-Received: by 2002:a17:902:b684:b0:1d8:b925:daa7 with SMTP id c4-20020a170902b68400b001d8b925daa7mr3697151pls.40.1706620330567; Tue, 30 Jan 2024 05:12:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706620330; cv=pass; d=google.com; s=arc-20160816; b=dpIESvUsaSj2dWD6bJ7Y3XTGd9PpU4SCnWBhjsVjkX7Ta8hiWs6wb7RigtDsqmGFGB mL2oesl3wyvw4oG8rL7elfK7RsxqmovsQBaEM6FGh0oZd0cUI5M7DRtQxr2Fu2rn4MwA OP4Co8wNaDt31xLb9CfHEkaAJrEUgmc2Pv9M1YUsKrGYqxi8Ev0v+RuAFqIZ+aofVO34 60p7GRSMPmHPaGBpc4kqcOMynnLb1nXRO5iOVvJzZlIVJGboGkZVvmdUOwWvqKNgZPUR ci9heN0DwzBvbfTxYuetLZJqgwj+9FP4vSrRczuniZ3mJ6pK/ZC8gEbraFeHwrNZRjHc 3HQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=vFFyu6rSeR7qJe1F7OWSpxrsgVsEBK1ySUWbECbERpY=; fh=qDfKR04wyyfbYC5Mzk9mApACyXUQ1RQdCKo4R4ylK18=; b=zup9jxBZxEpPI9PUeeHSmQcUptjKSfbOlwqK5o7EcLhCdSpT8gt5jSdTcmtQS/dOL0 JWZNZvaHRolNhXVicbGmGr9WSBIoa8eR/Z8dTdKsKOc6Fv2MDKSmZr/w6ti2SzP4HeKl Qo0sNbeuEYp/MUu77DLzykzAjqREtUACUWQ3P1yhsEcHSjLlkiqVH/4gf2yZT8MpA9RV W/z5ujxefhghGQGa1dgO14c0wLhtV1fEUWdC5z0e5NCghCEMiNPDBtndNKR3jY6CddbC 4glpPP9e6c0ovHLPQ0M1tMYCEhH3o57EqiUAKm4+FPc4QbVgjY87rv1OQTEzqrx9ksMZ /EvQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-44668-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44668-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l13-20020a170903120d00b001d6f89cfec9si7427670plh.348.2024.01.30.05.12.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44668-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-44668-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44668-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 719DC28BE7B for ; Tue, 30 Jan 2024 13:03:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80B7A6D1A6; Tue, 30 Jan 2024 13:02:07 +0000 (UTC) Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4DA04C66; Tue, 30 Jan 2024 13:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706619725; cv=none; b=iQ82i9leZJZWFl0W0WepirEPdtO2OZnZwtM8gmD/pH8SIEzUf/izOhtrpdiuY5/gCnrX0IKU6gv2QthNl3arPIyVOk4GBATf6DH5a3PK66HQ51oBUC7gtW6d20CepOJ48s3ykAheNxVwsaHO+G+w2dlqk6eJlfCdNW1TTMOCT1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706619725; c=relaxed/simple; bh=qnU/LIELkHnoBvZsHvvuD152LHUJa6PSVgWt0s4vJEM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UpjauD6zLpRxJHxBp/2/87o3ZoIiX09OqJ23wOVkwDPQMnbZ1N/qPhKzPZ5Rj89K5tNLe53zPTEY1DDgKNei7j2IpbyFtKyECvR6yKNnachO2ktFjuuDXggfqifBXFzDhbipGhqlOFybZ0GjTGyaUWSnteaQkU0Z+zCaYX/x0Ug= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [116.25.94.16]) by smtp.qiye.163.com (Hmail) with ESMTPA id 007F37E013B; Tue, 30 Jan 2024 21:01:42 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v4 2/2] arm64: dts: qcom: ipq6018: add sdhci node Date: Tue, 30 Jan 2024 21:01:32 +0800 Message-Id: <20240130130132.9550-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240130130132.9550-1-amadeus@jmu.edu.cn> References: <20240130130132.9550-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDGh1NVh5DHRkYGU8YSx9IGVUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKTVVJTlVCT1VKTVlXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8d5a7610c503a2kunm007f37e013b X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NBA6Mjo5LzMJOkpNQwI*ExA5 AhlPFEhVSlVKTEtNTUpCTEtPSkhJVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK TVVJTlVCT1VKTVlXWQgBWUFJTU1CNwY+ X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789521119672930199 X-GMAIL-MSGID: 1789521119672930199 Add node to support mmc controller inside of IPQ6018. This controller supports both eMMC and SD cards. Tested with: eMMC (HS200) SD Card (SDR50/SDR104) Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 322eced0b876..420c192bccd9 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -441,6 +441,25 @@ dwc_1: usb@7000000 { }; }; + sdhc: mmc@7804000 { + compatible = "qcom,ipq6018-sdhci", "qcom,sdhci-msm-v5"; + reg = <0x0 0x7804000 0x0 0x1000>, + <0x0 0x7805000 0x0 0x1000>; + reg-names = "hc", "cqhci"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC1_AHB_CLK>, + <&gcc GCC_SDCC1_APPS_CLK>, + <&xo>; + clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC1_BCR>; + max-frequency = <192000000>; + status = "disabled"; + }; + blsp_dma: dma-controller@7884000 { compatible = "qcom,bam-v1.7.0"; reg = <0x0 0x07884000 0x0 0x2b000>;