Commit c44edadb authored by Enrico Scholz's avatar Enrico Scholz

arm64: dts: polaris: added generic vm016 description

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent d67a0833
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* VM016 device tree setup for Phytec iMX8MQ baes platforms
*
* Copyright (C) 2019 Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
*/
#ifndef HAVE_VM016_0
# define HAVE_VM016_0 1
#endif
#ifndef HAVE_VM016_1
# define HAVE_VM016_1 1
#endif
/ {
vm016_0_clk:vm016-0-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <27000000>;
status = "disabled";
};
vm016_1_clk:vm016-1-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <27000000>;
status = "disabled";
};
};
&vm016_0 {
#address-cells = <0x1>;
#size-cells = <0x0>;
#thermal-sensor-cells = <0>;
compatible = "onsemi,ar0144";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cam1_ctrl>;
clock-names = "ext";
clocks = <&vm016_0_clk>;
status = "disabled";
port@0 {
reg = <0>;
vm016_0_ep0: endpoint {
remote-endpoint = <&mipi1_sensor_ep>;
data-lanes = <1 2>;
clock-lanes = <0>;
clock-noncontinuous = <1>;
};
};
timings {
mipi-0 = <
/* hs_prep hs_zero hs_trail clk_trail */
1500000000 ((1 << 12) | ( 6 << 8) | ( 6 << 4) | (5 << 0))
>;
mipi-1 = <
/* clk_prep hs_exit clk_zero */
1500000000 ((1 << 12) | ( 4 << 6) | (14 << 0))
>;
mipi-2 = <
/* bgap clk_pre clk_post */
1500000000 ((2 << 12) | ( 1 << 6) | ( 9 << 0))
>;
mipi-3 = <
/* tm3 lpx wake_up */
1500000000 ((0 << 13) | ( 2 << 7) | ( 5 << 0))
>;
mipi-4 = <
/* heavy_lp tm4 init */
1500000000 ((0 << 14) | ( 0 << 7) | ( 4 << 0))
>;
};
};
&vm016_1 {
#address-cells = <0x1>;
#size-cells = <0x0>;
#thermal-sensor-cells = <0>;
compatible = "onsemi,ar0144";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cam2_ctrl>;
clock-names = "ext";
clocks = <&vm016_1_clk>;
status = "disabled";
port@0 {
reg = <0>;
vm016_1_ep0: endpoint {
remote-endpoint = <&mipi2_sensor_ep>;
data-lanes = <1 2>;
clock-lanes = <0>;
clock-noncontinuous = <1>;
};
};
timings {
mipi-0 = <
/* hs_prep hs_zero hs_trail clk_trail */
1500000000 ((1 << 12) | ( 6 << 8) | ( 6 << 4) | (5 << 0))
>;
mipi-1 = <
/* clk_prep hs_exit clk_zero */
1500000000 ((1 << 12) | ( 4 << 6) | (14 << 0))
>;
mipi-2 = <
/* bgap clk_pre clk_post */
1500000000 ((2 << 12) | ( 1 << 6) | ( 9 << 0))
>;
mipi-3 = <
/* tm3 lpx wake_up */
1500000000 ((0 << 13) | ( 2 << 7) | ( 5 << 0))
>;
mipi-4 = <
/* heavy_lp tm4 init */
1500000000 ((0 << 14) | ( 0 << 7) | ( 4 << 0))
>;
};
};
#if defined(HAVE_VM016_0) && HAVE_VM016_0
&vm016_0 {
status = "okay";
};
&vm016_0_clk {
status = "okay";
};
&mipi_csi_1 {
status = "okay";
};
&csi1_bridge {
status = "okay";
};
&mipi1_sensor_ep {
data-lanes = <1 2>;
remote-endpoint = <&vm016_0_ep0>;
};
#endif
#if defined(HAVE_VM016_1) && HAVE_VM016_1
&vm016_1 {
status = "okay";
};
&vm016_1_clk {
status = "okay";
};
&mipi_csi_2 {
status = "okay";
};
&csi2_bridge {
status = "okay";
};
&mipi2_sensor_ep {
data-lanes = <1 2>;
remote-endpoint = <&vm016_1_ep0>;
};
#endif
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