From patchwork Mon Aug 21 19:27:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 715517 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 36E63EE4996 for ; Mon, 21 Aug 2023 19:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229987AbjHUT1m (ORCPT ); Mon, 21 Aug 2023 15:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjHUT1k (ORCPT ); Mon, 21 Aug 2023 15:27:40 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CCFBCEC for ; Mon, 21 Aug 2023 12:27:34 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5657a28f920so2162947a12.3 for ; Mon, 21 Aug 2023 12:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1692646053; x=1693250853; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sdcPQVFFrDKTn81vFXg8tyxnA/zjHI/E4k1HrPBzFeg=; b=eTDwury/3DVielt3Eo3B3/reZU5aMFdOB5rmonJiJxOffAmQ5sZe7pTcANl7m6o9ZZ oPUWkae1fjFQNBCDVKsFNKcgvmWrJ+/liN/aMnFCKMt++ymb+YDnVUN3Byi+ohfx8h8G gYI0UnnzaoY1BX3rtw6eEOc6M4FJbnJ2W6VKU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692646053; x=1693250853; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sdcPQVFFrDKTn81vFXg8tyxnA/zjHI/E4k1HrPBzFeg=; b=h95HA60n6fB8lZAde1HYUACtx4Dw/OzbH/pCCkGHLVftRpJ+x0nt6uEt0zC/sMsEiz wYaqCZDyyNIU0L9/E3HYPE3MxJxX1AEFXvJ4DXDF+NirNd5vg8IQci2MWl0p1Dup+wZK WWKwy1emAQpyvNdw+cdMX4pAS/on/vp/K1x5I666+V9JUMC9uTSUBRNZPGdXe/yGZqGx /vmkh9eL9gCthXcV18dcCuh2rKHydsTRivXSeXGcGTGdpmCb0VODdpBaVK+0vton9xfQ 0eAt6omSZTT4l2xUtFOcbv+XRNX+DctqsER7QQhOipNo0ftsvMJSmt2wh8MSuMfHHKB+ iI5w== X-Gm-Message-State: AOJu0YxKcH0gmJyKSeedswNp6pr3tFtSabbECwicn+Hg6hqj5bgmYHGW dPJZn9udYZiZLRNTXkUagYdChw== X-Google-Smtp-Source: AGHT+IHp/ej2KKUJBnQ20XrP6xyYViDOtj/0MnH2sEKlN0LLnSRvQ92ONzkZSAsC1Gpe3XpOS9/UdQ== X-Received: by 2002:a17:90b:300d:b0:26d:1eec:1fc4 with SMTP id hg13-20020a17090b300d00b0026d1eec1fc4mr4660255pjb.19.1692646053605; Mon, 21 Aug 2023 12:27:33 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id js4-20020a17090b148400b0025dc5749b4csm8153344pjb.21.2023.08.21.12.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 12:27:32 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: andrew@lunn.ch, Florian Fainelli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Broadcom internal kernel review list , Andre Przywara , Stefan Wahren , Enric Balletbo i Serra , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] arm: dts: bcm2711: Describe Ethernet LEDs Date: Mon, 21 Aug 2023 12:27:11 -0700 Message-Id: <20230821192714.3104006-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Describe the Ethernet LEDs for the Raspberry Pi 4 model B board as well as the Raspberry Pi 4 CM board. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts | 18 ++++++++++++++++++ .../arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts index d5f8823230db..41db78cb0836 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts @@ -5,6 +5,7 @@ #include "bcm283x-rpi-led-deprecated.dtsi" #include "bcm283x-rpi-usb-peripheral.dtsi" #include "bcm283x-rpi-wifi-bt.dtsi" +#include / { compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; @@ -197,6 +198,23 @@ &genet_mdio { phy1: ethernet-phy@1 { /* No PHY interrupt */ reg = <0x1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + leds@0 { + color = ; + default-state = "keep"; + reg = <0>; + }; + + leds@1 { + color = ; + default-state = "keep"; + reg = <1>; + }; + }; }; }; diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi b/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi index 48e63ab7848c..3860a134d31a 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi @@ -3,6 +3,7 @@ #include "bcm2711.dtsi" #include "bcm2711-rpi.dtsi" #include "bcm283x-rpi-wifi-bt.dtsi" +#include / { compatible = "raspberrypi,4-compute-module", "brcm,bcm2711"; @@ -91,6 +92,23 @@ &genet_mdio { phy1: ethernet-phy@0 { /* No PHY interrupt */ reg = <0x0>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + leds@1 { + color = ; + default-state = "keep"; + reg = <1>; + }; + + leds@2 { + color = ; + default-state = "keep"; + reg = <2>; + }; + }; }; };