Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1284489imm; Wed, 8 Aug 2018 14:10:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzrgkI9XeeJ62RFHN4tiGx1al6OzK15QKNiKdqdaepH2d7Ref9+CuXCG30MpXQ0Ye6QkIw3 X-Received: by 2002:a62:411a:: with SMTP id o26-v6mr4550641pfa.111.1533762655630; Wed, 08 Aug 2018 14:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533762655; cv=none; d=google.com; s=arc-20160816; b=0/kwmMXHUxMBD2+Jr/VZIwRTu8lRDHwzfspMOyJyoUU2pjfDWJ2ZbEhOmIOdp8FCGM O1n4+wUTXt/h9jgbI8zHgEhLC9VgBPPhYcVp04oolkm6ue0A44JZ1vF34Icux/hN4qah 9EMfXDsP8jOmFRIpSy7ZTrUiIB4tuEsUI5PLfbV6SW5gDU+YLF+1mx3G4zCQcpE1XXjG JShbdLideq+vJ4gwT/Bw78mvt5hqdtDjTQpYV+uya2is3E8OqrwU6wocxVnll/8BlbKo PoJ31opZy95peAdt3luzjaHY693B8CVD44yW7e+oh1A/baz/62JgtKDCIiWmPcIfGpcw 7iRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=4M0pIp7E92ruaZ1FPWIfPA/FaSMFGNaouifdcVzT0zc=; b=EsnY7Y62Sv1gfV8Yh6GxgiSr4Xg+s5fZroBI7INovUQYs9WWzFgdIb/uoD7OuUO+xH cfw6oHdKKgE0ifb7WLa17KhM0p6o7oHCa6z1pu5fxBC6s7K13oQppMN0TdcKSN7fmAd9 jGGx5FLd0EtFNn3Af2n4POVLNdyMsl6pdHNEOMApbWsQnN6AYdgRF4IJN3HIUg0p8rLs NR7NeMjYtRa0Z2vk3JIuvx38doI0WNT7UZQM9+EWCdfnPcSQHHY8qk5MVTr6VL3un5RR UK4ilSBj6wiHA0OK1lOxrTIekbmulWzFYLXuRoGM16YlV8O578vt/7nzDcrzxqF38y2d G23g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uAGm8S++; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c62-v6si5427308pfb.98.2018.08.08.14.10.40; Wed, 08 Aug 2018 14:10: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uAGm8S++; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731621AbeHHXbU (ORCPT + 99 others); Wed, 8 Aug 2018 19:31:20 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40268 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731180AbeHHXbU (ORCPT ); Wed, 8 Aug 2018 19:31:20 -0400 Received: by mail-wr1-f66.google.com with SMTP id h15-v6so3213754wrs.7; Wed, 08 Aug 2018 14:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4M0pIp7E92ruaZ1FPWIfPA/FaSMFGNaouifdcVzT0zc=; b=uAGm8S++HlhZ6oCb1gJJya5s3ro9ainrKzv5o03anmw88dcFfuhPs66UxEfYh81meG XI54NLeSx3lPReEMK7QGdnMlySZtqsVy8wSVVM0fXBRFDNiODkcsMr1YNDF3ql08RZht 8LBBk6PWIZPsY2y/KfujrfawX7o0GN3VRw9+N6wVv6Xh8KxvlMwhchNI9ODi7ksEZ8lV Y6mM3k59wEgEZ+sv/FYK65xD7BMmYuLClphvHTdvYe0fVim485b2I6GizeqLy1gg8WKJ NW9tS3bo/yNqfZRkmnfHxyvUdIm7hUKkUrbnoiu3IUB+LdvCJdWpBcUXh8Z0zg/UBY0+ w8NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4M0pIp7E92ruaZ1FPWIfPA/FaSMFGNaouifdcVzT0zc=; b=XzcfWbHqPEBy+QDdEk3BpZAv4BrBhFBql+q/e9KqRvZgeiPMPiMSSVCgzcpZksY9ey oyKfsKL1vDLJaJmm+E1vpITTkheQ2T4PqLdmHcaqRZYi+6IPWqWFDgRAU3ZrZiXUlveE +NomIp8rgg+SDZjAfzSLz25p/5GFb8btjlGzQH0ZNh05VLHvEPU3Znq04eV2H/TYBqSI UQljNwIGITU8SUCDjc91ixMi4Ytz4PGflcm0xILDrLCwbQEroDpzCGMfP0b07IwRwxa3 nHkZ8gxXs09cyFnwQNYXy9orL1vqAoUrmJK/dEjok8Ym8VcxcPXlMr2FHWhQieecMd4f cdHw== X-Gm-Message-State: AOUpUlFs0z17s1reVd83khZoW50gCmucudkRRi5FvHBFMMePdJi1g1ez MHoDz2RoflXfAOd1KHbGf7AjkPPI X-Received: by 2002:adf:d1cf:: with SMTP id m15-v6mr3144173wri.138.1533762591932; Wed, 08 Aug 2018 14:09:51 -0700 (PDT) Received: from [192.168.1.18] (chs174.neoplus.adsl.tpnet.pl. [83.31.16.174]) by smtp.gmail.com with ESMTPSA id w4-v6sm3746938wrt.40.2018.08.08.14.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 14:09:51 -0700 (PDT) Subject: Re: [PATCH v2 1/2] dt: bindings: lm3697: Add bindings for lm3697 driver To: Dan Murphy , Pavel Machek Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org References: <20180807160442.8937-1-dmurphy@ti.com> <20180808195903.GB20912@amd> <20180808210215.GA15831@amd> From: Jacek Anaszewski Message-ID: <53691469-4554-42a8-c182-762c1a3939b7@gmail.com> Date: Wed, 8 Aug 2018 23:09:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On 08/08/2018 11:04 PM, Dan Murphy wrote: > On 08/08/2018 04:02 PM, Pavel Machek wrote: >> Hi! >> >>>>> + - #size-cells : 0 >>>>> + - control-bank-cfg - : Indicates which sink is connected to which control bank >>>>> + 0 - All HVLED outputs are controlled by bank A >>>>> + 1 - HVLED1 is controlled bank B, HVLED2/3 are controlled by bank A >>>>> + 2 - HVLED2 is controlled bank B, HVLED1/3 are controlled by bank A >>>>> + 3 - HVLED1/2 are controlled by bank B, HVLED3 is controlled by bank A >>>>> + 4 - HVLED3 is controlled by bank B, HVLED1/2 are controlled by bank A >>>>> + 5 - HVLED1/3 is controlled by bank B, HVLED2 is controlled by bank A >>>>> + 6 - (default) HVLED1 is controlled by bank A, HVLED2/3 are controlled by bank B >>>>> + 7 - All HVLED outputs are controlled by bank B >>>> >>>> This is quite long way to describe a bitmask, no? Could we make >>>> it so that control-bank-cfg is not needed? >>> >>> The problem we have here is there is a potential to control >>> 3 different LED string but only 2 sinks. So control bank A can control 2 LED strings and control >>> bank b can control 1 LED string. >>> >> >> Can we forget about the LED strings, and just expose the sinks as >> Linux LED devices? > > 2 sinks 3 LED strings. How do you know which LED string is which and what bank it belongs > to when setting the brightness. Each Bank has a separate register for brightness control. Just a blind shot, without going into details - could you please check if led-sources property documented in the common LED bindings couldn't help here? -- Best regards, Jacek Anaszewski