From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 AC928129E6E; Thu, 4 Sep 2025 20:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757016057; cv=none; b=rodeQrgzgy+0sVwGyC/jmYbBfO87tdAn8tu6qfD1gc1ucD+f72/GEHPcr4IKtiFTCm4Udc7In/6FgYFtWIJXlbqrIOP5uVf9TKmvkR5WEHuYcqpX77+MCATO7xOmvNtLn3/I8MHSBMnKOVM03yOUk3axasgZ4jdczNaeBFmAR44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757016057; c=relaxed/simple; bh=8p5XYh4KqV8QV0FTLXFoBu9+TMWQnlO58Xa9v8IxRos=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z3xbnb3B5KJkIPKLMHAsB1nuyXzfn/gGWqnrHMspbbQ/QEMOdm733O+7sHK5HTEcaBmXO+mNVPiMWFaW8baqrW3gC1JPk/vwNLv4ZK0Wd0vfOuZ4JqUqG6WQ3VvfneuODq1fCg+jjcAYFPc00+Ohb9qA3L/sw3QYoFcKTKp/O78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=dqZDuI2S; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=LmBfcudH; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="dqZDuI2S"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="LmBfcudH" Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4cHr2F4cDhz9spZ; Thu, 4 Sep 2025 22:00:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1757016053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BqZ1XmFUt/xzyYk/wX7NCuk9uo6ckDaycK0e8faI0Ss=; b=dqZDuI2S8GZkr3bl0/3ab2Kpccyr+8/YTndb2WHtDWdw6XoKyYKS4rn9svcCiPLG94edzP 6wyWs/tl+a3CLwDOKtfsJHPXPtlQSiL6IYPkdwWTbKdaEc3WJBrp3vg6r4CxUfwXbtZTp2 SxxZ8Twl4lfgIWfTBEX6E40vvp50u+9e44qrO4rJasw+T5xi6/4HYtffa0vVVUWW99CGiV aRz5tUXO0tZVnKYJKZtEZk/pc7f01nS78cqoQwR7FKnrOOfwcbFQ4kKd/wATPwQMIU3eS7 N5OzmR0kR6VJWD2OSKMi/KQ0H7Avg4Xo5sYgmebvR2QFMC15gyLffBEhIa0TUQ== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1757016051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BqZ1XmFUt/xzyYk/wX7NCuk9uo6ckDaycK0e8faI0Ss=; b=LmBfcudHz5D8daXdqVkUFpNyG+KArCs6QvjYLZE77lezOiTjHTs1oDxnur56NuQPKml3wv 9upjjbVr7nXqJnSBROSGF28wb4K44XQ8ADiqZGvu90u4mn26hK/DG6BVldr3IRUhTTSp7O MjtnhEZ/1oyAsvVWp8ZKcd/H7YBBtuGDLhX/WLYjbHa7nVYH3FrYGvRwUy7sBrBFbRg7FT bPvCYElwdJzfOJqrEJEgTS8NvVhlZ8YlsgeuBXYLlxzOIfSkQ65BVkrX4fDI9lJwvETnMa CxbgI0uLFGPt/tjUwVCRKSLM3s4Gdw1zmxbA3SszZlJ0D8xWiBC2KWMCtqMutw== To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Broadcom internal kernel review list , Conor Dooley , Dave Stevenson , Florian Fainelli , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Rob Herring , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH] regulator: dt-bindings: rpi-panel: Split 7" Raspberry Pi 720x1280 v2 binding Date: Thu, 4 Sep 2025 21:58:26 +0200 Message-ID: <20250904200036.168222-1-marek.vasut+renesas@mailbox.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 2d87d269ba95a788730 X-MBO-RS-META: y5mfi1zxmpkaxpaxjbs8gahu5c69ye1i The 5" and 7" Raspberry Pi 720x1280 Display 2 MCU is a bit more complex than the original Display 1 ATTINY88 and the binding is also a bit more demanding. Split the binding into separate file and fill in required gpio-controller, #gpio-cells and #pwm-cells which must be present for the V2 MCU. Include mention of the 5" panel in the description of Display 2, as the 5" panel uses the same MCU. Fixes: 6d09c6e474bd ("regulator: dt-bindings: rpi-panel: Add regulator for 7" Raspberry Pi 720x1280") Signed-off-by: Marek Vasut --- Cc: Broadcom internal kernel review list Cc: Conor Dooley Cc: Dave Stevenson Cc: Florian Fainelli Cc: Krzysztof Kozlowski Cc: Liam Girdwood Cc: Mark Brown Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org --- ...,7inch-touchscreen-panel-regulator-v2.yaml | 61 +++++++++++++++++++ ...ypi,7inch-touchscreen-panel-regulator.yaml | 7 +-- 2 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml diff --git a/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml b/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml new file mode 100644 index 0000000000000..efc7815a136b4 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RaspberryPi 5" and 7" display V2 MCU-based regulator/backlight controller + +maintainers: + - Marek Vasut + +description: | + The RaspberryPi 5" and 7" display 2 has an MCU-based regulator, PWM + backlight and GPIO controller on the PCB, which is used to turn the + display unit on/off and control the backlight. + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + const: raspberrypi,touchscreen-panel-regulator-v2 + + reg: + maxItems: 1 + + gpio-controller: true + "#gpio-cells": + const: 2 + description: + The first cell is the pin number, and the second cell is used to + specify the gpio polarity (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW). + + "#pwm-cells": + const: 3 + description: See ../../pwm/pwm.yaml for description of the cell formats. + +additionalProperties: false + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + - "#pwm-cells" + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + gpio@45 { + compatible = "raspberrypi,touchscreen-panel-regulator-v2"; + reg = <0x45>; + gpio-controller; + #gpio-cells = <2>; + #pwm-cells = <3>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator.yaml b/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator.yaml index 18944d39d08fc..41678400e63fa 100644 --- a/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/raspberrypi,7inch-touchscreen-panel-regulator.yaml @@ -12,17 +12,14 @@ maintainers: description: | The RaspberryPi 7" display has an ATTINY88-based regulator/backlight controller on the PCB, which is used to turn the display unit on/off - and control the backlight. The V2 supports 5" and 7" panels and also - offers PWM backlight control. + and control the backlight. allOf: - $ref: regulator.yaml# properties: compatible: - enum: - - raspberrypi,7inch-touchscreen-panel-regulator - - raspberrypi,touchscreen-panel-regulator-v2 + const: raspberrypi,7inch-touchscreen-panel-regulator reg: maxItems: 1 -- 2.50.1