Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3777434imu; Fri, 30 Nov 2018 06:00:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/USRonu5kLEBRnkfP7zoSCFMHGKAJaRe3rw8uBR+5q6p+9/vXy3eEGo2XyeFJMYwJNKnXLZ X-Received: by 2002:a62:b9a:: with SMTP id 26mr5788740pfl.196.1543586420279; Fri, 30 Nov 2018 06:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543586420; cv=none; d=google.com; s=arc-20160816; b=wNbd7Jn1CIifQY0Ydg9EwrWbVeBl0ZFsW07gVz69c5yfyMfWEsvz1kZ2KyFbmui+qB Ek4w9n8XVKvTNdX7jQ5xxc8ARXlRD/lza00+0IXSGhP05WnRMmHfRYZ1G21JJY5ax4J4 tqqbWAHz1oZqvfu/tKeaVkAtloR6HgGBuHfq+IqhPUsok72lra8DAkMC+pHmq/vUHrHq ObGyMwiHhrTTSsDHJxASl1NQCptCflNfzie44QUneh7/50kAenNQaiqC9dexpNMMXY+T DlLH5PlVzNQf6iV1LJkEegXLbBfuFjbBzhvu06kwloP9AIts8t+uUJCG2tx0gPrRl6RF LNcw== 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:dkim-signature; bh=x0mxNUWzuy8+FPJjgsXbh19fN61P5qm5Xm+2+QdX8no=; b=GkTetUFophiv5JnXMZd4Bb0hHarETyc6AZHy1+uD65G6w2j1rDDL1YqgqKhzcuGXwK 7EyM92yH6HOfvWz+R2h/hSgVRNz7w/vz5eeRAeeBcF0/kR4s0GnKGl8zke3hFGasuMFW yLvSASuKADTg6ry43/SkCrIINADZeojZ2Ooe7z3ze0j/BbWPnCBEdv6s3YrrapmBz4DL PoFpfk0yo/dDmwyNxjizke+0CXUXAMos6IRzlKeuF7xYWBN18r1EfwFow7aJGOYXyZSq rwig/yvyMuWeoQU9W7QJJ3L0lTAnVIpwY4Qb4pqoA0gKwSDxHj6+FfB0wG5ZLlD3AOhi i9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@onstation.org header.s=default header.b=jdnwChF2; 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 m1-v6si5462455plb.303.2018.11.30.06.00.04; Fri, 30 Nov 2018 06:00:20 -0800 (PST) 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; dkim=fail (test mode) header.i=@onstation.org header.s=default header.b=jdnwChF2; 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 S1726645AbeLABIx (ORCPT + 99 others); Fri, 30 Nov 2018 20:08:53 -0500 Received: from onstation.org ([52.200.56.107]:36392 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbeLABIw (ORCPT ); Fri, 30 Nov 2018 20:08:52 -0500 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id C776417A; Fri, 30 Nov 2018 13:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=onstation.org; s=default; t=1543586368; bh=VszxlV3PLbCwlZ94qvm69eC/GenPRr+20OAvuD312nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jdnwChF2f9IsmtNZUCCn5+JI8bgRAP7udBk4DPsvo2fzYUAjrjjkvgLSlahSx/PCe pDeZpcCEdvMmm3/CIDq0kFYVz8tkVsMp0S9hvnpUUthtOeONxxBz2bqmT/VZHZMRP7 7s8BuunyXml3z4POgGN7SQMXyINmDIW6xbFov2GQ= Date: Fri, 30 Nov 2018 08:59:27 -0500 From: Brian Masney To: Daniel Thompson Cc: lee.jones@linaro.org, jingoohan1@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jonathan@marek.ca, ctatlor97@gmail.com Subject: Re: [PATCH 1/2] dt-bindings: trivial: add ti,lm3630a binding Message-ID: <20181130135927.GA27500@basecamp> References: <20181124141703.29232-1-masneyb@onstation.org> <20181127105642.uu56phxjfl7bjl2p@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181127105642.uu56phxjfl7bjl2p@holly.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 10:56:42AM +0000, Daniel Thompson wrote: > On Sat, Nov 24, 2018 at 09:17:02AM -0500, Brian Masney wrote: > > Add a trivial binding for the Texas Instruments LM3630A Backlight Chip. > > It's quite unusual for a backlight device to have a trivial binding. > > The driver supports fairly extensive parametrization via struct > lm3530a_platform_data. It is really the case that none of these > properties should ever be set via DT? Hi Daniel, I initially assumed that we would let user space configure these values once the system has booted, but you are right that these should be available in device tree. The driver has two different LED banks that can be configured independently. How do you feel about having a single property in device tree populate the initial values for both banks? I propose that we could use the property default-brightness-level for leda_init_brt and ledb_init_brt in struct lm3630a_platform_data. The max-brightness property can populate leda_max_brt and ledb_max_brt. I need to look at other bindings this weekend to see if there are any standard properties that I can use for leda_ctrl/ledb_ctrl, pwm_ctrl, and pwm_period. Brian > > > > > Signed-off-by: Brian Masney > > --- > > Documentation/devicetree/bindings/trivial-devices.txt | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt > > index 6ab001fa1ed4..86486368dc35 100644 > > --- a/Documentation/devicetree/bindings/trivial-devices.txt > > +++ b/Documentation/devicetree/bindings/trivial-devices.txt > > @@ -182,6 +182,7 @@ taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface > > ti,ads7828 8-Channels, 12-bit ADC > > ti,ads7830 8-Channels, 8-bit ADC > > ti,amc6821 Temperature Monitoring and Fan Control > > +ti,lm3630a Texas Instruments LM3630A Backlight Chip > > ti,tsc2003 I2C Touch-Screen Controller > > ti,tmp102 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface > > ti,tmp103 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface > > -- > > 2.17.2 > >