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: 758672 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: devicetree@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 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";