Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3798156imu; Fri, 30 Nov 2018 06:15:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/U/x088XDDjEpSXeml8p/V6glWv3dE0XRP1zze1HODUnAvahHeACUAe4tzRw7rwZikbtNqC X-Received: by 2002:a63:e80e:: with SMTP id s14mr4984911pgh.30.1543587307348; Fri, 30 Nov 2018 06:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543587307; cv=none; d=google.com; s=arc-20160816; b=l1s2nHWGZo59bQW+wRvaefYshrxS8w7w3EwLb8pquxP6ImpLGjew3LpuEL1pVJHMMK yQE5xQmdVZDIfZab8dKA+fTsIDL2DHAKJ72rqoSLWdWgFsdcMmYZGzGAiuGiAR64xE6Y A+lXbr/g394m0BoIpB4AINLE4dEOPlgRim9rnIVRJWhUVkq5pAZLZr/sd/TywP7/jGV1 bafvXqoHUBuCGBh+ESnMgW/FuqjfohKHx33ifEpVtGm+Zogpn89sDjNJ380PZZRJ0cpn vz+4gItDyJ/urIrpH437E7zpWAGvItlMF6HWZ8Vzp5RSeK9tQcW+xCPZoeo3BRh5P2ca qHpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WvSinIe5ZWcLOB2fnNVs8jgHQ286i28Hn6pp4Ukwwgo=; b=p3rd1wuI0JcS+H++b1U7sEvsM6ggKp+zef61REgxOVqG1anZ7KJoC/7SLji0E1e4lm mDHoQVXuTRAfMSSgj6MHHcZfDgoPm5yPBYOin13V8zf4KDfjyec1xD/AiBep7UpfG+eR fCKFvfvrqaCPBkkVuJyk8IrgwRtrSgDJ4z25nOb7AI/ASQGS2KKwu3kwcVLiRacLUgYI jeWj93FBTTV771HdAT5YnM+SKfuQOinKcZtW0bs0kZYef1SAgjg0DepScWiwcqgi0m2y vaZCrXYd/E6o1iv+86q21lfq3VXfUpzkB1OiuW+5j3OICnefTjDLOpt5Vc+cAfGGtV6n qfEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nbTuuiTV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si5245602pls.326.2018.11.30.06.14.51; Fri, 30 Nov 2018 06:15:07 -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=pass header.i=@kernel.org header.s=default header.b=nbTuuiTV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbeLABWo (ORCPT + 99 others); Fri, 30 Nov 2018 20:22:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:56418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726932AbeLABWo (ORCPT ); Fri, 30 Nov 2018 20:22:44 -0500 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A6F72147C; Fri, 30 Nov 2018 14:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543587197; bh=WvSinIe5ZWcLOB2fnNVs8jgHQ286i28Hn6pp4Ukwwgo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nbTuuiTVGGWQ1N560yghJgaaUKzJ0ojo38WQcIAJilfsFj3mYsEejf3xiihIi8LQC 6zbwVURGmq6Lr6nZ3MW4F+hnGfc288KNPjxu9mnn2GFSTGr/GIiFBn5MO72cNyxQga TV8mWUvvKMYaKNhtNoLbWWaOQFn+Tnu5dMnc71YA= Received: by mail-qk1-f170.google.com with SMTP id m5so3196990qka.9; Fri, 30 Nov 2018 06:13:17 -0800 (PST) X-Gm-Message-State: AA+aEWbsF/szPhwyNdJc75Er0vftNMSgnRBa/MmBm6BCHQiloKjcTnYu jXu8Ls0DDyEfIZedhOoQ5arfbzV+zQtIEVe4gg== X-Received: by 2002:a37:5686:: with SMTP id k128mr5071276qkb.29.1543587196293; Fri, 30 Nov 2018 06:13:16 -0800 (PST) MIME-Version: 1.0 References: <20181124141703.29232-1-masneyb@onstation.org> <20181127105642.uu56phxjfl7bjl2p@holly.lan> <20181130135927.GA27500@basecamp> In-Reply-To: <20181130135927.GA27500@basecamp> From: Rob Herring Date: Fri, 30 Nov 2018 08:13:04 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: trivial: add ti,lm3630a binding To: Brian Masney Cc: Daniel Thompson , Lee Jones , Jingoo Han , Mark Rutland , Bartlomiej Zolnierkiewicz , dri-devel , linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Jonathan Marek , Craig Tatlor , Dan Murphy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Dan M On Fri, Nov 30, 2018 at 7:59 AM Brian Masney wrote: > > 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. How does this chip relate to ones Dan has been working on? > > > > 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. That is usually represented with child nodes which makes this anything but trivial. Plus, given that we have bindings for LEDs/backlights, no LED/backlight controller is a trivial device. > 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 >