Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1020206lqp; Sun, 14 Apr 2024 10:02:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVI50Qdb4FB9h2oJy0ppIBgK3kwLYDTtV5V1vm/ddNv7XSuweeXH1p2wZJlXlmKlFS0oV6gSgQuAeDz/EBNy9RnIfpP4U0allbkSA7cVg== X-Google-Smtp-Source: AGHT+IFQgSOUJcHQI1+9QLT/G1Zxzk1n8UCPuFLquIRqmW+FGeJI6+09AnhrEvg8b+0JSfVd6NBk X-Received: by 2002:a05:6102:50ab:b0:47a:42d3:dcd9 with SMTP id bl43-20020a05610250ab00b0047a42d3dcd9mr6356368vsb.9.1713114141522; Sun, 14 Apr 2024 10:02:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713114141; cv=pass; d=google.com; s=arc-20160816; b=zhbCdTFwS+X+cRM9lrNgYj+i16I3c4b/CyYRN7MiA5abqu3cr7OhUgqpUL9Emv7N4w WuYi8ZBog9SJeWxaKvFhzJJTX6YU7jQtwOaXTOVdotW6JPlzqbsi3k+cCGz2yXmJ04LC uYBhxpZU61zMaY/HSb7kyIM/Y8rx4YDQ0mw8K8kcP5MP6m5RtJzu05MulSeHRYiBjYx7 EbZOE1nbDxihYkqkqzT37n82jt/jId8ymLyJFl9ljLjDxRxKXDhudDv1W3rRuJl+iqxE Zk/DCsjDBgIhd+e2yscdn0mHOKg0Bs4YtSW6nPRxIcS9vG4s3vEM6s19/s+jx6+gk+tw 9Hxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=bnVxAI2tjPUqEHkGpkvZIOLRI0uCgh4pk1djhq49B3s=; fh=hZiJHJPv9/MqYr5k7iTd57Z0vhmEvg+ZrooeFbDI0lY=; b=v6LyrF4t4yZNp4nprVFXBKhpqJHPxJvMaCtSFRBxzaRj+VkMCjMiCsLZfOaNSFxHmK ooI76eRfHuJSkLI9JETcsuPuvbwuLGmxqT4xn6IwtBt4kE40mWVZvubIqcYyZOn3lDNg 9AwaTsZ4ClSvEwE7RWDWnsZZorlmVB3aVF7Ly0SmV5u3LpypRD9kLCPNOaUv7gbxmOlB TO8awnBkJM+JaDA/ghcyITGCuUPaaHrwwyvumYUJU1BLQTqKrE4c8vbI4gPoeMDvk3AB 9ARxBMg2Pu8ODvP5g/h4/3pA669Prd3hiqkUA4kmRquRYjmysiIH1y9nO68wamy2wrzY C4hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BuYp7gPD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j28-20020a67ef1c000000b0047b4241c56esi772771vsr.206.2024.04.14.10.02.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 10:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BuYp7gPD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 010E01C21DF4 for ; Sun, 14 Apr 2024 17:01:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAE0F136648; Sun, 14 Apr 2024 17:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BuYp7gPD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA1231DDD1; Sun, 14 Apr 2024 17:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713114091; cv=none; b=QiGo6LPsokTucibOY3BQRcpRgHwtsQFXzzmxxlke6eWUeIYk/hu7/Uvl0/phZlVS/Awt5LN0ttPfibQA1uRcqQAK0bfIfuuQ690XkPvP5AqKNVpYx4ldRCYQrgAFNOfewzlRXYsXc7jESrCM+xmCVa/taVPLr5HggiKISaxRaIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713114091; c=relaxed/simple; bh=mhFeLCrwatal82689J4BD2+lCXaeDYEtzPYrA+v7zR0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OxvnYIag3af72KAMJgsk02R57HDj3OU3iMooZFi9qYB3O9bGPRqlmr6u/LmxRY6aacqUsbL913u9vsIAMapiQMpejt1ugIkbVymH1+kxj7/5p+DxHWfX6/gHwAgJfp/Z1OHCKBaXheS7ZLaOjI7QZpIYwX0bC/JVghoUpic9Bw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BuYp7gPD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A3495C3277B; Sun, 14 Apr 2024 17:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713114091; bh=mhFeLCrwatal82689J4BD2+lCXaeDYEtzPYrA+v7zR0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BuYp7gPDWys0rWglDsXPBM4wdGQQDuwrUqpeG5Y7U96+R9DCoo4au+FyYvvPD8vae BtKJNqiEueTf3RwW2V+jrXJXDawtg67s5tNCdE80fVDg+hTdkpNKFqFgl31lLMmYKL P0h8eFAIepKtXffUYVkiZ7XExMJQvHq5QaZnv5lSUwrqc/JdqqNBkH03bqwYrfgNXd khSkXkO6QxukjA3IbEPvEcSlOgiAH7bNpf3Nb8/wN7csI0k8fMGeZqx8tYiT6zzGSu TEe0Cfl4qaTm5csguQM8ivaHcrO3udQezW2fEa07U54zc5yp10oRRPlFNkmLnVkc0F jzhMYZ1nYZRag== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 935D2C001CC; Sun, 14 Apr 2024 17:01:31 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Sun, 14 Apr 2024 20:01:21 +0300 Subject: [PATCH 1/4] ARM: dts: BCM5301X: use color and function on ASUS RT-AC3100 and RT-AC88U Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240414-for-soc-asus-rt-ac3100-improvements-v1-1-0e40caf1a70a@arinc9.com> References: <20240414-for-soc-asus-rt-ac3100-improvements-v1-0-0e40caf1a70a@arinc9.com> In-Reply-To: <20240414-for-soc-asus-rt-ac3100-improvements-v1-0-0e40caf1a70a@arinc9.com> To: Florian Fainelli , Hauke Mehrtens , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Broadcom internal kernel review list , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713114081; l=3138; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=j9b3dbJqMcoEoUpOpDrZC6RI+SBn+VmxLPPihPauC6w=; b=dD1ZOzdlA2FdEjfj/blWyiR/jrYHXQVbhcbLmo9OJWnsXb+SgNxhUE+jqYxsbp75APsfsTFYD 922V+xD+gSLDMv/SkPO1LNq+RY91bN9YmtFsRBl6O0+HNN4cHsNgjYn X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Reply-To: arinc.unal@arinc9.com From: Arınç ÜNAL As the label property for LEDs is deprecated, use the color and function properties to describe the LEDs on the device tree file for ASUS RT-AC3100 and ASUS RT-AC88U. Reorder the LED and button nodes in alphabetical order. Signed-off-by: Arınç ÜNAL --- .../boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi | 54 +++++++++++++--------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi index 09cefce27fb1..9271792a9e44 100644 --- a/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi @@ -6,6 +6,8 @@ #include "bcm47094.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" +#include + / { chosen { bootargs = "earlycon"; @@ -25,38 +27,46 @@ nvram@1c080000 { leds { compatible = "gpio-leds"; + led-lan { + color = ; + function = LED_FUNCTION_LAN; + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; + }; + led-power { - label = "white:power"; + color = ; + function = LED_FUNCTION_POWER; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-on"; }; - led-wan-red { - label = "red:wan"; - gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; - }; - - led-lan { - label = "white:lan"; - gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; - }; - led-usb2 { - label = "white:usb2"; + color = ; + function = LED_FUNCTION_USB; + function-enumerator = <1>; gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port2>; linux,default-trigger = "usbport"; }; led-usb3 { - label = "white:usb3"; + color = ; + function = LED_FUNCTION_USB; + function-enumerator = <2>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port1>, <&xhci_port1>; linux,default-trigger = "usbport"; }; + led-wan-red { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + led-wps { - label = "white:wps"; + color = ; + function = LED_FUNCTION_WPS; gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; }; }; @@ -64,10 +74,10 @@ led-wps { gpio-keys { compatible = "gpio-keys"; - button-wps { - label = "WPS"; - linux,code = ; - gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; + button-led { + label = "Backlight"; + linux,code = ; + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; }; button-reset { @@ -82,10 +92,10 @@ button-wifi { gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; }; - button-led { - label = "Backlight"; - linux,code = ; - gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; + button-wps { + label = "WPS"; + linux,code = ; + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; }; }; }; -- 2.40.1