From patchwork Sat Mar 20 18:15:56 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: 12152589 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=-8.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 DEC6CC433DB for ; Sat, 20 Mar 2021 18:18:03 +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 808716193B for ; Sat, 20 Mar 2021 18:18:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 808716193B 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: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:In-Reply-To:References:List-Owner; bh=+mYqdE5bPAZCNBi/Rqf78bP34LSIdNcZ9M7f3U/DtHs=; b=Y9B80zGH0l+wuE4TDfJ5+pAeVn lrCkk/sHNfmWiFo2HwySlFKZU+UDP0+HGwElX26Iuc/IrcCwyL/gaHoT5e9DSJpp3MerhlxB5eRTt YD/FnMoH+Y19IIViS7wMCq+PzEPLOE6f+072vLVZupAQ++H5MLYZ/y+SHntVrmsTB8Ff71l6UutBu 0Nlhqw1uDF8B3OQPBb9CyHwTQD7HteV1Bps4d3XCUnNtBGMVbp+BCQdL87UgGqJsDF314Vv4k2H+V lmfsm4pHzgcvcjlp2ScqND8Jhei6y+U579F/8oRHCaFe9dg+v8dZhJ7/6bOFVZnmF6RArLGbjZYE+ EShOMaDg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNg9D-0096eJ-0M; Sat, 20 Mar 2021 18:16:27 +0000 Received: from mout.gmx.net ([212.227.15.19]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNg99-0096dX-36 for linux-arm-kernel@lists.infradead.org; Sat, 20 Mar 2021 18:16:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264177; bh=dixi9nNlnn2n83ltjb76mdStzDLBWwdtr/6rTWS7Mfo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=W0R95BMlubj4mSppxvg6X88kyU6m4DPDrO6jFCpwKdsLrvlLxLXgI0VMY1y8kqUuH vQPBOe/pzVGFb7ROSt8xrdCcN7yYhiYraRWiVotxngxmcsYlPjZXh9aL0gkGkIoUDK gpCv8ptxolGZBYdukqNgyEBvaHJMS95IOFncdL8M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MhU5R-1lsJnO01tz-00ebx6; Sat, 20 Mar 2021 19:16:17 +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?= Subject: [PATCH 00/14] Initial support for Nuvoton WPCM450 BMC SoC Date: Sat, 20 Mar 2021 19:15:56 +0100 Message-Id: <20210320181610.680870-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:pGbnBh0quUhZqhkaucrt7T9eFqkG2dR/EygE/VGkjTY0OvtUrCr 2/O0ErmPKfRaWgw1xBZBKyv52vBqfhazB/8HMYjCDMyRrpChaZN2SXqIe0aC5zURKHDzTDz 1hQk1EkhDV52RBDkcBc3Dtx7RFwhv+vcXiAm68gqj3zSsk3PgQogL5Q/7L5dA+FkvE6djOx SX9/G+yFTIKVgT30dz0aA== X-UI-Out-Filterresults: notjunk:1;V03:K0:LCQYMgp0umA=:j9YM1jhjgpxRBsNsj5N4m6 1C7K+Ct1dHh8HtK6fqwSi/+lWXDqRg29/roPAWBITI8L1CiO3O42QwtzKAyhh/8WazJvU88EI 8QWRVG4K1dgDta4ImdY6DhKdRNFE8iEwPN2SYdMGphIvzKTxc5OEQ7Ns2UAl/+k7NOX8jZGGB 22MnT/AWjKn/fmVUu9j5O21ZGTvD60nLA0QO+QSOb+XKVCGVnQ7JsTfEsjvTHRrI3K+zMgPvy BDMsRY5InLWSOfjwf1PhlByxrfUyBzU1FEDS3FS0j5w+n0nepqsTi1jnU39N0erathoORIrJb FwbzkNcT/FcbKfl/ZWSpMYmAo26bC2boWBTB67GzaHEwAA3+91D9fp0JPnKuODoz/U4l0OWSg cS27PRQeN3ac1wCwGHutVhD85Q8IOqPgtmUHz7pmEt8cu0hQSZ2sYBpAmYmkBDTTTd+vm8gcm CB9V6+HSDJsdo5As9FhKqLKMfzPKl4FAN58YJ40vCBMm+Q6wSxC0LxyHZ69BYlTpsk3Dm7D3v UNl57NQ9YTnax3rej5WerIvHd498WfdfyPMo6oyI1wTydvqKfUmyQFlCr8v/JbJ797w6XtlFL QkVNIqoGGU4yiXTgiNA67K9zHc9/pUtvtMQSYg7Nfq6g9bHT6ecOsNITW5Hvl2RBl/hDGn2yr tXPYWiCn4ToOKCSYQpQi4/7MPW/k+tAqGr1pS90+AmNlNmpCUGOG75VjBQgoYJYrm2hKXbQe0 gJ//uwzRkQ1MSd33oLLswzfj7CWLB3WZV9GJM4zchRHNjWUQ8IqX9IKPNd0dU/4ecsGLyXFKL 7/bI8xbhBSr3k+cB2fCMwQ9MIlvUZfgfWBekggUf7A4fNyiFhEdmP7blwbw3ps3/SwJaOgusY 45TFoGL3BvfO0TyM+JzA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210320_181623_272122_17790F3A X-CRM114-Status: GOOD ( 13.28 ) 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 This series adds basic support for the Nuvoton WPCM450 BMC SoC. It's an older SoC but still commonly found on eBay, mostly in Supermicro X9 server boards. Patches 1-6 add devicetree bindings for the WPCM450 SoC and its various parts. Patches 7-11 add arch and driver support. Patches 12 and 13 add a devicetree for the SoC and a board based on it. Patch 14 finally updates the MAINTAINERS file. Patch 2 requires "dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML" (https://lore.kernel.org/lkml/20210320164023.614059-1-j.neuschaefer@gmx.net/) This series is based on 5.12-rc2, and doesn't cleanly apply to OpenBMC's dev-5.10 branch (there are some trivial merge conflicts). Jonathan Neuschäfer (14): dt-bindings: vendor-prefixes: Add Supermicro dt-bindings: arm: npcm: Add nuvoton,wpcm450 compatible string dt-bindings: interrupt-controller: Add nuvoton,wpcm450-aic dt-bindings: serial: 8250: Add nuvoton,wpcm450-uart dt-bindings: timer: nuvoton,npcm7xx: Add wpcm450-timer dt-bindings: watchdog: npcm: Add nuvoton,wpcm450-wdt ARM: npcm: Introduce Nuvoton WPCM450 SoC irqchip: Add driver for WPCM450 interrupt controller serial: 8250_of: Add nuvoton,wpcm450-uart clocksource/drivers/npcm: Add support for WPCM450 watchdog: npcm: Add support for WPCM450 ARM: dts: Add devicetree for Nuvoton WPCM450 BMC chip ARM: dts: Add devicetree for Supermicro X9SCi-LN4F based on WPCM450 MAINTAINERS: Nuvoton NPCM: Add wpcm patterns .../devicetree/bindings/arm/npcm/npcm.yaml | 6 + .../nuvoton,wpcm450-aic.yaml | 39 +++++ .../devicetree/bindings/serial/8250.yaml | 1 + .../bindings/timer/nuvoton,npcm7xx-timer.txt | 3 +- .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../bindings/watchdog/nuvoton,npcm-wdt.txt | 3 +- MAINTAINERS | 11 +- arch/arm/boot/dts/Makefile | 2 + .../nuvoton-wpcm450-supermicro-x9sci-ln4f.dts | 40 +++++ arch/arm/boot/dts/nuvoton-wpcm450.dtsi | 76 ++++++++ arch/arm/mach-npcm/Kconfig | 13 +- arch/arm/mach-npcm/Makefile | 1 + arch/arm/mach-npcm/wpcm450.c | 13 ++ drivers/clocksource/timer-npcm7xx.c | 1 + drivers/irqchip/Kconfig | 6 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-wpcm450-aic.c | 162 ++++++++++++++++++ drivers/tty/serial/8250/8250_of.c | 1 + drivers/watchdog/npcm_wdt.c | 1 + 19 files changed, 374 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml create mode 100644 arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts create mode 100644 arch/arm/boot/dts/nuvoton-wpcm450.dtsi create mode 100644 arch/arm/mach-npcm/wpcm450.c create mode 100644 drivers/irqchip/irq-wpcm450-aic.c --- 2.30.2