From: Rob Herring <robh@kernel.org>
To: Inbaraj E <inbaraj.e@samsung.com>
Cc: rmfrfs@gmail.com, laurent.pinchart@ideasonboard.com,
martink@posteo.de, kernel@puri.sm, mchehab@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-media@vger.kernel.org,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
pankaj.dubey@samsung.com, ravi.patel@samsung.com,
shradha.t@samsung.com
Subject: Re: [PATCH v3 1/7] dt-bindings: media: nxp: Add support for FSD SoC
Date: Fri, 29 Aug 2025 12:46:38 -0500 [thread overview]
Message-ID: <20250829174638.GA1054721-robh@kernel.org> (raw)
In-Reply-To: <20250828085911.81266-2-inbaraj.e@samsung.com>
On Thu, Aug 28, 2025 at 02:29:05PM +0530, Inbaraj E wrote:
> The Tesla FSD CSIS link controller is used to configure MIPI CSI-2
> Rx link operations.
>
> The Tesla FSD SoC include a MIPI CSI-2 Rx IP core named CSIS, which is
> compatible with the CSIS IP found in NXP i.MX7 and i.MX8 SoCs. Add the
> compatible string "tesla,fsd-mipi-csi2" to support the MIPI CSI-2 Rx
> link operation on the Tesla FSD SoC.
>
> Signed-off-by: Inbaraj E <inbaraj.e@samsung.com>
> ---
> .../bindings/media/nxp,imx-mipi-csi2.yaml | 91 +++++++++++++++----
> 1 file changed, 71 insertions(+), 20 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml b/Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml
> index 41ad5b84eaeb..39b9447fd40c 100644
> --- a/Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml
> +++ b/Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml
> @@ -14,7 +14,7 @@ description: |-
> The NXP i.MX7 and i.MX8 families contain SoCs that include a MIPI CSI-2
> receiver IP core named CSIS. The IP core originates from Samsung, and may be
> compatible with some of the Exynos4 and S5P SoCs. i.MX7 SoCs use CSIS version
> - 3.3, and i.MX8 SoCs use CSIS version 3.6.3.
> + 3.3, i.MX8 SoCs use CSIS version 3.6.3 and FSD SoC uses CSIS version 4.3.
>
> While the CSI-2 receiver is separate from the MIPI D-PHY IP core, the PHY is
> completely wrapped by the CSIS and doesn't expose a control interface of its
> @@ -26,6 +26,7 @@ properties:
> - enum:
> - fsl,imx7-mipi-csi2
> - fsl,imx8mm-mipi-csi2
> + - tesla,fsd-mipi-csi2
> - items:
> - enum:
> - fsl,imx8mp-mipi-csi2
> @@ -38,24 +39,21 @@ properties:
> maxItems: 1
>
> clocks:
> - minItems: 3
> - items:
> - - description: The peripheral clock (a.k.a. APB clock)
> - - description: The external clock (optionally used as the pixel clock)
> - - description: The MIPI D-PHY clock
> - - description: The AXI clock
> + minItems: 2
> + maxItems: 4
>
> clock-names:
> - minItems: 3
> - items:
> - - const: pclk
> - - const: wrap
> - - const: phy
> - - const: axi
> + minItems: 2
> + maxItems: 4
>
> power-domains:
> maxItems: 1
>
> + tesla,syscon-csis:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + description:
> + Syscon used to hold and release the reset of MIPI D-PHY
Reset? Sounds like you should be using the reset binding.
> +
> phy-supply:
> description: The MIPI D-PHY digital power supply
>
> @@ -93,7 +91,8 @@ properties:
> properties:
> data-lanes:
> description:
> - Note that 'fsl,imx7-mipi-csi2' only supports up to 2 data lines.
> + Note that 'fsl,imx7-mipi-csi2' only supports up to 2 data
> + lines.
Reformatting should be a separate patch.
> minItems: 1
> items:
> - const: 1
> @@ -115,7 +114,6 @@ required:
> - interrupts
> - clocks
> - clock-names
> - - power-domains
> - ports
>
> additionalProperties: false
> @@ -124,20 +122,73 @@ allOf:
> - if:
> properties:
> compatible:
> - contains:
> - const: fsl,imx7-mipi-csi2
> + const: fsl,imx7-mipi-csi2
'contains' was correct. It is more future proof when there is another
SoC that is backwards compatible with imx7.
> then:
> + properties:
> + clocks:
> + items:
> + - description: The peripheral clock (a.k.a. APB clock)
> + - description: The external clock (optionally used as the pixel
> + clock)
> + - description: The MIPI D-PHY clock
> + clock-names:
> + items:
> + - const: pclk
> + - const: wrap
> + - const: phy
> + tesla,syscon-csis: false
> + fsl,num-channels: false
blank line
> required:
> + - power-domains
> - phy-supply
> - resets
> - else:
> +
> + - if:
> + properties:
> + compatible:
> + const: fsl,imx8mm-mipi-csi2
> + then:
> properties:
> clocks:
> - minItems: 4
> + items:
> + - description: The peripheral clock (a.k.a. APB clock)
> + - description: The external clock (optionally used as the pixel
> + clock)
> + - description: The MIPI D-PHY clock
> + - description: The AXI clock
> clock-names:
> - minItems: 4
> + items:
> + - const: pclk
> + - const: wrap
> + - const: phy
> + - const: axi
> + tesla,syscon-csis: false
> + fsl,num-channels: false
> phy-supply: false
> resets: false
blank line
> + required:
> + - power-domains
> +
> + - if:
> + properties:
> + compatible:
> + const: tesla,fsd-mipi-csi2
> + then:
> + properties:
> + clocks:
> + items:
> + - description: The peripheral clock (a.k.a. APB clock)
> + - description: The DMA clock
Wouldn't this be the same as the "AXI clock"?
> + clocks-names:
> + items:
> + - const: pclk
> + - const: aclk
> + phy-supply: false
> + resets: false
> + power-domains: false
blank line
> + required:
> + - tesla,syscon-csis
> + - fsl,num-channels
>
> examples:
> - |
> --
> 2.49.0
>
next prev parent reply other threads:[~2025-08-29 17:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250828085921epcas5p44f9371fb004fe0aa8bf68d1230e01861@epcas5p4.samsung.com>
2025-08-28 8:59 ` [PATCH v3 0/7] Add FSD CSIS support Inbaraj E
[not found] ` <CGME20250828085926epcas5p1b82576210280fb44c6c7f02851da71c6@epcas5p1.samsung.com>
2025-08-28 8:59 ` [PATCH v3 1/7] dt-bindings: media: nxp: Add support for FSD SoC Inbaraj E
2025-08-29 17:46 ` Rob Herring [this message]
[not found] ` <CGME20250828085930epcas5p1719c7db08074bf1540dc85b71736a6c5@epcas5p1.samsung.com>
2025-08-28 8:59 ` [PATCH v3 2/7] dt-bindings: media: fsd: Add CSIS video capture interface Inbaraj E
2025-09-01 4:55 ` Krzysztof Kozlowski
[not found] ` <CGME20250828085934epcas5p12a94dfc60a4ea9d5bb46fa7cd10874b7@epcas5p1.samsung.com>
2025-08-28 8:59 ` [PATCH v3 3/7] media: imx-mipi-csis: Move clk to mipi_csis_info structure Inbaraj E
[not found] ` <CGME20250828085938epcas5p3595ab67c6e5c40ab97f0b4a81faa16b3@epcas5p3.samsung.com>
2025-08-28 8:59 ` [PATCH v3 4/7] media: imx-mipi-csis: Move irq flag and handler " Inbaraj E
[not found] ` <CGME20250828085942epcas5p3724f3184a1b12c20a8016c89f7e47ba7@epcas5p3.samsung.com>
2025-08-28 8:59 ` [PATCH v3 5/7] media: imx-mipi-csis: Add support for dynamic VC selection Inbaraj E
[not found] ` <CGME20250828085946epcas5p1752330d70434b840893b01a201324711@epcas5p1.samsung.com>
2025-08-28 8:59 ` [PATCH v3 6/7] media: imx-mipi-csis: Add support for Telsa FSD CSIS Inbaraj E
[not found] ` <CGME20250828085949epcas5p2a39a61925893e78ae8b70902fc7f4c20@epcas5p2.samsung.com>
2025-08-28 8:59 ` [PATCH v3 7/7] media: fsd-csis: Add FSD CSIS video capture interface support Inbaraj E
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=20250829174638.GA1054721-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=inbaraj.e@samsung.com \
--cc=kernel@pengutronix.de \
--cc=kernel@puri.sm \
--cc=krzk+dt@kernel.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=linux-samsung-soc@vger.kernel.org \
--cc=martink@posteo.de \
--cc=mchehab@kernel.org \
--cc=pankaj.dubey@samsung.com \
--cc=ravi.patel@samsung.com \
--cc=rmfrfs@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shradha.t@samsung.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).