Skip to content

Commit e515cbd

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 712e78a commit e515cbd

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"
@@ -54,6 +55,15 @@
5455
label = "User LD2";
5556
};
5657
};
58+
59+
csi_22pins_connector: connector_csi_22pins {
60+
compatible = "raspberrypi,csi-22pins-connector";
61+
#gpio-cells = <2>;
62+
gpio-map-mask = <0xffffffff 0xffffffc0>;
63+
gpio-map-pass-thru = <0 0x3f>;
64+
gpio-map = <CSI_22PINS_IO0 0 &gpioc 8 0>,
65+
<CSI_22PINS_IO1 0 &gpiod 2 0>;
66+
};
5767
};
5868

5969
&i2c2 {
@@ -208,7 +218,7 @@
208218
status = "okay";
209219
};
210220

211-
&i2c1 {
221+
csi_22pins_i2c: &i2c1 {
212222
clocks = <&rcc STM32_CLOCK(APB1, 21)>,
213223
<&rcc STM32_SRC_CKPER I2C1_SEL(1)>;
214224
pinctrl-0 = <&i2c1_scl_ph9 &i2c1_sda_pc1>;
@@ -403,3 +413,15 @@ zephyr_udc0: &usbotg_hs1 {
403413
def-back-color-green = <0xFF>;
404414
def-back-color-blue = <0xFF>;
405415
};
416+
417+
csi_22pins_interface: &dcmipp {
418+
ports {
419+
port@0 {
420+
csi_22pins_ep_in: endpoint { };
421+
};
422+
423+
port@1 {
424+
csi_22pins_capture_port: endpoint@1 { };
425+
};
426+
};
427+
};

0 commit comments

Comments
 (0)