Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp504578yba; Wed, 3 Apr 2019 13:06:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv72ZrncFm88hj+S35loE5RgS6qi05UEmEdT3u7toWcanWzJQ2WfAH7kSSRxeW5XJLXx8Z X-Received: by 2002:a63:e051:: with SMTP id n17mr1611103pgj.19.1554322015660; Wed, 03 Apr 2019 13:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554322015; cv=none; d=google.com; s=arc-20160816; b=oHMXu36U1B+5k3oqnJ8cWRFCx0PjDZYRcrp1IS/3DfS3LdlhwTi5E2AuhYJfUz88Al QwDdqDVfDdJHYuCHwVvBu1LVHithhMkRrDoJxRZYpoOraDGqyxwFgfs0laydKBnrwogY CY/vKDXpPkc2EQKSzgJU+7nDfvlupJAPxVNokvs9e4lWveRu19HnylKx2wxSHdQoVl2r 1P961aPjEf63k9HUssQUyL9ne4kM7wKslHBjJRQvCPRG1/SHjc847Kbiy7QQKkz1pxeH hCazFXkrpjWt3Qwr6uqQCuG/VQUEZQm528atRvrRgSib+Z47Ivsqmb5KwnpUD/ggT31k xfJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tSiINHpNTKQ3PRvTWt30C/cCoPZ0aTA6PPeGB79HS/k=; b=Zdb5zfwobaI5gzUWaAJmqV2nV2IuGc9lTNj8pE3rQSaqVTm/qQzxNx4Kar/TB+5TFs 8lcTjYFQYkE51P/Gm7mZ2rFxkQ2cCItXlPJJAO15CK3eD1l1UyUgDm4SRWyk4BPITbrr y73iJRJnSH27auAiIx0OtXYWwiwZXiEoKNMO5ieCs65LKAgFEc6mGAUo/4nswTVtfLbe rwYuYPXkcHPjED5z0xEgYTb6Y/WtZ6E5C0ENOrA8lExv25bMGMuIljbjJeiVD3Ynw0or 6ItsFa5+8mITKsCiMAGOZFopWojMIQPu9SYeTtoKs6n4KqO7w475AXqZd8RcV9fEHQoz Djdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si14905813pgn.272.2019.04.03.13.06.39; Wed, 03 Apr 2019 13:06:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbfDCUGF (ORCPT + 99 others); Wed, 3 Apr 2019 16:06:05 -0400 Received: from muru.com ([72.249.23.125]:44172 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbfDCUGF (ORCPT ); Wed, 3 Apr 2019 16:06:05 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 41585803A; Wed, 3 Apr 2019 20:06:18 +0000 (UTC) Date: Wed, 3 Apr 2019 13:06:00 -0700 From: Tony Lindgren To: Sebastian Reichel Cc: Dan Murphy , robh+dt@kernel.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH 4/4] leds: lm3532: Introduce the lm3532 LED driver Message-ID: <20190403200600.GT49658@atomide.com> References: <20190321142838.22985-1-dmurphy@ti.com> <20190321142838.22985-4-dmurphy@ti.com> <20190322221654.GG19425@atomide.com> <20190325145444.GK19425@atomide.com> <044f67e7-e196-a5b9-728b-a7c5f283f56f@ti.com> <20190328210437.tcojjqynggk72zo2@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190328210437.tcojjqynggk72zo2@earth.universe> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [190329 05:36]: > Hi, > > On Mon, Mar 25, 2019 at 11:01:18AM -0500, Dan Murphy wrote: > > On 3/25/19 9:54 AM, Tony Lindgren wrote: > > > * Dan Murphy [190325 12:36]: > > >> On 3/22/19 5:16 PM, Tony Lindgren wrote: > > >>> I can control the backlight brightness just fine via /sys, and > > >>> backlight shows up as the trigger in /sys/class/leds/lm3532:backlight, > > >>> but /sys/class/backlight is empty and looks like drm can't find it. > > >>> > > >>> Do I need to enable some additional driver(s) to get this to work > > >>> with the drm driver? > > >>> > > >> > > >> Can you dump or point to the defconfig? > > > > > > This is just with the omap2plus_defconfig as in the droid4-pending-v5.0 > > > test branch below [0]. That branch has Sebastian's drm patches. The > > > branch also has the older ti-lmu patches that I reverted for testing > > > before applying your new series and enabling it in .config. > > > > > > The drm driver (drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c) just > > > does: > > > > > > backlight = of_parse_phandle(node, "backlight", 0); > > > ... > > > > > > That should still work the same, right? > > > > Yes it should still work the same. > > I did not change the node name. > > So the DRM driver should find the node. > > This will not work, since the next line tries to get it as a > backlight device, but it's an LED device instead: > > of_find_backlight_by_node(backlight); > > I suppose the backlight device could be instantiated on top > of the LED device somehow. Hmm yeah I thought setting the ledtrig-backlight for it would do the trick. But after thinking about it there might be some backlight lifecycle issues with that where everything would need to be torn down for the panel to change the backlight trigger. I think the panel driver(s) assume the backlight to always be there at probe time. Well this is just based on just guessing.. I might be wrong. I have no issues using of_find_backlight_by_node() like other panels. > (sorry for slow responses; I'm quite busy right now) No problem. Regards, Tony