From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Julien Stephan <jstephan@baylibre.com>,
Phi-bang Nguyen <pnguyen@baylibre.com>,
Andy Hsieh <andy.hsieh@mediatek.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org,
Florian Sylvestre <fsylvestre@baylibre.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
linux-media@vger.kernel.org, Louis Kuo <louis.kuo@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Paul Elder <paul.elder@ideasonboard.com>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v4 2/5] dt-bindings: media: add mediatek ISP3.0 camsv
Date: Fri, 12 Jan 2024 09:41:41 +0200 [thread overview]
Message-ID: <20240112074141.GA21256@pendragon.ideasonboard.com> (raw)
In-Reply-To: <feb4e04f-8282-4b52-b785-07bf15008e06@linaro.org>
On Fri, Jan 12, 2024 at 08:34:45AM +0100, Krzysztof Kozlowski wrote:
> On 10/01/2024 15:14, Julien Stephan wrote:
> > From: Phi-bang Nguyen <pnguyen@baylibre.com>
> >
> > This adds the bindings, for the ISP3.0 camsv module embedded in
> > some Mediatek SoC, such as the mt8365
> >
> > Signed-off-by: Phi-bang Nguyen <pnguyen@baylibre.com>
> > Signed-off-by: Julien Stephan <jstephan@baylibre.com>
> > Link: https://lore.kernel.org/r/20230807094940.329165-4-jstephan@baylibre.com
> > ---
> > .../bindings/media/mediatek,mt8365-camsv.yaml | 109 ++++++++++++++++++
> > MAINTAINERS | 1 +
> > 2 files changed, 110 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> > new file mode 100644
> > index 000000000000..097b1ab6bc72
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> > @@ -0,0 +1,109 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +# Copyright (c) 2023 MediaTek, BayLibre
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/media/mediatek,mt8365-camsv.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MediaTek CAMSV 3.0
> > +
> > +maintainers:
> > + - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > + - Julien Stephan <jstephan@baylibre.com>
> > + - Andy Hsieh <andy.hsieh@mediatek.com>
> > +
> > +description:
> > + The CAMSV is a set of DMA engines connected to the SENINF CSI-2
> > + receivers. The number of CAMSVs depend on the SoC model.
>
> DMA should not go to media, but to dma
They're not generic DMA engines. The CAMSV is a video capture device
that includes a DMA engine, much like pretty much all the other video
capture devices.
> > +
> > +properties:
> > + compatible:
> > + const: mediatek,mt8365-camsv
> > +
> > + reg:
> > + items:
> > + - description: camsv base
> > + - description: img0 base
> > + - description: tg base
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + power-domains:
> > + maxItems: 1
> > +
> > + clocks:
> > + items:
> > + - description: cam clock
> > + - description: camtg clock
> > + - description: camsv clock
> > +
> > + clock-names:
> > + items:
> > + - const: cam
> > + - const: camtg
> > + - const: camsv
> > +
> > + iommus:
> > + maxItems: 1
> > +
> > + ports:
> > + $ref: /schemas/graph.yaml#/properties/ports
> > +
> > + properties:
> > + port@0:
> > + $ref: /schemas/graph.yaml#/properties/port
> > + description: connection point for camsv0
>
> This explains me nothing. What type of connection point? How does it fit
> the pipeline going to the display?
The description seems wrong, it should state
description: Connection to the SENINF output
or something similar.
> It seems you represented DMA as some other device to make your drivers
> easier... That's not how it works.
>
> > +
> > + required:
> > + - port@0
> > +
> > +required:
> > + - compatible
> > + - interrupts
> > + - clocks
> > + - clock-names
> > + - power-domains
> > + - iommus
> > + - ports
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + #include <dt-bindings/clock/mediatek,mt8365-clk.h>
> > + #include <dt-bindings/memory/mediatek,mt8365-larb-port.h>
> > + #include <dt-bindings/power/mediatek,mt8365-power.h>
> > +
> > + soc {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
> > +
> > + camsv1: camsv@15050000 {
>
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Julien Stephan <jstephan@baylibre.com>,
Phi-bang Nguyen <pnguyen@baylibre.com>,
Andy Hsieh <andy.hsieh@mediatek.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org,
Florian Sylvestre <fsylvestre@baylibre.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
linux-media@vger.kernel.org, Louis Kuo <louis.kuo@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Paul Elder <paul.elder@ideasonboard.com>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v4 2/5] dt-bindings: media: add mediatek ISP3.0 camsv
Date: Fri, 12 Jan 2024 09:41:41 +0200 [thread overview]
Message-ID: <20240112074141.GA21256@pendragon.ideasonboard.com> (raw)
In-Reply-To: <feb4e04f-8282-4b52-b785-07bf15008e06@linaro.org>
On Fri, Jan 12, 2024 at 08:34:45AM +0100, Krzysztof Kozlowski wrote:
> On 10/01/2024 15:14, Julien Stephan wrote:
> > From: Phi-bang Nguyen <pnguyen@baylibre.com>
> >
> > This adds the bindings, for the ISP3.0 camsv module embedded in
> > some Mediatek SoC, such as the mt8365
> >
> > Signed-off-by: Phi-bang Nguyen <pnguyen@baylibre.com>
> > Signed-off-by: Julien Stephan <jstephan@baylibre.com>
> > Link: https://lore.kernel.org/r/20230807094940.329165-4-jstephan@baylibre.com
> > ---
> > .../bindings/media/mediatek,mt8365-camsv.yaml | 109 ++++++++++++++++++
> > MAINTAINERS | 1 +
> > 2 files changed, 110 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> > new file mode 100644
> > index 000000000000..097b1ab6bc72
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8365-camsv.yaml
> > @@ -0,0 +1,109 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +# Copyright (c) 2023 MediaTek, BayLibre
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/media/mediatek,mt8365-camsv.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MediaTek CAMSV 3.0
> > +
> > +maintainers:
> > + - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > + - Julien Stephan <jstephan@baylibre.com>
> > + - Andy Hsieh <andy.hsieh@mediatek.com>
> > +
> > +description:
> > + The CAMSV is a set of DMA engines connected to the SENINF CSI-2
> > + receivers. The number of CAMSVs depend on the SoC model.
>
> DMA should not go to media, but to dma
They're not generic DMA engines. The CAMSV is a video capture device
that includes a DMA engine, much like pretty much all the other video
capture devices.
> > +
> > +properties:
> > + compatible:
> > + const: mediatek,mt8365-camsv
> > +
> > + reg:
> > + items:
> > + - description: camsv base
> > + - description: img0 base
> > + - description: tg base
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + power-domains:
> > + maxItems: 1
> > +
> > + clocks:
> > + items:
> > + - description: cam clock
> > + - description: camtg clock
> > + - description: camsv clock
> > +
> > + clock-names:
> > + items:
> > + - const: cam
> > + - const: camtg
> > + - const: camsv
> > +
> > + iommus:
> > + maxItems: 1
> > +
> > + ports:
> > + $ref: /schemas/graph.yaml#/properties/ports
> > +
> > + properties:
> > + port@0:
> > + $ref: /schemas/graph.yaml#/properties/port
> > + description: connection point for camsv0
>
> This explains me nothing. What type of connection point? How does it fit
> the pipeline going to the display?
The description seems wrong, it should state
description: Connection to the SENINF output
or something similar.
> It seems you represented DMA as some other device to make your drivers
> easier... That's not how it works.
>
> > +
> > + required:
> > + - port@0
> > +
> > +required:
> > + - compatible
> > + - interrupts
> > + - clocks
> > + - clock-names
> > + - power-domains
> > + - iommus
> > + - ports
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + #include <dt-bindings/clock/mediatek,mt8365-clk.h>
> > + #include <dt-bindings/memory/mediatek,mt8365-larb-port.h>
> > + #include <dt-bindings/power/mediatek,mt8365-power.h>
> > +
> > + soc {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
> > +
> > + camsv1: camsv@15050000 {
>
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
--
Regards,
Laurent Pinchart
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-01-12 7:41 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 14:14 [PATCH v4 0/5] Add Mediatek ISP3.0 Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-10 14:14 ` [PATCH v4 1/5] dt-bindings: media: add mediatek ISP3.0 sensor interface Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-11 8:15 ` Laurent Pinchart
2024-01-11 8:15 ` Laurent Pinchart
2024-01-12 7:32 ` Krzysztof Kozlowski
2024-01-12 7:32 ` Krzysztof Kozlowski
2024-06-07 8:52 ` Julien Stephan
2024-06-07 8:52 ` Julien Stephan
2024-06-07 14:41 ` Laurent Pinchart
2024-06-07 14:41 ` Laurent Pinchart
2024-06-10 7:54 ` Krzysztof Kozlowski
2024-06-10 7:54 ` Krzysztof Kozlowski
2024-06-10 8:54 ` Laurent Pinchart
2024-06-10 8:54 ` Laurent Pinchart
2024-06-10 10:18 ` Krzysztof Kozlowski
2024-06-10 10:18 ` Krzysztof Kozlowski
2024-06-10 16:10 ` Conor Dooley
2024-06-10 16:10 ` Conor Dooley
2024-06-10 16:19 ` Conor Dooley
2024-06-10 16:19 ` Conor Dooley
2024-06-10 7:39 ` Krzysztof Kozlowski
2024-06-10 7:39 ` Krzysztof Kozlowski
2024-01-10 14:14 ` [PATCH v4 2/5] dt-bindings: media: add mediatek ISP3.0 camsv Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-12 7:34 ` Krzysztof Kozlowski
2024-01-12 7:34 ` Krzysztof Kozlowski
2024-01-12 7:41 ` Laurent Pinchart [this message]
2024-01-12 7:41 ` Laurent Pinchart
2024-01-12 7:49 ` Krzysztof Kozlowski
2024-01-12 7:49 ` Krzysztof Kozlowski
2024-01-10 14:14 ` [PATCH v4 3/5] media: platform: mediatek: isp_30: add mediatek ISP3.0 sensor interface Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-11 2:46 ` CK Hu (胡俊光)
2024-01-11 2:46 ` CK Hu (胡俊光)
2024-01-11 12:04 ` AngeloGioacchino Del Regno
2024-01-11 12:04 ` AngeloGioacchino Del Regno
2024-02-12 15:07 ` Julien Stephan
2024-02-12 15:07 ` Julien Stephan
2024-06-10 14:39 ` Julien Stephan
2024-06-10 14:39 ` Julien Stephan
2024-06-12 8:06 ` AngeloGioacchino Del Regno
2024-06-14 10:38 ` Julien Stephan
2024-06-14 12:33 ` Laurent Pinchart
2024-06-14 14:14 ` Julien Stephan
2024-06-14 14:42 ` Laurent Pinchart
2024-06-14 14:54 ` Julien Stephan
2024-06-15 0:47 ` Laurent Pinchart
2024-07-04 13:41 ` Julien Stephan
2024-02-15 9:21 ` Sakari Ailus
2024-02-15 9:21 ` Sakari Ailus
2024-03-20 9:04 ` CK Hu (胡俊光)
2024-03-20 9:04 ` CK Hu (胡俊光)
2024-01-10 14:14 ` [PATCH v4 4/5] media: platform: mediatek: isp_30: add mediatek ISP3.0 camsv Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-11 12:07 ` AngeloGioacchino Del Regno
2024-01-11 12:07 ` AngeloGioacchino Del Regno
2024-01-12 0:58 ` CK Hu (胡俊光)
2024-01-12 0:58 ` CK Hu (胡俊光)
2024-01-12 1:48 ` CK Hu (胡俊光)
2024-01-12 1:48 ` CK Hu (胡俊光)
2024-01-12 3:55 ` CK Hu (胡俊光)
2024-01-12 3:55 ` CK Hu (胡俊光)
2024-02-15 11:55 ` Sakari Ailus
2024-02-15 11:55 ` Sakari Ailus
2024-03-18 3:50 ` CK Hu (胡俊光)
2024-03-18 3:50 ` CK Hu (胡俊光)
2024-03-18 5:18 ` CK Hu (胡俊光)
2024-03-18 5:18 ` CK Hu (胡俊光)
2024-03-18 5:42 ` CK Hu (胡俊光)
2024-03-18 5:42 ` CK Hu (胡俊光)
2024-03-19 8:47 ` CK Hu (胡俊光)
2024-03-19 8:47 ` CK Hu (胡俊光)
2024-03-20 9:36 ` CK Hu (胡俊光)
2024-03-20 9:36 ` CK Hu (胡俊光)
2024-01-10 14:14 ` [PATCH v4 5/5] arm64: dts: mediatek: mt8365: Add support for camera Julien Stephan
2024-01-10 14:14 ` Julien Stephan
2024-01-11 8:32 ` Laurent Pinchart
2024-01-11 8:32 ` Laurent Pinchart
2024-01-11 8:08 ` [PATCH v4 0/5] Add Mediatek ISP3.0 Laurent Pinchart
2024-01-11 8:08 ` Laurent Pinchart
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=20240112074141.GA21256@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=andy.hsieh@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fsylvestre@baylibre.com \
--cc=jstephan@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=louis.kuo@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=paul.elder@ideasonboard.com \
--cc=pnguyen@baylibre.com \
--cc=robh+dt@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.