Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp444052pxb; Tue, 14 Sep 2021 00:42:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiYVKLAsFux7JKIBfiDzBC5CiMJDipTc4FsHVc9Y5CWnRwApJieAIL1GF63CwUieHYRovd X-Received: by 2002:a17:906:6403:: with SMTP id d3mr17017638ejm.37.1631605334683; Tue, 14 Sep 2021 00:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605334; cv=none; d=google.com; s=arc-20160816; b=L0LrB3Ah0eX7GiT+v6ZT+J/msiXQLePmgHzbLQA5FJqAdXTXoXhw4NfxCdY/4Esyh/ mUWkvsZ7Wwaxva/ZvxFHVc9DqLFcwC6WNmvw7SFPGfXS53Xa8vv9hDHOQVf2C6Q1z44V 7q36aj9GotfBbtielvXGb/STxIOZRoYI8s6k2FVIbpEbchH3z2SaYD4tOYLWjN5Y1sHN MpT2Rc3fpR1MuZwx1T9XguAaHN5QQPBwtiy2Y08YS2dSrYC0NUcX13G4DLRpgbjh41lS Hj0T1it0kabyN9lxL4R848QzdEjO9p8svaRa7wv3OLQtw4HogUVZKkV8xx4UvGOKPhtA RjzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=++m4mOeRsh9oFQMok50KK19xXjRYOERNB9x34+Rucao=; b=0y8qYNkjAzG9jdFub0NfCWcaZ/hVwi14sxOz/KoJEInFw37eZwPChfiMb3Wea/x5WE lKr+wUS5jT4tsMElG3x6z8PJPPSBajQxu5Kdx3Vnaj2/imAaaPc3X8Q8I72S+xO8KIwK 9iYKy+lGOMQS+4SWHxC91vlWP5oE3xXWPDRHa5LxY0uYNx9CxFdWytNI1dk1QdM1iK3D A7fMta/NhcqdV1nEDZkkS+uC5Z6NKseynghd/BAUKyOlOv6ZSt9vTZZr5IwO6Nd6N2RC 0MBlgH59RrpZReJf11uNY97jE96eByOlzFnbYAZ345gtslCrJNo8txlLio8m1Z7QC6FI iC3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au25si11932388ejc.360.2021.09.14.00.41.51; Tue, 14 Sep 2021 00:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241787AbhINHlj (ORCPT + 99 others); Tue, 14 Sep 2021 03:41:39 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:49857 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241102AbhINHlI (ORCPT ); Tue, 14 Sep 2021 03:41:08 -0400 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id A31FD100009; Tue, 14 Sep 2021 07:39:44 +0000 (UTC) Date: Tue, 14 Sep 2021 09:39:44 +0200 From: Paul Kocialkowski To: Maxime Ripard Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-staging@lists.linux.dev, Yong Deng , Mauro Carvalho Chehab , Rob Herring , Sakari Ailus , Hans Verkuil , Chen-Yu Tsai , Jernej Skrabec , Greg Kroah-Hartman , Helen Koike , Laurent Pinchart , Thomas Petazzoni Subject: Re: [PATCH 03/22] dt-bindings: sun6i-a31-mipi-dphy: Add optional direction property Message-ID: References: <20210910184147.336618-1-paul.kocialkowski@bootlin.com> <20210910184147.336618-4-paul.kocialkowski@bootlin.com> <20210913080008.2rxa22ifisuu3dwn@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3sJ9a4xR7kppdInQ" Content-Disposition: inline In-Reply-To: <20210913080008.2rxa22ifisuu3dwn@gilmour> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3sJ9a4xR7kppdInQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon 13 Sep 21, 10:00, Maxime Ripard wrote: > On Fri, Sep 10, 2021 at 08:41:28PM +0200, Paul Kocialkowski wrote: > > The Allwinner A31 MIPI D-PHY block supports both tx and rx directions, > > although each instance of the block is meant to be used in one > > direction only. There will typically be one instance for MIPI DSI and > > one for MIPI CSI-2 (it seems unlikely to ever see a shared instance). > >=20 > > Describe the direction with a new allwinner,direction property. > > For backwards compatibility, the property is optional and tx mode > > should be assumed by default. > >=20 > > Signed-off-by: Paul Kocialkowski > > --- > > .../bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-= mipi-dphy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-= mipi-dphy.yaml > > index d0b541a461f3..303bbaf3b915 100644 > > --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dp= hy.yaml > > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dp= hy.yaml > > @@ -37,6 +37,18 @@ properties: > > resets: > > maxItems: 1 > > =20 > > + allwinner,direction: > > + $ref: '/schemas/types.yaml#/definitions/string' > > + description: | > > + Direction of the D-PHY: > > + - "rx" for receiving (e.g. when used with MIPI CSI-2); > > + - "tx" for transmitting (e.g. when used with MIPI DSI). > > + > > + When the property is missing, "tx" direction is assumed. >=20 > You can provide this using default Understood. > > + oneOf: > > + - const: tx > > + - const: rx > > + >=20 > enum? Ah yes, enum feels like a better fit! Thanks, Paul --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --3sJ9a4xR7kppdInQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmFAUb8ACgkQ3cLmz3+f v9G6MQf+LFXtO+lLmczqO2FeIZ57ZBvDX1arKZiS0kXZP+nN3Y+7FjpJoF5qxpPd M7yIhPccBdpJshGqMhFh4swhZeM2tgml5hQfLhXYWKObKp1UZXcfCQ9uQ0b6jX7l pE94RTNuf7KUOalTc7SIIKEHGcCtelN2QP5QkN9dCVIQx/QR2LQPweh1Pyrejgnc k8rktdvc9Fta19KFbvjC8ni1WFQfsZs0h3jo6xoMrC8w1cVEVvQ8dTkljzRJ+k4W DFDBlmrHneE+pgmpDsHM9L2kKcYm/7EsKPc3KWkwQwTZ7QS220qH42+rDnpXtH8l Z5HvmxYSzkOVIahP4X1VEmzWLeQ7rg== =+9YF -----END PGP SIGNATURE----- --3sJ9a4xR7kppdInQ--