From patchwork Tue Jun 18 20:05:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 13702942 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B1C516EBEA; Tue, 18 Jun 2024 20:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=108.161.129.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718741164; cv=none; b=Gar+0QK6U0mzdOKY18vhJF79g9KQO2qVHUEy7kTrlGKeON+VqCd45R53oEwQ5oC0bl+SDWx9lNiph1KC627wGiLVbBu77Tfq8riBntSRSgDfBEGgfXOXdu08wI3vXfcnSq09yRtJ+BrPOL13aZV8twXiayjC7hC2XGLQuj2l3I4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718741164; c=relaxed/simple; bh=b9tNdBU4u63N5+KBSfKpC4FnBFwazjgc6z1rS+gjuaY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=GscEXXL+LiqssWbRLo5gkONeXt6eVMyjmlGJDiVQ8EYNEW/7t7JuV0e1WfgLTtRow5gKFZJ6U+ZCeGoRoz5AY8HUEqvH7WtlSbJN7HowLqe5uZMTFXM7fhsvf+Zw1MfLNls8fk+EhwGEBOpQDFmOb+l4fWDgqZcbdbjgUlm7HT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gateworks.com; spf=pass smtp.mailfrom=gateworks.com; arc=none smtp.client-ip=108.161.129.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gateworks.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gateworks.com Received: from syn-068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.95) (envelope-from ) id 1sJf5a-00D0Yx-4C; Tue, 18 Jun 2024 20:05:58 +0000 From: Tim Harvey To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tim Harvey Subject: [PATCH] arm64: dts: imx8mp-venice-gw702x: add support for PHY LED's Date: Tue, 18 Jun 2024 13:05:52 -0700 Message-Id: <20240618200551.1740178-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The GW702x SoM has an onboard DP83867 RGMII GbE PHY that drives two LED's (LED1 and LED2, skipping LED0). Add the appropriate dt bindings to allow these PHY LED's to be controlled via a netdev trigger. Signed-off-by: Tim Harvey --- .../dts/freescale/imx8mp-venice-gw702x.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi index 560c68e4da6d..6c75a5ecf56b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include / { @@ -102,6 +103,25 @@ ethphy0: ethernet-phy@0 { ti,tx-internal-delay = ; tx-fifo-depth = ; rx-fifo-depth = ; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; }; };