From patchwork Tue Apr 6 12:09:19 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: 12185109 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.8 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,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 7BA04C433ED for ; Tue, 6 Apr 2021 12:14:47 +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 01664613C2 for ; Tue, 6 Apr 2021 12:14:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01664613C2 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=ZmDrMjGpYZT8xkM76ujY1WJ3UrjHCzEPXNYuOA49ZqY=; b=lUxbpFHB9wt3odJLudn/X/5Qn GzQ9iYXADIbFNyMWo7BwrCJ6S2GTuIgwfMkmkbp7hYYtBpJkSbw3UhXp5OJiUPOsCwk3pHj/nN0PQ KxcaWtjlFxoxpmSdd1R9F9Iy5zC+hs8995iRSQxyg7mVLM8YYVO1pJwIDZ6zDUGl5gZpflQd5Vrs+ D5X6sLyapVKl2Qy9QIxGB/DogMaw5o9PJb8VPlQ7ob+gGHpcgf0F7voN4GPz0IyILFuo4u+HS/idI NApCh2zUr0iupxgtoc6og2BN/3M4CGih0TNTFKszMndRO3o9o+ImMdpCUVkYItekzH9L57DEm84u8 zxM4y9YwQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkYq-002WXL-Cu; Tue, 06 Apr 2021 12:12:00 +0000 Received: from mout.gmx.net ([212.227.15.15]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkYh-002WU4-H1 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:11:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711110; bh=tZBy5KAAZ9vu5ip+BcWqftbm3tGw9rhGKlIlf9459yg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=B5rt/n8dyE/K24eR8WBvlExqIrrgOUX6kl0CJy/Ug1GIK+2lJH99U47pWhOWIan0y 7Bp4KMyV1TkxpiRVoUx3ZeZn3Pn1B8xmcC1cBc4ivQfiEIBc4DLOh7XavIUJco+dH3 GiOx4tY057o0dmQvj001yLFovIlChjiM3YwbeXbU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0G1d-1lpX8c3fHj-00xL35; Tue, 06 Apr 2021 14:11:49 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org Cc: Tomer Maimon , Joel Stanley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Rob Herring Subject: [PATCH v2 08/10] ARM: dts: Add devicetree for Nuvoton WPCM450 BMC chip Date: Tue, 6 Apr 2021 14:09:19 +0200 Message-Id: <20210406120921.2484986-9-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210406120921.2484986-1-j.neuschaefer@gmx.net> References: <20210406120921.2484986-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:tfnzukyq6T5j6Jov6LVF0Wy9HPGJ9303YpWehXV3q7sfViq6gSc I9KMKchj0t79wSxluPJLzvTVFe8BJpT+qQDKKPH9TMPEfU1wwJxHA7gArdCXKb/C+Nl9mBC S6ZutBpD4tPQw1VFx2IsT+d3xyCWkhhHG7dlc4Ty+JiWkECu3vRNrVIu8K++MUuXFKRpeBQ 9ZdP3Tdv2iQk94q2yPaxg== X-UI-Out-Filterresults: notjunk:1;V03:K0:CU+yLTsdxR4=:fu1bMWWg3P5326h8pIIrhg L18WyNLhEKyvTqLezBQdsG2jP1le8u5RNlg/gr1sV6J4jekTDTlJTFCU9M/4tw0xIhQFZLnss LZeZmzhrFie+eSe7qIqWaDU3h1ZOS59ajqKLrEOHg+5nNtCb48IM9h1tqqB+RQAl1MgRj1Yex WRnLC6P4jXIvSa6Rrgp0FgyFWI+98CEqWJwYKDyAGIcqc9hnPWUKXqVTI3aE0HF0MJZcaDawF vhSuXuxqGnf9jpMqaNjAhazFX0pqEV+XSBvxuHymGqiWPOsvkLL4B8kURCUZO/pNjwS+ASOBL 8/HpPt0ZZgkvsCy1Wy4lx4rQf1v+JlDgWRshBeTJILZJRmDcurvS0vLkkfqqHVxwPRQHLnrCu WSDJwF7ICO4G2rjbQIO1n+JubtmPnBNsaDNOazTxiYtXxM9dCHaMp+junqqQDS87r1j17utI2 0lirKtwLlelu6b2o7Wc7V4eaBOPBJbt31jR2vo577bHapelBGpa3vFcrO6npLDsPT5vCUp2Qe fDGCtAeRnvKeZULdrNEloF1UuiNmRQDwjjpWjq3evTeYUE2Wff6TGV5bw0h5Ibz/N98EWpN+N 92Mce9O5Y3Bo9J70Q0iYnJn5Bwkl1/3l+TqmBoMTqtja2WINpxtGMfBhB+Mvv7PzoLxZjdsIG piTeAaHSnzoE0uxriHgOmOl0k+wKz/5GLNRekgLyIGfm18ME3dJXMjn9F+yRRyT8lvRqCU4LS 9WtENt0KC+GfFxC1PI+TMlckyGSkCdbOrqHxIKh0WjPsbn9ylD2YtYfcNtWe4aUl4gMERtiDx MreWu9Pd8WMhuEqg7Xai1VmsvJcbGv1tV+XzcOBVX127B4v8XaIu28dL8eg3DyMaJ/NqaRGVw dZWNcYo7PkbKizWJPIHxqkJVgAZ7jnT6jDm6HgV/QlSoz8Vr3qxpLjDsGF37Hr0gFff7AE/7l VJuvvSE9gz8+jyvSpRLVtoWMv0BYBWJA2NfD2L4ZjI3zqJ+yFXCLt5nWySm6ZDBNg5iSZFs/+ 6ahTOGXljEDXF7P+02AzcMKJykaGUsEdDzJrxnryWZYmUftWB5HzsUDy6Fwc38sv1D23kUVW1 1D6Z5wblngB31WF7uSUWwUy7CZVUk2jF0mYx3oM2il+ztfmqSVyy8/gnpeqgVOzVuqxljrrir SnuAeOQjHWyxChlgsg01OtW/wP8TStnYMdox/bIhbhpBx4SgAmh/nErKkhvwdqcdzJEJB7E4c XCVKnXySvUTK0Uqls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131152_386729_20DBE9DB X-CRM114-Status: GOOD ( 12.44 ) 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 --- v2: - no changes --- 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>; + }; + }; +};