Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp364063pxv; Thu, 8 Jul 2021 04:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkcEvfs9C3A7jIwzoJ5cH8GC5i1mzoam47zkOwICVID+AP4YgGaSDgC2BDZRXlD/tHZXYe X-Received: by 2002:a17:907:7609:: with SMTP id jx9mr30534176ejc.518.1625743496013; Thu, 08 Jul 2021 04:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625743496; cv=none; d=google.com; s=arc-20160816; b=Ym8M3cBushAiA8+9QBbEGpiZ2cvdfverq9zYMc3hQEWj2c7ZtH7f5bsnTOZsnAohYG UIfJmj9V9sfTYst8EerzEYiMP3T20ggBkh+mAvfu+iJqOZu0Vir8i5xYmWybkymdYu4n H0HNYQNd8rsmrf+BgjIPsv6HOPv3ewIK9xumQGJPudCdSp0sM0nNTjEWVO7MUCKerXjd /pD0S2FY80frI30jYilRmgFRI/sbrPuov8eXFNCtAW7SIJ16uvbhKFDJKkmGBbezMarQ kSuDMPxcyftDRG7R8KKuDf6vImivW5eKqLTwp7Op0gOJ2me9qiK+xDGHoQX4rR6ax/IQ kiiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=v3eh/fdVSklzV3gyij4Fww+J+QyqGkSWH8nUrvUChDA=; b=U9cgvpRTyV1RXoG2XsrofgrIJ7gAnjJ2WIatxN7fxbGDHU8hgg5w/JorbvPyjd10wE 4ieI6e7cSPyUBhewa5D1lAlBJLezZWThblq9w//i51CLYERTDlcIc2HmRiazhTKfpX6G By/EIhC7P9tnMVduOojukzzF3IpAZUkIR58HvqLXnDvrYopczzDte/n0DrRC/1OK+AKo hwCC8HRbBDZKmYmSREu6pIU2cmXPWfpij/X+GUwcQTO7wZMH6+MR7Rt0kHvhVsT01o3r x1u2Hlj/7MKoj+3+1SxI6qkwoyG2MfjmSUBrg3hGE0EJ7eiFpJZEiMCs+MYsy3jn59nW L+bA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v25si2603554edw.336.2021.07.08.04.24.33; Thu, 08 Jul 2021 04:24:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbhGHL0B (ORCPT + 99 others); Thu, 8 Jul 2021 07:26:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:50680 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbhGHL0A (ORCPT ); Thu, 8 Jul 2021 07:26:00 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="273326690" X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="273326690" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 04:23:17 -0700 X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="428320822" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 04:23:15 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 33AA920188; Thu, 8 Jul 2021 14:23:13 +0300 (EEST) Date: Thu, 8 Jul 2021 14:23:13 +0300 From: Sakari Ailus To: Stefan Riedmueller Cc: Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/6] media: dt-bindings: mt9p031: Convert bindings to yaml Message-ID: <20210708112313.GA3@paasikivi.fi.intel.com> References: <20210708091922.5508-1-s.riedmueller@phytec.de> <20210708091922.5508-6-s.riedmueller@phytec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708091922.5508-6-s.riedmueller@phytec.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, Thanks for the patch. On Thu, Jul 08, 2021 at 11:19:21AM +0200, Stefan Riedmueller wrote: > Convert mt9p031 sensor bindings to yaml schema. Also update the > MAINTAINERS entry. > > Signed-off-by: Stefan Riedmueller > --- > .../bindings/media/i2c/aptina,mt9p031.yaml | 75 +++++++++++++++++++ > .../devicetree/bindings/media/i2c/mt9p031.txt | 40 ---------- > MAINTAINERS | 1 + > 3 files changed, 76 insertions(+), 40 deletions(-) > create mode 100644 Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml > delete mode 100644 Documentation/devicetree/bindings/media/i2c/mt9p031.txt > > diff --git a/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml > new file mode 100644 > index 000000000000..7de62e339895 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml > @@ -0,0 +1,75 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/mt9p031.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor > + > +maintainers: > + - Laurent Pinchart > + > +description: | > + The Aptina MT9P031 is a 1/2.5-inch CMOS active pixel digital image sensor > + with an active array size of 2592H x 1944V. It is programmable through a > + simple two-wire serial interface. > + > +properties: > + compatible: > + enum: > + - aptina,mt9p031 > + - aptina,mt9p031m > + > + reg: > + description: I2C device address > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + description: Chip reset GPIO > + > + port: > + $ref: /schemas/graph.yaml#/properties/port This should probably be: $ref: /schemas/graph.yaml#/$defs/port-base > + addittionalProeprties: false Could you run make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml please? > + > + properties: > + endpoint: > + $ref: /schemas/media/video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + input-clock-frequency: true > + pixel-clock-frequency: true These two legacy properties were not in the endpoint previously. > + > + required: > + - input-clock-frequency > + - pixel-clock-frequency > + > +required: > + - compatible > + - reg > + - port > + > +additionalProperties: false > + > +examples: > + - | > + i2c0 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + mt9p031@5d { > + compatible = "aptina,mt9p031"; > + reg = <0x5d>; > + reset-gpios = <&gpio_sensor 0 0>; > + > + port { > + mt9p031_1: endpoint { > + input-clock-frequency = <6000000>; > + pixel-clock-frequency = <96000000>; > + }; > + }; > + }: > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/media/i2c/mt9p031.txt b/Documentation/devicetree/bindings/media/i2c/mt9p031.txt > deleted file mode 100644 > index cb60443ff78f..000000000000 > --- a/Documentation/devicetree/bindings/media/i2c/mt9p031.txt > +++ /dev/null > @@ -1,40 +0,0 @@ > -* Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor > - > -The Aptina MT9P031 is a 1/2.5-inch CMOS active pixel digital image sensor with > -an active array size of 2592H x 1944V. It is programmable through a simple > -two-wire serial interface. > - > -Required Properties: > -- compatible: value should be either one among the following > - (a) "aptina,mt9p031" for mt9p031 sensor > - (b) "aptina,mt9p031m" for mt9p031m sensor > - > -- input-clock-frequency: Input clock frequency. > - > -- pixel-clock-frequency: Pixel clock frequency. > - > -Optional Properties: > -- reset-gpios: Chip reset GPIO > - > -For further reading on port node refer to > -Documentation/devicetree/bindings/media/video-interfaces.txt. > - > -Example: > - > - i2c0@1c22000 { > - ... > - ... > - mt9p031@5d { > - compatible = "aptina,mt9p031"; > - reg = <0x5d>; > - reset-gpios = <&gpio3 30 0>; > - > - port { > - mt9p031_1: endpoint { > - input-clock-frequency = <6000000>; > - pixel-clock-frequency = <96000000>; > - }; > - }; > - }; > - ... > - }; > diff --git a/MAINTAINERS b/MAINTAINERS > index c7456776ace5..f2123226baae 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -12610,6 +12610,7 @@ M: Laurent Pinchart > L: linux-media@vger.kernel.org > S: Maintained > T: git git://linuxtv.org/media_tree.git > +F: Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml > F: drivers/media/i2c/mt9p031.c > F: include/media/i2c/mt9p031.h > -- Kind regards, Sakari Ailus