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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 9108DC433EF for ; Mon, 27 Jun 2022 22:16:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B130310E1A5; Mon, 27 Jun 2022 22:16:12 +0000 (UTC) Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id C447110E1A5 for ; Mon, 27 Jun 2022 22:16:10 +0000 (UTC) Received: by mail-io1-f49.google.com with SMTP id r133so11127330iod.3 for ; Mon, 27 Jun 2022 15:16:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sEUUUlDAYju/2YLxlXSh5PX7GI5wJxClR/yx3HviGBQ=; b=dBplf7i+idxy3DeStwGlSrprQlTcojHdpNTp+kXVKc9/bq3K+po1vXbULuP5MRtbVO ihRyCunzM9RoBvxIIqb7JgudpBTi1DAahUUD2YdNFSUa59zfTxNvMjbdJqrpJIV9E9wN +7SkIFuiNXLTvOdKUua9MoxyAg2BSsPyQbYK89qhXBZdk3+UN/rT/ZNYKXobozifkiGv lOk+cz4y5GUilRVsfvKPvYkj0VI0+5Da3MG/zco4bJaAK+IRvQOX5/2FUb29Zt9fss1H xIxhdOL6MH33wC/mqYxTk9fVxnCXqoJowwAzmgFRaknooiX6wXG12R7QDt2dmnxeos2S FOEA== X-Gm-Message-State: AJIora/9ZlMwSxEDab34qt5lJirg7rFPPQsDqUhzeXhGn760e8lL3+eA 40P9ceSBhZF0UodSEay+BA== X-Google-Smtp-Source: AGRyM1ul6meQjPMho4PaYYVmeFu5wv9y8tgdGZfqXlC28iBRP2OmhPocanyd1Cb9iwo5OiHmJL6b0g== X-Received: by 2002:a05:6602:2d0e:b0:64f:d1ff:ac9c with SMTP id c14-20020a0566022d0e00b0064fd1ffac9cmr7870131iow.41.1656368170082; Mon, 27 Jun 2022 15:16:10 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id m2-20020a02cdc2000000b00339e6168237sm4805432jap.34.2022.06.27.15.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 15:16:09 -0700 (PDT) Received: (nullmailer pid 3062972 invoked by uid 1000); Mon, 27 Jun 2022 22:16:08 -0000 Date: Mon, 27 Jun 2022 16:16:08 -0600 From: Rob Herring To: Laurent Pinchart Subject: Re: [PATCH v3 2/6] dt-bindings: Use new video interface bus type macros in examples Message-ID: <20220627221608.GA3060504-robh@kernel.org> References: <20220615221410.27459-1-laurent.pinchart@ideasonboard.com> <20220615221410.27459-3-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615221410.27459-3-laurent.pinchart@ideasonboard.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jacopo Mondi , Maxime Coquelin , Hugues Fruchet , Alexandre Torgue , dri-devel@lists.freedesktop.org, Lad Prabhakar , Sakari Ailus , Eugen Hristev , Shawn Guo , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Jun 16, 2022 at 01:14:06AM +0300, Laurent Pinchart wrote: > Now that a header exists with macros for the media interface bus-type > values, replace hardcoding numerical constants with the corresponding > macros in the DT binding examples. > > Signed-off-by: Laurent Pinchart > --- > Changes since v2: > > - Go back to PARALLEL > > Changes since v1: > > - Rename PARALLEL to BT601 > --- > .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 1 + > Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml | 3 ++- > Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml | 3 ++- > .../devicetree/bindings/media/marvell,mmp2-ccic.yaml | 3 ++- > Documentation/devicetree/bindings/media/microchip,xisc.yaml | 3 ++- > Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml | 4 +++- > 6 files changed, 12 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > index 35a48515836e..b0e5585f93e2 100644 > --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > @@ -118,6 +118,7 @@ additionalProperties: false > examples: > - | > #include > + #include > > i2c0 { > #address-cells = <1>; > diff --git a/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml b/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > index 39395ea8c318..edde4201116f 100644 > --- a/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml > @@ -104,6 +104,7 @@ additionalProperties: false > examples: > - | > #include > + #include > > i2c2 { > #address-cells = <1>; > @@ -124,7 +125,7 @@ examples: > remote-endpoint = <&csi2a_ep>; > link-frequencies = /bits/ 64 <199200000 210000000 > 499200000>; > - bus-type = <4>; > + bus-type = ; > }; > }; > }; > diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml > index 44529425ce3a..161e6d598e1c 100644 > --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml > @@ -105,6 +105,7 @@ additionalProperties: false > examples: > - | > #include > + #include > > i2c0 { > #address-cells = <1>; > @@ -118,7 +119,7 @@ examples: > > port { > ov772x_0: endpoint { > - bus-type = <5>; > + bus-type = ; > vsync-active = <0>; > hsync-active = <0>; > pclk-sample = <0>; > diff --git a/Documentation/devicetree/bindings/media/marvell,mmp2-ccic.yaml b/Documentation/devicetree/bindings/media/marvell,mmp2-ccic.yaml > index b39b84c5f012..0e3478551e13 100644 > --- a/Documentation/devicetree/bindings/media/marvell,mmp2-ccic.yaml > +++ b/Documentation/devicetree/bindings/media/marvell,mmp2-ccic.yaml > @@ -68,6 +68,7 @@ additionalProperties: false > examples: > - | > #include > + #include > #include > > camera@d420a000 { > @@ -83,7 +84,7 @@ examples: > port { > camera0_0: endpoint { > remote-endpoint = <&ov7670_0>; > - bus-type = <5>; /* Parallel */ > + bus-type = ; > hsync-active = <1>; /* Active high */ > vsync-active = <1>; /* Active high */ > pclk-sample = <0>; /* Falling */ > diff --git a/Documentation/devicetree/bindings/media/microchip,xisc.yaml b/Documentation/devicetree/bindings/media/microchip,xisc.yaml > index 8b37fccab5e2..25f5f79d40ce 100644 > --- a/Documentation/devicetree/bindings/media/microchip,xisc.yaml > +++ b/Documentation/devicetree/bindings/media/microchip,xisc.yaml > @@ -106,6 +106,7 @@ examples: > #include > #include > #include > + #include > > xisc: xisc@e1408000 { > compatible = "microchip,sama7g5-isc"; > @@ -118,7 +119,7 @@ examples: > > port { > xisc_in: endpoint { > - bus-type = <5>; /* Parallel */ > + bus-type = ; > remote-endpoint = <&csi2dc_out>; > hsync-active = <1>; > vsync-active = <1>; > diff --git a/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml b/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml > index 9c1262a276b5..285c6075950a 100644 > --- a/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml > +++ b/Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml > @@ -90,7 +90,9 @@ examples: > - | > #include > #include > + #include > #include > + # ? In any case, Reviewed-by: Rob Herring > dcmi: dcmi@4c006000 { > compatible = "st,stm32-dcmi"; > reg = <0x4c006000 0x400>; > @@ -104,7 +106,7 @@ examples: > port { > dcmi_0: endpoint { > remote-endpoint = <&ov5640_0>; > - bus-type = <5>; > + bus-type = ; > bus-width = <8>; > hsync-active = <0>; > vsync-active = <0>; > -- > Regards, > > Laurent Pinchart > >