From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from meve.dewith.io (meve.dewith.io [157.90.20.64]) (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 62FC53B0ADC; Wed, 26 Aug 2026 07:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=157.90.20.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787729616; cv=none; b=bDf2EI4FSX3siyR1j6i0ZWMa/dapl/qMSX10ZdjqUKTGtARpqmQieUmwLzbjGiaYaow8cnG7TZnauCI0AZcHa7+MdiQ4jykcg2L37Q9p58594giUSPisoywhBwxKur2xm2ypOh/LfgLG4l8d9Ld/UFRrJK48d8gFUt8h7AqQk3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787729616; c=relaxed/simple; bh=qftSrEfroFp5nluJHtSsmGjCMcHsJSpZDV79+wzd2XU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I/dFDtOtJvlcHqzhMes/gPBxuFlci0fVQ3toOcd+psPOLZBrJ0ylcSVxhhwArj8KDdGEk496aK2dSEf9/6IXED2siJazKt8ZrWSz4O9engELR4AYHha59y3h/TzfTY/ZyNkd94Fgrf+YM3+i0ogq6RRgKEE6W7pJ+yic7rUTqmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=dewith.io; spf=pass smtp.mailfrom=dewith.io; dkim=pass (1024-bit key) header.d=dewith.io header.i=@dewith.io header.b=y2dh/FJl; arc=none smtp.client-ip=157.90.20.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=dewith.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dewith.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=dewith.io header.i=@dewith.io header.b="y2dh/FJl" Received: from localhost (70-26-208-87.ftth.glasoperator.nl [87.208.26.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by meve.dewith.io (Postfix) with ESMTPSA id 7BD5F21A63; Wed, 26 Aug 2026 07:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dewith.io; s=default; t=1787729023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lpvFtfsJlIAI5gfNTYWyYBhU1P8rqGqemnlrcNBN2Dc=; b=y2dh/FJlTX2PyRxMrQWXqW6QauzDqKTxITgdXVmjMQ9lMKwHFBC5gGtYsr/CiddgATTYPO VnVm+wFd+jc4F3wAIszZagJkvUySZ1D1tHQfpQWKnFRggMzhu+KKlat75YRquTpOcva9tM LWTQ1ZbC0rlNpoBM7liaBWvBswTq804= From: Wim de With Date: Wed, 26 Aug 2026 09:23:10 +0200 Subject: [PATCH v4 1/2] dt-bindings: backlight: Add Orient Chip OCP8178 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260826-ocp8178-backlight-v4-1-47d7acce882e@dewith.io> References: <20260826-ocp8178-backlight-v4-0-47d7acce882e@dewith.io> In-Reply-To: <20260826-ocp8178-backlight-v4-0-47d7acce882e@dewith.io> To: Wim de With , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller 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, Krzysztof Kozlowski X-Mailer: b4 0.16.0 X-Spam: Yes Add device tree bindings for the Orient Chip OCP8178 LED backlight driver. Signed-off-by: Wim de With Reviewed-by: Daniel Thompson (RISCstar) Reviewed-by: Krzysztof Kozlowski --- .../bindings/leds/backlight/ocs,ocp8178.yaml | 47 ++++++++++++++++++++++ MAINTAINERS | 5 +++ 2 files changed, 52 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml new file mode 100644 index 0000000000000..1cd95aac0d168 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/ocs,ocp8178.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Orient Chip OCP8178 backlight + +maintainers: + - Wim de With + +description: + The Orient Chip OCP8178 is a white LED backlight driver controlled by a single + GPIO line with a vendor-specific onewire protocol. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: ocs,ocp8178 + + ctrl-gpios: + description: GPIO to use to enable/disable and dim the backlight. + maxItems: 1 + + default-brightness: + maximum: 31 + + max-brightness: + maximum: 31 + +required: + - compatible + - ctrl-gpios + +additionalProperties: false + +examples: + - | + #include + backlight { + compatible = "ocs,ocp8178"; + ctrl-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + default-brightness = <13>; + max-brightness = <31>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index cfee5d47b214d..3ca99d9c32ef1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19678,6 +19678,11 @@ F: drivers/mfd/ocelot* F: drivers/net/dsa/ocelot/ocelot_ext.c F: include/linux/mfd/ocelot.h +OCP8178 BACKLIGHT DRIVER +M: Wim de With +S: Maintained +F: Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml + OCXL (Open Coherent Accelerator Processor Interface OpenCAPI) DRIVER M: Mahesh J Salgaonkar R: Andrew Donnellan -- 2.55.0