Tegra SoC specific Video Input updates
Subsystems (7)
v2 cover Tegra SoC specific Video Input updates
This patchset contains various SoC specific updates for Tegra Video Input driver:
1. Fixes for Tegra20 and Tegra30 VI configuration (clock adjustments)
2. Moves Tegra210 specific code into tegra210.c from csi.c
3. Addition of Tegra114 CSI support
All changes were tested on:
LG Optimus Vu (P895) Tegra30 device:
- MT9M114 front sensor with complex topology and irregular pad mapping
- IMX111 rear sensor which has simple pixel array and a single pad
ASUS Transformer TF701T Tegra114 device:
- same MT9M114 front sensor
- OV5693 rear sensor which has simple pixel array and a single pad
Nvidia Tegra Note 7 (P1988) Tegra114 device:
- OV5693 rear sensor
They all work and produce images.
The "ARM: tegra: Remove fallback compatible from Tegra30 VI node" should be applied with "dt-bindings: display: tegra: Remove Tegra30 fallback"
This patchset is based on
https://lore.kernel.org/lkml/[email protected]/T/#m46981c261c3178126ce806aabddcc38cc33f747e
---
Changes in v2:
- "staging: media: tegra-video: Move driver to media/platform/nvidia" moved into media-device conversion
- dropped:
"media: tegra-video: vi: Switch to media_entity_remote_source_pad_unique() helper" "media: tegra-video: vi: Use entity function to check subdev type" "media: tegra-video: vi: Adjust pad assignment logic"
- fixed schema clock-names configuration for Tegra30 and Tegra114
- added "media: tegra-video: Move Tegra210-specific functions from common CSI" (Move and staticize the tegra_csi_error_recover() and tegra_csi_calc_settle_time() helpers from the common CSI file into the Tegra210-specific code)
Link to v1: https://lore.kernel.org/lkml/[email protected]/
---
Svyatoslav Ryhel (7):
dt-bindings: display: tegra: Remove Tegra30 fallback
media: tegra-video: vi: Diverge Tegra20 and Tegra30 VI SoC
descriptions
media: tegra-video: Move Tegra210-specific functions from common CSI
dt-bindings: display: tegra: Document Tegra114 CSI
media: tegra-video: Add CSI support for Tegra114
ARM: tegra: Remove fallback compatible from Tegra30 VI node
ARM: tegra: Add CSI node for Tegra114
.../display/tegra/nvidia,tegra20-csi.yaml | 37 +++- .../display/tegra/nvidia,tegra20-vi.yaml | 5 +- arch/arm/boot/dts/nvidia/tegra114.dtsi | 34 +++- arch/arm/boot/dts/nvidia/tegra30.dtsi | 2 +- .../platform/nvidia/tegra-video/Makefile | 1 + .../media/platform/nvidia/tegra-video/csi.c | 75 +------- .../media/platform/nvidia/tegra-video/csi.h | 11 +- .../platform/nvidia/tegra-video/tegra20.c | 171 ++++++++++++++++-- .../platform/nvidia/tegra-video/tegra210.c | 71 ++++++++ .../media/platform/nvidia/tegra-video/vi.c | 8 +- .../media/platform/nvidia/tegra-video/vi.h | 8 +- .../media/platform/nvidia/tegra-video/video.c | 7 +- 12 files changed, 324 insertions(+), 106 deletions(-)
Signature · 1 line
2.53.0
PATCH v2 1/7 dt-bindings: display: tegra: Remove Tegra30 fallback
After further investigation, I have found that Tegra30 requires a slightly different programming model than Tegra20—principally, the maximum VI clock differs by nearly a factor of two. Additionally, Tegra30 does not require the APB_MISC workaround.
Therefore, remove the fallback compatible and add a dedicated compatible for Tegra30 VI.
--- .../devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml +1 -4
@@ -18,16 +18,13 @@ properties: oneOf: - enum: - nvidia,tegra20-vi + - nvidia,tegra30-vi - nvidia,tegra114-vi - nvidia,tegra124-vi - nvidia,tegra210-vi - nvidia,tegra186-vi - nvidia,tegra194-vi - - items: - - const: nvidia,tegra30-vi - - const: nvidia,tegra20-vi - - items: - const: nvidia,tegra132-vi - const: nvidia,tegra124-vi
Signature · 1 line
2.53.0
PATCH v2 2/7 media: tegra-video: vi: Diverge Tegra20 and Tegra30 VI SoC descriptions
In reply to Svyatoslav RyhelFurther investigation shows that the current maximum VI clock rate is too high for Tegra20 and is better suited for Tegra30. The correct clock frequency for Tegra20 should be 150 MHz, as it was set prior to the addition of Tegra30 VI support — a value backed up by the current Tegra20 peripheral OPP table. Tegra30 supports up to 470 MHz for the VI clock, but this rate is available only on higher-end Tegra30 SoC variants. The highest clock rate supported across all SoC variants is 300 MHz.
Diverge the Tegra20 and Tegra30 VI SoC descriptions to account for maximum VI clock limits, setting 150 MHz for Tegra20 and 300 MHz for Tegra30. Additionally, remove the APB_MISC workaround for Tegra30, as it is Tegra20 specific.
--- .../platform/nvidia/tegra-video/tegra20.c | 22 ++++++++++++++++++- .../media/platform/nvidia/tegra-video/vi.c | 5 ++++- .../media/platform/nvidia/tegra-video/vi.h | 5 ++++- .../media/platform/nvidia/tegra-video/video.c | 3 ++- 4 files changed, 31 insertions(+), 4 deletions(-)
drivers/media/platform/nvidia/tegra-video/tegra20.c +21 -1
@@ -825,6 +825,15 @@ static const struct tegra_vi_ops tegra20_vi_ops = { .vi_stop_streaming = tegra20_vi_stop_streaming, }; +static const struct tegra_vi_ops tegra30_vi_ops = { + .channel_host1x_syncpt_init = tegra20_channel_host1x_syncpt_init, + .channel_host1x_syncpt_free = tegra20_channel_host1x_syncpt_free, + .vi_fmt_align = tegra20_fmt_align, + .channel_queue_setup = tegra20_channel_queue_setup, + .vi_start_streaming = tegra20_vi_start_streaming, + .vi_stop_streaming = tegra20_vi_stop_streaming, +}; +#define TEGRA20_VIDEO_FMT (DATA_TYPE ,BIT_WIDTH ,MBUS_CODE ,BPP ,FOURCC ) \ { \ .img_dt = TEGRA_IMAGE_DT_##DATA_TYPE, \
@@ -868,7 +877,18 @@ const struct tegra_vi_soc tegra20_vi_soc = { .ops = &tegra20_vi_ops, .hw_revision = 1, .vi_max_channels = 2, /* TEGRA_VI_OUT_1 and TEGRA_VI_OUT_2 */ - .vi_max_clk_hz = 450000000, + .vi_max_clk_hz = 150000000, + .has_h_v_flip = true, +}; + +const struct tegra_vi_soc tegra30_vi_soc = { + .video_formats = tegra20_video_formats, + .nformats =ARRAY_SIZE (tegra20_video_formats), + .default_video_format = &tegra20_video_formats[0 ], + .ops = &tegra30_vi_ops, + .hw_revision =1 , + .vi_max_channels =2 , + .vi_max_clk_hz =300000000 , .has_h_v_flip = true, };
drivers/media/platform/nvidia/tegra-video/vi.c +4 -1
@@ -1408,9 +1408,12 @@ static void tegra_vi_remove(struct platform_device *pdev) }static const struct of_device_id tegra_vi_of_id_table[] = { -#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC) +#if defined(CONFIG_ARCH_TEGRA_2x_SOC) { .compatible ="nvidia,tegra20-vi" , .data = &tegra20_vi_soc }, #endif +#if defined(CONFIG_ARCH_TEGRA_3x_SOC) + { .compatible ="nvidia,tegra30-vi" , .data = &tegra30_vi_soc }, +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC) { .compatible ="nvidia,tegra210-vi" , .data = &tegra210_vi_soc }, #endif
drivers/media/platform/nvidia/tegra-video/vi.h +4 -1
@@ -291,9 +291,12 @@ struct tegra_video_format {u32 fourcc; }; -#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC) +#if defined(CONFIG_ARCH_TEGRA_2x_SOC)extern const struct tegra_vi_soc tegra20_vi_soc;#endif +#if defined(CONFIG_ARCH_TEGRA_3x_SOC) +extern const struct tegra_vi_soc tegra30_vi_soc; +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC )extern const struct tegra_vi_soc tegra210_vi_soc;#endif
drivers/media/platform/nvidia/tegra-video/video.c +2 -1
@@ -123,13 +123,14 @@ static void host1x_video_remove(struct host1x_device *dev)static const struct of_device_id host1x_video_subdevs[] = { #if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC) { .compatible ="nvidia,tegra20-vip" , }, - { .compatible ="nvidia,tegra20-vi" , }, #endif #if defined(CONFIG_ARCH_TEGRA_2x_SOC) { .compatible ="nvidia,tegra20-csi" , }, + { .compatible ="nvidia,tegra20-vi" , }, #endif #if defined(CONFIG_ARCH_TEGRA_3x_SOC) { .compatible ="nvidia,tegra30-csi" , }, + { .compatible ="nvidia,tegra30-vi" , }, #endif #if defined(CONFIG_ARCH_TEGRA_210_SOC) { .compatible = "nvidia,tegra210-csi", },
Signature · 1 line
2.53.0
PATCH v2 3/7 media: tegra-video: Move Tegra210-specific functions from common CSI
In reply to Svyatoslav RyhelMove and staticize the tegra_csi_error_recover() and tegra_csi_calc_settle_time() helpers from the common CSI file into the Tegra210-specific code, since they are used exclusively by the HW rev. 3 Video Input found in Tegra210.
The tegra_csi_calc_settle_time() helper uses a custom MHZ definition which corresponds to the standard HZ_PER_MHZ. The custom MHZ macro is replaced by HZ_PER_MHZ, with this change folded into this commit.
--- .../media/platform/nvidia/tegra-video/csi.c | 72 ------------------- .../media/platform/nvidia/tegra-video/csi.h | 5 -- .../platform/nvidia/tegra-video/tegra210.c | 70 ++++++++++++++++++ 3 files changed, 70 insertions(+), 77 deletions(-)
drivers/media/platform/nvidia/tegra-video/csi.c +0 -72
@@ -19,8 +19,6 @@#include "csi.h" #include "video.h" -#define MHZ 1000000 -/* * Test pattern generator configuration */
@@ -263,65 +261,6 @@ static int tegra_csi_tpg_init_state(struct v4l2_subdev *sd,return 0 ; } -static unsigned int csi_get_pixel_rate (struct tegra_csi_channel *csi_chan) -{ -struct v4l2_subdev *subdev = &csi_chan->subdev; -struct v4l2_subdev *src_subdev; -struct v4l2_ctrl *ctrl; -struct media_pad *pad; - - pad =media_entity_remote_source_pad_unique (&subdev->entity); -if (!pad || !is_media_entity_v4l2_subdev (pad->entity)) -dev_err_probe (csi_chan->csi->dev, -ENODEV , -"failed to get source entity\n" ); - - src_subdev =media_entity_to_v4l2_subdev (pad->entity); - ctrl =v4l2_ctrl_find (src_subdev->ctrl_handler,V4L2_CID_PIXEL_RATE ); -if (ctrl) -return v4l2_ctrl_g_ctrl_int64 (ctrl); - -return 0 ; -} - -void tegra_csi_calc_settle_time (struct tegra_csi_channel *csi_chan, -u8 csi_port_num, -u8 *clk_settle_time, -u8 *ths_settle_time) -{ -struct tegra_csi *csi = csi_chan->csi; -unsigned int cil_clk_mhz; -unsigned int pix_clk_mhz; -int clk_idx = (csi_port_num >>1 ) +1 ; - - cil_clk_mhz =clk_get_rate (csi->clks[clk_idx].clk) /MHZ ; - pix_clk_mhz =csi_get_pixel_rate (csi_chan) /MHZ ; - -/* -* CLK Settle time is the interval during which HS receiver should -* ignore any clock lane HS transitions, starting from the beginning -* of T-CLK-PREPARE. -* Per DPHY specification, T-CLK-SETTLE should be between 95ns ~ 300ns -* -* 95ns < (clk-settle-programmed + 7) * lp clk period < 300ns -* midpoint = 197.5 ns -*/ - *clk_settle_time = ((95 +300 ) * cil_clk_mhz -14000 ) /2000 ; - -/* -* THS Settle time is the interval during which HS receiver should -* ignore any data lane HS transitions, starting from the beginning -* of THS-PREPARE. -* -* Per DPHY specification, T-HS-SETTLE should be between 85ns + 6UI -* and 145ns+10UI. -* 85ns + 6UI < (Ths-settle-prog + 5) * lp_clk_period < 145ns + 10UI -* midpoint = 115ns + 8UI -*/ -if (pix_clk_mhz) - *ths_settle_time = (115 * cil_clk_mhz +8000 * cil_clk_mhz - / (2 * pix_clk_mhz) -5000 ) /1000 ; -} -/* * Proper CSI configuration */
@@ -867,17 +806,6 @@ static int tegra_csi_channel_init(struct tegra_csi_channel *chan)return 0 ; } -void tegra_csi_error_recover (struct v4l2_subdev *sd) -{ -struct tegra_csi_channel *csi_chan =to_csi_chan (sd); -struct tegra_csi *csi = csi_chan->csi; - -/* stop streaming during error recovery */ - csi->ops->csi_stop_streaming (csi_chan); - csi->ops->csi_err_recover (csi_chan); - csi->ops->csi_start_streaming (csi_chan); -} -static int tegra_csi_channels_init (struct tegra_csi *csi) {struct tegra_csi_channel *chan;
drivers/media/platform/nvidia/tegra-video/csi.h +0 -5
@@ -175,9 +175,4 @@ static inline struct tegra_csi_channel *to_csi_chan(struct v4l2_subdev *subdev) return container_of(subdev, struct tegra_csi_channel, subdev); } -void tegra_csi_error_recover (struct v4l2_subdev *subdev); -void tegra_csi_calc_settle_time (struct tegra_csi_channel *csi_chan, -u8 csi_port_num, -u8 *clk_settle_time, -u8 *ths_settle_time);#endif
drivers/media/platform/nvidia/tegra-video/tegra210.c +70 -0
88 lines not on this page · raw message
Signature · 1 line
2.53.0
PATCH v2 4/7 dt-bindings: display: tegra: Document Tegra114 CSI
In reply to Svyatoslav RyhelAdd a separate compatible string for the Tegra114 CSI, as it has a different programming model, uses three additional clocks, and does not contain MIPI calibration logic.
--- .../display/tegra/nvidia,tegra20-csi.yaml | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-csi.yaml +32 -5
@@ -14,6 +14,7 @@ properties: enum: - nvidia,tegra20-csi - nvidia,tegra30-csi + - nvidia,tegra114-csi reg: maxItems: 1
@@ -24,12 +25,12 @@ properties: - description: module clock - description: PAD A clock - description: PAD B clock + - description: A/B lanes clock + - description: C/D lanes clock + - description: E lane clock clock-names: - items: - - const: csi - - const: csia-pad - - const: csib-pad + minItems: 3 avdd-dsi-csi-supply: description: DSI/CSI power supply. Must supply 1.2 V.
@@ -121,9 +122,35 @@ allOf: properties: clocks: minItems: 3 + maxItems: 3 clock-names: - minItems: 3 + items: + - const: csi + - const: csia-pad + - const: csib-pad + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra114-csi + then: + properties: + "#nvidia,mipi-calibrate-cells": false + + clocks: + minItems: 6 + + clock-names: + items: + - const: csi + - const: csia-pad + - const: csib-pad + - const: cilab + - const: cilcd + - const: cile additionalProperties: false
Signature · 1 line
2.53.0
PATCH v2 5/7 media: tegra-video: Add CSI support for Tegra114
In reply to Svyatoslav RyhelThe VI implementation used in previous generations is fully compatible with Tegra114 and remains hardware revision 1, making this a relatively small patch. Tegra114 supports a higher maximum VI clock frequency of 408 MHz, meaning the Tegra30 compatible cannot be used as a fallback.
The CSI block in Tegra114 is more advanced than the one in Tegra30. It has three additional lane clocks, both CSI A and B ports have two CIL pads per port, and the MIPI calibration logic has been moved into a dedicated block. The Tegra114 CSI also supports an additional CSI-C output, but since there are no known hardware configurations using it, it is omitted due to a lack of test hardware.
--- .../platform/nvidia/tegra-video/Makefile | 1 + .../media/platform/nvidia/tegra-video/csi.c | 3 + .../media/platform/nvidia/tegra-video/csi.h | 6 + .../platform/nvidia/tegra-video/tegra20.c | 149 ++++++++++++++++-- .../platform/nvidia/tegra-video/tegra210.c | 1 + .../media/platform/nvidia/tegra-video/vi.c | 3 + .../media/platform/nvidia/tegra-video/vi.h | 3 + .../media/platform/nvidia/tegra-video/video.c | 4 + 8 files changed, 156 insertions(+), 14 deletions(-)
drivers/media/platform/nvidia/tegra-video/Makefile +1 -0
@@ -7,5 +7,6 @@ tegra-video-objs := \ tegra-video-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o tegra-video-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra20.o +tegra-video-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra20.o tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
drivers/media/platform/nvidia/tegra-video/csi.c +3 -0
@@ -1017,6 +1017,9 @@ static const struct of_device_id tegra_csi_of_id_table[] = { #if defined(CONFIG_ARCH_TEGRA_3x_SOC) { .compatible = "nvidia,tegra30-csi", .data = &tegra30_csi_soc }, #endif +#if defined(CONFIG_ARCH_TEGRA_114_SOC) + { .compatible = "nvidia,tegra114-csi", .data = &tegra114_csi_soc }, +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC) { .compatible = "nvidia,tegra210-csi", .data = &tegra210_csi_soc }, #endif
drivers/media/platform/nvidia/tegra-video/csi.h +6 -0
@@ -119,6 +119,8 @@ struct tegra_csi_ops {* @num_clks: total clocks count * @tpg_frmrate_table: csi tpg frame rate table with blanking intervals * @tpg_frmrate_table_size: size of frame rate table +* @has_paired_cil: indicates that cil pads are paired per port, this is +* specific for Tegra114 where each port has 2 cil pads */ struct tegra_csi_soc {const struct tegra_csi_ops *ops;
@@ -128,6 +130,7 @@ struct tegra_csi_soc {unsigned int num_clks;const struct tpg_framerate *tpg_frmrate_table;unsigned int tpg_frmrate_table_size; +bool has_paired_cil; };#if defined(CONFIG_ARCH_TEGRA_2x_SOC)
@@ -136,6 +139,9 @@ extern const struct tegra_csi_soc tegra20_csi_soc;#if defined(CONFIG_ARCH_TEGRA_3x_SOC)extern const struct tegra_csi_soc tegra30_csi_soc;#endif +#if defined(CONFIG_ARCH_TEGRA_114_SOC ) +extern const struct tegra_csi_soc tegra114_csi_soc; +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC )extern const struct tegra_csi_soc tegra210_csi_soc;#endif
drivers/media/platform/nvidia/tegra-video/tegra20.c +135 -14
228 lines not on this page · raw message
drivers/media/platform/nvidia/tegra-video/tegra210.c +1 -0
@@ -1304,4 +1304,5 @@ const struct tegra_csi_soc tegra210_csi_soc = { .num_clks = ARRAY_SIZE(tegra210_csi_cil_clks), .tpg_frmrate_table = tegra210_tpg_frmrate_table, .tpg_frmrate_table_size = ARRAY_SIZE(tegra210_tpg_frmrate_table), + .has_paired_cil = false, };
drivers/media/platform/nvidia/tegra-video/vi.c +3 -0
@@ -1414,6 +1414,9 @@ static const struct of_device_id tegra_vi_of_id_table[] = { #if defined(CONFIG_ARCH_TEGRA_3x_SOC) { .compatible = "nvidia,tegra30-vi", .data = &tegra30_vi_soc }, #endif +#if defined(CONFIG_ARCH_TEGRA_114_SOC) + { .compatible = "nvidia,tegra114-vi", .data = &tegra114_vi_soc }, +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC) { .compatible = "nvidia,tegra210-vi", .data = &tegra210_vi_soc }, #endif
drivers/media/platform/nvidia/tegra-video/vi.h +3 -0
@@ -297,6 +297,9 @@ extern const struct tegra_vi_soc tegra20_vi_soc;#if defined(CONFIG_ARCH_TEGRA_3x_SOC)extern const struct tegra_vi_soc tegra30_vi_soc;#endif +#if defined(CONFIG_ARCH_TEGRA_114_SOC ) +extern const struct tegra_vi_soc tegra114_vi_soc; +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC )extern const struct tegra_vi_soc tegra210_vi_soc;#endif
drivers/media/platform/nvidia/tegra-video/video.c +4 -0
@@ -132,6 +132,10 @@ static const struct of_device_id host1x_video_subdevs[] = { { .compatible = "nvidia,tegra30-csi", }, { .compatible = "nvidia,tegra30-vi", }, #endif +#if defined(CONFIG_ARCH_TEGRA_114_SOC) + { .compatible = "nvidia,tegra114-csi", }, + { .compatible = "nvidia,tegra114-vi", }, +#endif #if defined(CONFIG_ARCH_TEGRA_210_SOC) { .compatible = "nvidia,tegra210-csi", }, { .compatible = "nvidia,tegra210-vi", },
Signature · 1 line
2.53.0
PATCH v2 6/7 ARM: tegra: Remove fallback compatible from Tegra30 VI node
In reply to Svyatoslav RyhelTegra30 now has its own specific compatible string for the VI. Remove the Tegra20 fallback, as it may interfere with the correct configuration of the device.
--- arch/arm/boot/dts/nvidia/tegra30.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nvidia/tegra30.dtsi +1 -1
@@ -150,7 +150,7 @@ mpe@54040000 { }; vi@54080000 { - compatible = "nvidia,tegra30-vi", "nvidia,tegra20-vi"; + compatible = "nvidia,tegra30-vi"; reg = <0x54080000 0x00000800>; interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; clocks = <&tegra_car TEGRA30_CLK_VI>;
Signature · 1 line
2.53.0
PATCH v2 7/7 ARM: tegra: Add CSI node for Tegra114
In reply to Svyatoslav RyhelAdd CSI node to Tegra114 device tree.
--- arch/arm/boot/dts/nvidia/tegra114.dtsi | 34 +++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nvidia/tegra114.dtsi +33 -1
@@ -53,7 +53,7 @@ host1x@50000000 { vi@54080000 { compatible = "nvidia,tegra114-vi"; - reg = <0x54080000 0x00040000>; + reg = <0x54080000 0x00000800>; interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; clocks = <&tegra_car TEGRA114_CLK_VI>; resets = <&tegra_car 20>;
@@ -64,6 +64,38 @@ vi@54080000 { iommus = <&mc TEGRA_SWGROUP_VI>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <1>; + + ranges = <0x0 0x54080000 0x4000>; + + csi@800 { + compatible = "nvidia,tegra114-csi"; + reg = <0x800 0x200>; + clocks = <&tegra_car TEGRA114_CLK_CSI>, + <&tegra_car TEGRA114_CLK_CSIA_PAD>, + <&tegra_car TEGRA114_CLK_CSIB_PAD>, + <&tegra_car TEGRA114_CLK_CILAB>, + <&tegra_car TEGRA114_CLK_CILCD>, + <&tegra_car TEGRA114_CLK_CILE>; + clock-names = "csi", "csia-pad", "csib-pad", + "cilab", "cilcd", "cile"; + power-domains = <&pd_venc>; + + assigned-clocks = <&tegra_car TEGRA114_CLK_CILAB>, + <&tegra_car TEGRA114_CLK_CILCD>, + <&tegra_car TEGRA114_CLK_CILE>; + assigned-clock-parents = <&tegra_car TEGRA114_CLK_PLL_P>, + <&tegra_car TEGRA114_CLK_PLL_P>, + <&tegra_car TEGRA114_CLK_PLL_P>; + assigned-clock-rates = <102000000>, <102000000>, <102000000>; + + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + }; }; epp@540c0000 {
Signature · 1 line
2.53.0