Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3242068rdb; Tue, 6 Feb 2024 11:10:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEizlWIMGQSjlIkZ4hzYTN0xB1znHHm8r3qnuzm/mKltfMJ5WBVQSTjXDTjypJ4B7yr/4t/ X-Received: by 2002:a05:6871:1cd:b0:219:3cc3:9572 with SMTP id q13-20020a05687101cd00b002193cc39572mr3844719oad.46.1707246657215; Tue, 06 Feb 2024 11:10:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707246657; cv=pass; d=google.com; s=arc-20160816; b=ofRHfoDfJm74eHa5LhoMHzxmZgMTAshjAD3uIAH9+Q+Jh1dmSioiyOrHuYTp5Fmboy JGyDSQ93XqudyDRpllcvDrhrALZvGphY/tE2Fg/4YTnqOJwLKLQqy9d+CmfkI682iLxq /ZpARUUz1nuIR6uxuPYV+Y2VkM5MS+py1wot7xXRx1/72J3d9/ZCnKIxtWsrVYyMhL4u 2TPebxZo/QOtuBVv+fzxKVoJhoGe3aQVo8F5Bcwyz4+I0DWKn6ee4NemdzqSJK8L5kqb 7I8Fc4IovOeTqXkvX9mwKSaYjElC8QVBRMr0vgFafB8ueaeCTMV6QtDMhAtAnv/X5Wjs /YNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=dkim-signature:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=o6DDRcilCg3I7Q6EoW6q5k4FGWr7L3+KOlmCTdxiqwk=; fh=/IwS0BahuB+T99uClNJC2jI+zzTaLpnmEW9bo5GJ5kU=; b=sMsPKk0Ev+q82odT3s1jq31OBg4BXQdJvmZXACvDnKHISYps9fSGJ0b7vq8GYJKwVx BooZ07qZR2K0476W2PTygqCQ3hUEChbbMUNFHMtvTZZe6bDrbQaXet6xAF5nZGMjdngm 5RpOjrjkiwA67cTcFY4NvycZEavHReEwU3lA+8zxKQYybhf5yw1bVsJoArVAXlPMS/YI +D8brTCiAU1FiQBcm8FvieA/d35bwh5ERd8ZrgPh1dTUswtlbeo6b/F7UBA4UUlvXT5V exKxQaUz6c7dxwZquhArAEJwu/z5zdsoUs/JMFOyZ7AnfGhyjoq6bn9TWC9wOfMKDdqG z1dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=VC0TL22s; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-55534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org X-Forwarded-Encrypted: i=1; AJvYcCVjJwRKkJlLf7OzKtm1ec1pn1NQgSdAo9n5S5AcsR4n7xBxK6OXosZ6EWlhNegWEJQl7sOu9WZGiArzM2cjbomYqds2YUcEsNUKO88Nrw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u20-20020a63f654000000b005ceb19326e3si2118095pgj.251.2024.02.06.11.10.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 11:10:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=VC0TL22s; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-55534-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F66028B2FB for ; Tue, 6 Feb 2024 19:04:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B04E17C8D; Tue, 6 Feb 2024 19:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="VC0TL22s" Received: from a.peacevolution.org (a.peacevolution.org [206.189.193.133]) (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 D31C21B7F0; Tue, 6 Feb 2024 19:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.193.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707246205; cv=none; b=c+L2ucVjrbnqULDOjaga4Ud1HM0EMmGYhTSS+oa6c/B7u8YbZLu7sjVHESaRNOMSjwZjCSJAtUwKw48EGQ3KS/bjGws6lR29QN+TvkJf4vZsv3VsTrRPwLvNl+miwdvjzhR/0ADBqHbyol1NomehYgJoQO9lxNWY8QzfIOYYzNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707246205; c=relaxed/simple; bh=XYDsMDVcsP7odk8FeBn6mlA5XGeXcHZ/KkPG93FWgMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A89iL5JdTdLV5uCrwwkVZw2SX7CFXd0oGyh3Xy7LP2qNORnY2ZKQv09i5mVAfHyG9bSZxyBGjkOH3ElIRo10X977e1tYcaT32B4jQbBnJtu/jSCiuQ1anQ2INzLZpOrg0hQJl2OKz8ZeA+UyA2K8AQoEsM0MS3hI3GOCxj5d1rw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org; spf=pass smtp.mailfrom=peacevolution.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b=VC0TL22s; arc=none smtp.client-ip=206.189.193.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peacevolution.org Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by a.peacevolution.org (Postfix) with ESMTPA id 081F84583E; Tue, 6 Feb 2024 19:03:21 +0000 (UTC) From: Aren Moynihan To: linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, Jean-Jacques Hiblot , Chen-Yu Tsai , Ondrej Jirman , linux-sunxi@lists.linux.dev, Lee Jones , Pavel Machek , linux-arm-kernel@lists.infradead.org, Jernej Skrabec , linux-leds@vger.kernel.org, Conor Dooley , Miles Alan , Samuel Holland , Aren Moynihan Subject: [PATCH v2 3/4] arm64: dts: sun50i-a64-pinephone: add multicolor led node Date: Tue, 6 Feb 2024 13:13:19 -0500 Message-ID: <20240206185400.596979-3-aren@peacevolution.org> In-Reply-To: <20240206185400.596979-1-aren@peacevolution.org> References: <20240206185400.596979-1-aren@peacevolution.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: auth=pass smtp.auth=aren@peacevolution.org smtp.mailfrom=aren@peacevolution.org X-Spam-Level: ** X-Spamd-Bar: ++ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peacevolution.org; s=dkim; t=1707246203; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=o6DDRcilCg3I7Q6EoW6q5k4FGWr7L3+KOlmCTdxiqwk=; b=VC0TL22sbbRARJCon5mZiI14jPEcLoImFrDoq4GBZtIijTpRaGeIu7Rb4q8BT7XvDWYV8C 8VDVgnhntAT0O2UK7pTktC9szWoeqIwBuVGvqm5xc6J6Ik+j4WsX+e5a2mKsacITrRDMJF x+LjefqJqs/zDQmDMA6ZIr9Td8dMLzw= The red, green, and blue leds currently in the device tree represent a single rgb led on the front of the PinePhone. Signed-off-by: Aren Moynihan --- Changes in v2: - remove function property from individual led nodes .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index ad2476ee01e4..e53e0d4579a7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -39,28 +39,32 @@ chosen { leds { compatible = "gpio-leds"; - led-0 { - function = LED_FUNCTION_INDICATOR; + led0: led-0 { color = ; gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ retain-state-suspended; }; - led-1 { - function = LED_FUNCTION_INDICATOR; + led1: led-1 { color = ; gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ retain-state-suspended; }; - led-2 { - function = LED_FUNCTION_INDICATOR; + led2: led-2 { color = ; gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ retain-state-suspended; }; }; + multi-led { + compatible = "leds-group-multicolor"; + color = ; + function = LED_FUNCTION_INDICATOR; + leds = <&led0>, <&led1>, <&led2>; + }; + reg_ps: ps-regulator { compatible = "regulator-fixed"; regulator-name = "ps"; -- 2.43.0