Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3960740rwr; Mon, 8 May 2023 00:10:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5h718X6ihIjM+Ztxk5SnrJ5QcdZWbEuwyW3foVHv7IyNCsaH+OnA6I+XfaiC5lwlJ4laJl X-Received: by 2002:a17:902:ec84:b0:1ac:5405:f38e with SMTP id x4-20020a170902ec8400b001ac5405f38emr8266878plg.2.1683529851807; Mon, 08 May 2023 00:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683529851; cv=none; d=google.com; s=arc-20160816; b=YSI02k/UC0aqF+747PEMHICkM2zx8mPxdbCfq/u4E5afxAFN1GpZCKjzP8r2XsSPLW 8qJp+B8U3nJdfJReINQourWlSKW27W5MzGYfiSa6cM/OYu5d2wo7weklCpMp9hzj8z/S NTidvxmMWRkisKxjcIR9VTNFZHHsfM2vztoY4HbwUBq2knt//3dKmQg+UEwXqIkO0+R9 RBA5sk1FxKdJAjnUVUtaHBksx3nphJjHu9zAJiZWO/E0xQ+o6pDtyaxu6umXtK72HoAC jSzRxWq8C45lwPZ3xkQUYSg0kdqGZusB4F70RxFxDonwqroGlVHuvsKmy21K8KEhPhEg 7cfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ykkuhMlb4dwO2uwkugYnXoSu9ym+52XlaOvpv57zC+Y=; b=BxJue+nyIng848Dh9nfY1Vbz3PKV6Qv3+K+UksPjXSR0PQ+c1pXQoC7FBMhuyfEE+3 mCVC/aLcoPojWjDLdzs4ZSyEfPwasYrSZFdXkGKe+mtRUEBCJRdYa3ZlF3ndv+jmAiFm A09HyZwH1B6kgJayPaJmq45cGznQXvvlqTa/RhDXGH1ZeqqCvsMBODJO6jjaHaCypvgD OxJ3HeqjUC5+aYcjAWNutNOj9v3CHj7re40ny6uTYFKtf/g8tiKXcj0Y8zgDVpuNtlyM zSWB3UmylGMjLEaz6USenQBP/NhqSn37aWEiWgNhs/N9XKzSYCN66O2pD6rCFb067MIT 6kJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXE7z5Sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b001a51c26f601si7963897plh.627.2023.05.08.00.10.36; Mon, 08 May 2023 00:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXE7z5Sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233182AbjEHG6v (ORCPT + 99 others); Mon, 8 May 2023 02:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233203AbjEHG6g (ORCPT ); Mon, 8 May 2023 02:58:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D271A62E; Sun, 7 May 2023 23:58:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4E8BA61F37; Mon, 8 May 2023 06:58:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3668C433EF; Mon, 8 May 2023 06:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683529095; bh=3NvGzGZUDejWf2Tsc/ruVQPX/c2lUYLZP2mcCabAqpE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NXE7z5SvCZ/k3TCIBRogKFdMhzfn0wpJbvPqtyXIAyoSti38t5Ep2rO3WqDfUkUW+ bwzb6RlFG6+pPCquLjxl0Ch/Rgj699XEnKTCwLKJS3pbRLhiBILtp2ALPR7wYAVcBk /Yb7dLOLcZ8qiRavKbYNrnDsGSbCmfalUyBRXHjG671oGchEFI9RNKwR756GnA0VFM dq9TWjCJWKAGyo/055cMy1R3rso1RqSSB/hyKdPpyVVnYkpb+lYtPig2u7BlJeTdsu lBRCKks+Pz76u1WU5tEb9aM4V6FHEsz8AWjAFKLW/2xDoj9p6czkGMRZUIyF8JkhJN s1HsirNbBRpEg== Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-965d2749e2eso528401566b.1; Sun, 07 May 2023 23:58:15 -0700 (PDT) X-Gm-Message-State: AC+VfDxY9RtB3CjPo8TBBKkEWl1kFPwqnj7+1MKtA5kvXszksNOCMvY9 x6jCSCnnhqZJeVLhvVeXFmZR1meGNSBrOr3a6lE= X-Received: by 2002:a17:906:7304:b0:94c:ea3b:27a with SMTP id di4-20020a170906730400b0094cea3b027amr9183323ejc.16.1683529093952; Sun, 07 May 2023 23:58:13 -0700 (PDT) MIME-Version: 1.0 References: <20230507182304.2934-1-jszhang@kernel.org> <20230507182304.2934-3-jszhang@kernel.org> <20230507-sleeve-tacky-21e817e31fb2@spud> <20230508-splashed-voicing-bc6e91aeb053@wendy> In-Reply-To: <20230508-splashed-voicing-bc6e91aeb053@wendy> From: Guo Ren Date: Mon, 8 May 2023 14:58:02 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/5] riscv: Add the T-HEAD SoC family Kconfig option To: Conor Dooley Cc: Conor Dooley , Jisheng Zhang , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 8, 2023 at 2:53=E2=80=AFPM Conor Dooley wrote: > > On Mon, May 08, 2023 at 02:42:10PM +0800, Guo Ren wrote: > > On Mon, May 8, 2023 at 5:22=E2=80=AFAM Conor Dooley = wrote: > > > > > > On Mon, May 08, 2023 at 02:23:01AM +0800, Jisheng Zhang wrote: > > > > The first SoC in the T-HEAD series is light(a.k.a th1520), containi= ng > > > > quad T-HEAD C910 cores. > > > > > > > > Signed-off-by: Jisheng Zhang > > > > --- > > > > arch/riscv/Kconfig.socs | 6 ++++++ > > > > 1 file changed, 6 insertions(+) > > > > > > > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > > > index 1cf69f958f10..ce10a38dff37 100644 > > > > --- a/arch/riscv/Kconfig.socs > > > > +++ b/arch/riscv/Kconfig.socs > > > > @@ -41,6 +41,12 @@ config ARCH_SUNXI > > > > This enables support for Allwinner sun20i platform hardware= , > > > > including boards based on the D1 and D1s SoCs. > > > > > > > > +config ARCH_THEAD > > > > > > Could you please add a defconfig patch, adding this option, so that w= e > > > build support for this platform by default? > > > Yes, but it's another patch, see: 'commit eb20e7cb91ba ("riscv: > > defconfig: Enable the Allwinner D1 platform and drivers")' > > But that's ARCH_SUNXI for the Allwinner D1. If the TH1520 is a > first-party SoC, and not an Allwinner product, it needs a new Kconfig > entry etc. > If it is an Allwinner, then the dts etc should be in the Allwinner > directory too. Do you mean? config ARCH_THEAD def_bool SOC_THEAD config SOC_THEAD bool "T-HEAD SoCs" In defconfig: +CONFIG_SOC_THEAD=3Dy > > Cheers, > Conor. --=20 Best Regards Guo Ren