Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp26321imw; Tue, 12 Jul 2022 13:57:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1unFB+drVXFeu7DVRT8y1wGAD3I3w69azoT7vbVfPXsjfBDb2oosnaYvo9buPmMl1L1P1bW X-Received: by 2002:a17:90a:e7c4:b0:1f0:78a7:bf37 with SMTP id kb4-20020a17090ae7c400b001f078a7bf37mr835919pjb.77.1657659448106; Tue, 12 Jul 2022 13:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657659448; cv=none; d=google.com; s=arc-20160816; b=AIB1vzjyqdhqYIXLI/c9sPP6d1wglan0vsCaRqYJDIVeAG03DOErBOyIsaEKoFA768 LNc+NNtc8Qvs3PrBlYSGMxQ3u/9b4Ll/ZSJCMZWj8Z9eePAOzvQEDnQ2K6wyH+OqAKwq JM30mfUNu6VagI8LVqvgvmtaKR1Q3P9aYzajbd+jTEknirlP7fi1vG1wP1Wt6ZPM1EHa 3714K7ieziI1dVn/dzilPuguQ3LOibvntzE+xY825rEI/J0yS80kezEHzxJ2MKhIb853 G6eVSlpanMXcOR59i7McG3J4fjluU+cNaCYNiYT5dRKlrC3b7GxJOCsDCuOTqwZhKHZ7 d0Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6rOf0xBt5IlZoqmW2acLd59sU8Wf2tOAJQ+IOET6njg=; b=fjdM9Ppix9Q6zt+nDHbFS3HzZujz/OaZKT/cMslACaOvQ1nxA6ET1+u/KGyN45m4Cf B+0Lkuq44ECO9dImQrLrFQJdflhPIv41YLfA0wZJTMfbRV6qL9+taZoVNYEapj/7Qrka pWzWKzEMq/aPqkweJJFoEM1+qbfevMpsDB3ZKgglScT6OIwE2OAdT51voOnRkIWE17Be +szCSX0KBRgGGotK1wsmj8L+dv5fJajFVKYusVY+KltFtasAG0GjeJRgZPvbNXtoSn+l qdYx+Knr9tEW53X/KIA6bh4HZsCM+2r/1FiiEKIhp3eA6Ri2EAWeL8IPxPEXDE3M5fka iG7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a17090ac39500b001e318172115si120536pjt.39.2022.07.12.13.57.12; Tue, 12 Jul 2022 13:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbiGLUud (ORCPT + 99 others); Tue, 12 Jul 2022 16:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbiGLUua (ORCPT ); Tue, 12 Jul 2022 16:50:30 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97F73820F0 for ; Tue, 12 Jul 2022 13:50:29 -0700 (PDT) Received: from [192.168.1.101] (abxj14.neoplus.adsl.tpnet.pl [83.9.3.14]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 2C52A3F219; Tue, 12 Jul 2022 22:50:27 +0200 (CEST) Message-ID: <9b535332-838d-6662-d0eb-feab075b2915@somainline.org> Date: Tue, 12 Jul 2022 22:50:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] dt-bindings: display/panel: Add Sony Tama TD4353 JDI display panel Content-Language: en-US To: Krzysztof Kozlowski , ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220712200244.960018-1-konrad.dybcio@somainline.org> <68b8da6a-03e2-9da7-795d-f028bc0ed05b@linaro.org> From: Konrad Dybcio In-Reply-To: <68b8da6a-03e2-9da7-795d-f028bc0ed05b@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.07.2022 22:47, Krzysztof Kozlowski wrote: > On 12/07/2022 22:02, Konrad Dybcio wrote: >> Add bindings for the display panel used on some Sony Xperia XZ2 and XZ2 >> Compact smartphones. >> >> Signed-off-by: Konrad Dybcio >> --- >> .../display/panel/sony,td4353-jdi.yaml | 84 +++++++++++++++++++ >> 1 file changed, 84 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/display/panel/sony,td4353-jdi.yaml >> >> diff --git a/Documentation/devicetree/bindings/display/panel/sony,td4353-jdi.yaml b/Documentation/devicetree/bindings/display/panel/sony,td4353-jdi.yaml >> new file mode 100644 >> index 000000000000..d75abc72ad1b >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/display/panel/sony,td4353-jdi.yaml >> @@ -0,0 +1,84 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/display/panel/sony,td4353-jdi.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Sony TD4353 JDI 5 / 5.7" 2160x1080 MIPI-DSI Panel >> + >> +maintainers: >> + - Konrad Dybcio >> + >> +description: | >> + The Sony TD4353 JDI is a 5 (XZ2c) / 5.7 (XZ2) inch 2160x1080 >> + MIPI-DSI panel, used in Xperia XZ2 and XZ2 Compact smartphones. >> + >> +allOf: >> + - $ref: panel-common.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - sony,td4353-jdi-akari >> + - sony,td4353-jdi-apollo > > Shouldn't the properties of panel like width and height be specified by > dedicated properties, instead of customizing compatible? The device is > "td4353-jdi", the same in both cases, isn't it? Not sure if it should, but in this case it probably could, the panels are software-compatible, yes. > >> + >> + reg: true >> + >> + backlight: true >> + >> + vddio-supply: >> + description: VDDIO 1.8V supply >> + >> + vsp-supply: >> + description: Positive 5.5V supply >> + >> + vsn-supply: >> + description: Negative 5.5V supply >> + >> + preset-gpios: >> + description: Display panel reset pin >> + >> + treset-gpios: >> + description: Touch panel reset pin >> + >> + port: true >> + >> +required: >> + - compatible >> + - reg >> + - vddio-supply >> + - vsp-supply >> + - vsn-supply >> + - preset-gpios >> + - treset-gpios >> + - port >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + >> + dsi { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + panel: panel@0 { >> + compatible = "sony,td4353-jdi-akari"; >> + reg = <0>; >> + >> + backlight = <&pmi8998_wled>; >> + vddio-supply = <&vreg_l14a_1p8>; >> + vsp-supply = <&lab>; >> + vsn-supply = <&ibb>; >> + preset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; >> + treset-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; >> + >> + port { >> + panel_in: endpoint { > > Inconsistent indentation. Will fix. Konrad > >> + remote-endpoint = <&dsi0_out>; >> + }; >> + }; >> + }; >> + }; >> +... > > > Best regards, > Krzysztof