Received: by 10.213.65.68 with SMTP id h4csp548129imn; Fri, 30 Mar 2018 10:28:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/dRez+EtkH4rQTSfZs5aZiTQLp/4Vbj+INBaKlhg23GZNo4EVNKreDoUlOLCKxIWj3k9h5 X-Received: by 10.98.144.205 with SMTP id q74mr10439208pfk.55.1522430938063; Fri, 30 Mar 2018 10:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522430938; cv=none; d=google.com; s=arc-20160816; b=cWXsG+XtFOlr0g8jFflqWQThPU4ZCvy9/J1crgt5U0CUO7kvdBqLpuNs8nxt0z6g0L f7vUUnGfqrUhh1lEASELzG6jO9SHiQ5P+569Fsp9QlTcshJWNV/C/rpwUyP9vEZUuhQy h0QZc2FHCtK7wYfP8wbktLCjmKSu0tJgoPG+aqaa1u4IQN0ii/k4grfmvin97nWV3ALt s7WuixNQjjXyGoGRHyzOqSva2UA5okNpujT5iYvD7QdgJTLuUq3k69CryOBcEsUvAxil qx8muY73/kuptb+ctsHJmqw9ssK07DhG6C85GD5MYBYeVkpEQWlHorxLSWmagoq9C66k c5uA== 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 :arc-authentication-results; bh=3r6XnjJD85RcpwwZloCijfcPPa8FTMUALir0++rFs3I=; b=hBOC52BRw4x3I8FxtI8B34LM2KGTOlSZR49hjtsSOoue96+hdGByKsRHNVpIMWV2sZ ZKJgt/lmUUX+1jNvGH9oqiNMYVeO/IFlVdXFF8HhLS1sGcOP9TaxCHKc9/TDI/LjsdHt D3HXVPx/wtdtEFu1ZOKPpoOvQ3BwPbNE99H/wRu4/w9g3ULN17ccUwIrLl/I/v2wD9M8 SdwXXzWa2Re1R7e3uPxkLtgdFn+7yl2aPNFnQBL3wlI0yy1RBHPEGh55N7LM8wypQAkK 4DuqeEe7queZvRIO3W1oDq/N8Slb8PD7KX0rGrtgoKynk/wUthfaA+AnTPQKEiZUwJnh m/qg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si6544254pfh.92.2018.03.30.10.28.44; Fri, 30 Mar 2018 10:28:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752249AbeC3RYW (ORCPT + 99 others); Fri, 30 Mar 2018 13:24:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58870 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbeC3RYU (ORCPT ); Fri, 30 Mar 2018 13:24:20 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 7BCE7260BD3 From: Sebastian Reichel To: Sebastian Reichel , Milo Kim , Lee Jones , Daniel Thompson , Rob Herring , Tony Lindgren Cc: Jingoo Han , Mark Rutland , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Sebastian Reichel Subject: [PATCHv4 00/10] backlight: Add TI LMU backlight driver Date: Fri, 30 Mar 2018 19:24:04 +0200 Message-Id: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This adds backlight support for TI LMU devices. It was tested with an lm3532 on Motorola Droid 4, which uses one channel for display backlight and one channel for keyboard backlight. Changes since PATCHv3: * Complete overhaul to satisfy Rob's remarks regarding to the binding * Implement LED subsystem support for keyboard backlights * Add lots of cleanup patches for the TI LMU MFD driver Changes since PATCHv2: * Drop all binding parts, that were NAK'd by Rob. Changes since PATCHv1: * split dt-binding documentation in its own patch * move include/linux/mfd/ti-lmu-backlight.h to drivers/video/backlight/ti-lmu-backlight-data.h * replace LMU_BL_REG() with a normal struct * add "const" keyword to lots of internal structures * improve error handling * use atomic pwm api -- Sebastian Sebastian Reichel (10): mfd: ti-lmu: constify mfd_cell tables mfd: ti-lmu: switch to gpiod mfd: ti-lmu: use managed resource for everything mfd: ti-lmu: drop of_compatible for backlight driver mfd: ti-lmu: use of_device_get_match_data() helper mfd: ti-lmu: add PWM support mfd: ti-lmu: register one backlight device per channel backlight: add TI LMU backlight driver dt-bindings: mfd: ti-lmu: update for backlight ARM: dts: omap4-droid4: update backlight led-controller Documentation/devicetree/bindings/mfd/ti-lmu.txt | 119 ++-- arch/arm/boot/dts/omap4-droid4-xt894.dts | 20 +- drivers/mfd/ti-lmu.c | 170 +++--- drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 3 + drivers/video/backlight/ti-lmu-backlight-core.c | 666 +++++++++++++++++++++++ drivers/video/backlight/ti-lmu-backlight-data.c | 304 +++++++++++ drivers/video/backlight/ti-lmu-backlight-data.h | 95 ++++ include/linux/mfd/ti-lmu.h | 10 +- 9 files changed, 1257 insertions(+), 137 deletions(-) create mode 100644 drivers/video/backlight/ti-lmu-backlight-core.c create mode 100644 drivers/video/backlight/ti-lmu-backlight-data.c create mode 100644 drivers/video/backlight/ti-lmu-backlight-data.h -- 2.16.2