From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B657BC46CD2 for ; Tue, 30 Jan 2024 18:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lzUWw5Oo5yT5gD3RO6FjqakVCnwruDmUJiZP1qFJucM=; b=b92kd8hDdiVmVqRH7BKMFX9oVE ZLnl/7WHX8DTJnwozJfzsyFvy8FQQgLhbYwTn0Hnt9gWabkp6wETBrTBW4+W8Dnh4+2t4wtwXBVOe Qaai3uAsWOUJ6OUIQV7O1r+BlztJQB845CkGKX95OrWejB9WM9pXZ6wv4BKedOV8yQ05s0v1eo62E TEaBpfcNAWvH0ERp6T+Si3ciFSrzBj1x/jULK8PEXGVO53YDFkzCGJYNueARdvG7VqtBb5WDnsMTk C+DfokbK0q5aG2f5lngTbGXzrMne3nJ2/WG90oQe4rQB1ZOynwQo9mKhwuhNAztP5b+We5gFJ0h6A azDpNw2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUshI-000000006Fi-1BPV; Tue, 30 Jan 2024 18:19:00 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUshF-000000006DS-0AQL for linux-arm-kernel@lists.infradead.org; Tue, 30 Jan 2024 18:18:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4C9ECCE1804; Tue, 30 Jan 2024 18:18:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E1DDC433C7; Tue, 30 Jan 2024 18:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706638734; bh=PjrgU25A2IyPMYtXC01U7AtGDTIv3s/p7Yxp4fnNn1Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jg5rqK6279YfSzKAR1sZHIUwGBdewBi2js96OhWqlbDh192UiiugY1LcKTFvFPWiY xa9/Q9WWBx4OIYBULA8jJ1cUtscgsUnSLfau93NItGxxMf8kbCA9yxDKZHPQ1YYU+W WmqDeYDOSDA9MyONG8RfrACX0JcroXhi8aCHu/ZYGxEVTfA+zrvg82zajlIpugPOri dL72iJZQ7owNDRpmnmrxWwKZn2ONNv5bpGEPxaKN2TrK+qGRTWKHmPk2/IcdxoRqzZ +1MGIeEl2e6HF2Yg1jTfcWFtIFrJqyzq8O7xSEvJDllKzpdMQeuwUjVQIuSvs/voJF 4x/WGeh3mLu5A== Date: Tue, 30 Jan 2024 18:18:49 +0000 From: Conor Dooley To: Johan Jonker Cc: robh+dt@kernel.org, hjc@rock-chips.com, heiko@sntech.de, andy.yan@rock-chips.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, mripard@kernel.org, markyao0591@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/6] dt-bindings: display: rockchip: rockchip,dw-hdmi: deprecate port property Message-ID: <20240130-denim-capacity-e1617595ac9f@spud> References: <6626d288-ecf1-436b-b0a3-3417308a8633@gmail.com> MIME-Version: 1.0 In-Reply-To: <6626d288-ecf1-436b-b0a3-3417308a8633@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_101857_437552_3ABB3D53 X-CRM114-Status: GOOD ( 22.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1484211187772965588==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1484211187772965588== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Se7db1/EZ7/Uf0wV" Content-Disposition: inline --Se7db1/EZ7/Uf0wV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 03:55:43PM +0100, Johan Jonker wrote: > The hdmi-connector nodes are now functional and the new way to model > hdmi nodes with, so deprecate the port property and This doesn't really explain what makes having hdmi-connector nodes replace the usecase for "port". > make port@0 and > port@1 a requirement. Why? > Also update example. "Also do x" is a red flag when it comes to commit messages, as it immediately makes me think that this should be more than one commit. I'd probably write this as "Update the example to avoid use of the deprecated property" or something to avoid bad gut reactions. That's not worth resending for though obviously... >=20 > Signed-off-by: Johan Jonker > --- > .../display/rockchip/rockchip,dw-hdmi.yaml | 27 ++++++++++++++++--- > 1 file changed, 23 insertions(+), 4 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,= dw-hdmi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,= dw-hdmi.yaml > index 7e59dee15a5f..cd0a42f35f24 100644 > --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi= =2Eyaml > +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi= =2Eyaml > @@ -97,8 +97,11 @@ properties: > ports: > $ref: /schemas/graph.yaml#/properties/ports >=20 > - patternProperties: > - "^port(@0)?$": > + properties: > + port: > + $ref: /schemas/graph.yaml#/properties/port > + deprecated: true This change makes the deprecated property's description incomplete, since it doesn't cover the endpoints any more. It also doesn't make port@0 and port mutually exclusive. I think I'd just be inclined to delete the "port" bit entirely from the binding if you're not gonna preserve the description of what that property was meant to be. Otherwise, I'd be doing something like: @@ -112,6 +112,8 @@ properties: endpoint@1: description: Connection to the VOPL properties: + port: + deprecated: true port@1: $ref: /schemas/graph.yaml#/properties/port description: Output of the DWC HDMI TX So that the description of the deprecated property is maintained. Cheers, Conor. > + port@0: > $ref: /schemas/graph.yaml#/properties/port > description: Input of the DWC HDMI TX > properties: > @@ -108,11 +111,14 @@ properties: > description: Connection to the VOPB > endpoint@1: > description: Connection to the VOPL > - properties: > port@1: > $ref: /schemas/graph.yaml#/properties/port > description: Output of the DWC HDMI TX >=20 > + required: > + - port@0 > + - port@1 > + > rockchip,grf: > $ref: /schemas/types.yaml#/definitions/phandle > description: > @@ -147,7 +153,11 @@ examples: > clock-names =3D "iahb", "isfr"; >=20 > ports { > - port { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + reg =3D <0>; > #address-cells =3D <1>; > #size-cells =3D <0>; >=20 > @@ -155,11 +165,20 @@ examples: > reg =3D <0>; > remote-endpoint =3D <&vopb_out_hdmi>; > }; > + > hdmi_in_vopl: endpoint@1 { > reg =3D <1>; > remote-endpoint =3D <&vopl_out_hdmi>; > }; > }; > + > + port@1 { > + reg =3D <1>; > + > + hdmi_out_con: endpoint { > + remote-endpoint =3D <&hdmi_con_in>; > + }; > + }; > }; > }; >=20 > -- > 2.39.2 >=20 --Se7db1/EZ7/Uf0wV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbk9iAAKCRB4tDGHoIJi 0ov4AQC/D1c0VhrC43ss+Gx+M3QV8KxYk6PBwCzFXmE5ODySRQEA9bUSt6oR5ZHe QvmugJnjTjCAnylB7d4Ml9YpiJeaEAU= =pq3u -----END PGP SIGNATURE----- --Se7db1/EZ7/Uf0wV-- --===============1484211187772965588== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1484211187772965588==--