From patchwork Tue May 3 15:36:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12835941 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 ABAF2C433F5 for ; Tue, 3 May 2022 15:38:04 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fkenNsOJSXjAY+aXA7KqfykRFVVFvDuowTr6BYAH1Tw=; b=vr05GiE+w2+djQ qaiFuDEfKIz5sAHZENKODiADdWPg04Adv0WALa8l5xWdNOy/P8T7EcsG1lcbrY7+NZEDPUwottTkl Es34Pqov+4/ErZXa/AhaaX/S5FsUf5nU0DBGM5LR3lJAfYNjvquPtgqchNGh6lRo9qYZwRb9qLErO bM0zPlak14DovuS9hej4nIdBfJOpQPR2usH6wkxBvdluMLcGC4+RNAHT11x4oJ3xRuH0AeNW3ZxZY pLdS0ByZMaz+pUiKB8VY2xnxfJHgL6luVMfU6DH/G71d4X37FyS6rm73Q47vXMImM0IFiMGuZiB57 xsV2L3PlynvXDI0J57pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nluaA-006Wl6-AU; Tue, 03 May 2022 15:36:58 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nluZo-006Wan-KD for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 15:36:38 +0000 Received: by mail-ej1-x62a.google.com with SMTP id j6so34166177ejc.13 for ; Tue, 03 May 2022 08:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HxnwmUt5XXOQZLtedBMlDA6s9oP05DqI/7RXSR5ri4c=; b=cM0U2RFj32GEW1ILlg1yfmSdYa3AuHHmdzDbV1IAM4fdtu9AlN2s22sESTs+zDQidd L06dY9drgbavLz55lW8lt6dKonpDvE5lDCAU6hSRTPFcDzQR8QcPQWsCGJqeWuQ6OIbR Xqnkya/gneIhcDexqNiZsj9CIrUM3t8NXWrbv2utsh7I0TkZvJ7QIuBojAHcVoUp8+Gm cXULc5zsN+aKys2ibzN5z933r2KPZowMZXcnacBsW5GvrNoMoeh516KS193U5Amm9riQ Z8IBWwG8R/REwVqgGvkeHc2WvEf+pfQZ1R3so5XdVCNabHRLArKWeXPC0KPQQ6Ev2IQV Cb4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HxnwmUt5XXOQZLtedBMlDA6s9oP05DqI/7RXSR5ri4c=; b=JRx4jG5t5Y5TDJeRpGyb1bzhxDfVERoembYvuR9FkpbRqJiLU5JDoOlJSIwc6aQs2G ngJB5fNS08Mpdw/tr0ODzoeMs3xeUA7yyn3/MGzuh3x6FTTDXnGsJrO0xxfSwBt6y/+/ RR6Se5XWTGDTT0wFq5kwatidGB+gKnNS7wWM2nmtDo0OVaY9AumLckZ6312ZHbU+vXpu 3BNJdbL6s++AwyPJ/5QfUTL3d/XY3MIx9vXQp51kbYl3DfOgTPhiHhYHfpCDUJjPAKxA rlWdHA5upcCCbqWxSS5mjt5AdBOLn4TK37DjcZJBZG5QZowKXJFI2np/kC0muuEbiU5V WoPA== X-Gm-Message-State: AOAM531ja8jyMXeKNRr7MqxAob78OklHx5lVx1qpBNDotX8WyKHM1nE3 +IgJZfRo6tYjExABZRRgx9w= X-Google-Smtp-Source: ABdhPJxNBzYQuUyb1KloWpt4FU5+9Zx8momroPTJWceimkMlPE5juKGMGDeyc1y84IgnNFmzwpDvJg== X-Received: by 2002:a17:907:97cc:b0:6df:83bc:314c with SMTP id js12-20020a17090797cc00b006df83bc314cmr16170442ejc.587.1651592194344; Tue, 03 May 2022 08:36:34 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id yl1-20020a17090693e100b006f3ef214dd1sm4693395ejb.55.2022.05.03.08.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 08:36:34 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Rob Herring , Krzysztof Kozlowski Cc: Pavel Machek , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Hauke Mehrtens , Jacek Anaszewski , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 4/4] ARM: dts: BCM5301X: Add triggers for Luxul XWR-1200 network LEDs Date: Tue, 3 May 2022 17:36:13 +0200 Message-Id: <20220503153613.15320-4-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220503153613.15320-1-zajec5@gmail.com> References: <20220503153613.15320-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_083636_709442_4A5F583C X-CRM114-Status: GOOD ( 13.87 ) 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 From: Rafał Miłecki Those LEDs are not hardware controlled so bootloader / operating system may want to control them manually depending on switch ports state. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts index 9316a36434f7..ee1b0fd3eb86 100644 --- a/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include + #include "bcm47081.dtsi" #include "bcm5301x-nand-cs0-bch4.dtsi" @@ -38,24 +40,28 @@ power { lan3 { label = "bcm53xx:green:lan3"; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; + trigger-sources = <&port_lan3 SPEED_UNSPEC>; linux,default-trigger = "none"; }; lan4 { label = "bcm53xx:green:lan4"; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; + trigger-sources = <&port_lan4 SPEED_UNSPEC>; linux,default-trigger = "none"; }; wan { label = "bcm53xx:green:wan"; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; + trigger-sources = <&port_wan SPEED_UNSPEC>; linux,default-trigger = "none"; }; lan2 { label = "bcm53xx:green:lan2"; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; + trigger-sources = <&port_lan2 SPEED_UNSPEC>; linux,default-trigger = "none"; }; @@ -87,6 +93,7 @@ status { lan1 { label = "bcm53xx:green:lan1"; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; + trigger-sources = <&port_lan1 SPEED_UNSPEC>; linux,default-trigger = "none"; }; }; @@ -114,29 +121,34 @@ &srab { status = "okay"; ports { - port@0 { + port_lan4: port@0 { reg = <0>; label = "lan4"; + #trigger-source-cells = <1>; }; - port@1 { + port_lan3: port@1 { reg = <1>; label = "lan3"; + #trigger-source-cells = <1>; }; - port@2 { + port_lan2: port@2 { reg = <2>; label = "lan2"; + #trigger-source-cells = <1>; }; - port@3 { + port_lan1: port@3 { reg = <3>; label = "lan1"; + #trigger-source-cells = <1>; }; - port@4 { + port_wan: port@4 { reg = <4>; label = "wan"; + #trigger-source-cells = <1>; }; port@5 {