Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2049047pxb; Fri, 5 Mar 2021 06:18:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdz3MWL6lvvlEZ48b+sPZzbzGUXT8qBi+i/lCJo5hWJ8+HLa+/wRN+g3WVXLzwUt6yolIl X-Received: by 2002:a50:ef0a:: with SMTP id m10mr9166329eds.261.1614953924433; Fri, 05 Mar 2021 06:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614953924; cv=none; d=google.com; s=arc-20160816; b=HUgzFMtCkP165dQAQngAcmOCn3bYk+pS9VZplOTOUVzGZ8PkN0uGlui+xpheCTZKlB N7t7JdM4G95NHmdoZhb8jAQuI/pCMgVoz9YB+aJ1tpjRP5/GKkCNdnv5Cx5VH6Log5fs a/IVL3fylX63ULoBWJLlKVt6b9I7dXM/9RuKq/LMvKXdgCVkfOyziFRQZWmwHL4NGBeJ Ro02I4vb6eI5Pp549RNZVks40FkI03J5FlutYDeeusnRaTao2BAZ+XJ/scua90WaQG5s 4FbFieDPhGixgOvm5cQnTkqX2q0hSJFIoyjfM1wMt5MWDldYNPOLUhMRokS+S7IRVC55 GyTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:reply-to:dkim-signature; bh=E2t6LCHXtRyLSIpIB7DZsNKCCCDeAEN0NJOVDszAl7k=; b=WbJIgB5QeJyxJQJgVKYu8oPeeJGAcPwa9LpgqvPe9nD5yhMimJ6uDZUAHfOikw2HUE xtYEpb3yKxTdr1+GOyWxuNkfMWwaAL29UYJaImbGvxZhL9UBSDBktd0vcFqEDmDAehLS 20Cipimw5zzckTSSC2JQXaISEuvtvHuKr8zHzXtbYDSikLBtYUyu7eTNfXwUyXXWDaeG RK4qWIWyfTRifc4v8MZDTIWEH7iHYbQNFKMxDlgQiwdOSZrguVOS8RT5BQhj4k6GghNF oRefKLoV3KqKp9gJt+jDDm7fR6bbTHyNATc2eglh1AIT0R0IMU7swHYn2IJhVVqkpdYa nuZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cSxv4MLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si1555325eds.507.2021.03.05.06.18.21; Fri, 05 Mar 2021 06:18:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cSxv4MLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbhCEOPP (ORCPT + 99 others); Fri, 5 Mar 2021 09:15:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbhCEOPM (ORCPT ); Fri, 5 Mar 2021 09:15:12 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 338DCC061574; Fri, 5 Mar 2021 06:15:12 -0800 (PST) Received: from [192.168.0.20] (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 94F8FCC; Fri, 5 Mar 2021 15:15:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614953710; bh=Cbw6099cw1FB1FobLkAEAw3yWtepurQfxncP/jwuB7I=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=cSxv4MLvux3c+IsjnZe5QMAE+kF+28lDaW5MJjRvIoUc0Yw+7PiPhmMI0poF8+Ao8 OwbLoWJeIyLT2C2C73DeAuOWtSQDapLTtsrZ8y4WRYrrh/E7bpzXIOlov3F8UYO/Ui JpJ2VGeArrebF/kvS0KHDE+PMO0Jbrry0+lGKEfE= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH] arm64: dts: renesas: falcon: Add GP LEDs To: Geert Uytterhoeven Cc: Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List References: <20210304165300.295952-1-kieran.bingham+renesas@ideasonboard.com> From: Kieran Bingham Organization: Ideas on Board Message-ID: <17ee8b80-8522-7fb5-508d-6be18dea36d8@ideasonboard.com> Date: Fri, 5 Mar 2021 14:15:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/2021 14:10, Geert Uytterhoeven wrote: > Hi Kieran, > > On Thu, Mar 4, 2021 at 5:53 PM Kieran Bingham > wrote: >> Three general purpose LEDs are provided on the Falcon CPU board. >> >> Connect GP_LED1, GP_LED2, and GP_LED3 to the gpio-leds frameworks. >> These LEDs are arranged in a block of four LEDs on the board itself, but >> the fourth LED is as yet unidentified. >> >> Signed-off-by: Kieran Bingham > > Thanks for your patch! > >> --- a/arch/arm64/boot/dts/renesas/r8a779a0-falcon.dts >> +++ b/arch/arm64/boot/dts/renesas/r8a779a0-falcon.dts > > I believe the LEDs are on the CPU board, so they belong in > r8a779a0-falcon-cpu.dtsi instead? Yes, I hadn't quite grasped the layouts of this new board yet. Sorry - I'll move it. > >> @@ -20,6 +20,20 @@ aliases { >> chosen { >> stdout-path = "serial0:115200n8"; >> }; >> + >> + leds { >> + compatible = "gpio-leds"; >> + >> + led1 { >> + gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; > > Any need for other properties from > Documentation/devicetree/bindings/leds/common.yaml, like > color = ? Oh, I wasn't aware of those. But indeed the LED is green, so it seems appropriate. I'll test it out, and see if I can make it glow red (jokes). > >> + }; >> + led2 { >> + gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; >> + }; >> + led3 { >> + gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>; >> + }; >> + }; >> }; > > Gr{oetje,eeting}s, > > Geert >