Skip to content

Commit ea250cc

Browse files
committed
dts: Add stm32mp2 device trees
Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
1 parent 73687f3 commit ea250cc

5 files changed

Lines changed: 263 additions & 0 deletions

File tree

dts/stm32mp2/disable_imx335.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fragment@100 {
2+
target = <&imx335>;
3+
__overlay__ {
4+
status = "disabled";
5+
port {
6+
endpoint {
7+
remote-endpoint = <&imx335_ep>;
8+
};
9+
};
10+
};
11+
};

dts/stm32mp2/pcb4444_vd1943.dts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "st,stm32mp215-dk";
6+
7+
/include/ "disable_imx335.dtsi"
8+
9+
fragment@0 {
10+
target = <&i2c2>;
11+
__overlay__ {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
vd1943: camera@10 {
15+
compatible = "st,vd1943";
16+
reg = <0x10>;
17+
18+
clocks = <&clk_ext_camera>;
19+
clock-names = "xclk";
20+
21+
reset-gpios = <&gpiob 1 1>; /* GPIO_ACTIVE_LOW | GPIO_PUSH_PULL */
22+
orientation = <0>;
23+
rotation = <2>;
24+
25+
port {
26+
vd1943_ep: endpoint {
27+
clock-lanes = <0>;
28+
data-lanes = <1 2>;
29+
remote-endpoint = <&csi_sink>;
30+
clock-noncontinuous;
31+
link-frequencies = /bits/ 64 <750000000>;
32+
lane-polarities = <1 1 1>;
33+
};
34+
};
35+
};
36+
};
37+
};
38+
39+
fragment@1 {
40+
target = <&csi>;
41+
__overlay__ {
42+
ports {
43+
port@0 {
44+
csi_sink: endpoint {
45+
remote-endpoint = <&vd1943_ep>;
46+
};
47+
};
48+
};
49+
};
50+
};
51+
52+
fragment@2 {
53+
target = <&gpiob>;
54+
__overlay__ {
55+
camera_power-hog {
56+
gpio-hog;
57+
gpios = <11 1>;
58+
output-low;
59+
};
60+
};
61+
};
62+
};

dts/stm32mp2/pcb4444_vd5943.dts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "st,stm32mp215-dk";
6+
7+
/include/ "disable_imx335.dtsi"
8+
9+
fragment@0 {
10+
target = <&i2c2>;
11+
__overlay__ {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
vd5943: camera@10 {
15+
compatible = "st,vd5943";
16+
reg = <0x10>;
17+
18+
clocks = <&clk_ext_camera>;
19+
clock-names = "xclk";
20+
21+
reset-gpios = <&gpiob 1 1>; /* GPIO_ACTIVE_LOW | GPIO_PUSH_PULL */
22+
orientation = <0>;
23+
rotation = <2>;
24+
25+
port {
26+
vd5943_ep: endpoint {
27+
clock-lanes = <0>;
28+
data-lanes = <1 2>;
29+
remote-endpoint = <&csi_sink>;
30+
clock-noncontinuous;
31+
link-frequencies = /bits/ 64 <750000000>;
32+
lane-polarities = <1 1 1>;
33+
};
34+
};
35+
};
36+
};
37+
};
38+
39+
fragment@1 {
40+
target = <&csi>;
41+
__overlay__ {
42+
ports {
43+
port@0 {
44+
csi_sink: endpoint {
45+
remote-endpoint = <&vd5943_ep>;
46+
};
47+
};
48+
};
49+
};
50+
};
51+
52+
fragment@2 {
53+
target = <&gpiob>;
54+
__overlay__ {
55+
camera_power-hog {
56+
gpio-hog;
57+
gpios = <11 1>;
58+
output-low;
59+
};
60+
};
61+
};
62+
};
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "st,stm32mp215-dk";
6+
7+
/include/ "disable_imx335.dtsi"
8+
9+
fragment@0 {
10+
target = <&i2c2>;
11+
__overlay__ {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
vd5943: camera@10 {
15+
compatible = "st,vd5943";
16+
reg = <0x10>;
17+
18+
clocks = <&clk_ext_camera>;
19+
clock-names = "xclk";
20+
21+
reset-gpios = <&gpiob 1 1>; /* GPIO_ACTIVE_LOW | GPIO_PUSH_PULL */
22+
orientation = <0>;
23+
rotation = <2>;
24+
25+
st,leds = <2>;
26+
27+
port {
28+
vd5943_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies = /bits/ 64 <750000000>;
34+
lane-polarities = <1 1 1>;
35+
};
36+
};
37+
};
38+
};
39+
};
40+
41+
fragment@1 {
42+
target = <&csi>;
43+
__overlay__ {
44+
ports {
45+
port@0 {
46+
csi_sink: endpoint {
47+
remote-endpoint = <&vd5943_ep>;
48+
};
49+
};
50+
};
51+
};
52+
};
53+
54+
fragment@2 {
55+
target = <&gpiob>;
56+
__overlay__ {
57+
camera_power-hog {
58+
gpio-hog;
59+
gpios = <11 1>;
60+
output-low;
61+
};
62+
};
63+
};
64+
};
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/{
5+
compatible = "st,stm32mp215-dk";
6+
7+
/include/ "disable_imx335.dtsi"
8+
9+
fragment@0 {
10+
target = <&i2c2>;
11+
__overlay__ {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
vd5943: camera@10 {
15+
compatible = "st,vd5943";
16+
reg = <0x10>;
17+
18+
clocks = <&clk_ext_camera>;
19+
clock-names = "xclk";
20+
21+
reset-gpios = <&gpiob 1 1>; /* GPIO_ACTIVE_LOW | GPIO_PUSH_PULL */
22+
orientation = <0>;
23+
rotation = <2>;
24+
25+
st,in-sync = <3>;
26+
27+
port {
28+
vd5943_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies = /bits/ 64 <750000000>;
34+
lane-polarities = <1 1 1>;
35+
};
36+
};
37+
};
38+
};
39+
};
40+
41+
fragment@1 {
42+
target = <&csi>;
43+
__overlay__ {
44+
ports {
45+
port@0 {
46+
csi_sink: endpoint {
47+
remote-endpoint = <&vd5943_ep>;
48+
};
49+
};
50+
};
51+
};
52+
};
53+
54+
fragment@2 {
55+
target = <&gpiob>;
56+
__overlay__ {
57+
camera_power-hog {
58+
gpio-hog;
59+
gpios = <11 1>;
60+
output-low;
61+
};
62+
};
63+
};
64+
};

0 commit comments

Comments
 (0)