From patchwork Sat Mar 20 18:16:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12152617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DE49C433DB for ; Sat, 20 Mar 2021 18:25:24 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AD1F061925 for ; Sat, 20 Mar 2021 18:25:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD1F061925 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Hqj98IXpxdE8WZEJ/5jyRbqsRMKKP6Nd1GJfMnJ7L+o=; b=kdmqwCu4wgaSYmk9eUVVTf/HD GbuyUV4UvEGfufc+CauDQTAt6Tu5iv0AHdjgAJaXJHnCrQkz1/7/k7N1KmCQooVwWdsjeW4xm2Yug C2nYwxuonfAXXAcEowQfWyLWAAuLT5rb2Q1pIbtwLMzAzIPAtSLL4xMB6yTHlCqvwcplbZWYOeOSJ L7HKIlr4U9F3PgQobU+90q+XebBbBBj3J6odLFY6AAnBy4vN1oU2LSB+HthAS7WKO0U7DqHs7nIwf CJE5vLToUTVadEW7FkSZlu2aY2v268L7XHzXhJEOPBWCnFzl65KJoNQ6CDS6bKx7ljHN7PxNNn52g r+V41xoTQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNgGZ-0098K1-99; Sat, 20 Mar 2021 18:24:03 +0000 Received: from mout.gmx.net ([212.227.17.22]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNgGS-0098Hw-Dj for linux-arm-kernel@lists.infradead.org; Sat, 20 Mar 2021 18:24:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264633; bh=g7ln86j48NBzVCWhAoLlq90X9ie2pByGlx1NbuGnqws=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=g6mZ9TYdYjPvM83QQEpByFU2nzVCEM6TSN+BxEuTNcJvAaEB2Iq42tNjt3kQKRepV KLblAosxSZVVw2UkRy2ftip1jGx1lnhbatEBmexmBBoEaENoVCLam3GhAUJRJuGVVY u9dH3pd4VoI7l1gR4oxbgzVO6oGQygd48LhdErXY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mnpru-1m30Tr2iTK-00pLIg; Sat, 20 Mar 2021 19:23:53 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring Subject: [PATCH 12/14] ARM: dts: Add devicetree for Nuvoton WPCM450 BMC chip Date: Sat, 20 Mar 2021 19:16:08 +0100 Message-Id: <20210320181610.680870-13-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210320181610.680870-1-j.neuschaefer@gmx.net> References: <20210320181610.680870-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:o6Yjk0rYMnIkhnBBV1UC+FHWQWNuBBUJo9pSXksFeBHmkFrYXrI gxP139WnU8/Ju/GeHzgBm6QfdJDFOinwv1hNPNh2bU9743iHs0+iAzakoWGzgRsoPfBgdaI eRmOZe7wfBB9iOwetKpLtneXBK2zntcXxQtPh3yZEnS4Se++le4oCEm/tlIGiRomwa6Uf36 mx3/HbLKG7W7NoRUaWWBw== X-UI-Out-Filterresults: notjunk:1;V03:K0:OL4jqKuClAE=:lhDSiaHFlFQJqJbw2xSa30 SX+hRBTKT7q5EVT+Z82DirCXrHtnNFsUkUf3K07BkDqxZoCfxVY0H1w99eOKq5bao2d+pNo7x DIwR+T+zPt8zXJ01u7A2kZgkQ4RwxYnifddewb2mZEZ+6BN8g4xD+AKf9cu5myCuWhaT75HZs Wt8RPh01VLLmb7b/YMtzOkYrOyxAZPhjhR1Anwz8ic8j6rSzwEOvP9RZWeKgjvFJbghpymI84 elJTHgnmmTmTiynMjcSM0kdfknsv6AjnAp+RQsgP9GmplVpaQR/qVBD+lVD6gPkA5aN4PBpe7 xdUAx2gEEAXwrUsDeOUiz5srSI8N81XGcmJicwogvmcwA6+8Y/+6V8ziVS378xZqixzb6J1iC 0fNbGnByxUrD7twTqqRCoH0+g9mwJla/JYBIBtvgCFVwLuToYZbZ30d+DHbOf1UbOq0XCAuuf TJoKK/s4gRcwKEgYQSdgZ8cQEeKxlhsRXc/gM6vBY8cICrz6FN6FWF7jRtaT9FOePNL652u0B RXWAxVP/ls7byDxAETzara7jdt6TLNcLvGOrBDwzTNScSTiMN6g9jQ7rHSGmjDCO25L9mvy9o o8JLavcy1c/Tr3V6Wa4S4oy0hrf6wvNVxEjSAg7T8Sqq0ZZaokQK6tbMKiF80fpREJZ0LLjbz xyuGTPlDk/EMioPV8o6WrzQc0Biq4CT+Zz3pHi9AQSTOCuFtFiboDxuUAk9M8DlMOsn3VNCDy W6KB0l5DwtUBmdWbGAUDvBCdrTvaeFZ/F1QmyPAewVkEildtiSBC1Kyp+hiKKoUev+A9jnTS4 Q4x2KpiWiAjwxJacNeTNlgaIlQX2w7gL9QP7dUKmJMBaR95+k5sdf30Hd/M8AcqckSFnfJlLQ N2X5OO16nomFzumsW8pw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210320_182359_003249_86C15F19 X-CRM114-Status: GOOD ( 11.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally marketed as Winbond WPCM450. This patch adds a devicetree with basic functionality. Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/nuvoton-wpcm450.dtsi | 76 ++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 arch/arm/boot/dts/nuvoton-wpcm450.dtsi -- 2.30.2 diff --git a/arch/arm/boot/dts/nuvoton-wpcm450.dtsi b/arch/arm/boot/dts/nuvoton-wpcm450.dtsi new file mode 100644 index 0000000000000..d7cbeb1874840 --- /dev/null +++ b/arch/arm/boot/dts/nuvoton-wpcm450.dtsi @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +// Copyright 2021 Jonathan Neuschäfer + +#include + +/ { + compatible = "nuvoton,wpcm450"; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "arm,arm926ej-s"; + device_type = "cpu"; + reg = <0>; + }; + }; + + clk24m: clock-24mhz { + /* 24 MHz dummy clock */ + compatible = "fixed-clock"; + clock-frequency = <24000000>; + #clock-cells = <0>; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&aic>; + ranges; + + serial0: serial@b8000000 { + compatible = "nuvoton,wpcm450-uart"; + reg = <0xb8000000 0x20>; + reg-shift = <2>; + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk24m>; + status = "disabled"; + }; + + serial1: serial@b8000100 { + compatible = "nuvoton,wpcm450-uart"; + reg = <0xb8000100 0x20>; + reg-shift = <2>; + interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk24m>; + status = "disabled"; + }; + + timer0: timer@b8001000 { + compatible = "nuvoton,wpcm450-timer"; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; + reg = <0xb8001000 0x1c>; + clocks = <&clk24m>; + }; + + watchdog0: watchdog@b800101c { + compatible = "nuvoton,wpcm450-wdt"; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; + reg = <0xb800101c 0x4>; + clocks = <&clk24m>; + status = "disabled"; + }; + + aic: interrupt-controller@b8002000 { + compatible = "nuvoton,wpcm450-aic"; + reg = <0xb8002000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};