Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4781450rwl; Tue, 28 Mar 2023 11:10:44 -0700 (PDT) X-Google-Smtp-Source: AKy350aHYyc55yG0nOEI/qvxETEFU6DidpGdlponpJSe1gXjuO/ZYUAn6Z1Mf3ay357QDZ28/l3/ X-Received: by 2002:a17:902:d405:b0:19f:35de:c17e with SMTP id b5-20020a170902d40500b0019f35dec17emr11832571ple.52.1680027044585; Tue, 28 Mar 2023 11:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680027044; cv=none; d=google.com; s=arc-20160816; b=jdReRxJ4xFsmkxR4ICDslzyikZqmDQfL5HIZQDNKfnLicxa9E2eGyp/pX8zSPkhvtN J/gsRYnyoiNgeIe9ifKQxRh0ijgiBFAPwCXSM9zCLVvmQjTHxyL6TXw7CCe0zassGpsr EIS0cX3XQsyTgTQaIc7Vun091d3pV0OkylKSMLNer6kASYv+6X1d0yp5J4eDsMbwJHgt 1PM47qY7Ng1ari9aCyHambJY4yPfuldUKIsvT3UozeU9MeD5oCCqDczdFvEtNdspzjiZ +XOVpIWgsqzSpihwd2XAQXraHmU5nqr9QknUvtuXBTazYAk/pqpeFhche1R+/SBaA/+U M7dw== 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=szDf3aCcg4TDkv0yQXxFsNWDkOoSrzy3aaSwc4ihjRU=; b=a72odFYUbnaPDp5WSDWjoY9HPBeYS6F5a7xjBX814uOCFi5y3l4cXTT7YSnYMIkfgF DX0eoAYw7dLEQjYRsC/3lRZ8AJu1O49R4x6nXdSLsgPQ/+8+gv9V9BtPIrD013aTLH8H 0TqyLVuMyysckj1av5dJ9YuLGNONChoe7eiI5Ozv7bNmYcvApAU/QOGSTbJ5lGSh8xeT wooorKc9N7CUvSmyWnO7HLwmd8ahu5loVKRpPsj6R1nArnTeSZzd5QVI1jOVMWQIan7+ fXV0rJ+DdU7oBmPBqN4KCuaZcMa4VlYWNfhYNLpk0/QcS4AG2YTaZT2OqQlMjAkorn6r M84g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JfsCV1In; 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 w10-20020a170902c78a00b0019b0b007994si28359633pla.163.2023.03.28.11.10.32; Tue, 28 Mar 2023 11:10:44 -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=JfsCV1In; 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 S229682AbjC1R6I (ORCPT + 99 others); Tue, 28 Mar 2023 13:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjC1R6H (ORCPT ); Tue, 28 Mar 2023 13:58:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F54F1BC2; Tue, 28 Mar 2023 10:58:01 -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 CDC12618CF; Tue, 28 Mar 2023 17:58:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F5AAC433EF; Tue, 28 Mar 2023 17:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680026280; bh=Ib0TeEbZ2cwg8aSfAANNAHICaPz76LsEnrLxN+yLCao=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=JfsCV1Inw6I0q8kDdQwAjmxyrup3uT8e3KFYzTujUsokHWACrpONGwFUc7FjuRI0z OT6PayAgdUAohie/0UnE3to1UcP4A8Sg/Bby9mNdxRkXkMgyIx/Tv2oHI4d58isxAr cHkMLUBT0UeTneItUc0e8U5QZyHdWps6vvrAy9EQHfW8jQlN/cxmtjg5clbAF0/4Iu ARyk+x8+zXBOHwWvvE3kzEjRRBe7uabT000msJ4kkFUREakycpt63FL0zFCvfQRThL d43arIL5LGXhhiKEBGHq3KuoS48+BRJxVP/sFuerEX23dYM5WQYoLLVzMJjrTvxHpU xdSsaoKOpX4sQ== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230328021912.177301-9-ychuang570808@gmail.com> 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 10:57:57 -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-27 19:19:08) > diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot/dt= s/nuvoton/ma35d1.dtsi > new file mode 100644 > index 000000000000..0740b0b218a7 > --- /dev/null > +++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi > @@ -0,0 +1,231 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2023 Nuvoton Technology Corp. > + * Author: Shan-Chun Hung > + * Jacky huang > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +/ { > + compatible =3D "nuvoton,ma35d1"; > + interrupt-parent =3D <&gic>; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + cpus { > + #address-cells =3D <2>; > + #size-cells =3D <0>; > + > + cpu0: cpu@0 { > + device_type =3D "cpu"; > + compatible =3D "arm,cortex-a35"; > + reg =3D <0x0 0x0>; > + enable-method =3D "psci"; > + next-level-cache =3D <&L2_0>; > + }; > + > + cpu1: cpu@1 { > + device_type =3D "cpu"; > + compatible =3D "arm,cortex-a35"; > + reg =3D <0x0 0x1>; > + enable-method =3D "psci"; > + next-level-cache =3D <&L2_0>; > + }; > + > + L2_0: l2-cache0 { Just l2-cache for the node name. Doesn't it go under the cpu0 node as well? > + compatible =3D "cache"; > + cache-level =3D <2>; > + }; > + }; > + > + psci { > + compatible =3D "arm,psci-0.2"; > + method =3D "smc"; > + }; > + > + timer { > + compatible =3D "arm,armv8-timer"; > + interrupts =3D + IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */ > + + IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secur= e */ > + + IRQ_TYPE_LEVEL_LOW)>, /* Virtual */ > + + IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */ > + clock-frequency =3D <12000000>; Remove this property. The frequency should be read by the driver. > + interrupt-parent =3D <&gic>; > + }; Please create an 'soc' node for the SoC to hold all the nodes that have a reg property. > + > + sys: system-management@40460000 { > + compatible =3D "nuvoton,ma35d1-sys", "syscon", "simple-mf= d"; > + 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. > + > + gic: interrupt-controller@50801000 { > + compatible =3D "arm,gic-400"; > + reg =3D <0x0 0x50801000 0 0x1000>, /* GICD */ > + <0x0 0x50802000 0 0x2000>, /* GICC */ > + <0x0 0x50804000 0 0x2000>, /* GICH */ > + <0x0 0x50806000 0 0x2000>; /* GICV */ > + #interrupt-cells =3D <3>; > + interrupt-parent =3D <&gic>; > + interrupt-controller; > + interrupts =3D + IRQ_TYPE_LEVEL_HIGH)>; > + }; > + > + uart0:serial@40700000 { Add a space after : > + compatible =3D "nuvoton,ma35d1-uart"; > + reg =3D <0x0 0x40700000 0x0 0x100>; > + interrupts =3D ; > + clocks =3D <&clk UART0_GATE>; > + status =3D "disabled"; > + };