From: Sakari Ailus <sakari.ailus@iki.fi>
To: Alain Volmat <alain.volmat@foss.st.com>
Cc: Hugues Fruchet <hugues.fruchet@foss.st.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v4 02/15] dt-bindings: media: add description of stm32 csi
Date: Sun, 15 Dec 2024 12:18:42 +0000 [thread overview]
Message-ID: <Z17JItE-98IIrnMv@valkosipuli.retiisi.eu> (raw)
In-Reply-To: <20241212-csi_dcmipp_mp25-v4-2-fbeb55a05ed7@foss.st.com>
Hi Alain,
On Thu, Dec 12, 2024 at 10:17:26AM +0100, Alain Volmat wrote:
> Add the stm32 csi controller description.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
> ---
> v2:
> - rename into st,stm32mp25-csi.yaml to match compatible
> - correct port / data-lanes (remove useless lines &
> use data-lanes 1 and 2 instead of 0 and 1)
> - correct commit log
> ---
> .../bindings/media/st,stm32mp25-csi.yaml | 125 +++++++++++++++++++++
> 1 file changed, 125 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/media/st,stm32mp25-csi.yaml b/Documentation/devicetree/bindings/media/st,stm32mp25-csi.yaml
> new file mode 100644
> index 000000000000..33bedfe41924
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/st,stm32mp25-csi.yaml
> @@ -0,0 +1,125 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/st,stm32mp25-csi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics STM32 CSI controller
> +
> +description:
> + The STM32 CSI controller allows connecting a CSI based
> + camera to the DCMIPP camera pipeline.
CSI-2 I presume?
You should also document it here it has D-PHY...
> +
> +maintainers:
> + - Alain Volmat <alain.volmat@foss.st.com>
> +
> +properties:
> + compatible:
> + enum:
> + - st,stm32mp25-csi
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 3
> +
> + clock-names:
> + items:
> + - const: pclk
> + - const: txesc
> + - const: csi2phy
> +
> + resets:
> + maxItems: 1
> +
> + vdd-supply:
> + description: Digital core power supply (0.91V)
> +
> + vdda18-supply:
> + description: System analog power supply (1.8V)
> +
> + access-controllers:
> + minItems: 1
> + maxItems: 2
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + properties:
> + port@0:
> + $ref: /schemas/graph.yaml#/$defs/port-base
> + unevaluatedProperties: false
> + description:
> + Input port node
> +
> + properties:
> + endpoint:
> + $ref: video-interfaces.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + data-lanes:
> + minItems: 1
> + items:
> + - const: 1
> + - const: 2
> +
> + required:
> + - data-lanes
> +
> + port@1:
> + $ref: /schemas/graph.yaml#/properties/port
> + description:
> + Output port node
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> + - resets
> + - ports
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/st,stm32mp25-rcc.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/media/video-interfaces.h>
> + #include <dt-bindings/reset/st,stm32mp25-rcc.h>
> + csi@48020000 {
> + compatible = "st,stm32mp25-csi";
> + reg = <0x48020000 0x2000>;
> + interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
> + resets = <&rcc CSI_R>;
> + clocks = <&rcc CK_KER_CSI>, <&rcc CK_KER_CSITXESC>, <&rcc CK_KER_CSIPHY>;
> + clock-names = "pclk", "txesc", "csi2phy";
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + port@0 {
> + reg = <0>;
> + endpoint {
> + remote-endpoint = <&imx335_ep>;
> + data-lanes = <1 2>;
> + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
...and drop bus-type property.
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + endpoint {
> + remote-endpoint = <&dcmipp_0>;
> + };
> + };
> + };
> + };
> +
> +...
>
--
Kind regards,
Sakari Ailus
next prev parent reply other threads:[~2024-12-15 12:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 9:17 [PATCH v4 00/15] media: stm32: introduction of CSI / DCMIPP for STM32MP25 Alain Volmat
2024-12-12 9:17 ` [PATCH v4 01/15] media: stm32: dcmipp: correct dma_set_mask_and_coherent mask value Alain Volmat
2024-12-12 9:17 ` [PATCH v4 02/15] dt-bindings: media: add description of stm32 csi Alain Volmat
2024-12-15 12:18 ` Sakari Ailus [this message]
2024-12-17 17:41 ` Alain Volmat
2024-12-12 9:17 ` [PATCH v4 03/15] media: stm32: csi: addition of the STM32 CSI driver Alain Volmat
2024-12-15 12:40 ` Sakari Ailus
2024-12-17 17:45 ` Alain Volmat
2024-12-12 9:17 ` [PATCH v4 04/15] media: stm32: dcmipp: use v4l2_subdev_is_streaming Alain Volmat
2024-12-12 9:17 ` [PATCH v4 05/15] media: stm32: dcmipp: replace s_stream with enable/disable_streams Alain Volmat
2024-12-12 9:17 ` [PATCH v4 06/15] media: stm32: dcmipp: rename dcmipp_parallel into dcmipp_input Alain Volmat
2024-12-12 9:17 ` [PATCH v4 07/15] media: stm32: dcmipp: add support for csi input into dcmipp-input Alain Volmat
2024-12-12 9:17 ` [PATCH v4 08/15] media: stm32: dcmipp: add bayer 10~14 bits formats Alain Volmat
2024-12-12 9:17 ` [PATCH v4 09/15] media: stm32: dcmipp: add 1X16 RGB / YUV formats support Alain Volmat
2024-12-12 9:17 ` [PATCH v4 10/15] media: stm32: dcmipp: avoid duplicated format on enum in bytecap Alain Volmat
2024-12-12 9:17 ` [PATCH v4 11/15] media: stm32: dcmipp: fill media ctl hw_revision field Alain Volmat
2024-12-12 9:17 ` [PATCH v4 12/15] dt-bindings: media: add the stm32mp25 compatible of DCMIPP Alain Volmat
2024-12-12 9:17 ` [PATCH v4 13/15] media: stm32: dcmipp: add core support for the stm32mp25 Alain Volmat
2024-12-15 12:55 ` Sakari Ailus
2024-12-17 17:47 ` Alain Volmat
2024-12-12 9:17 ` [PATCH v4 14/15] arm64: dts: st: add csi & dcmipp node in stm32mp25 Alain Volmat
2024-12-12 9:17 ` [PATCH v4 15/15] arm64: dts: st: enable imx335/csi/dcmipp pipeline on stm32mp257f-ev1 Alain Volmat
2024-12-19 9:28 ` [PATCH v4 00/15] media: stm32: introduction of CSI / DCMIPP for STM32MP25 Alexandre TORGUE
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=Z17JItE-98IIrnMv@valkosipuli.retiisi.eu \
--to=sakari.ailus@iki.fi \
--cc=alain.volmat@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hugues.fruchet@foss.st.com \
--cc=hverkuil@xs4all.nl \
--cc=krzk+dt@kernel.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-stm32@st-md-mailman.stormreply.com \
--cc=mchehab@kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--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
all inboxes | Powered by JetHome®