Skip to content

Commit 1ab60d7

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

11 files changed

Lines changed: 339 additions & 0 deletions

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/pcb1637_vd56g3.dts

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+
vd56g3: camera@10 {
15+
compatible = "st,vd56g3";
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 = <6>;
26+
27+
port {
28+
vd56g3_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies =
34+
/bits/ 64 <402000000>;
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 = <&vd56g3_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+
};

dts/stm32mp2/pcb1637_vd66gy.dts

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+
vd66gy: camera@10 {
15+
compatible = "st,vd66gy";
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 = <6>;
26+
27+
port {
28+
vd66gy_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies =
34+
/bits/ 64 <402000000>;
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 = <&vd66gy_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+
};

dts/stm32mp2/pcb1718_vd56g3.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pcb4188_vd56g3.dts

dts/stm32mp2/pcb1718_vd66gy.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pcb4188_vd66gy.dts

dts/stm32mp2/pcb4188_vd16gz.dts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
vd16gz: camera@10 {
15+
compatible = "st,vd16gz";
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 = <6>;
26+
27+
port {
28+
vd16gz_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies =
34+
/bits/ 64 <402000000>;
35+
lane-polarities = <1 1 1>;
36+
};
37+
};
38+
};
39+
};
40+
};
41+
42+
fragment@1 {
43+
target = <&csi>;
44+
__overlay__ {
45+
ports {
46+
port@0 {
47+
csi_sink: endpoint {
48+
remote-endpoint = <&vd16gz_ep>;
49+
};
50+
};
51+
};
52+
};
53+
};
54+
55+
fragment@2 {
56+
target = <&gpiob>;
57+
__overlay__ {
58+
camera_power-hog {
59+
gpio-hog;
60+
gpios = <11 1>;
61+
output-low;
62+
};
63+
};
64+
};
65+
};

dts/stm32mp2/pcb4188_vd56g3.dts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
vd56g3: camera@10 {
15+
compatible = "st,vd56g3";
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 = <6>;
26+
27+
port {
28+
vd56g3_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies =
34+
/bits/ 64 <402000000>;
35+
lane-polarities = <1 1 1>;
36+
};
37+
};
38+
};
39+
};
40+
};
41+
42+
fragment@1 {
43+
target = <&csi>;
44+
__overlay__ {
45+
ports {
46+
port@0 {
47+
csi_sink: endpoint {
48+
remote-endpoint = <&vd56g3_ep>;
49+
};
50+
};
51+
};
52+
};
53+
};
54+
55+
fragment@2 {
56+
target = <&gpiob>;
57+
__overlay__ {
58+
camera_power-hog {
59+
gpio-hog;
60+
gpios = <11 1>;
61+
output-low;
62+
};
63+
};
64+
};
65+
};

dts/stm32mp2/pcb4188_vd66gy.dts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
vd66gy: camera@10 {
15+
compatible = "st,vd66gy";
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 = <6>;
26+
27+
port {
28+
vd66gy_ep: endpoint {
29+
clock-lanes = <0>;
30+
data-lanes = <1 2>;
31+
remote-endpoint = <&csi_sink>;
32+
clock-noncontinuous;
33+
link-frequencies =
34+
/bits/ 64 <402000000>;
35+
lane-polarities = <1 1 1>;
36+
};
37+
};
38+
};
39+
};
40+
};
41+
42+
fragment@1 {
43+
target = <&csi>;
44+
__overlay__ {
45+
ports {
46+
port@0 {
47+
csi_sink: endpoint {
48+
remote-endpoint = <&vd66gy_ep>;
49+
};
50+
};
51+
};
52+
};
53+
};
54+
55+
fragment@2 {
56+
target = <&gpiob>;
57+
__overlay__ {
58+
camera_power-hog {
59+
gpio-hog;
60+
gpios = <11 1>;
61+
output-low;
62+
};
63+
};
64+
};
65+
};

dts/stm32mp2/pcb4280_vd16gz.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pcb4188_vd16gz.dts

dts/stm32mp2/pcb4280_vd56g3.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pcb4188_vd56g3.dts

0 commit comments

Comments
 (0)