Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp567427lqb; Sat, 16 Mar 2024 17:42:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUijTn5Kqcq+JBohMs+bw6MR+aUxFn7KQUJfI4R2KGof51wwDcCy9rRUmrk3WMSR1sXqHGC/IhuvAYMabNSVLqhnhj8u68zW37wfnEoLw== X-Google-Smtp-Source: AGHT+IF3eucJHC6uYlE9e9z7YPb6VWZ7mpXVUxsePO4/nDUzF/onVX2jZsqnVfvouztvTNqj3x3J X-Received: by 2002:a05:6808:1245:b0:3c1:e0b5:d16f with SMTP id o5-20020a056808124500b003c1e0b5d16fmr7984829oiv.57.1710636131613; Sat, 16 Mar 2024 17:42:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710636131; cv=pass; d=google.com; s=arc-20160816; b=WwK9YSs/0V68rweDRH+gVw7ZL/9fXWwS6OJUCFIJzEAGQEB0fDjrduTI6I0xYuea3U kYafIaVZDcBSDX5YIF1RfCkyqJWW3LiW4CP/LBw9lg4erUb0AgaQzYWf0gQ6T2KpWC4Z v7HMFHVJ5vNOuRLl7niOUgbY13AcfhIkd+QASgRYKdAlcGAIjrgDrQ96xukmTPSR0A0w +I2OITUXJjzJJ4mzXn+tf1KOirkY1Arwe3X7SJXMRZJIWtuuopUAFnJ8cE5r4r9sr0bt Wyeu26pmcbxYhd5qj2o5dCpmUeSSD/r45y1g+G0/1QmL9N5gethm8QfguUX3aRiTbIHW w0Xg== 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=xSOAE2dp6I0YHMlx6m2sMD8XK0nU8r7fXdBHcrqXIZg=; fh=pznqcmFl24SDFa6CXvOxmy87eOxzl3Y7nqGlL/Ye904=; b=S1Cj6ppyt8/jC+txJWSQrVZoSoyueBSpEMvTQBSVLGGNUQbMI/UDoDZFSUXuD5afjN rqLlufaNUdG0AaWwgvJreiiWKvgFWW8QBona9jxDWvHQ5kDKM8sIJtf2h/pzAC6xHp4f /yfqwuZoplOsesOSUU1mjESz1l1R3JxS1SqRIGakri/BUc+ft+g5UrJEXB5mB0tWao60 y8L24shDQoV6sL5q6PHIFzaEdKJt8nLvgOdLA3Wu+VKkieQsYA64ygq6GKM8cBR/psGt VGpguQ2ZZBUIeaeKtzw1JAFmS0SWkMrCdsjn47lDznMKazAngcyjQJuUuxmj8KNJzalq jotw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=U1SmSei6; 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-105313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.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 f18-20020ac859d2000000b00430b75a6a49si3327262qtf.196.2024.03.16.17.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 17:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105313-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=@peacevolution.org header.s=dkim header.b=U1SmSei6; 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-105313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105313-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C1C71C21222 for ; Sun, 17 Mar 2024 00:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44FDE4C84; Sun, 17 Mar 2024 00:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="U1SmSei6" 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 ED84B17EF; Sun, 17 Mar 2024 00:41:51 +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=1710636113; cv=none; b=o91wK5Gnh7vcZfNTrWX389bN8lmcbnGlrE4grNywsULbxN85s+b65WBEfdzjanRHuGwnww7eTOqdl5LccC1Y5CrE1Zn/2Kki4DnfvWA1qmSwwQTyzfLg4oihzQXSBQ2NCoiL0uoWEcktqXfalllnzb94r8e+NZLzBnXh1EPr7P8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710636113; c=relaxed/simple; bh=1Av75hBK2ZjiFCe76QxBieMidcj3kvppPBy6JGiyhZA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W+mBmfSneaPsmszZOOwtDfzd9WrN8FfwGeHV+weu42R6YNEwNKLu9TJTfVbRJGOJl0DdNx/hWQwVkXqWqZi5RtF2cABi4xGpqojEzkyJVTrRAbmlW1QfI8ZJ2BjJSqZjjYHig9SpuCqWqIKY/sMNWqq8s1P6xzPDRlfR40cLGP4= 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=U1SmSei6; 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 1B236476D2; Sun, 17 Mar 2024 00:41:50 +0000 (UTC) From: Aren Moynihan To: linux-kernel@vger.kernel.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Pavel Machek , devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Miles Alan , Samuel Holland , linux-arm-kernel@lists.infradead.org, Ondrej Jirman , Aren Moynihan Subject: [PATCH v3 2/2] arm64: dts: allwinner: pinephone: add multicolor LED node Date: Sat, 16 Mar 2024 20:39:29 -0400 Message-ID: <20240317004116.1473967-2-aren@peacevolution.org> In-Reply-To: <20240317004116.1473967-1-aren@peacevolution.org> References: <20240317004116.1473967-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=1710636110; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=xSOAE2dp6I0YHMlx6m2sMD8XK0nU8r7fXdBHcrqXIZg=; b=U1SmSei6V/eleikJbTa48p9hT9eUF/zGGwo+Nx07oMdsUjkVsF70VRl5zN9TpJgxxRh/lR QyMf9fmyxC5ywlw2CwTUY/1o2+MlfJS0zKDlYspqNiDVfg+MPlqprjs9EaLtqn78cNGBAV 13g2uP6W0FzatNR/y7IEgQM/DkjGASg= 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 v3: - add function property back to individual LED nodes to minimize breaking changes Changes in v2: - remove function property from individual LED nodes .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 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..6eab61a12cd8 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -39,21 +39,21 @@ chosen { leds { compatible = "gpio-leds"; - led-0 { + led0: led-0 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ retain-state-suspended; }; - led-1 { + led1: led-1 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ retain-state-suspended; }; - led-2 { + led2: led-2 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ @@ -61,6 +61,13 @@ led-2 { }; }; + 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.44.0