From patchwork Wed Dec 25 11:07:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Guido_G=C3=BCnther?= X-Patchwork-Id: 1215367 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sigxcpu.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47jVgF0Hrsz9sP3 for ; Wed, 25 Dec 2019 22:07:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbfLYLH1 (ORCPT ); Wed, 25 Dec 2019 06:07:27 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:36294 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfLYLH0 (ORCPT ); Wed, 25 Dec 2019 06:07:26 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 8EBCDFB04; Wed, 25 Dec 2019 12:07:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SHGpHxTKvx2y; Wed, 25 Dec 2019 12:07:19 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3D39F40BD8; Wed, 25 Dec 2019 12:07:19 +0100 (CET) From: =?utf-8?q?Guido_G=C3=BCnther?= To: Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Mark Rutland , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] leds: lm3692x: Allow to set ovp and brigthness mode Date: Wed, 25 Dec 2019 12:07:13 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Overvoltage protection and brightness mode are currently hardcoded as 29V and disabled in the driver. Make these configurable via DT. Besides addressing review comments v2 also allows to limit the maximum led current. Changes from v1 - As per review comments by Dan Murphy https://lore.kernel.org/linux-leds/3d66b07d-b4c5-43e6-4378-d63cc84b8d43@ti.com/ - Split commits per propoerty - Add new properties to DT example too - Drop dev_dbg() statements - ovp: fix 21V value parsing - ovp: Set correct default value if DT parsing fails - As per review comments by Pavel Machek https://lore.kernel.org/linux-leds/20191221191515.GF32732@amd/ - Fix defaults (which is 29V) - Use uV as Unit for ovp property - Change property name to 'ti,ovp-microvolt' to make it shorter - Honor led-max-microamp to not exceed the maximum led current To: Jacek Anaszewski ,Pavel Machek ,Dan Murphy ,Rob Herring ,Mark Rutland ,linux-leds@vger.kernel.org,devicetree@vger.kernel.org,linux-kernel@vger.kernel.org Guido Günther (6): dt: bindings: lm3692x: Add ti,ovp-microvolt property leds: lm3692x: Allow to configure over voltage protection dt: bindings: lm3692x: Add ti,brightness-mapping-exponential property leds: lm3692x: Allow to configure brigthness mode dt: bindings: lm3692x: Add led-max-microamp property leds: lm3692x: Make sure we don't exceed the maximum led current .../devicetree/bindings/leds/leds-lm3692x.txt | 11 +++ drivers/leds/leds-lm3692x.c | 67 +++++++++++++++++-- 2 files changed, 72 insertions(+), 6 deletions(-) Acked-by: Pavel Machek Acked-by: Pavel Machek