Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5254444rwl; Tue, 28 Mar 2023 19:25:13 -0700 (PDT) X-Google-Smtp-Source: AKy350af2wazYvY3y2sIWBk0rJFPbdOoKWbKFoFodn5aQg078jMQtGWuEuN65YobvVZspcQqOVB/ X-Received: by 2002:a17:906:7109:b0:931:6921:bdb7 with SMTP id x9-20020a170906710900b009316921bdb7mr17483327ejj.60.1680056713556; Tue, 28 Mar 2023 19:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680056713; cv=none; d=google.com; s=arc-20160816; b=kHx9PWOIjewQF9BkTEMV6PiDkRv393/OCulF0W/KDgUEAYTr05sI0+ivZaeAzaGRIq 5wDYJKyp0K2ammKpg53PS5OW9kL8gTPH8gNhCn06py3ReOh6jTs2aNrectGF+x5fTjW/ L76e/v/V8fBjh1poLCiJN+h+ByuxZqcgAzpkOue/7JvgBZGvorgYqH7p6zwxFmlmEnO5 Ubdg+lrWgjs6KFycaLYKexU5ZKSPdTdPp3Z4V3z9tbq0e33i2cGJHOLhruQgemfpBQU/ TkQDI7hMiHRHIeeMDP0xtDyG+o7HveLnp5lRyCCsHXqGDkuW0op2t1Iwqj92agZd/iz+ X4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=56nvQd/KfRdNUTSW5PB0vhymiP10vMOAHgeYyEkl1EQ=; b=otMW0rUUdu/HvoNcFU61Ai/tzZE+ytj6ryyrO2ZVUS7WMnVzwSHqpsEohVRwn7QbEp eXk4apIr82bHaa/leQTbDcx5+HyewPUvriH/iGSapUMgiWo5s8XSy9weBne2JyoOwmZK VtAqOuhlUTM40Uqg4NkLNsl+typ3LokXU7CFKIE6GzeScGHiaMfA7kBA+Tt8erzSp1sL w3T+QRpb8O2VyLFVVfjJcb52fLBg78Pu75T8l2LLT6OCdumNB6eh3kWsCkc5rK87cvKd Rx1s4LZHUvBbhVS+CaUROYApB4Ryy9THwtFQmNnc5p5Q4JHsM6cNXvwII3UNkQdCaDrq c7ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R0S/WePl"; 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 o4-20020a170906860400b0093dbe9d142csi10890121ejx.414.2023.03.28.19.24.44; Tue, 28 Mar 2023 19:25:13 -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="R0S/WePl"; 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 S229773AbjC2CTW (ORCPT + 99 others); Tue, 28 Mar 2023 22:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjC2CTV (ORCPT ); Tue, 28 Mar 2023 22:19:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C693273E; Tue, 28 Mar 2023 19:19:15 -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 ams.source.kernel.org (Postfix) with ESMTPS id C4B4AB81F94; Wed, 29 Mar 2023 02:19:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58B26C433EF; Wed, 29 Mar 2023 02:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680056352; bh=FtQpj8iEUziXDo/mDSXE7qrZrcIgPVB/uYotZNpI5nk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=R0S/WePl5v3awL048+lqF2jzLgWIJv68pBHoA5Lu31hd1ugG/tKGd8ucFVR2frUMw 1uPmbTod+B8vkN1b/7eInyZOnVMyHi6d2b+nhuz/8QQGxlyVJaT5DZZ0h0n24C3lcM Q+uK43vAcSFenqhla0qjJpP5m1ezRNqaW9VDCEwXYwjGKbsejHX63GGT9oD1Cc+8iZ x3M/umenURW9kvh4qsoyGC3ubIH2VJoDwfpW15r2D4AMeWpOmNZ0435dXUEllCvh+5 UH1Li/aL9AaxOCMVuA4X+A2N0/0PXbn4NwTAdUg9/Z08GEyWPsBH1+WlP2qxyanyGt kkJ2m3VCMpCmw== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20230328021912.177301-1-ychuang570808@gmail.com> <20230328021912.177301-9-ychuang570808@gmail.com> Subject: Re: [PATCH v6 08/12] arm64: dts: nuvoton: Add initial ma35d1 device tree From: Stephen Boyd Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, arnd@arndb.de, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang To: Jacky Huang , gregkh@linuxfoundation.org, jirislaby@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org Date: Tue, 28 Mar 2023 19:19:10 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Quoting Jacky Huang (2023-03-28 19:03:24) > On 2023/3/29 =E4=B8=8A=E5=8D=88 01:57, Stephen Boyd wrote: > > Quoting Jacky Huang (2023-03-27 19:19:08) > >> diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot= /dts/nuvoton/ma35d1.dtsi > >> new file mode 100644 > >> index 000000000000..0740b0b218a7 > >> --- /dev/null > >> +++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi > >> @@ -0,0 +1,231 @@ [...] > >> + > >> + L2_0: l2-cache0 { > > Just l2-cache for the node name. Doesn't it go under the cpu0 node as > > well? >=20 > This describes the level-2 cache which is external to and shared by cpu0 = > & cpu1. > And only level-1 cache is inside of CPU core. > L2_0 is must, because both cpu0 and cpu1 has a next-level-cache =3D=20 > <&L2_0> property. Ok. The name should just be l2-cache then, not l2-cache0. >=20 > Many identical example of l2-cache node can be found in arm64 dts, such=20 > as k3-arm642.dtsi, > rk3328.dtsi, mt8195.dtsi, etc. Here is just a copy of similar arm64=20 > multi-core SoCs. >=20 > So we would like to keep this unchanged. Is it OK for you? Thanks. >=20 Mostly ok, yes. >=20 > >> + > >> + sys: system-management@40460000 { > >> + compatible =3D "nuvoton,ma35d1-sys", "syscon", "simple= -mfd"; > >> + reg =3D <0x0 0x40460000 0x0 0x200>; > >> + > >> + reset: reset-controller { > >> + compatible =3D "nuvoton,ma35d1-reset"; > >> + #reset-cells =3D <1>; > >> + }; > >> + }; > >> + > >> + clk: clock-controller@40460200 { > >> + compatible =3D "nuvoton,ma35d1-clk", "syscon"; > >> + reg =3D <0x00000000 0x40460200 0x0 0x100>; > >> + #clock-cells =3D <1>; > >> + clocks =3D <&clk_hxt>; > >> + nuvoton,sys =3D <&sys>; > >> + }; > > It looks like the device at 40460000 is a reset and clock controller. > > Just make it one node and register the clk or reset device as an > > auxiliary device. >=20 > 40460000 is for system control registers, including power contrl,=20 > multifunction pin control, > usb phy control, IP reset control, power-on setting information, and=20 > many other miscellaneous controls. > The registers of reset controller is only a subset of system control=20 > registers. >=20 > 40460200 is for clock controller which is independent of the system=20 > control integration > The register base of clock controller is very close to system=20 > controller, but in fact the two are independent. What do you use the syscon for then? The clock driver must want to use the syscon for something, implying that they are the same device.