Commit 897e26e9 authored by Guido Gunther's avatar Guido Gunther

librem5-devkit: Enable CSI

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent a13b9a79
......@@ -121,18 +121,6 @@
default-state = "off";
};
csi_nrst {
label = "CSI_nRST";
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
csi_pdwn {
label = "CSI_PDWN";
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
spk_mute {
label = "SPK_MUTE";
gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
......@@ -225,9 +213,9 @@
pinctrl_csi1: csi1grp {
fsl,pins = <
MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x11 /* CSI_nRST */
MX8MQ_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19 /* CSI_PWDN */
MX8MQ_IOMUXC_GPIO1_IO14_CCMSRCGPCMIX_CLKO1 0x19 /* CLK01 */
MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 /* CSI_nRST */
MX8MQ_IOMUXC_GPIO1_IO14_CCMSRCGPCMIX_CLKO1 0x59 /* CLK01 */
>;
};
......@@ -886,18 +874,20 @@
status = "okay";
ov5640_mipi: ov5640_mipi@3c {
compatible = "ovti,ov5640";
compatible = "ovti,ov5640_mipi";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1>;
reg = <0x3c>;
status = "okay";
clocks = <&clk IMX8MQ_CLK_CLKO1_DIV>;
clock-names = "xclk";
// TODO : need to change the parent clocks if we want 24Mhz
assigned-clocks = <&clk IMX8MQ_CLK_CLKO1_DIV>;
assigned-clock-rates = <12500000>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MQ_CLK_CLKO1_SRC>,
<&clk IMX8MQ_CLK_CLKO1_DIV>;
assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_200M>;
assigned-clock-rates = <0>, <20000000>;
csi_id = <0>;
pwn-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
pwn-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
rst-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
mclk = <20000000>;
mclk_source = <0>;
port {
......@@ -1148,7 +1138,7 @@
&csi1_bridge {
fsl,mipi-mode;
/* fsl,two-8bit-sensor-mode; */
fsl,two-8bit-sensor-mode;
status = "okay";
port {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment