From patchwork Tue Nov 29 10:22:24 2022 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: 13058439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B596C47089 for ; Tue, 29 Nov 2022 10:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbiK2KWy (ORCPT ); Tue, 29 Nov 2022 05:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbiK2KWu (ORCPT ); Tue, 29 Nov 2022 05:22:50 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BC9D2E4; Tue, 29 Nov 2022 02:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1669717357; bh=8eefIejhUZKP3XYAMhDZQ9H9WglhQ79OVnj3c0fFmiY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=oBqKylsECYq5I/2GmpcEaQr7dFLmoSqFYFiZsA+Y82BFJrhIsCVRFa1txdK/v5+w7 KCfZD54Xs0BJ+j9H9qfp37KGsg0ok4h/CmuvsfKiiNTvUotnyPuGiyC9ll6cCkfEBn k4V4jhWoWSmNs4gB9W90kdNdlys4ALK5xD/nRK5g/IqsQA9Hk7KHDxqIzhqyS8Qk7k t4kaCFvz4ktgG0tpWZ2QGD9cr0F4MaQM9f/lJJWrvqqC1GSCKfXzqE7lTKyehbq1qV xZpZzt8D14zEwi16CtzZKwosZudWSIksdyzBSLWWkpYvrJFqutm4KoeZkMJLHcgOYq 66jvxrTRckXJA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAOJV-1pBGQ22lhL-00BqtP; Tue, 29 Nov 2022 11:22:37 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-spi@vger.kernel.org, Mark Brown Cc: Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , openbmc@lists.ozlabs.org, Krzysztof Kozlowski , =?utf-8?q?Jonathan_Ne?= =?utf-8?q?usch=C3=A4fer?= , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v2 1/2] spi: dt-bindings: nuvoton,wpcm450-fiu: Fix error in example (bogus include) Date: Tue, 29 Nov 2022 11:22:24 +0100 Message-Id: <20221129102225.3598044-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221129102225.3598044-1-j.neuschaefer@gmx.net> References: <20221129102225.3598044-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:9za5dH/0RwJN5d2RNLYIj1wTXHmsiB+J0vGP2W6X/NkSTy4TFsp lC6QGNuTYTV/9e792Neiw6YjBKPdniYotzWZsbuKyoZvLGIWHfNhcVziFfiaW0acvYjfyj6 h1Ovo7xUL/1VtK0hUi0ELJlrGArj2xfRp77ZIzy/QriV4zEUFxfDCegm+wA/i9/S8tadYtM rsgob02qh64gdgH8P8tsw== UI-OutboundReport: notjunk:1;M01:P0:Amp4+tBHQOU=;bAc4SX+oNM+4Kk5rS+Vwx4oysl8 /c3i2QiGBs/P2msp5IJoCrfdqi0SV5/t+01e7M4GMjQKd6VSYKFPrIoQNJYZ2ZffKq6F3SRAI PYzttaKMHfbUoNG79CDU8NY8gOYArs7xLuWMXAaiGWqv42rLPomHKETwP7WTVBUJb4eCt292W voZe6uR/XFifrRuBJMgBvoQRIX0mkIVilZp23Cmk8e0/niq2HzCMVHS2i8d0H7g2P+f/L0urB juiQz6IPBmYhiPDAQ8Eyjn7OSIgx6/gQRDzoxYKr9ufrPJj5YCAnBILdKzXdDbw3LM9g8N/V5 PmHV+RbiiGaMK3QENU806lRBxgSTB98dw5990MRuEnvs2/qdWCOkYDfBg0nlpi6bHJ5/6K9CL Sq/4Hf2grLS+gPy35NRAFdadIvMIwHqL1KEfEKneMnr4T9GS6JSr1BjWU9kRJjFTmqoEB2SJo FZuqTV5O/p7/EV+AwjuqzMghyOPYTQLbnNyVlfqitE7jIJH1XISPPA4IYbREoUUu85FZohMye nXVeDPP2otoGpZ+etdtoKwT6lYqeQg98tKDWHSXSS96k/NYqC1Fo+zUEwJ7nx6yWrg+EZe+Sh pZmsBKGn5MJyqjJuBTHWEdMDfkgQQ1AVkZFxDIXjb3KGBOehFZI9Uawy0K55Yhsz9Q1NsYCuY LCRGueC5c14G+BXY7px+9iihAnbB0PNSLklM8FXv2wZOUD9dCBsEGbkAe/ho8uHNbjOOsc4X8 Cwtran2SMSuQKoUWLWDVFBMFgP340bKL6JqeLYT6sViBwR9j8bUyEnDh9vKHtdfGkcLy560ls BRH+kTJjjlMk75w41uiCsMbmrUFlnDa0uM5k6xoP67tugAcItmGNB7APco3qP+SXNd+O2PpV5 blRwnBoLF9rFqmt3pwrlavtvJLIp1XLvOZn7S3Hf9XKoSpgAtCmSVkU+QA9l3Rs8DZlmt02/f lPTIiRp+HLvV8qnxOa8nltwYMKs= Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The nuvoton,wpcm450-fiu binding's example includes nuvoton,wpcm450-clk.h, which has not been merged yet, thus causing a dt_binding_check error on -next. Fix this error by simply hardcoding the clock index in the example, before the breakage spreads any further. Fixes: dd71cd4dd6c9b ("spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU) bindings") Reported-by: Rob Herring Reported-by: Conor Dooley Signed-off-by: Jonathan Neuschäfer Reviewed-by: Krzysztof Kozlowski --- v2: - Credit Rob Herring as well (Rob's bot reported the issue, Conor made me aware that it is a problem that has found its way into linux-next) --- Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.35.1 diff --git a/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml b/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml index ef94803e75d90..e4162845fcc1d 100644 --- a/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml +++ b/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml @@ -45,14 +45,13 @@ unevaluatedProperties: false examples: - | - #include spi@c8000000 { compatible = "nuvoton,wpcm450-fiu"; reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>; #address-cells = <1>; #size-cells = <0>; reg-names = "control", "memory"; - clocks = <&clk WPCM450_CLK_FIU>; + clocks = <&clk 0>; nuvoton,shm = <&shm>; flash@0 { From patchwork Tue Nov 29 10:22:25 2022 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: 13058440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A127C46467 for ; Tue, 29 Nov 2022 10:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230500AbiK2KWz (ORCPT ); Tue, 29 Nov 2022 05:22:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231725AbiK2KWu (ORCPT ); Tue, 29 Nov 2022 05:22:50 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8BBDDF74; Tue, 29 Nov 2022 02:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1669717359; bh=tCgpIcwmalgSx5qX5kzqlXYpLcTzbL9VQxyupLXaw8A=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DM9DMtIkSyUhCSHewXFjGasoKBNheLeR3gikogX87cgw0WOXFLpUU3JFxrrit9n5u zrqmT4Hg/N5H/rwOcc045NWfjpgjx//7fsDTrbwC8qnus03qE1+1iuD9fyw93SBp6b 9iR2DlUbDMyVoND6kAvolsCuLv9/M1W48VGRC+aN6LfK0v9u8QkXki1blEAK6m7cCv x/22XvWrMlLrDcfDRww0wA5eRB7TAkb1/v7PQyVyrYZYAZLP05ooE7z4P30jX6ZnwI NOcY7mzgYcaQYcwuhTWYP7jD1kHGuRLIZLHWqKShksg8Mf2nU6E2qOfrDDnQdgryr6 v6PLroQVF4w1A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1ML9uU-1pI2qD19k2-00IG2C; Tue, 29 Nov 2022 11:22:39 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-spi@vger.kernel.org, Mark Brown Cc: Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , openbmc@lists.ozlabs.org, Krzysztof Kozlowski , =?utf-8?q?Jonathan_Ne?= =?utf-8?q?usch=C3=A4fer?= , Krzysztof Kozlowski Subject: [PATCH v2 2/2] spi: dt-bindings: nuvoton,wpcm450-fiu: Fix warning in example (missing reg property) Date: Tue, 29 Nov 2022 11:22:25 +0100 Message-Id: <20221129102225.3598044-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221129102225.3598044-1-j.neuschaefer@gmx.net> References: <20221129102225.3598044-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:37RMk8+HGcGRs4RthaIi7B02O6Es4HvsaRkekBdN3uGdbb9W+h6 w/TxBKwJUAn/LIWYvS+ALmbCWH/uqNsUdER8fKxgK5kukwOO/IQRgChvKdKPVbxNLmthtxX FOUdvZJbpCE3E5Ax0xsTyYeqfAFkLy9bpHSzeMIGD/eFXPUAJjieo2KzwXMpDJl7JK9XTyJ a6MlPvtaZyJ5DcmQ2uBig== UI-OutboundReport: notjunk:1;M01:P0:2kBgosZeI0g=;XxUd51KEo56pe33H/BWqf23JDVK t8LuwgMI6PcxP2WBKUKe3dhsR5/U9xLlgSuDRym3omKVXs4NElGix+3OgMzQ4nQHeC6/FvPTz PFBN3SWRRMF4bcHQqyUObvHB9l7KmivlphRgHoeTUJrWn6oAkK0srxToLNQJLaY85ZAVzv3k7 DZwLp1JUQ7+1+DdScK0Df7Rhbuc49zSa+lcSAufouZ4gpVIPsCSF2PK4/LnHLD9WuaAZmod21 HAD18Z8jbluOrds3n8OFeEYoWUFYO3J0SIUPgMbQanqS/11E4tf5H2xKtVrIXLzYnhxYk83vS PTHvAGxZ2/5hVAAHC19S/FvOGQ5krYuHTIGKgVSLY5FKkNFl9todDj4t8rSwTjuoiYjGS4b/J EAa431Ld3MtoWfMYHyNfisfFZdouDXq8ALl/0rzwjRX3SquEcbgxT/rEIgGHaKQCqexudRNIb aYDIFhnKiIsotgqncmKAmHFtJB/IMR56w06yeYrb3RBq0V2XczgtfEyJIA4b4zUQjpXQ8hTIE nK8pPhkr53PGg7rT+qtu3tryPF2VAvph5AKQmmgYPdtFBmpYH94EapyCi7d96RnYrWbJKz+SS SV1Eptuh8KbSHolJaKBF9wGXsQAeAQ68Qr33c0wqsMEQhaXlFuuClT2LZJej/HhAeM8Jn08l9 JBrFQee7vyqsVjZcKlSjUNAfzhlnVX3zzPQsbB+c2cKCNbh994K6jFpg7MT1Yi0GUav+An3+S +B9LM2Mz+JsvoyjBqOSZGLe4Z2hbZHXAQZbGC3Qe30+ZkGPYgoqNrdgm7VdGIQtExSyi5o1/g JcxgM5kBNu0teaM5pkmmYho6O6vrIheMrS3gBGOJbKNZloVgauC0pRJEp31cXWbBOimf4zwLv qcfhH83spSbBISRGUoYoVLssMaBW/iTm/bFu3YKh540hbGMKu21UEKssu3C8WdmxJF/anXXgI ckY8yj4MITBBIwXr78LqgZNV2W0= Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Add missing "reg = <0>;" property to the flash@0 node in the example. Fixes: dd71cd4dd6c9b ("spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU) bindings") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Krzysztof Kozlowski Tested-by: Geert Uytterhoeven --- v2: - depersonalize commit message - Add Krzysztof's R-b --- Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml | 1 + 1 file changed, 1 insertion(+) -- 2.35.1 diff --git a/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml b/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml index e4162845fcc1d..4e0d391e1d697 100644 --- a/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml +++ b/Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml @@ -56,6 +56,7 @@ examples: flash@0 { compatible = "jedec,spi-nor"; + reg = <0>; }; };