From nobody Tue Sep 16 21:37:37 2025 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 4C901C3DA7A for ; Wed, 28 Dec 2022 20:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbiL1UDq (ORCPT ); Wed, 28 Dec 2022 15:03:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231879AbiL1UDn (ORCPT ); Wed, 28 Dec 2022 15:03:43 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A4D13F15 for ; Wed, 28 Dec 2022 12:03:41 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id b3so24974132lfv.2 for ; Wed, 28 Dec 2022 12:03:41 -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=Y62W+4unrt0N1H/hbHDjd85DqMlPKfNIDH0roBe5Np8=; b=NVIyXU8MzWCazUdcvGbQ/5Ku9kMxsWMu7ejGi6aplzBVcX5KuR0eRkDML9JE/G6gOi H9n+CGBJSazsisajWbC8ADQxLeQ/L6PPEprxD1ERwc1apAZ4C1rT4TiKYVUchh2i7G4+ HAjjgJmClFAMGghB8hw4NlsaCNDHlwe2Mko86prS67+yRg3zdCr76jGxausvorEWzaL1 o6mJaWoD3hW0Qsd9uU6HtH8ZQu/Sc66Zo66I0s89dIOaaA8mPTMeP1QWG04rJHpf0lGb lqAcXk3NzKWfBH7GEy9WIU4B5FZNJwWR2g8fjnFRloDjCFCy0EZFrcQNgg5NCkOGVmZF tWOQ== 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=Y62W+4unrt0N1H/hbHDjd85DqMlPKfNIDH0roBe5Np8=; b=uMhxppfIwFt3aE5CIibMX6VSu4ynbVXZAT8n8Tiq0YY5FbqsOxKF1biyl0X9HRJsOP NBztRPkQdZ498ibK0mGKDaWfynm6ivbujLkexRJpxn0bY65YTg1GSe6FgfL6t4l5FHW5 PJi9flJIhHg4/Jc5JYlfwpYoj3ntUa+CZrDX2iHMraBqmjG4+2h/WRnZWbJ5Lj2GeIbF LPukdmCV/0VEkcinmQ0MdcIc9Q66lSI5/MIOOyDZ1ZN4VHy0bY2Xq67FUyLpwTqqPly6 ti9w/Ut17nZyrwxVWNU8mS9JHUQW6F795rY4C5RknylUcAKN6aAH/vrO2YtccGiBQnlX 8xfw== X-Gm-Message-State: AFqh2kqrxoeNX4QXsvUJ7BLziwwHEBKo2hQXL927ufFTor3jDvb1fulj CEAjipdNwpxD12EmijCxWpOJMoXHEr0Xe28WZ80= X-Google-Smtp-Source: AMrXdXvFDhQ0vprWhz+60YAD5Z4AVVtnKNcpjAKMdhCQNCbRD7s6x2CjmuLik55JG7+s8H2bESsb8g== X-Received: by 2002:a05:6512:2385:b0:4b5:90be:33c8 with SMTP id c5-20020a056512238500b004b590be33c8mr8190561lfv.48.1672257820194; Wed, 28 Dec 2022 12:03:40 -0800 (PST) Received: from michal-H370M-DS3H.office.semihalf.net ([83.142.187.84]) by smtp.googlemail.com with ESMTPSA id j13-20020ac2454d000000b004c7d0ed9619sm2806156lfm.123.2022.12.28.12.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 12:03:39 -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 v2] ARM: dts: dove.dtsi: Move ethphy to fix schema error Date: Wed, 28 Dec 2022 21:02:34 +0100 Message-Id: <20221228200234.86391-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: quoted-printable 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 the 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 Fix them by removing empty ethphy subnode from dove.dtsi and describe PHY on the relevant board .dts files level. Signed-off-by: Micha=C5=82 Grzelak --- 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-c= m-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 { }; =20 /* Optional RTL8211D GbE PHY on SMI address 0x03 */ -ðphy { - reg =3D <3>; - status =3D "disabled"; +&mdio { + ethphy: ethernet-phy@3 { + reg =3D <3>; + status =3D "disabled"; + }; +}; + +ð { + ethernet-port@0 { + phy-handle =3D <ðphy>; + }; }; =20 &i2c0 { diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubo= x.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 =3D "okay"; }; &sata0 { status =3D "okay"; }; &mdio { status =3D "okay"; }; -ð { status =3D "okay"; }; +ð { + status =3D "okay"; + ethernet-port@0 { + phy-handle =3D <ðphy>; + }; +}; =20 -ðphy { - compatible =3D "marvell,88e1310"; - reg =3D <1>; +&mdio { + ethphy: ethernet-phy@1 { + compatible =3D "marvell,88e1310"; + reg =3D <1>; + }; }; =20 &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 =3D <29>; /* overwrite MAC address in bootloader */ local-mac-address =3D [00 00 00 00 00 00]; - phy-handle =3D <ðphy>; }; }; =20 @@ -394,10 +393,6 @@ mdio: mdio-bus@72004 { interrupts =3D <30>; clocks =3D <&gate_clk 2>; status =3D "disabled"; - - ethphy: ethernet-phy { - /* set phy address in board file */ - }; }; =20 sdio0: sdio-host@92000 { --=20 2.34.1