From nobody Tue Apr 7 00:45:48 2026 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 70E25C54EE9 for ; Fri, 2 Sep 2022 06:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235470AbiIBGUl (ORCPT ); Fri, 2 Sep 2022 02:20:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234925AbiIBGUi (ORCPT ); Fri, 2 Sep 2022 02:20:38 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3D1C50073; Thu, 1 Sep 2022 23:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662099637; x=1693635637; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ym7YRYwYyvDY9fhkvBA5UnV1wOMfAoiNYtaQ4wfiJyg=; b=swzBitQtxnSSgcqZIdp1a4k4xWvWmJcIa3skXDOKzFVwJXCODwrYqULP bCBPwNObw2rmiD+zE8tZedCVsUCio39EJrSJ+fem2SNJ8edmKaREHQxZZ /XURA9qKj1zhP0utPla1ayVBzOSuhEjQyMleCRzRJJr9G9vF/+9uJ1EZh EbZn2LwsOb/GOXGjAT02g8iuJmk/r1B8hkK+FRl5Rla2l9EPZP5AuqHyk +22WGbYNtKz+1qiAbThgmz+zyIuTEl/ScSTU//6OHupL1DQNjTodoBxbL +GAiTVoZQhXiq0l8enVuivFDCOkBjVXGVUrXJhN9qiY33XNFw7oP+dqxm A==; X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="111872642" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Sep 2022 23:20:36 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 1 Sep 2022 23:20:36 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 1 Sep 2022 23:20:34 -0700 From: Horatiu Vultur To: , CC: , , , , , Horatiu Vultur Subject: [PATCH v2] ARM: dts: lan966x: add led configuration Date: Fri, 2 Sep 2022 08:24:47 +0200 Message-ID: <20220902062447.443846-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add led configuration for pcb8291 and pcb8309. Both pcbs have 4 leds which are connected to the sgpio controller. Signed-off-by: Horatiu Vultur --- v1->v2: - remove status from the leds node as default is okay --- arch/arm/boot/dts/lan966x-pcb8291.dts | 28 +++++++++++++++++++++++++++ arch/arm/boot/dts/lan966x-pcb8309.dts | 28 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan9= 66x-pcb8291.dts index 24d9055c4a08..289a31649422 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -23,6 +23,34 @@ gpio-restart { gpios =3D <&gpio 56 GPIO_ACTIVE_LOW>; priority =3D <200>; }; + + leds { + compatible =3D "gpio-leds"; + + led-s0-blue { + label =3D "s0:blue"; + gpios =3D <&sgpio_out 2 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s0-green { + label =3D "s0:green"; + gpios =3D <&sgpio_out 2 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s1-blue { + label =3D "s1:blue"; + gpios =3D <&sgpio_out 3 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s1-green { + label =3D "s1:green"; + gpios =3D <&sgpio_out 3 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + }; }; =20 &gpio { diff --git a/arch/arm/boot/dts/lan966x-pcb8309.dts b/arch/arm/boot/dts/lan9= 66x-pcb8309.dts index 05ce27ed5648..cfd7c8933703 100644 --- a/arch/arm/boot/dts/lan966x-pcb8309.dts +++ b/arch/arm/boot/dts/lan966x-pcb8309.dts @@ -42,6 +42,34 @@ i2c103: i2c-sfp@2 { }; }; =20 + leds { + compatible =3D "gpio-leds"; + + led-s0-green { + label =3D "s0:green"; + gpios =3D <&sgpio_out 2 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s0-red { + label =3D "s0:red"; + gpios =3D <&sgpio_out 2 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s1-green { + label =3D "s1:green"; + gpios =3D <&sgpio_out 3 0 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + + led-s1-red { + label =3D "s1:red"; + gpios =3D <&sgpio_out 3 1 GPIO_ACTIVE_LOW>; + default-state =3D "off"; + }; + }; + mux: mux-controller { compatible =3D "gpio-mux"; #mux-control-cells =3D <0>; --=20 2.33.0