Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp184702pxb; Mon, 25 Apr 2022 08:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXzTsSPXzX8uXKjAGM9t3VZyZr13ustYhBegRgHcLEU/rZnpHU/UDjSX76dVLY7IB+FgRh X-Received: by 2002:a63:6b08:0:b0:3aa:de0a:abfd with SMTP id g8-20020a636b08000000b003aade0aabfdmr11842380pgc.353.1650899317814; Mon, 25 Apr 2022 08:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650899317; cv=none; d=google.com; s=arc-20160816; b=fk9K+jLWgVwYuJ9DXq5dYnn9DPDt4Nzw0BNo6trNXmvB0nouqF8JHReyIQcUGqO/kO GfESXZ7N5rT2ZCnHXPZXeaNVEg1Lk8g/hGgW2mueEnY7lIv3mieJcptjR8bjuxM6DRgA kayrrJ3lIk2VtPKIadVIi9tMc9BMUiRzlv8fPqvw1xK2n/ZQ4TLlqQFoZr/YNlzDi+9p EH+1+P8Hf6tBMegCha3EaVldVhfW2zbGyQQIFDg0PbKg6xIGNpnMw7TgVqU169U3uHuI lSwaBQ9qh8F6ajZLNXYqlY63bx4L/QiQ/7X7dclmkDDbqA5SxGlX2uf8UkmpYcJETlNA MO2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date; bh=PbY5WisRps+aYCzPHope1jH1BMx8j6vAx32IC2jOd0o=; b=Tmz7DalPXoL/B4aSRYGZaKjeZJICfcg1o1dvaMBECH+cFSTYjJ8mh8yvrsBdjJ8c0l eydZhi8sFTSuhA171PuAk8aZwATzt6+/EcHo1TWNS5nd0/KeH+0kMbV6tyzrUBsp6V8s e/I4fZ6NXOxhAIiFju/JLFevQoibq8+imTe4K6tpIjxSwBW457+DES4pJgi5DbLgo+kj mKuP52SJB949Y3Fv1WatL8cLPmnuLsm0/lBpSvIWgaJVWonR5CrCu7fpufLQLzfRwGJh +DwpHNqIPILl988AwGfamHTnCG0oU2aEixWSQob7q0HdQeU3FbkwbIMyEGcolLKyhBh0 QExA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s37-20020a635265000000b003aa1ecf8d44si7425923pgl.123.2022.04.25.08.08.19; Mon, 25 Apr 2022 08:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241203AbiDYFSY (ORCPT + 99 others); Mon, 25 Apr 2022 01:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237644AbiDYFSW (ORCPT ); Mon, 25 Apr 2022 01:18:22 -0400 Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C2681B7; Sun, 24 Apr 2022 22:15:17 -0700 (PDT) Date: Mon, 25 Apr 2022 07:15:03 +0200 From: Alexander Dahl To: Aparna M Cc: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, praneeth@ti.com, grygorii.strashko@ti.com, nikhil.nd@ti.com, linux-leds@vger.kernel.org Subject: Re: [PATCH RESEND] arm64: dts: ti: k3-am642-sk: Add DT entry for onboard LEDs Message-ID: Mail-Followup-To: Aparna M , nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, praneeth@ti.com, grygorii.strashko@ti.com, nikhil.nd@ti.com, linux-leds@vger.kernel.org References: <20220420072952.3509-1-a-m1@ti.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420072952.3509-1-a-m1@ti.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Am Wed, Apr 20, 2022 at 12:59:52PM +0530 schrieb Aparna M: > AM642 SK has 8 leds connected to tpic2810 onboard. Add support for these > gpio leds. > > Signed-off-by: Aparna M > --- > > This patch is dependent on: > https://lore.kernel.org/all/20220223174215.17838-1-a-m1@ti.com/ > > RESEND patch has been rebased on top of v5.18-rc2. > > arch/arm64/boot/dts/ti/k3-am642-sk.dts | 70 ++++++++++++++++++++++++++ > 1 file changed, 70 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > index 1d7db8bf3a5c..c5979d03c287 100644 > --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > #include > #include "k3-am642.dtsi" > > @@ -125,6 +126,67 @@ > vin-supply = <&vcc_3v3_sys>; > gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; > }; > + > + leds { According to Documentation/devicetree/bindings/leds/common.yaml this should read 'led-controller'. > + compatible = "gpio-leds"; > + > + led-0 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <1>; > + gpios = <&exp2 0 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-1 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <2>; > + gpios = <&exp2 1 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-2 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <3>; > + gpios = <&exp2 2 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-3 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <4>; > + gpios = <&exp2 3 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-4 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <5>; > + gpios = <&exp2 4 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-5 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <6>; > + gpios = <&exp2 5 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-6 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <7>; > + gpios = <&exp2 6 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + led-7 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <8>; > + linux,default-trigger = "heartbeat"; > + gpios = <&exp2 7 GPIO_ACTIVE_HIGH>; > + }; This might also be LED_FUNCTION_HEARTBEAT, but it's probably up to author's personal preferences? I added the linux-leds list to Cc. Greets Alex > + }; > }; > > &main_pmx0 { > @@ -274,6 +336,14 @@ > "VPP_LDO_EN", "RPI_PS_3V3_En", > "RPI_PS_5V0_En", "RPI_HAT_DETECT"; > }; > + > + exp2: gpio@60 { > + compatible = "ti,tpic2810"; > + reg = <0x60>; > + gpio-controller; > + #gpio-cells = <2>; > + gpio-line-names = "LED1","LED2","LED3","LED4","LED5","LED6","LED7","LED8"; > + }; > }; > > &main_i2c3 { > -- > 2.17.1 >