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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98ACDC43334 for ; Mon, 27 Jun 2022 22:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242517AbiF0WQM (ORCPT ); Mon, 27 Jun 2022 18:16:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240366AbiF0WQM (ORCPT ); Mon, 27 Jun 2022 18:16:12 -0400 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3ED66251; Mon, 27 Jun 2022 15:16:10 -0700 (PDT) Received: by mail-io1-f50.google.com with SMTP id p69so11088041iod.10; 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=cb6PrlkbRo3vOv7wrhjDQBQjQ70Gewlgnw6Qv+BskiCEH5lafK5r8hK8XcRzs9252M +HZ2JcpkiuEFXTTnee9qt888sIFbmoJRVM4k/zc+5fs+hozEOekljRy2zWnrDs5Hsf3/ fhnjNA28tNfBvwjk/lEOqdG0l5fN5JzoVuUueEa0uhFK1TPmkXe9HPTCdpBI7v0OKm0R x/zkAZPUpCfbAiilxVTqKqC/E0VBCV7Qg0NN2QJcVvXSu9wfEgElbYwweKDXKuBGRuuq 2ECJ6O6wJcfM7rKXsLQ6rO9fNebbAWag3YrhHsQMKu10DMpwvP9kmWYcMzw8lL7RLK8b 10yQ== X-Gm-Message-State: AJIora/pX1WEoFIaQ28CJhT0xeqbZiX/yH4YXodEoPgizIR3//L2Ls9+ JBCnGARXgE4+zey0mqS7WQ== 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 Cc: devicetree@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Sakari Ailus , Jacopo Mondi , Eugen Hristev , Hugues Fruchet , Maxime Coquelin , Alexandre Torgue , Lad Prabhakar , Fabio Estevam , Shawn Guo 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> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 > >