From patchwork Fri Feb 9 07:23:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 198773 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp686270dyd; Thu, 8 Feb 2024 23:36:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEV+cyk68P26eBrkvGNIRHS5fgMii3IW99gYbmPaCrTHo31a4pk/U3YPOe845b7jQYfikVG X-Received: by 2002:a05:6870:1645:b0:210:a32e:e7d5 with SMTP id c5-20020a056870164500b00210a32ee7d5mr913901oae.36.1707464208206; Thu, 08 Feb 2024 23:36:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707464208; cv=pass; d=google.com; s=arc-20160816; b=cwkihrNQngQoecvZWY2EpGJFS1q8Lc4JbQed03937sJ3TYHw72Lw+WLm+xRgaA5Zw/ hxmsnmzbv1Z57wUmimdxWAALRaVkXZDyntj3HSfTC+YR86S5HevPQJLqUeUKYeVGHKw6 jcLPuNEPvy3B21j5mcwTZ+wtQp+PIARqEjtgEedmZaeQP8Va1RJ+ryhf90iHwlk76e2y pUj6lWf5Z6FThmOTNBmkLgz0JlOm0ZQ1D4JsD5lTUcVXWx8sb3+yaJr7qRT7IXMO4usD ktyn5Zk7lCu5OSAnf+UJpnBuVpoyBftTuzhFbA5kA+dthzslh+R59K78aZiUNTL4wcO1 OyIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=w/nlbIkb6uT5wbQnDjnaa8ve7N7J59uojOGnpzPy6dU=; fh=FjGgdXgySbPKcYgalcjAvjrB4bUx5ghIEYWKNauFxmQ=; b=Oa79li5rqJmEP2SAxtkGJ0EaCwT0F20pqYVzP88TyobALW2ctFdO+WY+OrVSM7ep9o 1fs0OTBJ8frLKCq3w3ZJ5h1hLwZAw8w2Ld3csgTbHbFFUT5Ok1IF9tOdpxSoo4BZb1mF gGLHjyUY+QvDHnnfncgxrH/U0RBY2DIiXu7BNLhzIc7Qi0DDieuemEh1uRTJYRfHABcV i8gh1Ki3NHKcu2w2Dal0nFi9mzMKAJJKSuwHLP3dw+eGHmGY5pgKPoYED53X/FvUFoO4 76hMqHszFfqg5joHJUUmCc3W2GcX8uPMF1PAf3XqMGYXDPnFjI/v3GD+dnGtSoyh/AUU jPtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=fsD86tUD; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-59063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59063-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Forwarded-Encrypted: i=2; AJvYcCUK0xAGxFhKnaP5JlxQzEhqw7+CTsz1Z5VXMaD/eFUndoUM2CNerZjvLUHY3rzJHIiJAWSjWT3vkRFpSLsFPJI2Iib/Hw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k62-20020a632441000000b005dc2a16ba10si1038414pgk.7.2024.02.08.23.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 23:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=fsD86tUD; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-59063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59063-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AF179289B56 for ; Fri, 9 Feb 2024 07:24:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B13BB657CD; Fri, 9 Feb 2024 07:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=jan.kiszka@siemens.com header.b="fsD86tUD" Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) (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 C423865BC4 for ; Fri, 9 Feb 2024 07:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.64.228 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707463411; cv=none; b=VhbHP5TvT9RU3LIzRK53C7rnZlgByXhCBYUZg32iLOOyKxjPy6rR8F5jj9X/AdA27suusc5m1NK8e7Y//zUS6u4sqPAJ99l7ZhKugBsXjJyK/9xlPIWp3Hc/6/jIe+W9jLuitEMYomlwZYmNyE/qWz7CcSAI++2rBbDU/Yc9ufA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707463411; c=relaxed/simple; bh=+VQ0OzGI7s60jod0Wom+quriTvmt944wujZN471+ZaA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pm1dPlsWSFAW5ej8/IX8KYiqLKu/k0PMQxlxI0vjyIzdjWVjiJgfNsmsW9fX4NbW+vNvnR5lY8oxXLTuqIxvNI747l78yDNaWy2Fwl+0BajXs1xs5VNPnGN1QvrYXhyagC1yQgfqYnQIvAXSOqx9xtgzKOsLhVFJHhl6sGnqhWY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=jan.kiszka@siemens.com header.b=fsD86tUD; arc=none smtp.client-ip=185.136.64.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20240209072325eb6aace34295c0ac60 for ; Fri, 09 Feb 2024 08:23:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=w/nlbIkb6uT5wbQnDjnaa8ve7N7J59uojOGnpzPy6dU=; b=fsD86tUDi20zmqLiHPY0OqNhku7MrQ9fIXxQOvihqaaa6ljp7+IUgvgP1ca/5OoHbBZb9Q 1XFiG+UkDM0D9LbFOKrYkLfUdBweMj2yLgqvzerl7NY1YcsZGfj0G3/VfLikBzc0pLnhInsP iaAUM0CROxL+BgxBn7FLOdW0uXvOc=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su Subject: [PATCH v3 6/7] arm64: dts: ti: iot2050: Annotate LED nodes Date: Fri, 9 Feb 2024 08:23:20 +0100 Message-Id: <331f8756483e3f896a3e50e069b3e2c0fae7a8ac.1707463401.git.jan.kiszka@siemens.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790405989470539284 X-GMAIL-MSGID: 1790405989470539284 From: Jan Kiszka Add function and color properties and use the common scheme for the node name. We can't change the user-visible labels, though, due to existing userspace relying on the current format. Signed-off-by: Jan Kiszka --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index bffc9e251289..caaf6862ae1d 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (c) Siemens AG, 2018-2021 + * Copyright (c) Siemens AG, 2018-2024 * * Authors: * Le Jin @@ -9,6 +9,7 @@ * Common bits of the IOT2050 Basic and Advanced variants, PG1 and PG2 */ +#include #include #include @@ -88,28 +89,46 @@ leds { pinctrl-names = "default"; pinctrl-0 = <&leds_pins_default>; - status-led-red { + led-0 { + color = ; + function = LED_FUNCTION_STATUS; + label = "status-led-red"; gpios = <&wkup_gpio0 32 GPIO_ACTIVE_HIGH>; panic-indicator; }; - status-led-green { + led-1 { + color = ; + function = LED_FUNCTION_STATUS; + label = "status-led-green"; gpios = <&wkup_gpio0 24 GPIO_ACTIVE_HIGH>; }; - user-led1-red { + led-2 { + color = ; + function = LED_FUNCTION_INDICATOR; + label = "user-led1-red"; gpios = <&pcal9535_3 14 GPIO_ACTIVE_HIGH>; }; - user-led1-green { + led-3 { + color = ; + function = LED_FUNCTION_INDICATOR; + label = "user-led1-green"; gpios = <&pcal9535_2 15 GPIO_ACTIVE_HIGH>; }; - user-led2-red { + led-4 { + color = ; + function = LED_FUNCTION_INDICATOR; + label = "user-led2-red"; gpios = <&wkup_gpio0 17 GPIO_ACTIVE_HIGH>; }; - user-led2-green { + led-5 { + color = ; + function = LED_FUNCTION_INDICATOR; + label = "user-led2-green"; gpios = <&wkup_gpio0 22 GPIO_ACTIVE_HIGH>; }; };