From patchwork Mon May 16 22:48:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 12851547 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC6CCC433F5 for ; Mon, 16 May 2022 22:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=76FM6jZ3RFgDuWrSem1zQykCL6jyO4VoVdEdM3NvqEA=; b=Lee/9deeS96rgM QK2ctBtv8uzQLyYreBpZwwBB7GZI1wcjSCZ/BDJR6EbPH9POs1IXgU2aSOLxVUISdPRJSdYfLFKs2 UEgtf1EEbTRkFzstbzQ65+TPZpxmnuIqrEhr7Lput5fNodH00RzAxd2DNtxn54KHfEc+ojrwMGIgQ 3irsFPJz8eNEtHZ7TexYmzoSxn0SRfx0UPHciOZKYeA/YmrriuaaeQJZ8YfhtDezN9vN1NqWUXyQl 4UmjPHuJC0JGaOlgbKIpNOropGJJEg3Ojo8WPC3pOPtVS6CWoxkGHdFvZReSzYz9yTmVDdAWzC1I4 RshsS0ltcE7ZuYsmbU2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjVz-00AVuh-5i; Mon, 16 May 2022 22:48:35 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjVc-00AVko-JH for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 22:48:15 +0000 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id A7D452C022D; Mon, 16 May 2022 22:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1652741288; bh=yck0K+zg9Rk64Z3+P5kyIChCgdh0HS53j4rjHi8Gkzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Plsrq3xNg3eLxOgGv947hqy6f7he/F8cFFMdQr955ypBDoj6WY23sunnjksuM5oCT DSZc/UziM9wck6/YAm87OkFc8jpQcPjmA72BDh8RKsQnXqgWaxcZXKTkpsQtvo+qwq MfahU1YBLxw3/JW270TuzmlkPxr+hMYgWax403lmqqAhNaRYRBVeFpmZ7P7DqNejnu fq55PB3WqfaEMZ7qAFgBjUiuY28GTF8c/NlUm90LxsqKSbmBRr73D7mieQCtgWCaO9 p1mOKwCDWvIW+j6G6hVji/VPqyLSV4WaDWryC2x2I3wHeVpIFBWMboX5wygS6LMK3P E2SpMxsYaa9cQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8, 2, 6, 11305) id ; Tue, 17 May 2022 10:48:08 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 5595113ED7D; Tue, 17 May 2022 10:48:08 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 52C322A0086; Tue, 17 May 2022 10:48:08 +1200 (NZST) From: Chris Packham To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, kabel@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH 1/2] arm64: dts: armada-3720-turris-mox: Correct reg property for mdio devices Date: Tue, 17 May 2022 10:48:00 +1200 Message-Id: <20220516224801.1656752-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516224801.1656752-1-chris.packham@alliedtelesis.co.nz> References: <20220516224801.1656752-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=U+Hs8tju c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=oZkIemNP1mAA:10 a=0UGfjhEQY5xZ206faIcA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_154812_848675_B5321119 X-CRM114-Status: GOOD ( 10.24 ) 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 MDIO devices have #address-cells = <1>, #size-cells = <0>. Now that we have a schema enforcing this for marvell,orion-mdio we can see that the turris-mox has a unnecessary 2nd cell for the switch nodes reg property of it's switch devices. Remove the unnecessary 2nd cell from the switches reg property. Signed-off-by: Chris Packham Reviewed-by: Marek BehĂșn --- .../boot/dts/marvell/armada-3720-turris-mox.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts index 1cee26479bfe..98c9a3265446 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts @@ -303,7 +303,7 @@ phy1: ethernet-phy@1 { /* switch nodes are enabled by U-Boot if modules are present */ switch0@10 { compatible = "marvell,mv88e6190"; - reg = <0x10 0>; + reg = <0x10>; dsa,member = <0 0>; interrupt-parent = <&moxtet>; interrupts = ; @@ -428,7 +428,7 @@ port-sfp@a { switch0@2 { compatible = "marvell,mv88e6085"; - reg = <0x2 0>; + reg = <0x2>; dsa,member = <0 0>; interrupt-parent = <&moxtet>; interrupts = ; @@ -495,7 +495,7 @@ port@5 { switch1@11 { compatible = "marvell,mv88e6190"; - reg = <0x11 0>; + reg = <0x11>; dsa,member = <0 1>; interrupt-parent = <&moxtet>; interrupts = ; @@ -620,7 +620,7 @@ port-sfp@a { switch1@2 { compatible = "marvell,mv88e6085"; - reg = <0x2 0>; + reg = <0x2>; dsa,member = <0 1>; interrupt-parent = <&moxtet>; interrupts = ; @@ -687,7 +687,7 @@ port@5 { switch2@12 { compatible = "marvell,mv88e6190"; - reg = <0x12 0>; + reg = <0x12>; dsa,member = <0 2>; interrupt-parent = <&moxtet>; interrupts = ; @@ -803,7 +803,7 @@ port-sfp@a { switch2@2 { compatible = "marvell,mv88e6085"; - reg = <0x2 0>; + reg = <0x2>; dsa,member = <0 2>; interrupt-parent = <&moxtet>; interrupts = ; From patchwork Mon May 16 22:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 12851545 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03486C433F5 for ; Mon, 16 May 2022 22:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=UEUmWs2dT83AK7i+frq0+bDK/G2FeEQ6OnLI2QAINvI=; b=XUVa4pGai9mAaA myO4PUTBPtV1yJYbwCgIZug8IEeME9O+3wT4FqKk86w1pNVrGaTFCqe0MWgYLVYSmwp+AG/p/mpc/ bcM9VXO3778qBm4HFVUJp9mRcqLicTzikdAItFdafdmRE3BAH32QJNAe46lYXePYBxsRJu5610uUE H/AJbIU992bdjQKUaGiHfKGb1AKLH2K4ZZFuY0aMmXIzqO70/f6TA2b9DhzU8JzjDNvGxRwyGoxCx Pb/7aD4vX0hIXOjgWPinp+qoDGpSZvFZ0S85zq4dKnQUvXpzlp7s8bN93yqUmLxI+hD92XCdjebeG g+EkD7rXzLHYdOIBZHMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjVg-00AVmr-Eq; Mon, 16 May 2022 22:48:16 +0000 Received: from gate2.alliedtelesis.co.nz ([2001:df5:b000:5::4]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqjVc-00AVkp-JH for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 22:48:14 +0000 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id B34652C02EB; Mon, 16 May 2022 22:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1652741288; bh=ACc6IEVM0bn4IqAX/7zUWdQYsuQJlsTvqpTaLUAizYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yuw5zMByE5Ust6J4bHCiROIHJy7u4Dehfhvx7/lmkFvbuphuXrnNOz+tzgaVUf3JE O2hqCYvPFe0bmI1zx92CZdh62rC02j8TkpnVS29F8b9jun//PnpmceH4skZlt7sp9w 6mKRwVqG5vFZPE+7Akzrd96TSuhBWrUtF9h+QWBMAfzPm7tH+1YaUVxqtchdkeiJeF wwgw1K/lbs6f26iPFTWLGyypWWqF0p8seGCzCQ2jSKKQdzGCqbgAh8oi0odspnimap yKFEC+JS3sNkhYLf60WOpYLvXDiVHoksy8urBUgipflbPv/KhWjzx8SQJQsXDPyTbe igTY9qD8byXow== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8, 2, 6, 11305) id ; Tue, 17 May 2022 10:48:08 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 72E8913ED7D; Tue, 17 May 2022 10:48:08 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 700E92A0086; Tue, 17 May 2022 10:48:08 +1200 (NZST) From: Chris Packham To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, kabel@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Packham Subject: [PATCH 2/2] dt-bindings: net: marvell, orion-mdio: Set unevaluatedProperties to false Date: Tue, 17 May 2022 10:48:01 +1200 Message-Id: <20220516224801.1656752-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516224801.1656752-1-chris.packham@alliedtelesis.co.nz> References: <20220516224801.1656752-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=U+Hs8tju c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=oZkIemNP1mAA:10 a=QXzqMLctjYEMqmhBL2EA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_154812_849697_5DCA42F2 X-CRM114-Status: UNSURE ( 9.87 ) 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 When the binding was converted it appeared necessary to set 'unevaluatedProperties: true' because of the switch devices on the turris-mox board. Actually the error was because of the reg property being incorrect causing the rest of the properties to be unevaluated. After the reg properties are fixed for turris-mox we can set 'unevaluatedProperties: false' as is generally expected. Signed-off-by: Chris Packham Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml index fe3a3412f093..d2906b4a0f59 100644 --- a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml +++ b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml @@ -39,7 +39,7 @@ required: - compatible - reg -unevaluatedProperties: true +unevaluatedProperties: false examples: - |