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: 13359758 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 448A4EE4996 for ; Mon, 21 Aug 2023 19:28:14 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=YrOidjBPOCXZy/XmsB6jcEmEXwJctZbUQDhFaWWC8Zg=; b=zPY 8Gnx9T8kY3ZBm7Vt3hmRpStqUs7HyQKd4+ccmU79oOxSh/k7QjP2UICcyICE3lPi0jm/AWNj/sk2g vh/4fRpZpncWUZJ4aORx3CUrOk6cqyZieTy2EChq2UQRqLVBWnXweyCpSYGx1zzzGK63FXZfHh/3X NxeYH/WVQVQu2YXec8IbDIy1GwFKh9cYsUsMRoElGGrnjfS83OEl3Z6HwktIh3UVTdD4Gp3K4faau ccV9B+TqBPHpm53gjNQK+6Idhpq5IrX0/b30kgwf8IFcQWtarKF0CtOurVIUHUOvn/Gez0xh5sNnS ZqCVSPE15rycGeJKQhnddbaSiP/4Trw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYAYs-00EaXx-2f; Mon, 21 Aug 2023 19:27:38 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYAYq-00EaWw-1c for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2023 19:27:37 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bf55a81eeaso12067575ad.0 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=1692646054; x=1693250854; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=6TByU0Rq5tTGDqDdmVlaVpD23ue05zoEYbiruoQuOHA=; b=M3cgwNYFgR3IiUd3kfXpTt04rcmGR+Fxeh51HWRwfFeBAX1Fp+HD02tgKtXjY3CKxT LhUVhBsq36SWAZXtgm/aGaA1c9pVy9m04kT9ffebID01YfrjEJtiWFG6DM2w3edbyrQA BgsY8bDvPm8eZq/Jr31HP5W8fmaG7uTVwgtg4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692646054; x=1693250854; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6TByU0Rq5tTGDqDdmVlaVpD23ue05zoEYbiruoQuOHA=; b=UQ6/YGQpdxvhAzGBRggPeBZFkJc+vXHGCieA6Bo0vGwityylJDeXxGSq4CSdh/pw2z kmc/QjGe0spoLGBxmB3MkfWWBcD7ooGSP84eeh3eoTk7mvoL1agT0OoBiuCqyrxJ6h0Q OWjxbhQn0Efh4shhDUv1pM8z/PvnlnqS1iaLAOrhbkGimkqN8GtTkFgahZnyDCt9NTMS eLpvCX1CHbzoFa+T7gpRB8P1Uf09IfLZKwe6FpoSjsosvz4GzRc29fQN7aShys7ZNOtC g/itY2DMj2V70gZLfMzl5NpVO/P775RGjbaW0uqBopfaBtpnymsYNqSnA4u3jQUVvga7 AWkg== X-Gm-Message-State: AOJu0YxGpoGNx0x/efqWqFhmMKjesnZzIf7A9OPrH85+yxQ10ys/rK49 BSCHMDLuGwE1QSAkGvTkU/1wCq0rOCrt2biGbXO9Uh1fss2BFLT/S1EZiNLQrK4t5LZ+o5i8hhj 3FlsUO3vpv6XK+EIOgMBmScsSC8vCXZ2/jlvb0YiLmyHJ3qO6lOPC6VNrGDNKnOEeUL1UWf12SA kkhjq7KslVxQtJmPMiLUd2xQmSOCBk 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230821_122736_539211_9C7303AE X-CRM114-Status: GOOD ( 12.42 ) 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 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>; + }; + }; }; };