-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM64: dts: imx8mm-pico-wizard: add dtoverlay for TechNexion CAM-OV56…
…45 and seperate OV5640 as independent dtoverlay
- Loading branch information
1 parent
49e098e
commit 78d1314
Showing
4 changed files
with
160 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
arch/arm64/boot/dts/freescale/overlays/imx8mm-pico-wizard-ov5640-overlay.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright 2020 TechNexion Ltd. | ||
* | ||
* Author: Richard Hu <richard.hu@technexion.com> | ||
* | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/clock/imx8mm-clock.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
fragment@0 { | ||
target = <&csi1_bridge>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&mipi_csi_1>; | ||
__overlay__ { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port { | ||
mipi1_sensor_ep: endpoint@1 { | ||
remote-endpoint = <&ov5640_mipi1_ep>; | ||
data-lanes = <2>; | ||
csis-hs-settle = <13>; | ||
csis-clk-settle = <2>; | ||
csis-wclk; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c2>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
/* PCA9554 on camera tev_mipi board */ | ||
pca9554_tev_mipi: pca9554_tev_mipi@24 { | ||
compatible = "nxp,pca9554"; | ||
reg =<0x24>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
|
||
ov5640_mipi: ov5640_mipi@3c { | ||
compatible = "ovti,ov5640_mipi"; | ||
reg = <0x3c>; | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_csi_rst>; | ||
clocks = <&clk IMX8MM_CLK_CLKO1>; | ||
clock-names = "csi_mclk"; | ||
assigned-clocks = <&clk IMX8MM_CLK_CLKO1>; | ||
assigned-clock-parents = <&clk IMX8MM_CLK_24M>; | ||
assigned-clock-rates = <24000000>; | ||
csi_id = <0>; | ||
pwn-gpios = <&pca9554_tev_mipi 2 GPIO_ACTIVE_LOW>; | ||
rst-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; | ||
mclk = <24000000>; | ||
mclk_source = <0>; | ||
port { | ||
ov5640_mipi1_ep: endpoint { | ||
remote-endpoint = <&mipi1_sensor_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
74 changes: 74 additions & 0 deletions
74
arch/arm64/boot/dts/freescale/overlays/imx8mm-pico-wizard-ov5645-overlay.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright 2020 TechNexion Ltd. | ||
* | ||
* Author: Richard Hu <richard.hu@technexion.com> | ||
* | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/clock/imx8mm-clock.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
fragment@0 { | ||
target = <&csi1_bridge>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&mipi_csi_1>; | ||
__overlay__ { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port { | ||
mipi1_sensor_ep: endpoint@1 { | ||
remote-endpoint = <&ov5645_mipi1_ep>; | ||
data-lanes = <2>; | ||
csis-hs-settle = <13>; | ||
csis-clk-settle = <2>; | ||
csis-wclk; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c2>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ov5645_mipi: ov5645_mipi@3c { | ||
compatible = "ovti,ov5645_mipi_v2"; | ||
reg = <0x3c>; | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_csi_rst>; | ||
clocks = <&clk IMX8MM_CLK_CLKO1>; | ||
clock-names = "csi_mclk"; | ||
assigned-clocks = <&clk IMX8MM_CLK_CLKO1>; | ||
assigned-clock-parents = <&clk IMX8MM_CLK_24M>; | ||
assigned-clock-rates = <24000000>; | ||
csi_id = <0>; | ||
pwn-gpios = <&pca9555_26 15 GPIO_ACTIVE_LOW>; | ||
rst-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; | ||
mclk = <24000000>; | ||
mclk_source = <0>; | ||
port { | ||
ov5645_mipi1_ep: endpoint { | ||
remote-endpoint = <&mipi1_sensor_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |