From patchwork Sat Mar 20 18:16:00 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: 405522 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 BAD40C433DB for ; Sat, 20 Mar 2021 18:19:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7ED1A6193B for ; Sat, 20 Mar 2021 18:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229883AbhCTSTL (ORCPT ); Sat, 20 Mar 2021 14:19:11 -0400 Received: from mout.gmx.net ([212.227.17.21]:57027 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbhCTSTH (ORCPT ); Sat, 20 Mar 2021 14:19:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264339; bh=xJcnBN1J6AwlpjL6XnhA7z8+cNAcOly79skhuWm8OhY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FFNzXu/lKQD7uNanoz0O9twVKQTJwxKyuo6/9N99vWPjDHNKU+bN7G5Il+vxvRdEf PDdOvV44X//D1G5pfvK9DR7rxFOgh/mHyxMLmCd5yqqVQG0YowWfmIVShF7AyYUuuB NnURRESyWM96dOilGrv3c3owUQgcgK3xnCYYmN0I= 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 1M4JmT-1lNxIo0mPp-000I0x; Sat, 20 Mar 2021 19:18:59 +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=A4?= =?utf-8?q?fer?= , Greg Kroah-Hartman , Rob Herring , Lubomir Rintel , linux-serial@vger.kernel.org Subject: [PATCH 04/14] dt-bindings: serial: 8250: Add nuvoton,wpcm450-uart Date: Sat, 20 Mar 2021 19:16:00 +0100 Message-Id: <20210320181610.680870-5-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:QeUUPtlUqlVLexPlH4ILr9nkaoFgSKUdwwzFKXl0oCP26XDXJoB DZT8tcFDulDnnLdmw1d7tCs6PGKqSuCQSMgnh2cvmoiBdqz/wERwAJYIKkQ0nKLNhd2Yu0S X0z8jjeCCbGnx2HWmY5BBuQYNBFLP6Tk/OTiSpC6gSYqhrXhlO2iYW6NrFKZxJKbHlsU4jY rdpjWniS3lrV9xDbhaYFQ== X-UI-Out-Filterresults: notjunk:1; V03:K0:yfzjPC32jQA=:q1+WgT0XrgyFgnawBY3hbz iG9t8HwRMsoaIHLnjDoyEk0qAXvXgDOMLMEpdIbPFMxBKQUpJKfBImDA+/pQsGlEEv1AlcNEh /AMIQjFp+hFGcx4wp2MnaLEoQvGLAPUv9WEM+6ToRDL+VA0f0xa/XW1GXRQ5A/tkUXyxaqFBe aYt7Elo/PtxQKO8HXTkQ3G0JvTSUZewc7WeI/5SGuipOiBx9A/a335EEbbs3gK3W0RBouNF7V im15dhG/yoWWoIwpfsYDsVaU9/phEoYm2H6WmSAwejEgiyNmLIcT4aqwj9IiNZeWL2PVLjejV PaTkR37RyxJ+Vn3KJHtq9EFUsc58BxJepFkFWs6Svf1NPs+cBJpi4eoSw139q4vrXhNOp1z+e iqIyKnNK194uABp8eafjw6KgtIu91Du5Uxjw9e6X834/7HqLWJjRGWa8enW63CmoPA5DiR3vt jNslYKN52afaFxsnIhk7pojxtHvAxBqUpPgN3MMwpMjzAUVeCT0iqwg+jBkE2XAgzTiCauPZh KIgDIgRpTluYFOyV3e34SJ7GOeKP3q4AesZFAdfdNmGcNk1Iu/8Y51V+9LyggZzwQnP9U0COA b2M5U1DAzZ3lcco9tPk6DLwfM3dnO2scgSoRPuej9ys5fWCI3V8iAZnNGl3LVVCGky5uTkQfI ydyss1PIUu9knvlHbHlHPE+trsCZO0U/6gb7CuBysE96CWwB/phGspjTRgJanQXqf79oLGXW4 clbqmTEijdH2XqGDvpx3FKdA/pwwlMZp1HaBORwyI4YjhYW/Zk8aj7QJ5SKKEgcgFJ4wHWmA3 Nt01VaBtsMoeUhvay9xXsX5ZohVENE+YlrA30wArBGZQo5fnWrO2+YoD/L92l3qRfQhSt87BL XC7jYIqrMiorY2Pjstpw== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a compatible string for the UART inside the Nuvoton WPCM450 SoC. Signed-off-by: Jonathan Neuschäfer --- Documentation/devicetree/bindings/serial/8250.yaml | 1 + 1 file changed, 1 insertion(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml index f54cae9ff7b28..c0e292cdaa6bc 100644 --- a/Documentation/devicetree/bindings/serial/8250.yaml +++ b/Documentation/devicetree/bindings/serial/8250.yaml @@ -55,6 +55,7 @@ properties: - const: aspeed,ast2500-vuart - const: intel,xscale-uart - const: mrvl,pxa-uart + - const: nuvoton,wpcm450-uart - const: nuvoton,npcm750-uart - const: nvidia,tegra20-uart - const: nxp,lpc3220-uart From patchwork Sat Mar 20 18:16:01 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: 405521 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 376BEC433C1 for ; Sat, 20 Mar 2021 18:20:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0BC3061924 for ; Sat, 20 Mar 2021 18:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbhCTSTn (ORCPT ); Sat, 20 Mar 2021 14:19:43 -0400 Received: from mout.gmx.net ([212.227.17.22]:57111 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhCTSTX (ORCPT ); Sat, 20 Mar 2021 14:19:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264343; bh=MDvYbSDjVR4gaL0euqquA/ztC03AcKzD7QlmuGwJ7oo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KcKKr20W3Ycewx3A6LUs8UmgQ+ERLJIiH6sdKWTYfMDiEwkd6l5cLfUdgWkhb2y4/ kssDftGoU0DKjpGFRPvaxJs/N8vJ99vFK697dbmcmjKG7v20iBkEUjrDG+ndeINmA0 u/ehAeTT3P2xGkB4+fW3Fi5vSLzFdYMx64r1uhlA= 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 1MA7KU-1lY5Wf02PK-00BcEE; Sat, 20 Mar 2021 19:19:03 +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=A4?= =?utf-8?q?fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Daniel Lezcano , Thomas Gleixner , Rob Herring Subject: [PATCH 05/14] dt-bindings: timer: nuvoton, npcm7xx: Add wpcm450-timer Date: Sat, 20 Mar 2021 19:16:01 +0100 Message-Id: <20210320181610.680870-6-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:O0vnu6YLRuXC6Tu8SnvAvza+pr/EhU2s0KbmK6GpSbDzpinP4j+ HJqWvB0UP58UNd7whayPYBBUUHrELOqUi/XSMVru8bUuBNsYH6gT82kBIglTky9Jik0MbR/ 9v2g4XzQkEDeUP9WfnGutESvdQI4CejhHftSpDCukfX8A2ZfqgaBSeajR+WerRxR9V09iJx MWu0UoHIfWWfuDLtNBEtg== X-UI-Out-Filterresults: notjunk:1; V03:K0:S6FcI+sCfag=:yCmlFuXLi9aCSLYsocighR uJzdeDJMlVcILY1ZImMezxkLbK2f5X1Gj3lxEAQoT6bWzBFnP81wVVt10GLruEU6gXpI1OA44 x+l9D5gC6I7MX0cXbF6Sd007If0iBkbd0ySwUS3P2UW3LsehHDgDhLpBsHEZKj2HnsSyFpk/3 wV6bCO4fH2LwkCyAasD1uHOPlK8KdjRBdTqNfcAjYsXhS7NVzYI5QtwhawF27yOGBZSOYA2es IZY6H96/RC87of/JK2cVo5IblIPY4NsM5ehHLWF1yGiX5XID8k00uB6qv9PIOM2UFJeO5FI+O PTrDsWLJFh0v7hHg0stTkLEpG3Y7i4y6vF97yJGDk12FHnHUQMN05EHa6dsNJ9yPkFcxE8xoU nhIkD51NYIfWpMSZrbFm3jhneaJGOItS48iu6tEtmH017rmZYuayettzmO/2PvUNwAFqG4mrv K4BWIZ64LVlviWFMMB5yIOhArjE1bRuPbLeuNQ+9DGeoT/EaE/xs9MaE4gU/rLCJHcdf2atlU 7gCC1jnYe0pBtPxVP4BpXA7z7TOUMkKNX8EaYi2UQeBej7SXMZC3+ymbNp63tjHwSvo4jKDHT ggsV2PTqgZ4sUzcpIs/JLOVM+V5a5UMcF7aGykARIbKhu9eeHnuf8YZn/4pNt5PWmfg+LEre5 ZtXUhL/uAXlPfE/r59YRKfXnGbtb9kpG/IOF9DIOcbFtXfEtD7SWdaen6yBgeDsV+EQcGtoOX D96m2N31FfaFKqeBoeVIaYOM8KkQt42I5amxIEJwUhpQoLovNivuNIhJmyClOV/I0pBsN0Rso hJy60+ExKZGzUBSTflmtr6ui7PwY5Ax4ZSIEAQkcKVjp5Ob6OSt1psWYUgBCXwviEA0LGSYcR La50wUIOeqBUbQRYVKsA== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a compatible string for WPCM450, which has essentially the same timer controller. Signed-off-by: Jonathan Neuschäfer Acked-by: Rob Herring --- .../devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt index 97258f1a1505b..ac3a5e887455d 100644 --- a/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt +++ b/Documentation/devicetree/bindings/timer/nuvoton,npcm7xx-timer.txt @@ -4,7 +4,8 @@ Nuvoton NPCM7xx have three timer modules, each timer module provides five 24-bit timer counters. Required properties: -- compatible : "nuvoton,npcm750-timer" for Poleg NPCM750. +- compatible : "nuvoton,npcm750-timer" for Poleg NPCM750, or + "nuvoton,wpcm450-timer" for Hermon WPCM450. - reg : Offset and length of the register set for the device. - interrupts : Contain the timer interrupt of timer 0. - clocks : phandle of timer reference clock (usually a 25 MHz clock). From patchwork Sat Mar 20 18:16:03 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: 405520 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 9E5FFC433DB for ; Sat, 20 Mar 2021 18:21:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7418661924 for ; Sat, 20 Mar 2021 18:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbhCTSVS (ORCPT ); Sat, 20 Mar 2021 14:21:18 -0400 Received: from mout.gmx.net ([212.227.17.22]:39243 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbhCTSUw (ORCPT ); Sat, 20 Mar 2021 14:20:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264443; bh=sgopXkqj40uUkRPhDPMpk7bTtLvVFAAsQsE3W8f8Do8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BkaMOoub696+Jm0b6bzsfT0p4QODdeA5LFElVr89K7mURIrT7dwIHQwcmYoYHJn/M siT2j/4c2TdItqHFOwV7lm5LEmWIZ+BmH89L3gCOoX8X927MKY8lkAk0jDXTFS7seN OYNk/sZbF19QMr6Tc3eN9+x6GgZF4cex+8R+2eLw= 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 1MfHAB-1luW7U1M5L-00glr4; Sat, 20 Mar 2021 19:20:43 +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=A4?= =?utf-8?q?fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Russell King Subject: [PATCH 07/14] ARM: npcm: Introduce Nuvoton WPCM450 SoC Date: Sat, 20 Mar 2021 19:16:03 +0100 Message-Id: <20210320181610.680870-8-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:Cpwml3BuleDgxGQANF+bJyKDQJJr7bedoFK5LxmcxZgU6RHcSvk qHnOfk0QXcrYl2rdtwk1hzK/dz28SbedbGRSH1sRlS9tWRGx7zLXQaQH9p31UpKTgFLVLRQ GeuGiBqgi9y6eMY89Sjq+0v468ZJnt6Rw2Zkxw4sNUjaaUC8nP5KOqD9XRbyvh57C3+AcdK 3qoad5/BSg0VzITYXmYAw== X-UI-Out-Filterresults: notjunk:1; V03:K0:bbr5qGFW1+s=:57a3VOHV4y/O7L0vIpHmav YisAMpCqlhEwivtHfxckG3BduwiJEMAfClmyST5QH1welmlCZ6SFQhp1/47OkSGwxL1kxPVCT VhyEpiMmf59X8qCN47SQL7uT03poC+/Z5oAElFKKHHUSQhhPdYTP0sVx/gwlSTNHwEsh3fors QzmMfVkZzxCrCvOiW3+r3WIShOyhXSTOGgEEN+IMX4ZCFMtSSQe7xqMyN9mx05sF/GmszwDVZ NJRMngz6O4MvnDdr8eITy6Ho9E8gQwi4Cf9Mp/dinuU/xYG0K5uJ507XCmxImVxul0EMDzYXO z/9sHcWnDZcT8+xEKzOU0NK7nuARtjH6JyFmLUH4rldcMcHww+9erF20eYHWOINY88j/slshp h4wllBp7Q8rx8PBuvVTKuum8GMJvNSUt/4cpOaN8j7sRvFCabkDSOEBILSem10TwvQqGRj/Wf CaX60fLlzno1r7KrlGcZW4/tk+WKpFWQmyLqopBvP4xCHsniASEcYOkWEGKACIBesDXm1aB22 tlnVbBpqrHeF91U2FukupHKb0//E5EMSo1/40pVtCf+XNOQKc/IKxkOMFZbY2ax5N+Wc4f4L/ Nr+WV2w41IWl8+xGjl2m5AFu9Abu8UasX2V1w4MZBTwcXuVZmJwLFVr12g3t7I325EE4NzzZI vDJ8+4pl0Zd82XnxrBCBwmY9YPBgSKz6VplOMp9Wv0OsOdGQVcOMmwZN2tOZkloUWUUbSm7D2 jI052Ioo+D5QMgQnLVRnjjXvy/cJG9geXiVnUclEuY5CuBrAnb7m6osVyXlEQOoRW+zfo4OfV WWfalBMuAL/AyTBHtkIoAHlYJ7JQoCFX8sbv8yBYRJcv/cagfFeCJX2gjQwy6IBZT00gcKX4K JV5N17CO94838z2+FK8Q== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The WPCM450 is an older BMC SoC in the Nuvoton NPCM family, originally marketed as Winbond WPCM450. Signed-off-by: Jonathan Neuschäfer --- 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..0a915084c8ff3 100644 --- a/arch/arm/mach-npcm/Makefile +++ b/arch/arm/mach-npcm/Makefile @@ -2,4 +2,5 @@ AFLAGS_headsmp.o += -march=armv7-a obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx.o +obj-$(CONFIG_ARCH_WPCM450) += wpcm450.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 Sat Mar 20 18:16:05 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: 405519 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 D4411C433DB for ; Sat, 20 Mar 2021 18:22:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D82F61925 for ; Sat, 20 Mar 2021 18:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229840AbhCTSVu (ORCPT ); Sat, 20 Mar 2021 14:21:50 -0400 Received: from mout.gmx.net ([212.227.17.22]:56823 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhCTSVS (ORCPT ); Sat, 20 Mar 2021 14:21:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264470; bh=uKwq/ZWDVqYL2xvnk2WZ9EQekhtr43ZTu3KEC9aZAQk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=D3SZF0mB3S13G62qaCtK9tfFxGNyX63hop/1czFvGZEE4QVevh3xHX5X2sU7ZObWi 2YYcf6a3QN4MWkN2egxKwAWlD/Dssk2GBTmGDZbl7ZmoH0t8DID/fZGnEsQwlujjRe leKqu59iFe06SsbLqVJd/VqSRhvpCTXRuML482Qw= 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 1MWRVb-1lCPq10CHj-00Xps7; Sat, 20 Mar 2021 19:21:10 +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=A4?= =?utf-8?q?fer?= , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH 09/14] serial: 8250_of: Add nuvoton,wpcm450-uart Date: Sat, 20 Mar 2021 19:16:05 +0100 Message-Id: <20210320181610.680870-10-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:Cgo7o8Nr2P1eIRB7W5Uc96exsQk2AguXiMm5fb94gF2qZr8LnSd ENKJKc5F1B0Zj+JVTuHlNBShSL4vR2gfI7gruifc4Kop8pcpat5/8EnvC0jjVWOPE9Rr2x9 mWstJXs1+K44MfSf1tFPoTGwAzjdRRlmPkWoqfsV6rUkbu98F2vuLCd8yAFv7r0XkpjNlWM 2Hnmmq/6cmwafYHE3sYgA== X-UI-Out-Filterresults: notjunk:1; V03:K0:Ya60QC51KBc=:TY8QaGy1ekRqChFJcUmecL fxkiS7xINk/CSq6N3I8ThUFN9hpU72mrP7TL6oPMDBVQp4z5rQnMzlTFKQl5FHEEAPc7CXxWX cMnd783VpwLs6jIB9gSMLjfadjA1UlCdVLK1p0F69OPbG/fRom/LWSicucD2aaVcQR9tDmtum yYml44ujjdCFjjl4xTDBSdArgFPpmxubdMyG5BROnjjxb+C0ewXK7CH/8Dkw28yiWf0GW2JDa 10Wbzx+yZZV0XmccJ9ilvQS5U1ljsHLTisX/5ZwKBvY+aBotyAcTPD7WXOjrBHDkrCXOMqpOC GPNd87QYVtt144L6Vbe2aF0gvPrH7+YDN410yhn8iyb541EaP5/baANpMlfwQmT/tZzbzjms0 bV+bsmtUE/gXxcrv/p2nHcrM92q6UvN/hsLajydlnnlu2BwhG4cSLW4l5EuGbgYgjv7dLGeFb qjRj390hlMzLdb3bEE/JGhU2cATQc8m/SkGU21oPxeYB46Fj7UCn7fsnYKEXsCXuFrkncmWpy /DlyQ26ELJtMk+HahHkzoGPtaDy54GzvIwJOctlUBT1lWcJ+8HFidG4LDUySPgE5R1LkYrL28 rCMmcol3h60wGBLwnDYdAwWnQpjOZvZLTSs+GkqBaT+EHc7duBICJVK9+xRemZBh9NH37FfZW O+dlFevZQ/z7GqcedB3cO+als5v9V4cW5GvoUE6HCurK+7Owoe2y2oeVq39lMzpyqvV5ySeBL CM97mCOxv7GZSlf7j+SHJxqw6nvgj3vGrFxkww2/fZPoSKmB8fO40fJQZcXss0W62tQMhahe8 K75ZcrT7fYakJH5y8e2NNNSyqDvVJDqL2t4RcsvRd43EoDXNoPvdw8auxZVllOoeQSwekUNN5 pDl3KIeORY9a+omF4ptw== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a compatible string for the UART inside the Nuvoton WPCM450 SoC. It works the same as the UART in NPCM750. Signed-off-by: Jonathan Neuschäfer --- drivers/tty/serial/8250/8250_of.c | 1 + 1 file changed, 1 insertion(+) -- 2.30.2 diff --git a/drivers/tty/serial/8250/8250_of.c b/drivers/tty/serial/8250/8250_of.c index 65e9045dafe6d..0b077b45d6a94 100644 --- a/drivers/tty/serial/8250/8250_of.c +++ b/drivers/tty/serial/8250/8250_of.c @@ -318,6 +318,7 @@ static const struct of_device_id of_platform_serial_table[] = { { .compatible = "mrvl,mmp-uart", .data = (void *)PORT_XSCALE, }, { .compatible = "ti,da830-uart", .data = (void *)PORT_DA830, }, + { .compatible = "nuvoton,wpcm450-uart", .data = (void *)PORT_NPCM, }, { .compatible = "nuvoton,npcm750-uart", .data = (void *)PORT_NPCM, }, { /* end of list */ }, }; From patchwork Sat Mar 20 18:16:07 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: 405518 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 E8ECDC433DB for ; Sat, 20 Mar 2021 18:23:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFA4961925 for ; Sat, 20 Mar 2021 18:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbhCTSX2 (ORCPT ); Sat, 20 Mar 2021 14:23:28 -0400 Received: from mout.gmx.net ([212.227.17.21]:51021 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbhCTSXT (ORCPT ); Sat, 20 Mar 2021 14:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616264581; bh=uf3ILqEMg6eC6bi0iqi0XBLwUk3OVexnnKIhLAryQMA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XQSlMn4kuzlmWcAPBTKcY67lkjpiViE/Ywb6X1KT8TxnpV9XuonTO4BtTZPuZ08C0 DmYKPBbWUKs7bwa+QvYXfwi//OZ015z43XzBnr30seZ9QLJJtWyVUPMvQlffs/LI3f 6dZ8dzAAmTUxylYkPFhrm2trPGNWkjvM4daMcfJU= 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 1MowGU-1m1u272fwU-00qSea; Sat, 20 Mar 2021 19:23:01 +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=A4?= =?utf-8?q?fer?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Subject: [PATCH 11/14] watchdog: npcm: Add support for WPCM450 Date: Sat, 20 Mar 2021 19:16:07 +0100 Message-Id: <20210320181610.680870-12-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:hw/P9HKeJHarfyFvwAmBp8Mam8myqgk157QR4E1NS3d3ZRPHh/H GhkO1M1vo508nDI32ImNoSNS5SgJG7FY5VClPhFxCoreYZsR45skbp9GBBKhwqmUmgfoBVz sTiI8OCeoc2hxN1a728DhCADntRQ1yiuWQFkO9r8IxSd8aip1o1jrHkFONA/RapF7wm3mh9 IJE4J2F1rdAFZJiZeVeqg== X-UI-Out-Filterresults: notjunk:1; V03:K0:FCi6tQaXMAM=:BIBUuG1s1Ud/UwrbI4Ckdf ERwviKF/Jvwbji+f4UwucR3cyzS9dMrkOouY85V8VL/xhrGEO9Y8VJPv8nSbTcVZAZYp4qEmh 6Ferpmpi+sbujwnFtr9kQka+keSw1umI7NdtOBt2BLLrVKfQ93dBAJgQt6+WnOiKNMWWe6JDR gUCLVtL4+VYFagSlKTcZNJXUxqw67S6QwoMqx7TsD53/btMq2htkZbXhhmnDj6l7+R/rH0KXf x81M8y0hanZSvsDjFTG2kO7Pla5GrhgV418CqGyOFKyHiYtmm5jgfty9G4KFmJnt7Cg1P7Rs6 k/FdGlYo5d2gU01Wp50GBoHffmu4dbUQvcjQZD2YnE7cxas2MIKo5aiq2XNKCzQX6td5K0KiW x0M/ShfHSjaIOnLGI3ZvPiudrYYrKDgE5LEdKm4EyrI44PugKSkkixzZE3jIK7Ok6/Ov0L9HQ Q/DXCs0+Pi0KckmadADFxdQ4FmJXmKqQ+FrG17d9bHMF5AJYo6o1wzUIL3B2S1QuMvDDVoPjH YkMAyh2cK6f11MjGw6FFs6esx5IqgVSCJ2oiVfkk9iRaIUG9Q0hW9FdX89wpiCFEMTi2/YglQ xfmDWJouZGxoU7hTo6FX9PHIWh/a6Z4WEW3eXroncdbeCIhV8xswYop+HsLphvjcMtlLmi4yS Qnszh2ZYQ1+632JkNj4iSAZMkUzNfk4HEcfoMNkR4Xwf//498NRZNJUfLE6PogreSdEwWPnzK 6qCWCX5Lom4zfF02aGkynRVDtpzcX1/nBt/0N4F8SlHUKcqh+ZQREUhoeBjVJjVlN+jdQNY1k 9z7U6PbtnxBYmVuOxLDj33FCnEdjim8XlCjUyV1ANP8J5NZYbCbZ/699HjxCsI08HnuVVBHbk ajFhmJKwCbsgp3VzyMmA== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Jonathan Neuschäfer --- 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"}, {}, };