From patchwork Wed Jan 3 18:12:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 184814 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5188440dyb; Wed, 3 Jan 2024 10:24:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRfWKDvGEg05CQC+KybMaexq4Lax93371fm9fCeDH1aBgEtVRE0ppNQx8/Se3/3iPulVmm X-Received: by 2002:a05:6a20:840d:b0:196:7ec5:822 with SMTP id c13-20020a056a20840d00b001967ec50822mr3541243pzd.65.1704306283212; Wed, 03 Jan 2024 10:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704306283; cv=none; d=google.com; s=arc-20160816; b=rY6sDH8YYtRr11wf1sF7uR1hGp0523r0iBgcuFW0FcCwvwuDmOzy8rWIz9DbHHi3c1 FdtP/VmVgki5xMEzRPf9XTObl5V6U5qp5yOHzzKCfE2EJv2tx8ykAquYUI7aZp2lgFG9 3/ey83IXov17MaZP5ZRCODFKqkyl0yTAuSvRbh3QF/22xLUaeOMAAzLCRO/kGH32ceAy RD8s0PN55qB+b+LQgmeBrtGOhCEKzk1I+pbjIEZFv2DR39CQfWI0RG7BADrA+lfu8cEA FMqxEdlUYjiSdEcHezXDZ7tippgY/iWTJIQSlH4fIgcbKiC1gJQkGIZIbCfXDxYkQCA9 H13w== ARC-Message-Signature: i=1; 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=lZ1Cv4I82IjrNQxqXJm5ReePt00Huq/NrgvU4k4cYLU=; fh=tfCrjVfEnzKAxfmcuIHCHZZ5o2OoYwF20+LehZ6vA/A=; b=lEf0bzFnAp0+3DGri27jJmEWEd6cHP8GVhBd548L97ckGZ07PpLgp0hfzvapjK1wlP bqO/tRGeNALeEInMm5Gc2w/yOoV1aX+elxk+lPokm4gCwlufPRIAI7prTi39bg7gJYQz jnbkOYdweKv5r56BHrxeBqAHbzuli2l9nOWQ8Ncurjij1RraP2otuAW5Lt65NFN2PPDV ruC/UubgWR//mYZGjSPAEgadK1Kb4CVCJhI/a9SfcH2VqStJcJ40x0j9zCHNkDVyULD3 LUoSNSXZwgMhJE3PK3GdwdeUyMVOkcaetzt89MrUbqV/u8x9OKbIyAoS/k8HJEzYMQxP veuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=lTB6xqf9; spf=pass (google.com: domain of linux-kernel+bounces-15856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15856-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j3-20020a63ec03000000b005cdfa599535si20052275pgh.387.2024.01.03.10.24.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 10:24:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15856-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=lTB6xqf9; spf=pass (google.com: domain of linux-kernel+bounces-15856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15856-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 00D22285D77 for ; Wed, 3 Jan 2024 18:24:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B682E1DA38; Wed, 3 Jan 2024 18:22:44 +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="lTB6xqf9" X-Original-To: linux-kernel@vger.kernel.org Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) (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 7A28E1C6BD for ; Wed, 3 Jan 2024 18:22:39 +0000 (UTC) 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-226.siemens.flowmailer.net with ESMTPSA id 20240103181227ed3c3e29cfde8bd91e for ; Wed, 03 Jan 2024 19:12:28 +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=lZ1Cv4I82IjrNQxqXJm5ReePt00Huq/NrgvU4k4cYLU=; b=lTB6xqf9ux7jIdMRft8n4BODLmcyq4LxIy0lyYXfIQEb8VVPX8UDkeRzxW+pEZvuEaiTNs gdptJ+A/ZPYodq3QrcnTDImj/Kjktwwe73KavKZnZJ9uxAFiheZwotG6hxPMmTqTdUZ5Yhr9 mcErT3EVi3gvSzBUa07sj+e2xRutU=; 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 v2 6/7] arm64: dts: ti: iot2050: Annotate LED nodes Date: Wed, 3 Jan 2024 19:12:23 +0100 Message-Id: <7161f18b049e57c36b21cbe0e0caf046bf6b318e.1704305544.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: 1787094665521969436 X-GMAIL-MSGID: 1787094665521969436 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 | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 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 3ecdd63760e5..46de685cd0f2 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -10,6 +10,7 @@ */ #include "k3-am654.dtsi" +#include #include #include @@ -83,28 +84,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>; }; };