From nobody Sat Sep 21 15:25:44 2024 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 2BDFFC6FA82 for ; Tue, 20 Sep 2022 17:31:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbiITRa6 (ORCPT ); Tue, 20 Sep 2022 13:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbiITRad (ORCPT ); Tue, 20 Sep 2022 13:30:33 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB2F7172C for ; Tue, 20 Sep 2022 10:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663694866; cv=none; d=zohomail.com; s=zohoarc; b=SXs2NNty6nAHGNb82MGcdFDT9tph4cnz0xB0CTD4tBMylQpe4l04b0xJtHhdiH2+1fdQ/quuNm/FgNW8oXhjmoeRwQ+bXGn1rWSd+r6ihXjha73i6Vg9KAuPXgh4QaRMcKusBqXqFaApyZiSghs4XRT/xjme+VNuCHU+x1pyO2A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663694866; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8AjFH1BLUb+TXyGp2qTPrkMzOdVeStVDjagqGC2aBMo=; b=Sw1PseK+KmPrwX1AQ8dc6oOr/0M4HUVO17hk49JrmZA/7w0rZgxEIxV/HbC2xXmzN7u87ZkeCPtyhKuwqu5gQufo9sBoX+FTC+6KcGJYipe3tmp2sYt2cy9n+76DT/eE1jVnVf8Yf3a4IN6QxjV2yqLPeSIbmRZ/MTSmnUI9x94= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663694866; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=8AjFH1BLUb+TXyGp2qTPrkMzOdVeStVDjagqGC2aBMo=; b=jLxb9ZGQDFo5AEsXVm/Qi+zoRrLLAGO8eYMrpSIdFKislJMVYN3SkdvolhR5jUwq bEsPBHbK1lvICO2xBrHrVoO+t87QFKvSjV8FeN5JiVTSd2yGYEuSIbFKKi1wIQb6O51 qDS2mOGJjRu9It83qg61kpwuT2LSNM//Kdqo1gzk= Received: from arinc9-Xeront.fusolab.local (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663694864308155.8970139669667; Tue, 20 Sep 2022 10:27:44 -0700 (PDT) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Greg Kroah-Hartman , Sean Wang , Landen Chao , DENG Qingfang , Sergio Paracuellos , erkin.bozoglu@xeront.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Petr Louda Subject: [PATCH v4 net-next 10/10] mips: dts: ralink: mt7621: add GB-PC2 LEDs Date: Tue, 20 Sep 2022 20:25:56 +0300 Message-Id: <20220920172556.16557-11-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920172556.16557-1-arinc.unal@arinc9.com> References: <20220920172556.16557-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the missing LEDs for GB-PC2. The ethblack-green, ethblue-green, power and system LEDs weren't added previously, because they don't exist on the device schematics. Tests on a GB-PC2 by me and Petr proved otherwise. The i2c bus cannot be used on GB-PC2 as its pins are wired to LEDs instead, and GB-PC1 does not use it. Therefore, do not enable it on both devices. Link: https://github.com/ngiger/GnuBee_Docs/blob/master/GB-PCx/Documents/GB= -PC2_V1.1_schematic.pdf Tested-by: Petr Louda Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Reviewed-by: Sergio Paracuellos --- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 6 --- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 42 ++++++++++++++++--- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 6ecb8165efe8..0128bd8fa7ed 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -20,12 +20,6 @@ chosen { bootargs =3D "console=3DttyS0,57600"; }; =20 - palmbus: palmbus@1e000000 { - i2c@900 { - status =3D "okay"; - }; - }; - gpio-keys { compatible =3D "gpio-keys"; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index 5f52193a4c37..7515555388ae 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -20,12 +20,6 @@ chosen { bootargs =3D "console=3DttyS0,57600"; }; =20 - palmbus: palmbus@1e000000 { - i2c@900 { - status =3D "okay"; - }; - }; - gpio-keys { compatible =3D "gpio-keys"; =20 @@ -35,6 +29,42 @@ key-reset { linux,code =3D ; }; }; + + gpio-leds { + compatible =3D "gpio-leds"; + + ethblack-green { + label =3D "green:ethblack"; + gpios =3D <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + ethblue-green { + label =3D "green:ethblue"; + gpios =3D <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + ethyellow-green { + label =3D "green:ethyellow"; + gpios =3D <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + ethyellow-orange { + label =3D "orange:ethyellow"; + gpios =3D <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + power { + label =3D "green:power"; + gpios =3D <&gpio 6 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "default-on"; + }; + + system { + label =3D "green:system"; + gpios =3D <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "disk-activity"; + }; + }; }; =20 &mmc { --=20 2.34.1