From nobody Tue Dec 16 05:41:02 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3476C20A5D2; Tue, 14 Jan 2025 21:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736890739; cv=none; b=lRQl9LeIiX3057EFBAGu10a3Oxbj3DWRbC5uqC/qWsWr804Wlv9tNKpdg0RAP/AHYko1TxtKcO63k3gtd6m46BN521l1MsH6g90DKR4pSHhHwbSVRh4fwJDGowEX5TKl1Ou14EE5IZ6Yd9ab8n59Sl8vMOlyiWdSrPZJvFSrbCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736890739; c=relaxed/simple; bh=FqqtuHZ2xVpq81aHXkj01ME5McvceHelIy459BBbk2Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sTBt5IBD8YGjrvNLpLXOfLUk2btDxDmoMmlkiX70hYre8oMeO7d8+dpUQObZp0NyX1jUDypnSPvulMbh6sHhPvEDChlm1VlI8BHzKvH4vLk0b0+qa+KmCynepDoktqXz+wM2mgPnkGqMFsu4nJAnptDmQUGOdp8JTRBbg4i7lWE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kpIlewjO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kpIlewjO" Received: by smtp.kernel.org (Postfix) with ESMTPS id CBBB4C4CEE0; Tue, 14 Jan 2025 21:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736890738; bh=FqqtuHZ2xVpq81aHXkj01ME5McvceHelIy459BBbk2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kpIlewjODP2b+bu5o8Of38Osa+5QiLTa/XTiSD3LYa1nxbaGr51HiFUCxwm7mBtis riWip8fozkEaKQ+i8Bu0RBWIPR2NUhz/10q9PZgcYn0uZTr9xuwI48xR0k9EzSptEa QfCHUJpTDtukQHY9UdhKs9egB7pTI4c3HluS64jh4v0hoGWAbEuu4FbUksloP8VYok 3G4CQ0cGC2jkfD0aq06PbdyFwtp8TCcN2ONbi+p3cPFpj33xbbldGwgIMUnAHh3icz keNTwJNQ8fLH5/dAze1rEEc+045uMzaoZcm3TKLK5IHCaKqDwQOVpZvZIZvV2AUdFw prSTtrvMe7mDg== 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 BA3DEC02185; Tue, 14 Jan 2025 21:38:58 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Tue, 14 Jan 2025 22:38:52 +0100 Subject: [PATCH v4 1/5] dt-bindings: display: Add Apple pre-DCP display controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250114-adpdrm-v4-1-e9b5260a39f1@gmail.com> References: <20250114-adpdrm-v4-0-e9b5260a39f1@gmail.com> In-Reply-To: <20250114-adpdrm-v4-0-e9b5260a39f1@gmail.com> To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jessica Zhang , asahi@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alyssa Ross , Sasha Finkelstein X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736890736; l=7241; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=+zXbhZGcaNGoRP+96oERb98U1ZjM+cx6jbgYsDm87Qc=; b=NugG+sm4vlbYEbeP7khDpYjOxGVELtAWLvnq09DHWSXxJgcnu2Bw90xLMsHjpKH6XJI0Drkqy 0qo9wr4q42GBsqOqKE1HuYEYc7BnbHZ/po/R2wvTGqjwFeL5F6WTgID X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20241124 with auth_id=283 X-Original-From: Sasha Finkelstein Reply-To: fnkl.kernel@gmail.com From: Sasha Finkelstein Add bindings for a secondary display controller present on certain Apple laptops. Signed-off-by: Sasha Finkelstein Reviewed-by: Krzysztof Kozlowski --- .../display/apple,h7-display-pipe-mipi.yaml | 83 ++++++++++++++++++= ++ .../bindings/display/apple,h7-display-pipe.yaml | 88 ++++++++++++++++++= ++++ .../bindings/display/panel/apple,summit.yaml | 58 ++++++++++++++ 3 files changed, 229 insertions(+) diff --git a/Documentation/devicetree/bindings/display/apple,h7-display-pip= e-mipi.yaml b/Documentation/devicetree/bindings/display/apple,h7-display-pi= pe-mipi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5e6da66499a508c001670f68fa0= 0d6bab13591d6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/apple,h7-display-pipe-mipi.= yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/apple,h7-display-pipe-mipi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple pre-DCP display controller MIPI interface + +maintainers: + - Sasha Finkelstein + +description: + The MIPI controller part of the pre-DCP Apple display controller + +allOf: + - $ref: dsi-controller.yaml# + +properties: + compatible: + items: + - enum: + - apple,t8112-display-pipe-mipi + - apple,t8103-display-pipe-mipi + - const: apple,h7-display-pipe-mipi + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input port. Always connected to the primary controller + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output MIPI DSI port to the panel + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - ports + +unevaluatedProperties: false + +examples: + - | + dsi@28200000 { + compatible =3D "apple,t8103-display-pipe-mipi", "apple,h7-display-= pipe-mipi"; + reg =3D <0x28200000 0xc000>; + power-domains =3D <&ps_dispdfr_mipi>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + dfr_adp_out_mipi: endpoint { + remote-endpoint =3D <&dfr_adp_out_mipi>; + }; + }; + + port@1 { + reg =3D <1>; + + dfr_panel_in: endpoint { + remote-endpoint =3D <&dfr_mipi_out_panel>; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/display/apple,h7-display-pip= e.yaml b/Documentation/devicetree/bindings/display/apple,h7-display-pipe.ya= ml new file mode 100644 index 0000000000000000000000000000000000000000..102fb1804c0c0b84f590e507ca2= d526948e98f68 --- /dev/null +++ b/Documentation/devicetree/bindings/display/apple,h7-display-pipe.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/apple,h7-display-pipe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple pre-DCP display controller + +maintainers: + - Sasha Finkelstein + +description: + A secondary display controller used to drive the "touchbar" on + certain Apple laptops. + +properties: + compatible: + items: + - enum: + - apple,t8112-display-pipe + - apple,t8103-display-pipe + - const: apple,h7-display-pipe + + reg: + items: + - description: Primary register block, controls planes and blending + - description: + Contains other configuration registers like interrupt + and FIFO control + + reg-names: + items: + - const: be + - const: fe + + power-domains: + description: + Phandles to pmgr entries that are needed for this controller to turn= on. + Aside from that, their specific functions are unknown + maxItems: 2 + + interrupts: + items: + - description: Unknown function + - description: Primary interrupt. Vsync events are reported via it + + interrupt-names: + items: + - const: be + - const: fe + + iommus: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: Output port. Always connected to apple,h7-display-pipe-mi= pi + +required: + - compatible + - reg + - interrupts + - port + +additionalProperties: false + +examples: + - | + #include + display-pipe@28200000 { + compatible =3D "apple,t8103-display-pipe", "apple,h7-display-pipe"; + reg =3D <0x28200000 0xc000>, + <0x28400000 0x4000>; + reg-names =3D "be", "fe"; + power-domains =3D <&ps_dispdfr_fe>, <&ps_dispdfr_be>; + interrupt-parent =3D <&aic>; + interrupts =3D , + ; + interrupt-names =3D "be", "fe"; + iommus =3D <&displaydfr_dart 0>; + + port { + dfr_adp_out_mipi: endpoint { + remote-endpoint =3D <&dfr_mipi_in_adp>; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/display/panel/apple,summit.y= aml b/Documentation/devicetree/bindings/display/panel/apple,summit.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f081755325e97ad58b831893b84= 082cc10f8d5e3 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/apple,summit.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/apple,summit.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple "Summit" display panel + +maintainers: + - Sasha Finkelstein + +description: + An OLED panel used as a touchbar on certain Apple laptops. + Contains a backlight device, which controls brightness of the panel itse= lf. + The backlight common properties are included for this reason + +allOf: + - $ref: panel-common.yaml# + - $ref: /schemas/leds/backlight/common.yaml# + +properties: + compatible: + items: + - enum: + - apple,j293-summit + - apple,j493-summit + - const: apple,summit + + reg: + maxItems: 1 + +required: + - compatible + - reg + - max-brightness + - port + +unevaluatedProperties: false + +examples: + - | + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "apple,j293-summit", "apple,summit"; + reg =3D <0>; + max-brightness =3D <255>; + + port { + endpoint { + remote-endpoint =3D <&dfr_bridge_out>; + }; + }; + }; + }; +... --=20 2.48.0