Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8635861ybl; Wed, 25 Dec 2019 03:09:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxkhdZpO/K61GnIOWSqIUHHUP85yub3bobDq3t01f4pMgQLq3zaKzvRZelhvOKdt28cqPGb X-Received: by 2002:a9d:6005:: with SMTP id h5mr45969537otj.153.1577272165079; Wed, 25 Dec 2019 03:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577272165; cv=none; d=google.com; s=arc-20160816; b=MR/ED5wYfsp+5sOy1DCfgcYgKp4xUQVe9AC2mwyt9zX9B4F5unADOMU7wBfeJJdA3f B2rYkqJPtmyXIKYj1bc5iq+pPUKhX2KD2vDH7R7y6ETULc59/P3r1pMA5k0E9aQu6gbY XxxETaQeUQ6uKyHpiNp0kW5IzpRIBtYxuFr3J0U6bvQS4xfbOMTxJvY3AU2z1sGWJIir OMhHVLZGMVbs6c6eDY/fGGPqj49xCalGgmg6a09kL7lxtXrBPnR6SMlvq1A9APLfrQge HGYhtp89Rnyi4oRUOXld/Uutjo5h7ANZy1d8KSvg1c9dPhm/ejFu+wHc8uKk74hGHozJ A9Mw== 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:mime-version :message-id:date:subject:to:from; bh=neyOW1mdSisLnUGk+jWnUQWX6TpbjnWAXNsSA7GB5E4=; b=gcuawvOijNb4JP+/ZxWIUDIi2j4LgiW6H0NfhMVumUGtLjXkGi2F5JaDF65qpUq/7F 0NOX3Ns3piQyHKTtrwRP6KlLBbnbfqqYOmKhJaMv9J349UNM9Gd1r6mt016IWMBPuIgo WM2GEgpRVjDBQC1D0QoBoXK3cFrs80Pe5Pdi3tJ9lTMvqOJK0yj+iX72+qZ6xupDa9vA UYZaa5ABWRYPdYHsJFlv/OZlKxhjFYDXs5Qdi7/1vtXdRxFMn6uXJuiCniq4raJwiIC6 cbASS8RD5pSkpidX38yUHIkOWGE9qYif+g0/fH+gW5rbIrRHHVDefS5QhRZ5dK1CNSaF t0Ag== 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 w1si11790914oia.169.2019.12.25.03.09.13; Wed, 25 Dec 2019 03:09:25 -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; 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 S1726866AbfLYLH1 (ORCPT + 99 others); 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=20G=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.23.0