Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6302134rwl; Thu, 29 Dec 2022 10:24:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXuRYZkt0IbA/V3Iaytehk79s93jxd2DM4t4P0buHDB+1QjRIt/8JX5h9rxWnibLa7u35Szy X-Received: by 2002:a17:907:6e16:b0:7c0:9f6f:6d8 with SMTP id sd22-20020a1709076e1600b007c09f6f06d8mr31428251ejc.2.1672338251051; Thu, 29 Dec 2022 10:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672338251; cv=none; d=google.com; s=arc-20160816; b=1FT/kzPzQIGxvwB8lb3KMiOdkmTixzCyMtN/XPtLWlHA7PcK23vN1Hdt6wPKPJM+eo 9gxdaJjSiegge1oyyf0tdd1dIF6hAmDeFvQzK3Z/O6wtG3S8PHZzy3BhpzUwFiLnY1eD G2yMaZF85ahe7XKdbDxeBqUnB3QMtGP6aI04Bx47WphEg6762Zyn9+Zl7xMdrGZBVQU3 4TNMlwg4+PJu3y/LqbiD+jVl/fRXet5TbaIBT1oFBHY1JUpHR8IdBQomVlIXEZokH2ML o5+mbeBDXgAvrOrmmybJmPabjIdmT8V9IPZ9xRsMxSj0Ne2Jnu98VkEsUgqf1m+ROcct bxmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0oNYi6w6tx/qy2WSkQo4B6H6RF8KC0sVH3SkC9om3p4=; b=KMw74ee8YjC+n9h17R1rRn+FfjCQLWO4Z+mPa9bJ8MrC+FbZoxR9FU9rXGfIiGZSOc kMjywzO7bXqKNVuItfq1z4jRvIlX6ag0iQaO/G6BIS0D7tbGRK1KXjEXEfhuOLoYKTWm Rf1Pm74qEVrOvpj0hSMHL/jO1wb3iMsWqC9ImAPSZHwQXrUW4bPU7Kyqxa1nz9eY7ayN 6s4o71CMwoZFIAmU+2SE1iOx7nPFobU7JaYaMC5FhE0smyrkQkqDBeXtKchF7ZbTLLdC GZ0lNm0ZbUdOC27de2XkQZsi1xDh+CdUl5A4NZ+d4rc+3lJ8d4UcgjOzQtZ5qNR+3DE7 D+YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=SIyWZWOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq36-20020a1709073f2400b007ab1b8b71a6si17402981ejc.40.2022.12.29.10.23.56; Thu, 29 Dec 2022 10:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=SIyWZWOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233866AbiL2SCf (ORCPT + 62 others); Thu, 29 Dec 2022 13:02:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbiL2SCd (ORCPT ); Thu, 29 Dec 2022 13:02:33 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912C615833 for ; Thu, 29 Dec 2022 10:02:31 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id j17so19016752lfr.3 for ; Thu, 29 Dec 2022 10:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0oNYi6w6tx/qy2WSkQo4B6H6RF8KC0sVH3SkC9om3p4=; b=SIyWZWOFnEZZroZZHzk1EkRsHGGi0iulfx5hQpAukXvozEOkUU0hagfdIaoxQWaVyW 8BAqRHzeCGK0q2aTFNw9rvjEBA2S4HMmZ/lUNqbDFLLsqb1/u0wZaQdLl/n0nBozzj86 KFojEzFOaivYy6n25g+JmdP2eriYIC/BTAZVPSmoW3Q5GVXBt4DiXZT00zjrWVqhEcQf 2Rhur428fFGqnLiBFm+sIhyeTsofC2xLKbTFjVPQPXuy1CYin9kC6FHeCig+FM9fq3Oa Fs4CEj2F/F5RqAZigY6I/UgOff2EzqwSNo7bV8a8mInUY9yAD1BJKjZxoM6acTuab/Ps MLcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0oNYi6w6tx/qy2WSkQo4B6H6RF8KC0sVH3SkC9om3p4=; b=Vz9zCrhrLTiZc9cfaov+B4VM7A4KQftL3+5W6idgFs+4vJiAwipYX94Wq6RmZM3QBn 27QzWqeBFn1n+y/ySfm/3C6pOlijz7ru1ZL3LuSbaDN7Dg8TO2Vz0LEO1xsXPxYI+tG2 EWRS/QfH7C1NqzbB59o3YN4FN0RSBM/ZEe3t5lKAmc80FwXKPYyLRamsAmxQBh3KknsV QPtlmRA62HIKkhZuMiYmsjc85g2gTT4zmYVGAybPdjQvMGyOGVnwcIUsPHwBgVWs+UjV tC55d9L+1ewDmRs1lhyMFBGwWv37nkJ0Pkib14G0oCaDmdX9JUNYYXHIVe6f8b5lgly/ Ozmg== X-Gm-Message-State: AFqh2kp9Cp3kdNGWC8YJg5MKTxxJZ++o+g/d6XTcHQLWyb1pDhhmuRgX OpW8h9UAKTNSEsN1/IDraP5tVEDlTwXZBMUFzS4= X-Received: by 2002:a05:6512:ba8:b0:4ca:98ec:7d9a with SMTP id b40-20020a0565120ba800b004ca98ec7d9amr9696633lfv.15.1672336949862; Thu, 29 Dec 2022 10:02:29 -0800 (PST) Received: from michal-H370M-DS3H.office.semihalf.net ([83.142.187.84]) by smtp.googlemail.com with ESMTPSA id e16-20020ac24e10000000b004b4ea0f4e25sm3119709lfr.301.2022.12.29.10.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 10:02:29 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: linux-kernel@vger.kernel.org Cc: andrew@lunn.ch, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, mw@semihalf.com, upstream@semihalf.com, mchl.grzlk@gmail.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH v3] ARM: dts: dove.dtsi: Move ethphy to fix schema error Date: Thu, 29 Dec 2022 19:01:55 +0100 Message-Id: <20221229180155.99303-1-mig@semihalf.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Running 'make dtbs_check' with schema in net/marvell,orion-mdio.yaml gives following warnings: mdio-bus@72004: Unevaluated properties are not allowed ('ethernet-phy' was unexpected) arch/arm/boot/dts/dove-cubox.dtb arch/arm/boot/dts/dove-cubox-es.dtb arch/arm/boot/dts/dove-d2plug.dtb arch/arm/boot/dts/dove-d2plug.dtb arch/arm/boot/dts/dove-dove-db.dtb arch/arm/boot/dts/dove-d3plug.dtb arch/arm/boot/dts/dove-sbc-a510.dtb As every subnode of mdio is expected to have an @X, ethernet-phy subnode in dove.dtsi doesn't have one. Fix these errors by moving ethernet-phy into relevant .dts files with correct @. Signed-off-by: MichaƂ Grzelak --- Changelog: v2->v3 - edit commit message according to https://lore.kernel.org/all/Y6zuJrb+8j+XCksN@lunn.ch/ v1->v2 - remove patternProperties: from .yaml - move ethphy from dove.dtsi into relevant .dts files arch/arm/boot/dts/dove-cm-a510.dtsi | 14 +++++++++++--- arch/arm/boot/dts/dove-cubox.dts | 15 +++++++++++---- arch/arm/boot/dts/dove.dtsi | 5 ----- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/dove-cm-a510.dtsi b/arch/arm/boot/dts/dove-cm-a510.dtsi index 9b9dfbe07be4..2f2f0a4bf004 100644 --- a/arch/arm/boot/dts/dove-cm-a510.dtsi +++ b/arch/arm/boot/dts/dove-cm-a510.dtsi @@ -124,9 +124,17 @@ wifi_power: regulator@1 { }; /* Optional RTL8211D GbE PHY on SMI address 0x03 */ -ðphy { - reg = <3>; - status = "disabled"; +&mdio { + ethphy: ethernet-phy@3 { + reg = <3>; + status = "disabled"; + }; +}; + +ð { + ethernet-port@0 { + phy-handle = <ðphy>; + }; }; &i2c0 { diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubox.dts index 2639b9fe0ab4..170c14d7f5c8 100644 --- a/arch/arm/boot/dts/dove-cubox.dts +++ b/arch/arm/boot/dts/dove-cubox.dts @@ -72,11 +72,18 @@ gpu-subsystem { &uart0 { status = "okay"; }; &sata0 { status = "okay"; }; &mdio { status = "okay"; }; -ð { status = "okay"; }; +ð { + status = "okay"; + ethernet-port@0 { + phy-handle = <ðphy>; + }; +}; -ðphy { - compatible = "marvell,88e1310"; - reg = <1>; +&mdio { + ethphy: ethernet-phy@1 { + compatible = "marvell,88e1310"; + reg = <1>; + }; }; &gpu { diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 00a36fba2fd2..c7a3fa33c56e 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -382,7 +382,6 @@ ethernet-port@0 { interrupts = <29>; /* overwrite MAC address in bootloader */ local-mac-address = [00 00 00 00 00 00]; - phy-handle = <ðphy>; }; }; @@ -394,10 +393,6 @@ mdio: mdio-bus@72004 { interrupts = <30>; clocks = <&gate_clk 2>; status = "disabled"; - - ethphy: ethernet-phy { - /* set phy address in board file */ - }; }; sdio0: sdio-host@92000 { -- 2.34.1