From patchwork Tue Apr 6 12:09:12 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: 12185081 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 C92F8C433B4 for ; Tue, 6 Apr 2021 12:12:29 +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 5333B613BD for ; Tue, 6 Apr 2021 12:12:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5333B613BD 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=b3DbB7H5AcTLcwpQFepVV4ehJcZdhIQNUdDy989M3aA=; b=T2rIqxg4Eksf0LmofZThnj4Bt I9/x2lK1LT/SVXYe0JWI1IZJ5tCdqxr1/n5g3R73XJUhaOdMVqaU4p8FbS5H6bwUAM3Vm1wzkivSQ /cT5+7nLi7VXx0haViVnLZca34tyvpNhN8Tsyu543NrZhK3c0SVTbv1YhhimbIXAD+sgbooOtBh7z qJU5TG5AWJB1HpAI+LLBhvZ3mGdChV/Px6AACV3FvsrF0cxGOSS1v2BXjfi7wOc8ITpozBWI5p8f/ mPcwR8QSDlk2fgnNeQjl5RDGNMu//I6KlaQ5vdXDA4mnC7oNTxZlWmuz7oEdPFpHqZ5vgDrxsRh5e uymGPljJQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkX0-002VyG-2M; Tue, 06 Apr 2021 12:10:06 +0000 Received: from mout.gmx.net ([212.227.17.22]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkWw-002Vxk-OH for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:10:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617710991; bh=KpTYS8atLjrE/4GNwFDukd12JiHZ0ZOeahsrryBdGeY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VOWC7DerThJgvFhCt8RxD7pp5S6I4aIKd0D002IqRdT4/YJnWBLx/OS0DIILJwhJ1 /RqgxYfGx9bB8VS8MVIsagBTqc7ImG22nlpy0RH76dsFjBaTEwsOqyS1NxpV6c3M08 Vd4pQ/hrt7XOQGcchoCcv1CDZpwRJZLsIk5AIB4c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MysRu-1lqNif2hHO-00vvIO; Tue, 06 Apr 2021 14:09:51 +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 , Rob Herring , Sam Ravnborg , Arnd Bergmann , Krzysztof Kozlowski , Shawn Guo , Oleksij Rempel , Daniel Palmer , Max Merchel , allen , Geert Uytterhoeven Subject: [PATCH v2 01/10] dt-bindings: vendor-prefixes: Add Supermicro Date: Tue, 6 Apr 2021 14:09:12 +0200 Message-Id: <20210406120921.2484986-2-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:xocqc0oP8O7AxwukI4bLefxqkCMRGb4FL/sgNQpEhAp+uph5fYI D6omEO3rn00+UPuneJf+sgpzGp8ZJSiwKPQrw3DuXxVwuv81/GMazUlxn+xeKenXBN2UdXH l5PRwyQthYBA9eNRv2W0rp94r3Mim23DUvkwlnlmRdy7B7kLtwsCytIFJGDOTPIrHqxv9gp Nj6ojZVbcAqVxU2v1FL5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:JBmt0AXMpgA=:YRX6SCRLEUtZR2eUPydmdp SGn+s9gkZtj3wuJaNR5weqUqEMO7Ku5FHoXdqaPbBFK4pwN6rl9ZjtUQMfmM/qK/U9mY42+F7 89SNFwsDpPjzLSpfoAAySB/kQONKChL6enlzTqzidrXUvB5iLbG/wo6FP4QrHkTMWb97HeVbx eovEzVlGhwc9ID9s0lrfwXHLNlYPFdekcIcGOnxC79GE8DFrek0Z9NfGUipXm8jWcDxmQm+3i RbTpC7LkRdYQ2WHRd8Z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-CRM114-CacheID: sfid-20210406_131002_902490_81A92718 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. 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 Super Micro Computer, Inc. (https://www.supermicro.com/en/), commonly known as Supermicro, is a manufacturer of server hardware. Signed-off-by: Jonathan Neuschäfer Acked-by: Rob Herring --- v2: - Added Rob's ACK --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index f6064d84a424d..ec6d6ccfbbb3b 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1085,6 +1085,8 @@ patternProperties: description: Shenzhen Sunchip Technology Co., Ltd "^SUNW,.*": description: Sun Microsystems, Inc + "^supermicro,.*": + description: Super Micro Computer, Inc. "^silvaco,.*": description: Silvaco, Inc. "^swir,.*": From patchwork Tue Apr 6 12:09:13 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: 12185087 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 2A494C433B4 for ; Tue, 6 Apr 2021 12:13:07 +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 821276139E for ; Tue, 6 Apr 2021 12:13:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 821276139E 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=+gJyBeT7iSuowHKb6aQSTqxzCoZC1l9bvuoxh3HsEOI=; b=nYyLNJiN6vCwHCzGCwvEa5itF KE0ssSUKwMNxfk7CqjVn142EwNNy+R9t9mtBAfnGrRrvpfRiu9zdOEsywsA3z5fgwaTQhh9ulOH7S /rPIBfES3dov+reYol6CK97dQ1xOauIUpD5WP2vm3RHs0RG/KkO6yUZpYQvsolrJsmgSPD/mVLzoE LRv+OvCSH1IMLIBmNtHiAgPryRd4yg1D4JXQg1g98/NAz6RdUU+hYZ7pl4U5/sf1JGpzapOZtOTjy fP9/CVir6z18Cg6PT3m1EaZn60KIUlzISyTOsWUAVRx0KoHWRCF6qro3HXitSgXBx1fQBqjGSB5qU K1EQidqZg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXZ-002W3v-30; Tue, 06 Apr 2021 12:10:41 +0000 Received: from mout.gmx.net ([212.227.15.15]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXM-002W1E-BL for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:10:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711022; bh=OfN24IwxxARsGfWQJbdfi7ZRHscsB6YDPNa6NgX+9x0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QftaEuF7KNEQLsVUaivUvRS+S2J5KL4GBIklNKHRKS0yK761zlIqccAMMtjijAST9 x1MnoNF+7B7Pz62HX0/x9Zi7tuJESdVxvGfZYOWqgZEpaYEVQYeiI9GsAskj1JyskQ PAmo7DGy6fOrXtbb68Qd47yFaZJixOE3qjTrxSKQ= 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 1MBlxW-1lHfhi21Pg-00CA7T; Tue, 06 Apr 2021 14:10:22 +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 , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring Subject: [PATCH v2 02/10] dt-bindings: arm: npcm: Add nuvoton, wpcm450 compatible string Date: Tue, 6 Apr 2021 14:09:13 +0200 Message-Id: <20210406120921.2484986-3-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:3i3tqHvtVBg3rg5Rc8lXpQLYNYHJptTlPSoxI6UjwlejQdqEtYJ 4umszCzzU6McbbYFuhSR8XlUa1e6jyEAO8wJhcerP+pLklSMXcpZYCfC7JIqcIpZHZh01Ku Vbb/GYyrymKQ9rJ4W8v887vT0X7FC31pL0pIij1mI6EiY5Z5G0FZeUwJKrP1Ffzk92F0udB rUQWgppEEzYgdSdNWs/zg== X-UI-Out-Filterresults: notjunk:1;V03:K0:XCort7w0/+M=:aJ/nnbDPyvhnGdcYpgh+Ld rjHdHavsR6ss15tj8D5BsQQypx9hO+BNLHRFIeUsrF3Gj+07C3wpoqjrvMzTBZMQW7kT3abw2 IrgeHVQlnFgClABitxjk4HgLr6WZML8pzA+RgNor15ddPXfmbaC2dVg9601F7cqYNtDblMewW 1jKQlaRvJXKBq1OTu9sIZWw38PZZHXMlVwLJ3xRjpjXkppGPNuATf+PDJycArRZP7k35GTaMc fYuQFsrYC8suUw+GU21Iuzk6svNLH/HrHaM1ZeK07gJcYlcc+be2qNncRZr9J2RTfUpsDvcro HmGwMDMrhGkQvYYMeMwdj/Fx0AChP+QCRXBKaPlgkx4C+AoGf3+iNDD4kmp4g/+zh+w6XihBP CR6Ku9+nJzj+cZw4soctAIDf7e2OgxU2k5trfUTLlJp1ZTfc9/Ez0MeerWdzBlIN+zsCAempS gu2Y3Y180W2GZR5S7Gjz2tqvlsTdg9geMhSIoIxepUwQBsTYbqA2R8RpGX9LHaMAFhvCpXvYd ths63bC/4kC0PiyFbfewDa56Lpr2niVResH7Dpxmf4PeUBVnocyUyUpS/l0BZoijOUVzPsAXi q7Ko6rG4JBQaFLbZpxcVGG419FKqfnGQpMSObj1PgKCgHzTgW4b+5t/HxiiD6W1gsaS0HG6YP Cx7BWjoyTkHWAef69+wHHhRhZCMm4IozNYLy0dAqkVC8QPJoSFbvUcdgpQp6vQjBBNJl/iZ9R FxCbWyF0C9dgs735TE1rP8HYYHQcTS5wRXdSFyIKXJqCsOcmvKUJfBLdgIJi+D8K47USDVxtl 4nMzQ50giGdvjogjlIowNgQO4T+gO1OWRb2EE9KuLgyC3tqUe+jdJ4XBF8ER3VB1xpi4rSbD4 N8YGLd+C844ACH5o0wEFp2B3Xk0lWgprCUg+RbLVztfxMm/ltzilZsmtiP+lNewOJaUv6JGc3 Bqj89L2MH9c+XydYOtbuSgYawX+Nbn9rdQ4PkEC6OwS6FoDrVw5oKvLZ1l05PuokDvBkraVZ+ 0EdKytydRP5rg0KRRCz6Rih65ReaaXUQ8RjoJmbfOy109ClJlGz/9cmCMZxKVvd15EOXb5Zd/ Zv0xLFDaBuu1Jj2ZcegjohGvhGUYH7mWtHq6iFUpf5ihHbTmDOCXN8wE+vas6tVBLFAc1P468 ytbsTrbzfyiVYXu7RT0tqRmlIUdimqxLp76zwP6bXkqfQduGHZTEkFDho8qc52kTZ+bpeGUii nLAAhzXBfTUJNaJmf X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131028_496285_FB3425C6 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. 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. Signed-off-by: Jonathan Neuschäfer Acked-by: Rob Herring --- This patch requires "dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML" (https://lore.kernel.org/lkml/20210320164023.614059-1-j.neuschaefer@gmx.net/) v2: - Added Rob's ACK --- Documentation/devicetree/bindings/arm/npcm/npcm.yaml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/arm/npcm/npcm.yaml b/Documentation/devicetree/bindings/arm/npcm/npcm.yaml index 894aefb70652a..95e51378089c9 100644 --- a/Documentation/devicetree/bindings/arm/npcm/npcm.yaml +++ b/Documentation/devicetree/bindings/arm/npcm/npcm.yaml @@ -14,6 +14,12 @@ properties: const: '/' compatible: oneOf: + - description: WPCM450 based boards + items: + - enum: + - supermicro,x9sci-ln4f-bmc # Supermicro X9SCI-LN4F server's BMC + - const: nuvoton,wpcm450 + - description: NPCM750 based boards items: - enum: From patchwork Tue Apr 6 12:09:14 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: 12185077 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 642DEC433B4 for ; Tue, 6 Apr 2021 12:12:23 +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 E1838613C9 for ; Tue, 6 Apr 2021 12:12:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1838613C9 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=j8JxROHufTrpKOsL+YAwfTclujogt8eHAMMtG5iC3BY=; b=jLvCzvRydHSChlbkN4+KmgFXN abo+2X82ioNBpEwhuGArHNQn27nF/T26ndirGkmfrQFZ2rDVGzX455O1RcDnz61lXJh5HxKc/ndas 3iLfwSav9Refr8/xqLIX9K66Jt99pSObRoLmH2n3S7AVJe0RhfGOZ2ITGlq3vo9ejeQAv4dnyGwBe T7a6EwataBEJuBOnGPJYK8K+eih/NwA7T5FrrTu1qFwdKsHQOi5WpatpCiVdaf/M9mH1pRsmJTF91 J2YZMxY0OWCXZNeq7wcedhsgAEiUSJJAfNVb25FmYgLMm2w+gd/8WqkpAh+PkXBl0u67zsSxp+P1W hw91oztNg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXl-002W7P-Lh; Tue, 06 Apr 2021 12:10:53 +0000 Received: from mout.gmx.net ([212.227.15.18]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXT-002W2f-S6 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:10:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711033; bh=Ei6Pp9zGAH2UxGqGf1ILV9gplHFrtV0jN6b2w9XiUgQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Uxe3CbSKpOm6Xjb/tBMqxVlX7pU8NGqAMR0U+WYWZYI+lpWh/DDTZ2XOzTX5VP+wa 5UYLTdFeEOTYzYiKMGMdu+FqOUzE15uvLGW9eVom6TiqK3dmWukPf9ZDDGmOfbaNEa jZ/bqrk/MRxUPnPXZeplPaFMc7cOQG0FBbVHfj0E= 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 1MAfYw-1lImAa3WiO-00B19K; Tue, 06 Apr 2021 14:10:32 +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 , Thomas Gleixner , Marc Zyngier , Rob Herring Subject: [PATCH v2 03/10] dt-bindings: interrupt-controller: Add nuvoton, wpcm450-aic Date: Tue, 6 Apr 2021 14:09:14 +0200 Message-Id: <20210406120921.2484986-4-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:x8q4cLS4WXLc1W/b7u0t3d2Cr4ZR4ltZTViaG6lXP9IrQreiDst rG/QKW5K7k/Lk/7sEItyWuDsEgUNZ9YmmC0ef8sJdqjk0MIL9X1eL/QJ6NjUnm5B+XPM31t qxnDiLs66so9wJ7leLTgUkGl5MYNGfGIE8Es+WtQkS7YGovb0Vu0qFSxE8rc/7EK/L4nWxX oi63Di3OBHrx1aCGcFjkg== X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A3rP2EtHc6fYfhWwGkXM8Me PLKoSbvU4yUlDZlOib48VcLnw098v4cNShXRdJRDt1TwEbeFFHW1Np2qxQFcbVOtEXQn5X9ge qUx47oazeWve8Ic+Z+J+w4IBovrB9KCS4OYBxA1CaNJc0sSmQI63cxjWnGbgJQQDYr9OquiWJ 14N3qG5PJjxHh0je0iSsIcPEAim/JMeIrjKfoLcyvTNxXbgRGo4KlMx7V/YtXN79TOT3LmzCn TvnnwWogeqVq+7Bix X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131036_121414_D25BC4CB X-CRM114-Status: GOOD ( 10.97 ) 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 AIC ("Advanced Interrupt Controller") is the interrupt controller found in the Nuvoton WPCM450 SoC and other Winbond/Nuvoton SoCs. Signed-off-by: Jonathan Neuschäfer Acked-by: Rob Herring --- v2: - Added Rob's ACK --- .../nuvoton,wpcm450-aic.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml -- 2.30.2 diff --git a/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml new file mode 100644 index 0000000000000..9ce6804bdb999 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/nuvoton,wpcm450-aic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton WPCM450 Advanced Interrupt Controller bindings + +maintainers: + - Jonathan Neuschäfer + +properties: + '#interrupt-cells': + const: 2 + + compatible: + const: nuvoton,wpcm450-aic + + interrupt-controller: true + + reg: + maxItems: 1 + +additionalProperties: false + +required: + - '#interrupt-cells' + - compatible + - reg + - interrupt-controller + +examples: + - | + aic: interrupt-controller@b8002000 { + compatible = "nuvoton,wpcm450-aic"; + reg = <0xb8002000 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; From patchwork Tue Apr 6 12:09:15 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: 12185085 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 B63ACC433ED for ; Tue, 6 Apr 2021 12:13:00 +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 09F22613BD for ; Tue, 6 Apr 2021 12:13:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09F22613BD 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=cMZmu4BvO1CUfFyoA+TUObfvdF+utg2CMq2JSR3nnls=; b=Og1tWs2mxvj7S42Z9wuRteQqa arKPxbs3hqus0a4+VuxisOp5P5NWDSDsGEsBldLHiXYTyVvzN+F2/QfawkH2BeVzmsrXWKsdxWWAO iXqaKTzp/FRWALhvFOl9o8VwyCPs+jOuko53W7DPsbqXMHGE4ILQ+T/2BxhJ05SkvmYP3LPrpEB9k SBhrCi9oY+GbKJPxRabIUuNqJON5gW6BoZrNZkt8YBIx/+8uMAiZ72AoydOTvV2HTMNTaAn4SB+2z XsDqu9KmLwvsOmQECtAhkq4pi9Mn26nSsy2xFdOlJiPqz+HYBDzang3Ii+WirjRXiQxw8GnsnUsby 1I1siyt4w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkYK-002WJO-NW; Tue, 06 Apr 2021 12:11:29 +0000 Received: from mout.gmx.net ([212.227.17.22]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXx-002WBk-BD for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:11:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711038; bh=fthXQXzWvCMySNmq6wm38LQ0LqGN8oEvRSStBerzpuU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Xg/9ts60YSdd3/C6in+KG15rIxD4RevfSm7iAB+WGopCwxYxMZiXl2IK1QKl6k5C5 yv77tCYEnAa/kCNd5KLxQCOidFJcYid9BL6Q+1DIMI4H/Rj994JcnduqGnH+E7DKSX 8V1W10IJn/+YflUWxZOfI6oM4q1Szrfk/sea5Hws= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfpSb-1m5ZBs3tFp-00gKMF; Tue, 06 Apr 2021 14:10:38 +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 , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Wim Van Sebroeck , Guenter Roeck , Rob Herring , linux-watchdog@vger.kernel.org Subject: [PATCH v2 04/10] dt-bindings: watchdog: npcm: Add nuvoton, wpcm450-wdt Date: Tue, 6 Apr 2021 14:09:15 +0200 Message-Id: <20210406120921.2484986-5-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:yIfwVUR13YRMBQna2k6oVWyExk6FvAxtgtrGA4cgaIZWJEAyBsI 0UqJFDwJUzYg1OvkIDG0+uOrS1WoglGzfKeTZEf4fuEXfRxNezopYkZxk/5qo9B6GYRzJyk To7zZlSI2G6+kdkXEF7jIXxeN5jJpw0AI4KjQaHmooLPBbY/hVMeiLt8DKmb0fXZh9P1q0D D2RJZwP5tPENqwcDztg2w== X-UI-Out-Filterresults: notjunk:1;V03:K0:K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Cp6FzxhDnLg/5oeElZwuc9Ihv3IN3+W1Q/9AVaFroAaKLGJ0B15t1hQ U1qiL7PTdES7/Cgle7QCWeYtrkF+ukkBirdQUhC+sGSMGYz5KE6Rybb1Dn6va/Ef3RXFLmgc0 3n2FMuXXZotJPhtojWEcyYCSgJ5b+OIE51iNcZraosYxUilxQZNAaOXRykJiGHD/KbRhIZkrW 3C8fliv3l88cHwtk5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131105_870212_79F62A4D X-CRM114-Status: GOOD ( 10.77 ) 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 Add a compatible string for the WPCM450 SoC, which has the same watchdog timer. Signed-off-by: Jonathan Neuschäfer Acked-by: Rob Herring --- v2: - Added Rob's ACK --- .../devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt index 6d593003c933b..9059f54dc023d 100644 --- a/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/nuvoton,npcm-wdt.txt @@ -5,7 +5,8 @@ The watchdog supports a pre-timeout interrupt that fires 10ms before the expiry. Required properties: -- compatible : "nuvoton,npcm750-wdt" for NPCM750 (Poleg). +- compatible : "nuvoton,npcm750-wdt" for NPCM750 (Poleg), or + "nuvoton,wpcm450-wdt" for WPCM450 (Hermon). - reg : Offset and length of the register set for the device. - interrupts : Contain the timer interrupt with flags for falling edge. From patchwork Tue Apr 6 12:09:16 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: 12185083 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 E3425C43460 for ; Tue, 6 Apr 2021 12:12:30 +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 5DFFD613BD for ; Tue, 6 Apr 2021 12:12:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DFFD613BD 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=xSqWeZnJbitoNVlB+03PCLqKD9LA2rLLFDKq204benU=; b=JOun8nJc4NBaNWQzvhNkyHanb RAqzUaDmGtLxtm7C2UeZE7IHeaKCwcI/XrveoWWTGFNlYti5/pNMqqdDELLHAd8G2uv6ou8J1Uoxl 87VjRfJl753WL1RjpkBWj6377SOR6+09hLyn+5EkGb/joYSPMIuwuHQRdhUijQhwuFKAGy02USyI/ xcO2il31Xa8RCyEzoCTi6Y9E9YePHXLSPJOsHSDJe+VMmFL6lPMPUsWi/kuBrYgdQHNF8rSp4l1vl RNyrQB6+Tl1/LgowXclv8lyyBGWswOy/3KZGKUtcsNsgmv8oBaVc0ISG+XX1a0WcXQaUnSwM9p2nI IzwFOu8Gw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXw-002WAx-Gu; Tue, 06 Apr 2021 12:11:04 +0000 Received: from mout.gmx.net ([212.227.17.20]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXh-002W65-0U for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:10:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711044; bh=K29LebfL/JlBArqrMx0vebI9tmhwtrzN80KWOkBNjCA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GpoTQjs1gnmsWpgQhLkvQJqVRQWS4r1b17Nwp5uu86X+e+xMZt/hqen5Ont3b7dE+ apeDkwr4SDLxpgcb+ON+rQ1Pm0b/1/nw0DQ7jk//vV2JNv95d0NcP9U0iE98Q6kOcJ SOGWAUCTp+J9b4on1R1EpAi4ddpXBVsH3VXus0l4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsYux-1lk1uR0MEF-00u1Yp; Tue, 06 Apr 2021 14:10:44 +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?= , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Russell King Subject: [PATCH v2 05/10] ARM: npcm: Introduce Nuvoton WPCM450 SoC Date: Tue, 6 Apr 2021 14:09:16 +0200 Message-Id: <20210406120921.2484986-6-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:1SZS5HgxyMj1yOj+o4Yn5t3GkKyzLK8NZqeuc4M2TC4Qu3mjkHR nyik8sD+pzzZSLhkIPfhGy+m9TNBsfYVf/kNSpT+LAIr4O/WectpTSGQhhSh62SNVra3U5p 5CLkg4o0DkHbdvMZOv7XFJUkfmYJbJbCluoBYYxIcWpL97lJTKC487imbaY2TITUN6p4Ixu RncHASyOeqCyIo9Pwa5JA== X-UI-Out-Filterresults: notjunk:1;V03:K0:nlNfRwAkXhE=:qDWlOCVqfPhuXGVYUlIRX5 M/4WcNdLmDNkMKHkXm6DTyYmuq0tvYOScbCTzilJ9M2Ff1oeQULqmwIscaffZtvRrW0hn6zDD OgiDyKB75L8Q6Ob7fAXQe6OEF/qpXCwG4VbmpeVEzo2XwhG/f1HjlRW/t26svjNqflvNRJ0I9 AmdPPzGKWtFaH5Q90X7mkFZ0GQkbnFfJSnks/j84IyJon7+/T32e81IQitEkAE1QEK/JG/oFL QAZSh0PpzNC6+8DCx8jsjnc4pssbdl4j8ttHJ3kECO7nmYWFeXskKAUW1CbZK8Y5/XaRBz4h5 AzNx0lwBSDPDDEdroYntVssl3X2GhnCqasRUvKUpgzUbbLLE8fopbvw7l+1clQtdrO/trkKZi W2tYEx+PvH+4d5HI5sGMrLNcjjR0zK4UKiX1Oa2+aalNcfphqwaztWMqzQ729ub/+muxuC8+Y TbcHeNkC8GXyRbud77OId0yhy7B6MCVm60lMtvUeqAG7pcw9X0EB1kg47j6s0B/rHRE+vqqtY 1ol1PkMtAqmNJTHI1FZqbTssOKuyBn+gRsNNKKopgTaVil50KohqX6kgZEI9FZgYK+GTkvkhc C+MY1gpS/g8b5pezzl2l3W1/i7gkjiVCsk/uh3F6Y/dmFaUiafRW9R+Nfv+KBpw7MMdd7N/oV gaunvQVd36DQuG0xFnIdUSKP0fYeibmT/IENMBQDNh1VGfHZ3wZseqx24t2zeNiqo5i3eMmeO C/w9Agc/gavxudcWcVfcmhibz49u0/wDW4z5Ke8HHLNdcNE/ux35flsp4ZegDIm+lesvgnEJ7 Ls8ATFO9tO8rD6kIlN/4bt9dSRXCQUelUN7Y4vW2dGkrNcsQrrw5by8eK6FK5+nIfWliNcYFs 5IYPuZeXwep4+ssgOGDLWYhWjf5CvWVvVnn5M3VOubOSPZiLsuFF+WXl2ARklARUYeHcYbM0Q bMIjSkjmy/B9b99ZlzBf5auOSMMcv64SwMW26Q7Rvrsp62wfRERHPVAOPiETAD6Tj1DwW7G33 QcRGIfNVsdpDpNxOheMRn+opUBZs2RvLJ4c6xzkrg+pm32sCzkqE3+MDcw+wszcc6MLWBiUSn +NGIxeTyBU95Tm/xyp8RLJNpf5LszzbYOqylHJ0Rh7Te2gDGUknQesgECEMiMQ1BScNiURo8x hgRdlAYlBAurZbpZzVb1GycczwvbkXO4WWgevY3I8O6jUiz7b2EGBLzrO899ca6Jj20bCbe3h AMPEycWxw1Xo3GnQl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131049_405855_AD751FCC X-CRM114-Status: GOOD ( 15.12 ) 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. Signed-off-by: Jonathan Neuschäfer --- v2: - Reorder lines in Makefile by model number (WPCM450 < NPCM7xx) --- arch/arm/mach-npcm/Kconfig | 12 +++++++++++- arch/arm/mach-npcm/Makefile | 1 + arch/arm/mach-npcm/wpcm450.c | 13 +++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-npcm/wpcm450.c -- 2.30.2 diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig index 7f7002dc2b21f..658c8efb4ca14 100644 --- a/arch/arm/mach-npcm/Kconfig +++ b/arch/arm/mach-npcm/Kconfig @@ -1,11 +1,21 @@ # SPDX-License-Identifier: GPL-2.0-only menuconfig ARCH_NPCM bool "Nuvoton NPCM Architecture" - depends on ARCH_MULTI_V7 + depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 select PINCTRL if ARCH_NPCM +config ARCH_WPCM450 + bool "Support for WPCM450 BMC (Hermon)" + depends on ARCH_MULTI_V5 + select CPU_ARM926T + select NPCM7XX_TIMER + help + General support for WPCM450 BMC (Hermon). + + Winbond/Nuvoton WPCM450 BMC based on the ARM926EJ-S. + config ARCH_NPCM7XX bool "Support for NPCM7xx BMC (Poleg)" depends on ARCH_MULTI_V7 diff --git a/arch/arm/mach-npcm/Makefile b/arch/arm/mach-npcm/Makefile index 1bc3a70bfab8b..8d61fcd42fb19 100644 --- a/arch/arm/mach-npcm/Makefile +++ b/arch/arm/mach-npcm/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only AFLAGS_headsmp.o += -march=armv7-a +obj-$(CONFIG_ARCH_WPCM450) += wpcm450.o obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx.o obj-$(CONFIG_SMP) += platsmp.o headsmp.o diff --git a/arch/arm/mach-npcm/wpcm450.c b/arch/arm/mach-npcm/wpcm450.c new file mode 100644 index 0000000000000..f17b3dab45af3 --- /dev/null +++ b/arch/arm/mach-npcm/wpcm450.c @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright 2021 Jonathan Neuschäfer + +#include + +static const char *const wpcm450_dt_match[] = { + "nuvoton,wpcm450", + NULL +}; + +DT_MACHINE_START(WPCM450_DT, "WPCM450 chip") + .dt_compat = wpcm450_dt_match, +MACHINE_END From patchwork Tue Apr 6 12:09:17 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: 12185103 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 60A33C433ED for ; Tue, 6 Apr 2021 12:13:48 +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 94E31613C4 for ; Tue, 6 Apr 2021 12:13:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94E31613C4 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=DM86fiu5ZEgui/rjnIhTHv8XLCZEKLqQQGcwZmeOoQs=; b=bqTJ+w+O3niINmD8pKfc/zM7M luIjypzCSBmM/6qFm8oyvzxMnBlF19GirFHV3NmntGS2vKvbX9GU/dRAXHhJdweN/OVcDjBfVZFMi tAKyMXeSXJq0qp2W80vVYYie3jA4wON6wXOss8TRxEQCeYdqcNyNjeTASAMNadeuvqEEglgH1YaAI zd/Ni8JpWb4FLGBF/lceuySX9gFZ8aemAIHeouP/c/dsVcaaHqz+C1pTTD5COluzmX1UGDI///PN1 qiUFPotPTJutGngIYCXxdv0hyzN36eO8n8f37r/vhU2oQiOABKgkXgp1Dna8Cp1jmsIdqdLMmGcUm 1R76iFPyA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkY7-002WEg-Ao; Tue, 06 Apr 2021 12:11:15 +0000 Received: from mout.gmx.net ([212.227.17.22]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkXv-002WAt-N5 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:11:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711051; bh=FYOblBUbHRlSqo0KG/HksG7r9RNT7O0AdZ2/oD/Ognw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=RaH/JCpVSXdwQjn+FNBZ/SQLlrLqpd+q3r505SnLpijrBPCWzMGARAvLue/FEcWm/ 83VA1gUHuDSE6bkFhOQtI7WXhk2NvRmBi1scQnx4Fj94alk4+W+nDe41M/PTOYOORn nNq7UK0Ew8wDzcdWtDmUSKYjtr55Mz2IJQIczVOQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRTRN-1lFfVW1NnZ-00NPRq; Tue, 06 Apr 2021 14:10:51 +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?= , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Russell King , Thomas Gleixner , Marc Zyngier Subject: [PATCH v2 06/10] irqchip: Add driver for WPCM450 interrupt controller Date: Tue, 6 Apr 2021 14:09:17 +0200 Message-Id: <20210406120921.2484986-7-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:hefIZlOtQ+LbUsf9BJMTwfPpAhYwakBaowyBoCpHN/A5qME7nVV rDAsFv0ZibsTdppttyGMkqh81M7g6z9CtYIgiOpTxybu7hPI8crW3LRsZMmA571f8l+IxKw vRWo/zEhH0YknrATgoKP6qA5kBVDSBegfDwrOnpaqZLujH5Jt1Llu7BcFmGpthLUrwjFB16 xKbDnu8zAvDaUV0orGhiQ== X-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1NQhE1OYJUpkUAwyRFGerJNqSZVCDCtvF+qMC43JsuznqbqH68cxK9B4nC FY693+70sX1H0icDyCRtRm2Ecdc5g5YPW9vzfE5oqYdaVeNqXVV/39T30/y665K3IY5GO1/Jw Pnkb3jGAmhFjn9B9BbPdtRBwDH1NTcuFtg6Sf4uUEWjR0AIQfFrmvdj4FY3n8Gx0j+kJ0lFk8 lk1IAzuPtP441C8CG X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131103_970954_62E1DAFD X-CRM114-Status: GOOD ( 26.53 ) 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 AIC ("Advanced Interrupt Controller") is the interrupt controller found in the Nuvoton WPCM450 SoC and other Winbond/Nuvoton SoCs. The list of registers if based on the AMI vendor kernel and the Nuvoton W90N745 datasheet. Although the hardware supports other interrupt modes, the driver only supports high-level interrupts at the moment, because other modes could not be tested so far. Signed-off-by: Jonathan Neuschäfer --- v2: - Rename IRQS macro to AIC_NUM_IRQS - Fix IRQ range check - Use linux/printk.h header instead of linux/console.h - Add AIC_SCR_PRIORITY_MASK constant - Add missing register descriptions - Remove superfluous printk about IRQ flow type mismatch - Use BIT() macro - Rename _ack function to _eoi for accuracy, and use handle_fasteoi_irq --- arch/arm/mach-npcm/Kconfig | 1 + drivers/irqchip/Kconfig | 6 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-wpcm450-aic.c | 161 ++++++++++++++++++++++++++++++ 4 files changed, 169 insertions(+) create mode 100644 drivers/irqchip/irq-wpcm450-aic.c -- 2.30.2 diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig index 658c8efb4ca14..a71cf1d189ae5 100644 --- a/arch/arm/mach-npcm/Kconfig +++ b/arch/arm/mach-npcm/Kconfig @@ -10,6 +10,7 @@ config ARCH_WPCM450 bool "Support for WPCM450 BMC (Hermon)" depends on ARCH_MULTI_V5 select CPU_ARM926T + select WPCM450_AIC select NPCM7XX_TIMER help General support for WPCM450 BMC (Hermon). diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index e74fa206240a1..baf4efec31c67 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -586,4 +586,10 @@ config MST_IRQ help Support MStar Interrupt Controller. +config WPCM450_AIC + bool "Nuvoton WPCM450 Advanced Interrupt Controller" + depends on ARCH_WPCM450 || COMPILE_TEST + help + Support for the interrupt controller in the Nuvoton WPCM450 BMC SoC. + endmenu diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile index c59b95a0532c9..bef57937e7296 100644 --- a/drivers/irqchip/Makefile +++ b/drivers/irqchip/Makefile @@ -113,3 +113,4 @@ obj-$(CONFIG_LOONGSON_PCH_MSI) += irq-loongson-pch-msi.o obj-$(CONFIG_MST_IRQ) += irq-mst-intc.o obj-$(CONFIG_SL28CPLD_INTC) += irq-sl28cpld.o obj-$(CONFIG_MACH_REALTEK_RTL) += irq-realtek-rtl.o +obj-$(CONFIG_WPCM450_AIC) += irq-wpcm450-aic.o diff --git a/drivers/irqchip/irq-wpcm450-aic.c b/drivers/irqchip/irq-wpcm450-aic.c new file mode 100644 index 0000000000000..f3ac392d5bc87 --- /dev/null +++ b/drivers/irqchip/irq-wpcm450-aic.c @@ -0,0 +1,161 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Copyright 2021 Jonathan Neuschäfer + +#include +#include +#include +#include + +#include + +#define AIC_SCR(x) ((x)*4) /* Source control registers */ +#define AIC_GEN 0x84 /* Interrupt group enable control register */ +#define AIC_GRSR 0x88 /* Interrupt group raw status register */ +#define AIC_IRSR 0x100 /* Interrupt raw status register */ +#define AIC_IASR 0x104 /* Interrupt active status register */ +#define AIC_ISR 0x108 /* Interrupt status register */ +#define AIC_IPER 0x10c /* Interrupt priority encoding register */ +#define AIC_ISNR 0x110 /* Interrupt source number register */ +#define AIC_IMR 0x114 /* Interrupt mask register */ +#define AIC_OISR 0x118 /* Output interrupt status register */ +#define AIC_MECR 0x120 /* Mask enable command register */ +#define AIC_MDCR 0x124 /* Mask disable command register */ +#define AIC_SSCR 0x128 /* Source set command register */ +#define AIC_SCCR 0x12c /* Source clear command register */ +#define AIC_EOSCR 0x130 /* End of service command register */ + +#define AIC_SCR_SRCTYPE_LOW_LEVEL (0 << 6) +#define AIC_SCR_SRCTYPE_HIGH_LEVEL (1 << 6) +#define AIC_SCR_SRCTYPE_NEG_EDGE (2 << 6) +#define AIC_SCR_SRCTYPE_POS_EDGE (3 << 6) +#define AIC_SCR_PRIORITY(x) (x) +#define AIC_SCR_PRIORITY_MASK 0x7 + +#define AIC_NUM_IRQS 32 + +struct wpcm450_aic { + void __iomem *regs; + struct irq_domain *domain; +}; + +static struct wpcm450_aic *aic; + +static void wpcm450_aic_init_hw(void) +{ + int i; + + /* Disable (mask) all interrupts */ + writel(0xffffffff, aic->regs + AIC_MDCR); + + /* + * Make sure the interrupt controller is ready to serve new interrupts. + * Reading from IPER indicates that the nIRQ signal may be deasserted, + * and writing to EOSCR indicates that interrupt handling has finished. + */ + readl(aic->regs + AIC_IPER); + writel(0, aic->regs + AIC_EOSCR); + + /* Initialize trigger mode and priority of each interrupt source */ + for (i = 0; i < AIC_NUM_IRQS; i++) + writel(AIC_SCR_SRCTYPE_HIGH_LEVEL | AIC_SCR_PRIORITY(7), + aic->regs + AIC_SCR(i)); +} + +static void __exception_irq_entry wpcm450_aic_handle_irq(struct pt_regs *regs) +{ + int hwirq; + + /* Determine the interrupt source */ + /* Read IPER to signal that nIRQ can be de-asserted */ + hwirq = readl(aic->regs + AIC_IPER) / 4; + + handle_domain_irq(aic->domain, hwirq, regs); +} + +static void wpcm450_aic_eoi(struct irq_data *d) +{ + /* Signal end-of-service */ + writel(0, aic->regs + AIC_EOSCR); +} + +static void wpcm450_aic_mask(struct irq_data *d) +{ + unsigned int mask = BIT(d->hwirq); + + /* Disable (mask) the interrupt */ + writel(mask, aic->regs + AIC_MDCR); +} + +static void wpcm450_aic_unmask(struct irq_data *d) +{ + unsigned int mask = BIT(d->hwirq); + + /* Enable (unmask) the interrupt */ + writel(mask, aic->regs + AIC_MECR); +} + +static int wpcm450_aic_set_type(struct irq_data *d, unsigned int flow_type) +{ + /* + * The hardware supports high/low level, as well as rising/falling edge + * modes, and the DT binding accommodates for that, but as long as + * other modes than high level mode are not used and can't be tested, + * they are rejected in this driver. + */ + if ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) + return -EINVAL; + + return 0; +} + +static struct irq_chip wpcm450_aic_chip = { + .name = "wpcm450-aic", + .irq_eoi = wpcm450_aic_eoi, + .irq_mask = wpcm450_aic_mask, + .irq_unmask = wpcm450_aic_unmask, + .irq_set_type = wpcm450_aic_set_type, +}; + +static int wpcm450_aic_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hwirq) +{ + if (hwirq >= AIC_NUM_IRQS) + return -EPERM; + + irq_set_chip_and_handler(irq, &wpcm450_aic_chip, handle_fasteoi_irq); + irq_set_chip_data(irq, aic); + irq_set_probe(irq); + + return 0; +} + +static const struct irq_domain_ops wpcm450_aic_ops = { + .map = wpcm450_aic_map, + .xlate = irq_domain_xlate_twocell, +}; + +static int __init wpcm450_aic_of_init(struct device_node *node, + struct device_node *parent) +{ + if (parent) + return -EINVAL; + + aic = kzalloc(sizeof(*aic), GFP_KERNEL); + if (!aic) + return -ENOMEM; + + aic->regs = of_iomap(node, 0); + if (!aic->regs) { + pr_err("Failed to map WPCM450 AIC registers\n"); + return -ENOMEM; + } + + wpcm450_aic_init_hw(); + + set_handle_irq(wpcm450_aic_handle_irq); + + aic->domain = irq_domain_add_linear(node, AIC_NUM_IRQS, &wpcm450_aic_ops, aic); + + return 0; +} + +IRQCHIP_DECLARE(wpcm450_aic, "nuvoton,wpcm450-aic", wpcm450_aic_of_init); From patchwork Tue Apr 6 12:09:18 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: 12185107 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 E92D0C433B4 for ; Tue, 6 Apr 2021 12:14:46 +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 41101613C2 for ; Tue, 6 Apr 2021 12:14:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 41101613C2 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=+RUja1juYgqiGKJumiy37yiOZOdGiC79yIDZuuLmiy4=; b=aKQFTL+OOkcKC3GnJjghTwqUY 77c0FNtMbD9rAH1FkqBKd+j/W7ykSAsoPiZWePz3kMGhTMC2UmE4rJ9BJHuiq7ZGILNns5GExrf0o 8zoWUSufBgIiL9Vs2Id7lwfGFKy5h6GoCwftDZeLLDqb2sn2K9LiK89ZsXAxu9Dco+fvfjAEtfvO2 0i7LRDRlJ/N9aCbB4zTW4Jq9ARFHbVPMaJBcqDJ2Ct/uy2wuDzftj4Gxe66II+MEYamVMHVemnnwu wkIPQf0pJD4wP16azbpXjCxNXyQDgjVWHacUAN6iLkX5mF/fLbTqZpn8CF2msbm+OBofiHUmlxW5z jSHZg6VTg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkZy-002X2G-I1; Tue, 06 Apr 2021 12:13:10 +0000 Received: from mout.gmx.net ([212.227.15.18]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkYz-002WcL-Q0 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:12:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711105; bh=sbEdNJUiAhwtj5rGjgPfJDS3A/vpWsY/KcoBwkRzp80=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=EU+mmHoEDmQVyPu64op+qtGXH6gp4t1h5GsZPYswQNAJ97zPz+pRr7UsjeMiNnuMd B/iPnRc/OJsKwUR1P/IA6W9eIKApj7DENS2iVYMHjMlezCbifnJpdL2zNFNamqIVUI sdm0a8cnSLfiC6TPBbrDoXxYat4igThPdbr47o0Q= 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 1MNKm0-1lEpHH0d34-00OqtQ; Tue, 06 Apr 2021 14:11:45 +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?= , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Subject: [PATCH v2 07/10] watchdog: npcm: Add support for WPCM450 Date: Tue, 6 Apr 2021 14:09:18 +0200 Message-Id: <20210406120921.2484986-8-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:qZY8oJY7NkhnKY4leyppi18GLlbrzfWSOi/r8Wy4SNSnJlMIpV9 Xg4Cp5YsA+0icEMrEY0AA4llHUKwEHoreTA1FzYBBf1D9NgwlksCMtVmI4XvCprgghVbVN5 /46YMC+7AxYLxuxpLMBf+g6R6NtLLYcrtmI3S0vWiSYh1/1v4RM7vWTyKzu0GGVEK45XpFd 895QgW8nCAHDSx8g8BiYg== X-UI-Out-Filterresults: notjunk:1;V03:K0:ELqMY9kWInQ=:2dNlMXKeM1D9B0uIjQaFpY +lijOwwkHDOXw88BUT0W4bhaUx1uP+iOvq5sfECwtvgGLp9hMQwiCJkgKYkE3RAvZUAMDw56Q 3Ca6EXYpyMggshoU1M6KarhyrJJVrk2d89TVSQUpV9v8RrfAPwZPt5nlZRcJwAvPx06bEPxr2 Wpn69jRiRKQRmp483t+3KkGDmUDbK55aoYsLVMVsDrOELMRpvpSXF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lameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131210_421097_66F37934 X-CRM114-Status: GOOD ( 10.12 ) 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 Add a compatible string for WPCM450, which has essentially the same watchdog mechanism as NPCM750. Signed-off-by: Jonathan Neuschäfer Acked-by: Guenter Roeck --- v2: - Added patch description --- drivers/watchdog/npcm_wdt.c | 1 + 1 file changed, 1 insertion(+) -- 2.30.2 diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c index 765577f11c8db..28a24caa2627c 100644 --- a/drivers/watchdog/npcm_wdt.c +++ b/drivers/watchdog/npcm_wdt.c @@ -229,6 +229,7 @@ static int npcm_wdt_probe(struct platform_device *pdev) #ifdef CONFIG_OF static const struct of_device_id npcm_wdt_match[] = { + {.compatible = "nuvoton,wpcm450-wdt"}, {.compatible = "nuvoton,npcm750-wdt"}, {}, }; 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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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>; + }; + }; +}; From patchwork Tue Apr 6 12:09:21 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: 12185105 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=-12.1 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_BLACK,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 1F8A0C433B4 for ; Tue, 6 Apr 2021 12:14:36 +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 69928613BD for ; Tue, 6 Apr 2021 12:14:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69928613BD 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=rFW8X+vl8rq9AofyUtBx5/JC9nDB5UTNvn5QYJxYudw=; b=I0OHGgFTGm7qKB6ssNtSktqqN /weQkQ4rYnYEYIN1oOJBfNVA6Aio2zaHSyZ4oLXh406YFiIEmQzfskl+CjAIdFh6K7ce8HmaO11ey kKb5IQL9nx52vBNKBQOWL/VvF3dXn2ZQiXxgM67eHWQemQaBi1aRqedvpsepdfy0Z17jkdAoBHAE7 4e70KgqzvcoIxfwunLaKBdhycg4gkWXPrpJmnqRVJ/KzR2ImHAMgH2RcshGkFKpXVZgEsaNYPNgMN aC7SWrHLalziJ/3wVhHbzlatkg94H7h/6H1mo9tiGi3dJUaBjSTsprdL4zoOkQ9Z3KPcOSe6BAsOG O5IlMtmkg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTkZY-002WrL-He; Tue, 06 Apr 2021 12:12:45 +0000 Received: from mout.gmx.net ([212.227.17.21]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTkYu-002Wa6-88 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 12:12:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617711120; bh=PGxh9D7zcvvJfUqYSQVc04GxFHyRLS1XqsJU+VlT6BU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bKBYLMBDeSCxAcVIW5xE2Jue2hoG9IDD1piz3qC8oXu+gpG/LlmYEG/USqJH1+Ruy 0cnoa4SC222UNAOlXewZANqwkKg4omW4QxtNXrxVhY/oYTMmQknC+nBT/u/K8ON8GT SkOhuQrDradd8FA28Tj0hA/ZyljMP1ZIJQYQV3RE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.134]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNbox-1lF6OK3aG3-00P4HB; Tue, 06 Apr 2021 14:11:59 +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?= Subject: [PATCH v2 10/10] MAINTAINERS: Add entry for Nuvoton WPCM450 Date: Tue, 6 Apr 2021 14:09:21 +0200 Message-Id: <20210406120921.2484986-11-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:Z2EhOb9FQX5ezyiU0ShDDMZpCUtQItPMmkySsL3c4jvAh0iqe1i VRxIGpT+4knpL0z6HdEIqplXq5YVeI37Bdd5v32NJj/g4rsyIcQpumSoatW3iycfCmfoMt2 S33LW+m8ELPFpycVzmS5gRrnl2cRVAhfWBUUsnOHuNv0nJy/YpAcM/rHkdTzlv5xZJqYmr+ d+FXrAzfNRnRVt7RX7vdw== X-UI-Out-Filterresults: notjunk:1;V03:K0:v2DQm/L9XBw=:MYUuXxFKuLsUJKbs5nuwnO ozET949FjArxYHoyZOx3v0V48yhi1G3AnnpVcycuIfaItz1ZuqLhSZu2i2IwOAgWgpPLpqCnP OJf+22P1GfiiBCz6/ANtmG3gfd7xpvUIkYC+AushY8UCMIrtCGd1JK/b/eKpl4xPvWRDTniTd pqDbMb7G/Ksf5sN6id7BTuhwO3v9VSVWxosHr6tAOQCEQ9ITn98UUD1y0INIjjZf7qV2rERum 7/8G2Q/Cyccpk/2mis5LOIwG/K6eK3oKONZNA/obyV/oi9dGh0JBQqr26C32TupIoaMTdYFQC nTy47+jzifSKGI62t9r2bbIftyjJgCcweF5FFlkiYsMLQLy2WfmEu31xlert+Tof6Jx1oyC/w vVyBjCR3mNe2JAeUNny0/a1tLODxkJonw9piVjdgfBIocxMVX+fzBNWjGJQbjfsFahsgKV6pC 0yPjLbuhFnlJBfnetKWoCowZnrHBO9fsFECfFWNQod9OZqwe2qzIAagsAGL9R6VEBl26UBjfT fblRlvqwEhPNRmjrRLSAJ575NyZvg0wreccCfP9BVlxZ4yKxFFcEYujqLkl7Yy2zK/2kZeWVL PokvXkgkoMf8S7u9003114caGRPY0fO+x2qObzYQYvTVRA+MEsUX14zpmmFBCVXFbydHA3CdK xbg6C7h386DrBwTpvse4N4Z4CSd0VTrFEI/ukevAjt2XczE7504uR83M4ym0zJ6cU/FOaVi1z L1Tk6RcDfcazkfEaT/OaVME68HP42S5ZoOBzom6YlyOpj6HXf1FFEaoKHRYLOE++SixFZh956 fWnMk6KGfGTMiDHgOEXjOOBVXTkBj70KHXkYMlvQwG17dE4ePOY+jcx7ZWYVEsZDNbnzAEw7z VALr1xI+2UuHyZzzgmt0OCCa6YNEWKjr2jwmEi3q1QZP/FIrG8UfATEhoT9+3h3uwITm1zqH+ reC1UH8SJyufzAQ7VewHPLTKqSH/DKCqaq9fJcxBpUi08+jJLRo4JqUJruU2GZ77Zm60TtSSI FHlFsKeS9hzelOOqk5Sk6AZfL0sdXRzGeJiuhAw9Tg7kwdu3fO/cPFM6nZwgG2h6VSrN85GfH 5JWNUwoGl9hAHZE+brc2tYAWWkoon3XpieOb5ZiD3QDBrBxCeXf21tKzSucn48B/2VkLxPgWk WEh2yYB1GmgWvbJXTFWWebrLXIrpRzXlO55a4/RqA7S9rF7F5NGQiN31ZYkLfWLZq5G1gr/TS f1AzD5stV750d0N7e X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_131204_798665_04175416 X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. 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 I am adding myself as the maintainer of WPCM450-related code. Signed-off-by: Jonathan Neuschäfer --- v2: - Instead of expanding the NPCM entry, I'm adding a new one only for WPCM450. --- MAINTAINERS | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.30.2 diff --git a/MAINTAINERS b/MAINTAINERS index d92f85ca831d3..661770e8e6fc1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2194,6 +2194,15 @@ F: drivers/*/*npcm* F: drivers/*/*/*npcm* F: include/dt-bindings/clock/nuvoton,npcm7xx-clock.h +ARM/NUVOTON WPCM450 ARCHITECTURE +M: Jonathan Neuschäfer +L: openbmc@lists.ozlabs.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/*/*wpcm* +F: arch/arm/boot/dts/nuvoton-wpcm450* +F: arch/arm/mach-npcm/wpcm450.c +F: drivers/*/*wpcm* + ARM/OPENMOKO NEO FREERUNNER (GTA02) MACHINE SUPPORT L: openmoko-kernel@lists.openmoko.org (subscribers-only) S: Orphan