From patchwork Thu Dec 28 06:53:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Soo X-Patchwork-Id: 183651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1841288dyb; Wed, 27 Dec 2023 22:54:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG44rflNf6YPNWqIybKvRtxUDfbrMyGQNaxMkUDuV7A7oWyeEi/6aS1MYEWegYrTdvRT7Fn X-Received: by 2002:a05:620a:290b:b0:781:5bd6:2cd5 with SMTP id m11-20020a05620a290b00b007815bd62cd5mr4164403qkp.141.1703746495859; Wed, 27 Dec 2023 22:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703746495; cv=none; d=google.com; s=arc-20160816; b=rM5WhKy5G8/9VL/b/50SfltOg1MLe+f+IEg/yTyDy0WmlEi4qTtxRVZHTKHNG2N45C r5oPodvfEXws5+bv9S6+Z5Zfrjcoor4Y8OUtawL9j/sYI8JC/PA3V4S4GrXAu36aODXy NdNwfU/1e75mvCMhwHxj5TGTHoawovN8yjx5IQwx6//l9mTtRLX1wto9SNMRqwmvpDTl Sam39QHuFvaj3Li9TjtfadyqEvIb4vpQgRpbTBqymLkRMpXzuKvBzUOtJeuPLwhRUhPF K+uhg0wDpRBEw/qpSBu+KEihf/k+VntoFhLZ2S1WtWr3dEoA59EBDMwNrEdDbKVkevtt 9x5g== ARC-Message-Signature: i=1; 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=iW0hGcAK9Cv25x7DN/iwBBYqM1MwlijFGy13GpYD0P8=; fh=SujmxNWP6UUgOFmttKopM1tRLkthr7qfPRUP3RWwLJc=; b=VROyp/zTjHpUNboYwZz0jhmXAwLjpAg3JMaWO3v4qIr16GNqXuZ9ZSMqS7KM/orfIS +AcBh0PK7Eejh7hjhGEwCxUH0zeNuezidKOyEy/Upv28n2KzBLLMYNEcM6+UdjtFE8gb sLtKFbEeikNYtSnI4UGkUWoFpzClzr9mty44GBazWYtZT6Gpfrkzu3PFOyI9f4FVIY0M /rvKT67gC4eG5dcXDo2ufUsp9jTg2FRGUS3xypWQabMN8P7eFNcCQNZJRKRXRFBkXYmd kXMA7PyhtaaPhzSY+ifQ49Ur/wkL7vXZJaXdE94vW9JjpHeHk6boU9OmTa7yPoj8tSpU WK0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12471-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e3-20020a05620a014300b0078155df8139si4923235qkn.442.2023.12.27.22.54.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:54:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12471-ouuuleilei=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A49151C21BFC for ; Thu, 28 Dec 2023 06:54:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 196957460; Thu, 28 Dec 2023 06:53:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88EC65235; Thu, 28 Dec 2023 06:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 9F3147F8A; Thu, 28 Dec 2023 14:53:46 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:46 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:41 +0800 From: Alex Soo To: Ulf Hansson , Adrian Hunter , Yangtao Li , Andy Shevchenko , Linus Walleij , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing CC: , , , , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Alex Soo Subject: [PATCH 3/3] riscv: dts: starfive: jh8100: Add SD/eMMC device tree nodes Date: Thu, 28 Dec 2023 14:53:22 +0800 Message-ID: <20231228065322.1176351-4-yuklin.soo@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> References: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786507685631168138 X-GMAIL-MSGID: 1786507685631168138 Add SD/eMMC device tree nodes. Signed-off-by: Alex Soo --- arch/riscv/boot/dts/starfive/jh8100.dtsi | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh8100.dtsi b/arch/riscv/boot/dts/starfive/jh8100.dtsi index 9c8ca73fffe0..545109ca6c49 100644 --- a/arch/riscv/boot/dts/starfive/jh8100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh8100.dtsi @@ -484,6 +484,15 @@ syscrg_sw: syscrg_sw@12720000 { #reset-cells = <1>; }; + sd1: mmc@12740000 { + compatible = "starfive,jh8100-sd6hc", "cdns,sd6hc"; + reg = <0x0 0x12740000 0x0 0x10000>; + interrupts = <91>; + bus-width = <4>; + cap-sd-highspeed; + status = "disabled"; + }; + pinctrl_gmac: pinctrl@12770000 { compatible = "starfive,jh8100-sys-pinctrl-gmac", "syscon", "simple-mfd"; @@ -509,6 +518,31 @@ uart6: serial@127e0000 { status = "disabled"; }; + emmc: mmc@1f110000 { + compatible = "starfive,jh8100-sd6hc", "cdns,sd6hc"; + reg = <0x0 0x1f110000 0x0 0x10000>; + interrupts = <174>; + clock-names = "main", "sdmclk"; + clocks = <&aoncrg AONCRG_CLK_EMMC_ICG_EN>, + <&aoncrg AONCRG_CLK_EMMC_SDMCLK>; + resets = <&aoncrg AONCRG_RSTN_EMMC>; + bus-width = <8>; + status = "disabled"; + }; + + sd0: mmc@1f120000 { + compatible = "starfive,jh8100-sd6hc", "cdns,sd6hc"; + reg = <0x0 0x1f120000 0x0 0x10000>; + interrupts = <175>; + clock-names = "main", "sdmclk"; + clocks = <&aoncrg AONCRG_CLK_SDIO0_ICG_EN>, + <&aoncrg AONCRG_CLK_SDIO0_SDMCLK>; + resets = <&aoncrg AONCRG_RSTN_SDIO0>; + bus-width = <4>; + cap-sd-highspeed; + status = "disabled"; + }; + pinctrl_aon: pinctrl@1f300000 { compatible = "starfive,jh8100-aon-pinctrl", "syscon", "simple-mfd";