Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5576804iob; Mon, 9 May 2022 21:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9cJ58liUdttw0uiJN9Ir2heTA1iN2+iQUvHvCjL90lP3iNwAemMMRwGhWZeSJI16NQ4Vj X-Received: by 2002:a65:6d1b:0:b0:3c2:649d:4c9 with SMTP id bf27-20020a656d1b000000b003c2649d04c9mr15519789pgb.202.1652156227409; Mon, 09 May 2022 21:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652156227; cv=none; d=google.com; s=arc-20160816; b=jMuTJe7D20Pf2yJUY3LdVrA2HMdQLXTp6CvRSHVFAr4TB6t3Yhm8Au/PpvNkWfaZ3h dwbn6ygC4Q706nx/BU7mlxjQ3hEEqzkiOiWROIelRxWO2QFW/j832o91eEQMyWtUBdXa uiZFFIQBDrHAwIRB9cFo3pGd1/7FevSAm7mJxF16H7L7P/O+iQeINZ5p3ShcN41UDyz0 5czK5B5wU3L7grKmT48E0PJZob3jpnkFbbdQ4GCFGtOo9XcfaWGzyDkKcwdF4NrRxEO8 Q0Ap+cy875RAS9GqUBvBmO57LKOi7A8BuZN/JpX+7k7yMbuybNo6MiyJDe271DaoRA1H XPCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=rw+Q+L4OA7wD0uc4be0KPGMZ+HWGZxL3ZSJWE0U8mac=; b=eLwrZwdtLDDfov4K6Io/rVMFMZazIf0AfncC0q3T3VGs0NoUHtBfsnv88q806Vf260 zrTmkrWEG8jHoDZnmYvOIgziaHIB9lHdm4PJQEulDbsCXLeS+eZTiJkCTCPLn7a5DT4S xQUH+7pQfocz2M5mJ6mbrfZaIRCS6lVp/jvNYgS5mYvJuWNnn62UfsvkYAgBbO0rrsHq Xye0NE97tHXhYTre6JPhKl+xg2HIPAw6oc2xyQo4/yBeg451D7hFW5GSlnR4LdO1NG5q GXsPWxwzlVBGMbU4yeJvflHUi4TTeTA5J/mRqGuRbarno6Vn/5GXVQtY5hnfMJRZW6LZ +zTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a17090341c100b0015d325faef2si2198395ple.508.2022.05.09.21.16.52; Mon, 09 May 2022 21:17:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235462AbiEJDag (ORCPT + 99 others); Mon, 9 May 2022 23:30:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235432AbiEJDa0 (ORCPT ); Mon, 9 May 2022 23:30:26 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A92A57125; Mon, 9 May 2022 20:26:06 -0700 (PDT) Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id CBEC91C8114F; Tue, 10 May 2022 11:26:05 +0800 (CST) Received: from NTHCCAS03.nuvoton.com (10.1.20.28) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 10 May 2022 11:26:05 +0800 Received: from NTHCCAS04.nuvoton.com (10.1.8.29) by NTHCCAS03.nuvoton.com (10.1.20.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1847.3; Tue, 10 May 2022 11:26:05 +0800 Received: from localhost.localdomain (172.19.1.47) by NTHCCAS04.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 10 May 2022 11:26:05 +0800 From: Jacky Huang To: , , , , CC: , , , , , , , , , Jacky Huang Subject: [PATCH V4 3/5] arm64: dts: nuvoton: Add initial support for MA35D1 Date: Tue, 10 May 2022 11:25:56 +0800 Message-ID: <20220510032558.10304-4-ychuang3@nuvoton.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510032558.10304-1-ychuang3@nuvoton.com> References: <20220510032558.10304-1-ychuang3@nuvoton.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Add the initial device tree files for Nuvoton MA35D1 Soc. Signed-off-by: Jacky Huang --- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/nuvoton/Makefile | 2 + arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts | 24 +++++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 120 +++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 arch/arm64/boot/dts/nuvoton/Makefile create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts create mode 100644 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index 1ba04e31a438..7b107fa7414b 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -19,6 +19,7 @@ subdir-y += lg subdir-y += marvell subdir-y += mediatek subdir-y += microchip +subdir-y += nuvoton subdir-y += nvidia subdir-y += qcom subdir-y += realtek diff --git a/arch/arm64/boot/dts/nuvoton/Makefile b/arch/arm64/boot/dts/nuvoton/Makefile new file mode 100644 index 000000000000..e1e0c466bf5e --- /dev/null +++ b/arch/arm64/boot/dts/nuvoton/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_NUVOTON) += ma35d1-evb.dtb diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts new file mode 100644 index 000000000000..95f0facb0476 --- /dev/null +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-evb.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Device Tree Source for MA35D1 Evaluation Board (EVB) + * + * Copyright (C) 2022 Nuvoton Technology Corp. + */ + +/dts-v1/; +#include "ma35d1.dtsi" + +/ { + model = "Nuvoton MA35D1-EVB"; + compatible = "nuvoton,ma35d1-evb", "nuvoton,ma35d1"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x0 0x10000000>; + }; +}; + diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi new file mode 100644 index 000000000000..7212f8de6906 --- /dev/null +++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi @@ -0,0 +1,120 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Copyright (c) 2022 Nuvoton Technology Corp. + */ + +#include +#include +#include +#include + +/ { + compatible = "nuvoton,ma35d1"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + }; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x0>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a35"; + reg = <0x1>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + cache-level = <2>; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + hxt_24m: hxt_24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "HXT_24MHz"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + clock-frequency = <12000000>; + }; + + sys: system-controller@40460000 { + compatible = "nuvoton,ma35d1-sys", "syscon", "simple-mfd"; + reg = <0x0 0x40460000 0x0 0x400>; + }; + + reset: reset-controller { + compatible = "nuvoton,ma35d1-reset"; + nuvoton,ma35d1-sys = <&sys>; + #reset-cells = <1>; + }; + + clk: clock-controller@40460200 { + compatible = "nuvoton,ma35d1-clk"; + reg = <0x0 0x40460200 0x0 0x100>; + #clock-cells = <1>; + clocks = <&hxt_24m>; + clock-names = "HXT_24MHz"; + assigned-clocks = <&clk CAPLL>, + <&clk DDRPLL>, + <&clk APLL>, + <&clk EPLL>, + <&clk VPLL>; + assigned-clock-rates = <1000000000>, + <266000000>, + <180000000>, + <500000000>, + <102000000>; + nuvoton,clk-pll-mode = <0 1 0 0 0>; + }; + + gic: interrupt-controller@50801000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-parent = <&gic>; + interrupt-controller; + reg = <0x0 0x50801000 0x0 0x1000>, + <0x0 0x50802000 0x0 0x2000>, + <0x0 0x50804000 0x0 0x2000>, + <0x0 0x50806000 0x0 0x2000>; + interrupts = ; + }; +}; -- 2.30.2