From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F494CCFA18 for ; Fri, 7 Nov 2025 12:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b50CLoxUTPJikqMkwR4EctlF+HYg9gQqhRHsEB89fGI=; b=zZ/DfUk2SbcxSk2g6cw9TCNS99 76OADDPTxU6M7Br9HCKtqFO+kK4heBBblBvHkBh4fpEna2aBM+VtICBnxl0w1J0ICyNPyeeO0c3EB 26KDEE/CGtM7nqSxsjjQPJxUSk/EdIrKnEIgRVXISzJHyX7Bk04yKsdnh3HEHPdxkkM67EgTJ9DSM U4qSv+wsgh6OQcE1ooHGIX/3I3Vc5aVmMUINa3R+MJM3i7I5yJfSUbrMTq2VHOHdmv2lycPkyr7oc zeJzHOOlGORQKwijqlHvmNDmtutjQwDcwK4jqTUBKANhrEIjma6GoFyxCikx2Bf0RrOJJNB35WUJE fvRATc5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vHLv3-0000000HMUw-2ojg; Fri, 07 Nov 2025 12:50:21 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vHLuw-0000000HMQE-0kgl for linux-arm-kernel@lists.infradead.org; Fri, 07 Nov 2025 12:50:16 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 0DAAF43937; Fri, 7 Nov 2025 12:50:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id BB738C4CEF5; Fri, 7 Nov 2025 12:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762519812; bh=SVdBXpEF1KNfNwK2nhAtCcMZuHOGWV/gg0lw0qdmO5w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Eg95syD9Q/SFbFp+kLe6dcEEpHa4jLufF6QqATOeZKNMi60kd6cbqiMRp1jchlupB pDkox7m6YRMsxq32ulsFNWEI+Vf/8UcBcWXff7Mwk38IqRgQkpxp3f774+u6XVMFk9 jzNZqVDl8S0mokx4ncixAQ1vpnwIVhtPptc599C+kVj7wfalPe9WD+00HaMdky/c8I d+DiF/nGA/Oe7WBBWiixnatKfsEfJfQEM6A87jyrVg/d+JR5mBijemLnSZxLjdi9NM Ko6TAjIogXatL+gU1KXJgIIsYbX8WssSewO5dOD+dbOuFLBA8k4w/8VtROr3XzUmC7 k3Ye8i3zw/pgA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B093ECCF9F8; Fri, 7 Nov 2025 12:50:12 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Fri, 07 Nov 2025 13:49:58 +0100 Subject: [PATCH v5 1/4] dt-bindings: backlight: Add max25014 support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251107-max25014-v5-1-9a6aa57306bf@gocontroll.com> References: <20251107-max25014-v5-0-9a6aa57306bf@gocontroll.com> In-Reply-To: <20251107-max25014-v5-0-9a6aa57306bf@gocontroll.com> To: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Liam Girdwood , Mark Brown Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Maud Spierings X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1762519811; l=3908; i=maudspierings@gocontroll.com; s=20250214; h=from:subject:message-id; bh=yqlsOQ0bzyoHsj2qRJ75h0XSLGQMppxTYnCL1bHyCEQ=; b=DGuC6yQ694ydtHMszFGsmGH7tMYmvr96j6gDz3AJutZi3aJIs23c6A2ZujhuirBLtMI/J5AQJ /l8hpmQFRkWAy0n0XF5YTFgKzIgZIyxfDDG3I79rP8HK/ssm+EFNgji X-Developer-Key: i=maudspierings@gocontroll.com; a=ed25519; pk=7chUb8XpaTQDvWhzTdHC0YPMkTDloELEC7q94tOUyPg= X-Endpoint-Received: by B4 Relay for maudspierings@gocontroll.com/20250214 with auth_id=341 X-Original-From: Maud Spierings X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251107_045014_279573_749DFA8D X-CRM114-Status: GOOD ( 15.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: maudspierings@gocontroll.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maud Spierings The Maxim MAX25014 is a 4-channel automotive grade backlight driver IC with integrated boost controller. Signed-off-by: Maud Spierings --- In the current implementation the control registers for channel 1, control all channels. So only one led subnode with led-sources is supported right now. If at some point the driver functionality is expanded the bindings can be easily extended with it. --- .../bindings/leds/backlight/maxim,max25014.yaml | 107 +++++++++++++++++++++ MAINTAINERS | 5 + 2 files changed, 112 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/maxim,max25014.yaml b/Documentation/devicetree/bindings/leds/backlight/maxim,max25014.yaml new file mode 100644 index 000000000000..e83723224b07 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/maxim,max25014.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/maxim,max25014.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim max25014 backlight controller + +maintainers: + - Maud Spierings + +properties: + compatible: + enum: + - maxim,max25014 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + enable-gpios: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-supply: + description: Regulator which controls the boost converter input rail. + + pwms: + maxItems: 1 + + maxim,iset: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 15 + default: 11 + description: + Value of the ISET field in the ISET register. This controls the current + scale of the outputs, a higher number means more current. + + led@0: + type: object + description: Properties for a string of connected LEDs. + $ref: common.yaml# + + properties: + reg: + const: 0 + + led-sources: + allOf: + - minItems: 1 + maxItems: 4 + items: + minimum: 0 + maximum: 3 + default: [0, 1, 2, 3] + + default-brightness: + minimum: 0 + maximum: 100 + default: 50 + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@6f { + compatible = "maxim,max25014"; + reg = <0x6f>; + #address-cells = <1>; + #size-cells = <0>; + enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio1>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + power-supply = <®_backlight>; + pwms = <&pwm1>; + maxim,iset = <7>; + + led@0 { + reg = <0>; + led-sources = <0 1 2 3>; + default-brightness = <50>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 58c7e3f678d8..606ce086f758 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15261,6 +15261,11 @@ F: Documentation/userspace-api/media/drivers/max2175.rst F: drivers/media/i2c/max2175* F: include/uapi/linux/max2175.h +MAX25014 BACKLIGHT DRIVER +M: Maud Spierings +S: Maintained +F: Documentation/devicetree/bindings/leds/backlight/maxim,max25014.yaml + MAX31335 RTC DRIVER M: Antoniu Miclaus L: linux-rtc@vger.kernel.org -- 2.51.2