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 3728EC636D4 for ; Wed, 15 Feb 2023 12:22:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233551AbjBOMW2 (ORCPT ); Wed, 15 Feb 2023 07:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234042AbjBOMWZ (ORCPT ); Wed, 15 Feb 2023 07:22:25 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 226B2360BE for ; Wed, 15 Feb 2023 04:22:22 -0800 (PST) Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id CD5413F215 for ; Wed, 15 Feb 2023 12:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1676463738; bh=Ys8CZojIwyiyHL3vfQqMFK60gwHNRkm+YvncjitOGyM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WC1Q82JyPS6us5x06iqoagIY0hMh6LqaFg3iojR/nnRNnD3JuDW867Zw5dGilHjQc mUemOEc8cOEOxZMlP6f/p9d47QNKDLt6HXzfg4rSM+NCtNZWEHUvfwji1GYRrLY+U7 BCU9WvZ2JW9MDjSbW1WD/Dg54dCDjLsJ+s2m9njhNqgT0YEUtlYGbbmnT4snEEII8A caXqbu2Pk+IwF0TCPD+3/kxp+wLtftFMpSSKEp7akENWVfYJLqljoL0fKrVQ/MeHsC BhabM6cuYJXTbb9Czjp2rIKuOGXyR+u7r9BlUHggcLDRCtYbePgCJywYcC+1im6AO4 c9Fz8+8mj/SMA== Received: by mail-qk1-f197.google.com with SMTP id h13-20020a05620a244d00b006fb713618b8so11296984qkn.0 for ; Wed, 15 Feb 2023 04:22:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ys8CZojIwyiyHL3vfQqMFK60gwHNRkm+YvncjitOGyM=; b=31Z1AyV2Bxz3+wQKzX/XsIUKP5SjP5kOZ3LfBCYNQrl6ND8CE1BpuCW+/rq7z4uVj5 hPBeGKfU9rVF0+5gqRM4NXYbWwvChw+e/CI145b4gXYLSfoiH2hEDI1IK26dDxGzKr9f O0iypOT+BqziQo7odQm1WTGvL30nweB57W3iN7iNJGiMcLbro9586wHpglfwMYwnSC8E P2ImZQlgxwh1GjGmyIOR3tw9BFhJGBpSvWlDZf4I0Nb0KZU5Z2AZ4xORDUXW+XPds52g lD7+slqlmnYY0T8IJXbOLK731fBJxnhyycmIshJdQfZsQdz6At2rCgqPzDfjOFYaBWYr BW9w== X-Gm-Message-State: AO0yUKWZ+symcAyEndbxzQGUlCCH5geHZHEh5zZSC0wo4pmwXGoSyWrU R7QUULlA3cQxX+n8LgwdZFUHXY5JJpEkCK6HBv5T8iBrEmZjea8NHcUcN7a3BckVOMahzNJrSwi hpJSLP1geQXqEKPelrcrQPsEN2TqZyCcRPA+uCzkT6oy3nyq0cDfDmOGCww== X-Received: by 2002:a37:4249:0:b0:73b:3411:48b1 with SMTP id p70-20020a374249000000b0073b341148b1mr99315qka.219.1676463737793; Wed, 15 Feb 2023 04:22:17 -0800 (PST) X-Google-Smtp-Source: AK7set8VCvji9WHmh+GciDNEQcXCQUKLSVfuPNnOPdx+AWLSQHOdX7DU6aUZf6xJQbp70/suV8jyyvielU6wnwPhUbQ= X-Received: by 2002:a37:4249:0:b0:73b:3411:48b1 with SMTP id p70-20020a374249000000b0073b341148b1mr99312qka.219.1676463737464; Wed, 15 Feb 2023 04:22:17 -0800 (PST) MIME-Version: 1.0 References: <20230215113249.47727-1-william.qiu@starfivetech.com> <20230215113249.47727-4-william.qiu@starfivetech.com> In-Reply-To: From: Emil Renner Berthing Date: Wed, 15 Feb 2023 13:22:00 +0100 Message-ID: Subject: Re: [PATCH v4 3/4] riscv: dts: starfive: Add mmc node To: William Qiu Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Feb 2023 at 13:12, Emil Renner Berthing wrote: > > On Wed, 15 Feb 2023 at 12:35, William Qiu wrote: > > > > Add the mmc node for the StarFive JH7110 SoC. > > Set mmco node to emmc and set mmc1 node to sd. > > > > Signed-off-by: William Qiu > > --- > > .../jh7110-starfive-visionfive-2.dtsi | 23 +++++++++ > > arch/riscv/boot/dts/starfive/jh7110.dtsi | 47 +++++++++++++++++++ > > 2 files changed, 70 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 c60280b89c73..e1a0248e907f 100644 > > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > > @@ -42,6 +42,29 @@ &rtc_osc { > > clock-frequency = <32768>; > > }; > > > > +&mmc0 { > > + max-frequency = <100000000>; > > + bus-width = <8>; > > + cap-mmc-highspeed; > > + mmc-ddr-1_8v; > > + mmc-hs200-1_8v; > > + non-removable; > > + cap-mmc-hw-reset; > > + post-power-on-delay-ms = <200>; > > + status = "okay"; > > +}; > > + > > +&mmc1 { > > + max-frequency = <100000000>; > > + bus-width = <4>; > > + no-sdio; > > + no-mmc; > > + broken-cd; > > + cap-sd-highspeed; > > + post-power-on-delay-ms = <200>; > > + status = "okay"; > > +}; These nodes are also still oddly placed in the middle of the external clocks. Again please keep the external clocks at the top and then order the nodes alphabetically to have some sort of system. > > &gmac0_rmii_refin { > > clock-frequency = <50000000>; > > }; > > diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi > > index 64d260ea1f29..17f7b3ee6ca3 100644 > > --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi > > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > > @@ -314,6 +314,11 @@ uart2: serial@10020000 { > > status = "disabled"; > > }; > > > > + stg_syscon: syscon@10240000 { > > + compatible = "starfive,jh7110-stg-syscon", "syscon"; > > + reg = <0x0 0x10240000 0x0 0x1000>; > > + }; > > + > > uart3: serial@12000000 { > > compatible = "snps,dw-apb-uart"; > > reg = <0x0 0x12000000 0x0 0x10000>; > > @@ -370,6 +375,11 @@ syscrg: clock-controller@13020000 { > > #reset-cells = <1>; > > }; > > > > + sys_syscon: syscon@13030000 { > > + compatible = "starfive,jh7110-sys-syscon", "syscon"; > > + reg = <0x0 0x13030000 0x0 0x1000>; > > + }; > > + > > gpio: gpio@13040000 { > > compatible = "starfive,jh7110-sys-pinctrl"; > > reg = <0x0 0x13040000 0x0 0x10000>; > > @@ -397,6 +407,11 @@ aoncrg: clock-controller@17000000 { > > #reset-cells = <1>; > > }; > > > > + aon_syscon: syscon@17010000 { > > + compatible = "starfive,jh7110-aon-syscon", "syscon"; > > + reg = <0x0 0x17010000 0x0 0x1000>; > > + }; > > + > > gpioa: gpio@17020000 { > > compatible = "starfive,jh7110-aon-pinctrl"; > > reg = <0x0 0x17020000 0x0 0x10000>; > > @@ -407,5 +422,37 @@ gpioa: gpio@17020000 { > > gpio-controller; > > #gpio-cells = <2>; > > }; > > + > > + mmc0: mmc@16010000 { > > + compatible = "starfive,jh7110-mmc"; > > + reg = <0x0 0x16010000 0x0 0x10000>; > > + clocks = <&syscrg JH7110_SYSCLK_SDIO0_AHB>, > > + <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; > > + clock-names = "biu","ciu"; > > + resets = <&syscrg JH7110_SYSRST_SDIO0_AHB>; > > + reset-names = "reset"; > > + interrupts = <74>; > > + fifo-depth = <32>; > > + fifo-watermark-aligned; > > + data-addr = <0>; > > + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; > > + status = "disabled"; > > + }; > > + > > + mmc1: mmc@16020000 { > > + compatible = "starfive,jh7110-mmc"; > > + reg = <0x0 0x16020000 0x0 0x10000>; > > + clocks = <&syscrg JH7110_SYSCLK_SDIO1_AHB>, > > + <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>; > > + clock-names = "biu","ciu"; > > + resets = <&syscrg JH7110_SYSRST_SDIO1_AHB>; > > + reset-names = "reset"; > > + interrupts = <75>; > > + fifo-depth = <32>; > > + fifo-watermark-aligned; > > + data-addr = <0>; > > + starfive,sysreg = <&sys_syscon 0x9c 0x1 0x3e>; > > + status = "disabled"; > > + }; > > Hi William, > > These nodes still don't seem to be sorted by address, eg. by the > number after the @ > Also please move the dt-binding patch before this one, so dtb_check > won't fail no matter where git bisect happens to land. > > /Emil > > > }; > > }; > > -- > > 2.34.1 > > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv