From nobody Sun Feb 8 02:22:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A68A0C41513 for ; Wed, 9 Aug 2023 01:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbjHIBj0 convert rfc822-to-8bit (ORCPT ); Tue, 8 Aug 2023 21:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjHIBjZ (ORCPT ); Tue, 8 Aug 2023 21:39:25 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7471319AD; Tue, 8 Aug 2023 18:39:22 -0700 (PDT) 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 ex01.ufhost.com (Postfix) with ESMTP id BCABB24E280; Wed, 9 Aug 2023 09:39:19 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 9 Aug 2023 09:39:19 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 9 Aug 2023 09:39:18 +0800 From: William Qiu To: , , CC: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Qiu Subject: [PATCH v1 1/2] riscv: dts: starfive: enable DCDC1&ALDO4 node in axp15060 Date: Wed, 9 Aug 2023 09:39:16 +0800 Message-ID: <20230809013917.81674-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230809013917.81674-1-william.qiu@starfivetech.com> References: <20230809013917.81674-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Enable DCDC1 node for vmmc-supply and enable ALDO4 node for vqmmc-supply. Signed-off-by: William Qiu --- .../starfive/jh7110-starfive-visionfive-2.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi= b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index d2f3b9eb859b..d67e26b9c791 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -165,12 +165,28 @@ axp15060: pmic@36 { #interrupt-cells =3D <1>; =20 regulators { + vcc_3v3: dcdc1 { + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-name =3D "vcc_3v3"; + }; + vdd_cpu: dcdc2 { regulator-always-on; regulator-min-microvolt =3D <500000>; regulator-max-microvolt =3D <1540000>; regulator-name =3D "vdd-cpu"; }; + + emmc_vdd: aldo4 { + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-name =3D "emmc_vdd"; + }; }; }; }; --=20 2.34.1 From nobody Sun Feb 8 02:22:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 715E6C001B0 for ; Wed, 9 Aug 2023 01:39:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230361AbjHIBj2 convert rfc822-to-8bit (ORCPT ); Tue, 8 Aug 2023 21:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjHIBjZ (ORCPT ); Tue, 8 Aug 2023 21:39:25 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D0471982; Tue, 8 Aug 2023 18:39:22 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 8134724E293; Wed, 9 Aug 2023 09:39:20 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 9 Aug 2023 09:39:20 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 9 Aug 2023 09:39:19 +0800 From: William Qiu To: , , CC: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Qiu Subject: [PATCH v1 2/2] riscv: dts: starfive: Add mmc nodes on VisionFive 2 board Date: Wed, 9 Aug 2023 09:39:17 +0800 Message-ID: <20230809013917.81674-3-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230809013917.81674-1-william.qiu@starfivetech.com> References: <20230809013917.81674-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the mmc nodes for the StarFive JH7110 SoC. Set mmc0 node to emmc and set mmc1 node to sd. Signed-off-by: William Qiu Reviewed-by: Hal Feng --- .../jh7110-starfive-visionfive-2.dtsi | 96 +++++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 32 +++++++ 2 files changed, 128 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi= b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index d67e26b9c791..d79f94432b27 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -17,6 +17,8 @@ aliases { i2c2 =3D &i2c2; i2c5 =3D &i2c5; i2c6 =3D &i2c6; + mmc0 =3D &mmc0; + mmc1 =3D &mmc1; serial0 =3D &uart0; }; =20 @@ -201,6 +203,35 @@ &i2c6 { status =3D "okay"; }; =20 +&mmc0 { + max-frequency =3D <100000000>; + bus-width =3D <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + non-removable; + cap-mmc-hw-reset; + post-power-on-delay-ms =3D <200>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&mmc0_pins>; + vmmc-supply =3D <&vcc_3v3>; + vqmmc-supply =3D <&emmc_vdd>; + status =3D "okay"; +}; + +&mmc1 { + max-frequency =3D <100000000>; + bus-width =3D <4>; + no-sdio; + no-mmc; + broken-cd; + cap-sd-highspeed; + post-power-on-delay-ms =3D <200>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&mmc1_pins>; + status =3D "okay"; +}; + &qspi { #address-cells =3D <1>; #size-cells =3D <0>; @@ -306,6 +337,71 @@ GPOEN_SYS_I2C6_DATA, }; }; =20 + mmc0_pins: mmc0-0 { + rst-pins { + pinmux =3D ; + bias-pull-up; + drive-strength =3D <12>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + + mmc-pins { + pinmux =3D , + , + , + , + , + , + , + , + , + ; + bias-pull-up; + drive-strength =3D <12>; + input-enable; + }; + }; + + mmc1_pins: mmc1-0 { + clk-pins { + pinmux =3D ; + bias-pull-up; + drive-strength =3D <12>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + + mmc-pins { + pinmux =3D , + , + , + , + ; + bias-pull-up; + drive-strength =3D <12>; + input-enable; + input-schmitt-enable; + slew-rate =3D <0>; + }; + }; + spi0_pins: spi0-0 { mosi-pins { pinmux =3D ; }; =20 + mmc0: mmc@16010000 { + compatible =3D "starfive,jh7110-mmc"; + reg =3D <0x0 0x16010000 0x0 0x10000>; + clocks =3D <&syscrg JH7110_SYSCLK_SDIO0_AHB>, + <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; + clock-names =3D "biu","ciu"; + resets =3D <&syscrg JH7110_SYSRST_SDIO0_AHB>; + reset-names =3D "reset"; + interrupts =3D <74>; + fifo-depth =3D <32>; + fifo-watermark-aligned; + data-addr =3D <0>; + starfive,sysreg =3D <&sys_syscon 0x14 0x1a 0x7c000000>; + status =3D "disabled"; + }; + + mmc1: mmc@16020000 { + compatible =3D "starfive,jh7110-mmc"; + reg =3D <0x0 0x16020000 0x0 0x10000>; + clocks =3D <&syscrg JH7110_SYSCLK_SDIO1_AHB>, + <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; + clock-names =3D "biu","ciu"; + resets =3D <&syscrg JH7110_SYSRST_SDIO1_AHB>; + reset-names =3D "reset"; + interrupts =3D <75>; + fifo-depth =3D <32>; + fifo-watermark-aligned; + data-addr =3D <0>; + starfive,sysreg =3D <&sys_syscon 0x9c 0x1 0x3e>; + status =3D "disabled"; + }; + gmac0: ethernet@16030000 { compatible =3D "starfive,jh7110-dwmac", "snps,dwmac-5.20"; reg =3D <0x0 0x16030000 0x0 0x10000>; --=20 2.34.1