Received: by 10.223.185.116 with SMTP id b49csp1190102wrg; Wed, 21 Feb 2018 13:49:54 -0800 (PST) X-Google-Smtp-Source: AH8x225/xvmH9KGw8BrVum5rDgopCesDkrQrXxdMfDfHcwHtVe1gwkg97+SY9nURSL0cRQMMcw8+ X-Received: by 10.99.134.65 with SMTP id x62mr3693098pgd.291.1519249794803; Wed, 21 Feb 2018 13:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519249794; cv=none; d=google.com; s=arc-20160816; b=FtdALVL1Tgj2g3HPbheGI/J3BoS00K1My6+ucDxLEbBQFJhr140NkoRQMREtrp5CMs UqYW3IlUS96lJeU1ZAsNuGHuVJ91c1IOhyiiLPUKkOQ31WWlsrEqG2QBPkFHGK1B31GB knpgelyKn1Ymz9NKMsyt0xwDmGXtflHgn6V0Uej108z8CRnj6RIaPwwVAUYxpiFPis/v vmyFbmeoEWRtgpH5HgGs1OzQj0msYd5qpXsopVHMYy7wzMcyxegHRdFKSvfXsU8jwGz3 nMWIZUwbiwl3ev9+ddhSr4bQxgvIP9xAyJTFHfd5TKnaGGbkTEZyHoYraqGfWD4YPwb9 TUbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4KxNjncqs5RclsgWIF1Pd9TJAi8T2VAAhd/kdgyOxus=; b=yJgvC7uFIBYybElBxOQgf4rpdlDoGMWMkliKHFppwyWz50+I36iXo1aGstQTSdeVdW QhW+lq346A1DBoctVdST+enX5sGaJZ+d2Y9wtllVjbY0THumyBXCpv2ZeaMmZMEpBj+q g17G122J7Gh8kC4ybY2UDCyFTSm+fHtrUtrw0XiOsHaXL+n0gDQkNC6PX5fmOSLvELeo r9mVUco3v/LZLWYw2UQzoiv6A1R1EU3P4GA8NYD+WIX608HkQFGyq+H8NImUOKwqv/qX 96P0K4Qre4LJdOhawn83vaSyvcqMEzzSJHh8P1HtnDJRWNRvTI6sNJ0zhoq/nBK5du/b agpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TE4/eUnr; 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 i35-v6si2119949plg.144.2018.02.21.13.49.39; Wed, 21 Feb 2018 13:49:54 -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=@gmail.com header.s=20161025 header.b=TE4/eUnr; 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 S1751351AbeBUVrV (ORCPT + 99 others); Wed, 21 Feb 2018 16:47:21 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50216 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbeBUVrT (ORCPT ); Wed, 21 Feb 2018 16:47:19 -0500 Received: by mail-wm0-f65.google.com with SMTP id k87so168636wmi.0; Wed, 21 Feb 2018 13:47:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=4KxNjncqs5RclsgWIF1Pd9TJAi8T2VAAhd/kdgyOxus=; b=TE4/eUnrBg5azFJ97R7ZHKxR7HnYHqmDR1fw2K9POvlUQgutIJknVZGTWgs90+/Li0 p+dU5cqziX6bJ/vke0LWcfsQdz2xHq/7CwPn2yVHxzRNqTkmWImGH+sBK7dYrBqEKDJq pP46Oid596tcI3sZwvH7p0ezh264skasiuz3LxCq6zk+EZVlnxBRgUTCRsMk6pjrYj8c gy1CVIz2j1tECHvFS2lQBf85wasZ0QRQPJWD6BHpQAiyP6Vy1lziQ56lvXdabVY4k9OY 6wRhfDnGjhMnI82XXJ56gfLMD1bseEgRiTHxeYbnRWgScPevanD8zrbaVCn2kpZORXiX HvCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4KxNjncqs5RclsgWIF1Pd9TJAi8T2VAAhd/kdgyOxus=; b=fKXmIsKlAhZmouA6TsJp+dvbiUp0Vrqa1kAmxUHU5NgaKqHfapkYhlovd5mrqaIY3D 2/KdmrjsI4UJtEnTnqIwpIjM5qI0rijBrDwnCPVi7SKbFZAuSq7epqpdUSDd92DhXUEu sZeijWovQX7AB3JDlRpH20dpSyogLEwN6yFJjsqZfGKn4JCXBEPRMamNK7+v1E0+IXAM E94P7nVRusTWzRgE6AE4T6bLgGowcpzdERPqqNIscC3SorApVWjO84Q6OcR1eITsQk28 4DvenNYY/sfZIy+BplcHtPD3cl12lw3fdY9MIi5d6tW42GPOj5+6KY8Jxm24QyxgeAQy mkVA== X-Gm-Message-State: APf1xPBasyrNr0OkwrADSRZLJwDTPzigKHONPw0rZ+tcq15F273wshzQ AV9t+56HYo+/cBk3xX0kodqZDQ== X-Received: by 10.80.130.36 with SMTP id 33mr6465321edf.272.1519249638242; Wed, 21 Feb 2018 13:47:18 -0800 (PST) Received: from a23nb05.fritz.box (xdsl-31-165-160-174.adslplus.ch. [31.165.160.174]) by smtp.googlemail.com with ESMTPSA id f19sm12626223edd.84.2018.02.21.13.47.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 13:47:17 -0800 (PST) From: Florian Vaussard To: Jacek Anaszewski , Pavel Machek Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Vaussard Subject: [PATCH v4 0/2] leds: Add driver for NCP5623 3-channel I2C LED driver Date: Wed, 21 Feb 2018 22:46:52 +0100 Message-Id: <20180221214654.3306-1-florian.vaussard@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jacek and Pavel, Winter came, then spring, summer and automn went away. Snow came again, and now here is the v4 of the NCP5623 patch... Never too late! This series add a new driver for On Semiconductor NCP5623, a 3-channel I2C LED driver. It is used in our design to drive a RGB LED. The first patch introduces the device tree binding, while the second patch adds the driver itself. Best regards, Florian --- v3 -> v4: - Rebased on Linux 4.15 - Moved ncp5623_of_match[] after probe - Fixed computation of max_brightness - Some more simplifications - Updated copyright and SPDX license v2 -> v3: - Rebased on latest leds/for-next - Minor fixes to the binding documentation - Removed ncp5623_set_pwm() by inlining it directly inside the caller - Removed ncp5623_destroy_devices() as we are already using devm_ flavours - Got rid of the 'active' state variable by using 'led_no' instead - Some other cosmetic fixes v1 -> v2: - Adapted the DT binding (led-max-microamp for each LED node) - Removed underscores from node names in the example - Use brightness_set_blocking to avoid workqueue - Introduced LED_to_CMD macro to avoid switch statement - Various other fixes Florian Vaussard (2): leds: ncp5623: Add device tree binding documentation leds: Add driver for NCP5623 3-channel I2C LED driver .../devicetree/bindings/leds/leds-ncp5623.txt | 60 ++++++ drivers/leds/Kconfig | 11 + drivers/leds/Makefile | 1 + drivers/leds/leds-ncp5623.c | 228 +++++++++++++++++++++ 4 files changed, 300 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-ncp5623.txt create mode 100644 drivers/leds/leds-ncp5623.c -- 2.13.6