From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>,
Hans Verkuil <hverkuil@xs4all.nl>,
Sakari Ailus <sakari.ailus@iki.fi>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Mark Brown <broonie@kernel.org>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 1/5] dt-bindings: media: platform: visconti: Add Toshiba Visconti Video Input Interface
Date: Fri, 14 Jul 2023 09:50:02 +0200 [thread overview]
Message-ID: <7aa255e8-1cf1-03c6-02c8-de7c737a5683@linaro.org> (raw)
In-Reply-To: <20230714015059.18775-2-yuji2.ishikawa@toshiba.co.jp>
On 14/07/2023 03:50, Yuji Ishikawa wrote:
> Adds the Device Tree binding documentation that allows to describe
> the Video Input Interface found in Toshiba Visconti SoCs.
>
> Signed-off-by: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
> Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
> ---
> Changelog v2:
Thank you for your patch. There is something to discuss/improve.
> - no change
>
> Changelog v3:
> - no change
>
> Changelog v4:
> - fix style problems at the v3 patch
> - remove "index" member
> - update example
>
> Changelog v5:
> - no change
>
> Changelog v6:
> - add register definition of BUS-IF and MPU
>
> Changelog v7:
> - remove trailing "bindings" from commit header message
> - remove trailing "Device Tree Bindings" from title
> - fix text wrapping of description
> - change compatible to visconti5-viif
Then the filename should be updated to match it:
toshiba,visconti5-viif.yaml
> - explicitly define allowed properties for port::endpoint
>
> .../bindings/media/toshiba,visconti-viif.yaml | 108 ++++++++++++++++++
> 1 file changed, 108 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml
>
...
> + port:
> + $ref: /schemas/graph.yaml#/$defs/port-base
> + unevaluatedProperties: false
> + description: Input port, single endpoint describing the CSI-2 transmitter.
> +
> + properties:
> + endpoint:
> + $ref: video-interfaces.yaml#
> + additionalProperties: false
This should be rather:
unevaluatedProperties: false
> +
> + required: ["bus-type", "clock-noncontinuous", "link-frequencies", "remote-endpoint"]
That's not the syntax we try to keep in the bindings. See
renesas,rzg2l-csi2.yaml.
> +
> + properties:
> + data-lanes:
> + description: VIIF supports 2 or 4 data lanes
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 1
> + maxItems: 4
> + items:
> + minimum: 1
> + maximum: 4
> +
> + clock-lanes:
> + description: VIIF supports 1 clock lane
> + const: 0
Are you sure it must be on position 0?
> +
> + bus-type: true
> + clock-noncontinuous: true
> + link-frequencies: true
> + remote-endpoint: true
Drop all of these "xxx: true", should not be needed after converting to
unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - port
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + viif@1c000000 {
isp@
(or video or something else matching this type of the device, but this
should be a generic name)
> + compatible = "toshiba,visconti5-viif";
> + reg = <0 0x1c000000 0 0x6000>,
> + <0 0x1c008000 0 0x400>,
> + <0 0x1c00E000 0 0x1000>,
> + <0 0x2417A000 0 0x1000>;
Lowercase hex, please.
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-07-14 7:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 1:50 [PATCH v7 0/5] Add Toshiba Visconti Video Input Interface driver Yuji Ishikawa
2023-07-14 1:50 ` [PATCH v7 1/5] dt-bindings: media: platform: visconti: Add Toshiba Visconti Video Input Interface Yuji Ishikawa
2023-07-14 7:50 ` Krzysztof Kozlowski [this message]
2023-07-25 6:08 ` yuji2.ishikawa
2023-07-26 17:21 ` Krzysztof Kozlowski
2023-07-14 1:50 ` [PATCH v7 2/5] media: platform: visconti: Add Toshiba Visconti Video Input Interface driver Yuji Ishikawa
2023-07-14 8:00 ` Krzysztof Kozlowski
2023-07-25 6:10 ` yuji2.ishikawa
2023-08-21 13:19 ` Laurent Pinchart
2023-08-21 13:35 ` Robin Murphy
2023-08-30 0:47 ` yuji2.ishikawa
2023-07-14 1:50 ` [PATCH v7 3/5] media: add V4L2 vendor specific control handlers Yuji Ishikawa
2023-08-21 12:28 ` Hans Verkuil
2023-08-21 12:33 ` Laurent Pinchart
2023-08-30 0:46 ` yuji2.ishikawa
2023-07-14 1:50 ` [PATCH v7 4/5] documentation: media: add documentation for Toshiba Visconti Video Input Interface driver Yuji Ishikawa
2023-07-14 1:50 ` [PATCH v7 5/5] MAINTAINERS: Add entries for Toshiba Visconti Video Input Interface Yuji Ishikawa
2023-08-21 12:58 ` [PATCH v7 0/5] Add Toshiba Visconti Video Input Interface driver Hans Verkuil
2023-08-30 0:44 ` yuji2.ishikawa
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=7aa255e8-1cf1-03c6-02c8-de7c737a5683@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil@xs4all.nl \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@iki.fi \
--cc=yuji2.ishikawa@toshiba.co.jp \
/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).