Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1498546lqb; Sun, 26 May 2024 04:11:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmm6m+W203OCDJ6QA+HFm8OdEUtFmpWpvbOpfl/kvWpHE3JafW/5oCalu8wnUmxISN1OOlIzWPFjWhlubwO031PS6ElYSZLIL/OG55Ww== X-Google-Smtp-Source: AGHT+IEWIVaeMBcg0tEyTywYnwsDKn81gDiVkG5AG+WiqUtr5ivNFFTmEQn9niEnnwyO6WX88Au6 X-Received: by 2002:a17:903:1c5:b0:1f4:6e7b:99ca with SMTP id d9443c01a7336-1f46e7b9cd8mr29639675ad.30.1716721862593; Sun, 26 May 2024 04:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716721862; cv=pass; d=google.com; s=arc-20160816; b=DVuLcuBgB/aKK3ofXgo8o4IGEk2pJlJixnT6c8yaA9p6Iv3w5W+Fe2or0QkupaWlkc H5BGaItKw4FE3LvaKCOjVpIJz5C48ChaT9rjcgnDqkYUV02jG9JIy2fCBOO3H8rgoBHh WOxFQyGVuKSOMu2vhtzq9nhKfxdqKkYWaUnwM9IGfyl1M/cm52u4csY3o7TaDpZuJ0YZ T3T3tFgVgPLZm0oaICipJ4dm5n+QqcZDrpUccvIB7sXtSTk32xldH78mwIFeDq9iIpj1 C/+Xw91XT5V5jfxvOtGoqnKjXUM5RRadPGbozCeVLOHth35jvR85usruX8n7u85uNg9m bS0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=3aXGfsIt9R394loRp+3WF8arPd+Dmc7dX8LDibAPSlU=; fh=Hs+LYS1sNPT9lVNNNXcjX+s+OwZ07Ka2KwCyFZLft3U=; b=f6Dec2hIGOt2fMU8sDItZLL9ZwewYwZJ89e2/VoZ8SIbHUXW6al6AdsQle8RKn8WBP 4taTO7tlinHGBCLX+NTYy1LkZl4/8yiNniYYfe8ScqHZFKxYPzVdwA1L7FZg+9pAiNGg JtlirD+aZzrfazUGSgF2LsKeoo/N7FWC1YUHSLgdIbCG65eHl9v1NCeos0yr+T0yWlUC +BKV0CE/MQ+kWf5GnMRQ2nFfdcHmpGUgv4XhNRgljpSFYvahHDjuvpb6Fch2mcu7qTff l/oKGVKSqUMhissD9DrOMCP+Ycu/S6VStEvJNjAx/JFYvSIkLXa4nX5cLM3pPqcZL0d7 UAxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=eVMliy08; dkim=fail header.i=@paroga.com header.s=easyname header.b=eVMliy08; arc=pass (i=1 spf=pass spfdomain=paroga.com dkim=pass dkdomain=paroga.com dkim=pass dkdomain=paroga.com); spf=pass (google.com: domain of linux-kernel+bounces-189718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189718-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c970480si10184985ad.220.2024.05.26.04.11.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 04:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=eVMliy08; dkim=fail header.i=@paroga.com header.s=easyname header.b=eVMliy08; arc=pass (i=1 spf=pass spfdomain=paroga.com dkim=pass dkdomain=paroga.com dkim=pass dkdomain=paroga.com); spf=pass (google.com: domain of linux-kernel+bounces-189718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189718-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 39A5128071D for ; Sun, 26 May 2024 11:11:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56FFFF9DE; Sun, 26 May 2024 11:10:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b="eVMliy08"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b="eVMliy08" Received: from mx107.easyname.com (mx107.easyname.com [217.74.15.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60BD8D524; Sun, 26 May 2024 11:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.74.15.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721842; cv=none; b=kgH0hRmNFB7OZcVWRn59wfZn1yb/6appc/7y90hyBEi0SY1xTNzpHMvDTvJwEpHW6EPS/Zzazf+qX48TvvCOrywjsJzLf8JXwY7Wdd3PTXrrukdpeRWU7VemXbMlCt8lpb/ulFyv9V6Xth9YUJ1vWppS/Y2cOqfa1ZzMjNOAeB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721842; c=relaxed/simple; bh=FSzONcmAL58vinmBF8IEjcRWq/HhTFkgIH7TtQ8hLHA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F4oJZNSwKLdJFFXJpvmlpnjhUKgaeMLSxPeoGXa4b3hlFaHuaBUKZj2I5sw98C8FsfV4TxUxdtsZk2coWUYzjWA5iWqfW7alVnNWN6xqvSwjDgZmimugxmOIpvnFQnIcfkhCwpy57HPjbwndV0vXKLu9gNpV1+q0BAvq6jOXGHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=paroga.com; spf=pass smtp.mailfrom=paroga.com; dkim=pass (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b=eVMliy08; dkim=pass (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b=eVMliy08; arc=none smtp.client-ip=217.74.15.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=paroga.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paroga.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=paroga.com; s=easyname; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3aXGfsIt9R394loRp+3WF8arPd+Dmc7dX8LDibAPSlU=; b=eVMliy088Ng/ln3LbHY2H9U50a hl5Lt0SocfhopF/klQMQTmR1AXoG6Z826v9P7vDe+wJp2R9VDiMgVAbvgAw0UbL1auFwWSCM+TKJ9 1LLUamA8Shwza+nl7mTMPFFBRC85G/xNsJMy5LzQMWq5WHJc4MD2X53BGmyLoUAWuu69H6ZXArIhD FVA7bmrL7LTAfkY+yPoiDrRw2oFN4nENaRhLfPs9J+j/gfqVi7Rw3ZxkYLa5c6bHzPE5mTBT/5ngA hQei/QBGfP0GOUlbS1GLpHmQfzQlv1QFx1+KldidxXCm7XObs1y5nqbysqYwemKc8P7g1sbLX5LEg RIVrgw0A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=paroga.com; s=easyname; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3aXGfsIt9R394loRp+3WF8arPd+Dmc7dX8LDibAPSlU=; b=eVMliy088Ng/ln3LbHY2H9U50a hl5Lt0SocfhopF/klQMQTmR1AXoG6Z826v9P7vDe+wJp2R9VDiMgVAbvgAw0UbL1auFwWSCM+TKJ9 1LLUamA8Shwza+nl7mTMPFFBRC85G/xNsJMy5LzQMWq5WHJc4MD2X53BGmyLoUAWuu69H6ZXArIhD FVA7bmrL7LTAfkY+yPoiDrRw2oFN4nENaRhLfPs9J+j/gfqVi7Rw3ZxkYLa5c6bHzPE5mTBT/5ngA hQei/QBGfP0GOUlbS1GLpHmQfzQlv1QFx1+KldidxXCm7XObs1y5nqbysqYwemKc8P7g1sbLX5LEg RIVrgw0A==; Received: from 84-115-225-171.cable.dynamic.surfer.at ([84.115.225.171] helo=localhost.localdomain) by mx.easyname.com with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBBTq-00073L-Vj; Sun, 26 May 2024 10:52:03 +0000 From: Patrick Gansterer To: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Patrick Gansterer , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Sam Ravnborg Subject: [PATCH v6 0/2] backlight: Add new lm3509 backlight driver Date: Sun, 26 May 2024 12:51:28 +0200 Message-ID: <20240526105136.721529-1-paroga@paroga.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Easy-Autoreply: EN This is a general driver for LM3509 backlight chip of TI. LM3509 is High Efficiency Boost for White LEDs and/or OLED Displays with Dual Current Sinks. This driver supports OLED/White LED select, brightness control and sub/main control. The datasheet can be found at http://www.ti.com/product/lm3509. --- Changes in v6: Removed unnecessary allOf in device tree binding v5: https://lore.kernel.org/all/20240330145931.729116-1-paroga@paroga.com/ Changes in v5: Renamed lm3509_bl_led_pdata to lm3509_bl_led_data Set backlight_properties.scale to BACKLIGHT_SCALE_NON_LINEAR Add dev_err_probe() for first write to a register Use dev_err_probe() instead of dev_err() v4: https://lore.kernel.org/all/20240310135344.3455294-1-paroga@paroga.com/ Changes in v4: Use backlight_*() to access backlight_device Do not set backlight_properties.power v3: https://lore.kernel.org/all/20240309132521.1290173-1-paroga@paroga.com/ Changes in v3: Improved device tree bindings documentation v2: https://lore.kernel.org/all/20240308215617.1729664-1-paroga@paroga.com/ Changes in v2: Add device tree nodes for each output Addressed multiple smaller review comments v1: https://lore.kernel.org/all/20240302212757.1871164-1-paroga@paroga.com/ Patrick Gansterer (2): dt-bindings: backlight: Add Texas Instruments LM3509 backlight: Add new lm3509 backlight driver .../bindings/leds/backlight/ti,lm3509.yaml | 136 +++++++ drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/lm3509_bl.c | 340 ++++++++++++++++++ 4 files changed, 484 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml create mode 100644 drivers/video/backlight/lm3509_bl.c -- 2.45.1