Re: [PATCH 1/5] dt-bindgins: display: Add Apple pre-DCP display controller bindings
From: Hector Martin <hidden>
Date: 2024-11-25 14:24:06
Also in:
asahi, dri-devel, linux-devicetree, lkml
On 2024/11/25 16:45, Krzysztof Kozlowski wrote:
On Sun, Nov 24, 2024 at 11:29:24PM +0100, Sasha Finkelstein wrote:quoted
Add bindings for a secondary display controller present on certain Apple laptops. Signed-off-by: Sasha Finkelstein <redacted> --- .../bindings/display/apple,display-pipe.yaml | 59 ++++++++++++++++++++++ .../bindings/display/panel/apple,summit.yaml | 24 +++++++++ 2 files changed, 83 insertions(+)diff --git a/Documentation/devicetree/bindings/display/apple,display-pipe.yaml b/Documentation/devicetree/bindings/display/apple,display-pipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bd25ddc6e09dd636c0221c854e594113f6011866 --- /dev/null +++ b/Documentation/devicetree/bindings/display/apple,display-pipe.yamlNo, use fallback compatible as filename.quoted
@@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/apple,display-pipe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple pre-DCP display controller. + +maintainers: + - asahi@lists.linux.dev + - Sasha Finkelstein <fnkl.kernel@gmail.com> + +description: |Drop |quoted
+ 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"This wasn't tested... Drop all quotes. Do you see any file with quotes? Why doing things entirely different than everyone else?quoted
+ + reg: + minItems: 3Dropquoted
+ maxItems: 3 + + reg-names: + items: + - const: be + - const: fe + - const: mipi + + power-domains: trueList the items instead or maxItems: 1.quoted
+ + interrupts: + minItems: 2Dropquoted
+ maxItems: 2 + + interrupt-names: + items: + - const: be + - const: fe + + iommus: truemaxItems: 1quoted
+ + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +additionalProperties: trueThis cannot be true. Must be false.quoted
+ +required: + - compatible + - reg + - interruptsThis goes before additionalProperties. Missing example: that's a strong NAK and prove that this could not be even tested. Do you see any device schema without example? No. Do not develop things differently, Apple is not unique, special or exceptional.
Krzysztof, it is entirely possible to express this same feedback without being condescending and rude. I'm pretty sure you can do better than this.
quoted
diff --git a/Documentation/devicetree/bindings/display/panel/apple,summit.yaml b/Documentation/devicetree/bindings/display/panel/apple,summit.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dc281c1f52c1ed07cc2f7f804dcfd2f3b4239d89 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/apple,summit.yaml@@ -0,0 +1,24 @@ +# 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: + - asahi@lists.linux.dev + - Sasha Finkelstein <fnkl.kernel@gmail.com> + +properties: + compatible: + const: apple,summitNo, too generic. Panels need much more properties, this is heavily incomplete. See other panel bindings. Best regards, Krzysztof
- Hector