From: Rob Herring <robh@kernel.org>
To: Stefan Riedmueller <s.riedmueller@phytec.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 5/6] media: dt-bindings: mt9p031: Convert bindings to yaml
Date: Fri, 16 Jul 2021 13:23:31 -0600 [thread overview]
Message-ID: <20210716192331.GA3831920@robh.at.kernel.org> (raw)
In-Reply-To: <20210714133849.1041619-6-s.riedmueller@phytec.de>
On Wed, Jul 14, 2021 at 03:38:48PM +0200, Stefan Riedmueller wrote:
> Convert mt9p031 sensor bindings to yaml schema. Also update the
> MAINTAINERS entry.
>
> Although input-clock-frequency and pixel-clock-frequency have not been
> definded as endpoint propierties in the textual bindings, the sensor
> does parse them from the endpoint. Thus move these properties to the
> endpoint in the new yaml bindings.
>
> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
> ---
> .../bindings/media/i2c/aptina,mt9p031.yaml | 92 +++++++++++++++++++
> .../devicetree/bindings/media/i2c/mt9p031.txt | 40 --------
> MAINTAINERS | 1 +
> 3 files changed, 93 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..1531ecd1ed95
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml
> @@ -0,0 +1,92 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/i2c/aptina,mt9p031.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor
> +
> +maintainers:
> + - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> +
> +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#/$defs/port-base
> + additionalProperties: false
> +
> + properties:
> + endpoint:
> + $ref: /schemas/media/video-interfaces.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + input-clock-frequency:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 6000000
> + maximum: 96000000
> + description: Input clock frequency
> +
> + pixel-clock-frequency:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + maximum: 96000000
> + description: Target pixel clock frequency
> +
> + bus-type:
> + const: 5
> +
> + bus-width:
> + const: 12
If there's only 1 possible setting for both of these, why do they need
to be in DT?
Rob
next prev parent reply other threads:[~2021-07-16 19:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-14 13:38 [PATCH v6 0/6] media: mt9p031: Read back the real clock rate Stefan Riedmueller
2021-07-14 13:38 ` [PATCH v6 1/6] " Stefan Riedmueller
2021-07-14 13:38 ` [PATCH v6 2/6] media: mt9p031: Make pixel clock polarity configurable by DT Stefan Riedmueller
2021-07-14 13:38 ` [PATCH v6 3/6] media: mt9p031: Fix corrupted frame after restarting stream Stefan Riedmueller
2021-07-14 13:38 ` [PATCH v6 4/6] media: mt9p031: Use BIT macro Stefan Riedmueller
2021-07-14 13:38 ` [PATCH v6 5/6] media: dt-bindings: mt9p031: Convert bindings to yaml Stefan Riedmueller
2021-07-16 19:23 ` Rob Herring [this message]
2021-07-19 6:45 ` Stefan Riedmüller
2021-07-14 13:38 ` [PATCH v6 6/6] media: dt-bindings: mt9p031: Add missing required properties Stefan Riedmueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210716192331.GA3831920@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=s.riedmueller@phytec.de \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).