[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7rr3fja4rxjbdmgpdqaid5fybiu6uctpbvp24ujv5drfmeiowf@u4pkhzyhy3pd>
Date: Mon, 13 Jan 2025 09:58:59 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Sasha Finkelstein <fnkl.kernel@...il.com>
Cc: Hector Martin <marcan@...can.st>, Sven Peter <sven@...npeter.dev>,
Alyssa Rosenzweig <alyssa@...enzweig.io>, Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Neil Armstrong <neil.armstrong@...aro.org>, Jessica Zhang <quic_jesszhan@...cinc.com>, asahi@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Alyssa Ross <hi@...ssa.is>
Subject: Re: [PATCH v3 1/5] dt-bindings: display: Add Apple pre-DCP display
controller
On Sun, Jan 12, 2025 at 09:43:48PM +0100, Sasha Finkelstein wrote:
+ 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@...200000 {
> + compatible = "apple,t8103-display-pipe-mipi", "apple,h7-display-pipe-mipi";
> + reg = <0x28200000 0xc000>;
This looks not matching unit address.
> + power-domains = <&ps_dispdfr_mipi>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + #address-cells = <1>;
> + #size-cells = <0>;
Make the example complete, so you will see that address/size cells are
unnecessary here or, if you really have more than one endpoint, they are
supposed to be here.
> + };
> +
> + port@1 {
> + reg = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> + };
> + };
> +...
> diff --git a/Documentation/devicetree/bindings/display/apple,h7-display-pipe.yaml b/Documentation/devicetree/bindings/display/apple,h7-display-pipe.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..dc07edccb437b221ea9772b9356e1896326aa7da
> --- /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 <fnkl.kernel@...il.com>
> +
> +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:
> + maxItems: 2
> +
> + reg-names:
> + items:
> + - const: be
> + description: Primary register block, controls planes and blendinga
Description goes to 'reg:' field, just like I asked last time.
> + - const: fe
> + description:
> + Contains other configuration registers like interrupt
> + and FIFO control
> +
> + 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:
Same comments as before - list and describe the items.
Best regards,
Krzysztof
Powered by blists - more mailing lists