Skip to content

Commit d26b215

Browse files
author
Alain Volmat
committed
boards: st: stm32n6570_dk: csi_22pins connector related labels
Add csi_22pins_connector and related label in order to use shields relying on csi_pins_connector. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 6d08a38 commit d26b215

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <st/n6/stm32n657x0hxq-pinctrl.dtsi>
99
#include "zephyr/dt-bindings/display/panel.h"
1010
#include <zephyr/dt-bindings/flash_controller/xspi.h>
11+
#include <zephyr/dt-bindings/gpio/raspberrypi-csi-22pins-connector.h>
1112
#include <zephyr/dt-bindings/input/input-event-codes.h>
1213
#include <zephyr/dt-bindings/video/video-interfaces.h>
1314
#include "arduino_r3_connector.dtsi"
@@ -46,6 +47,15 @@
4647
label = "User LD2";
4748
};
4849
};
50+
51+
csi_22pins_connector: connector_csi_22pins {
52+
compatible = "raspberrypi,csi-22pins-connector";
53+
#gpio-cells = <2>;
54+
gpio-map-mask = <0xffffffff 0xffffffc0>;
55+
gpio-map-pass-thru = <0 0x3f>;
56+
gpio-map = <CSI_22PINS_IO0 0 &gpioc 8 0>,
57+
<CSI_22PINS_IO1 0 &gpiod 2 0>;
58+
};
4959
};
5060

5161
&clk_hse {
@@ -185,7 +195,7 @@
185195
status = "okay";
186196
};
187197

188-
&i2c1 {
198+
csi_22pins_i2c: &i2c1 {
189199
clocks = <&rcc STM32_CLOCK(APB1, 21)>,
190200
<&rcc STM32_SRC_CKPER I2C1_SEL(1)>;
191201
pinctrl-0 = <&i2c1_scl_ph9 &i2c1_sda_pc1>;
@@ -379,3 +389,15 @@ zephyr_udc0: &usbotg_hs1 {
379389
def-back-color-green = <0xFF>;
380390
def-back-color-blue = <0xFF>;
381391
};
392+
393+
csi_22pins_interface: &dcmipp {
394+
ports {
395+
port@0 {
396+
csi_22pins_ep_in: endpoint { };
397+
};
398+
399+
port@1 {
400+
csi_22pins_capture_port: endpoint@1 { };
401+
};
402+
};
403+
};

0 commit comments

Comments
 (0)