|
7 | 7 | #include <st/n6/stm32n657X0.dtsi> |
8 | 8 | #include <st/n6/stm32n657x0hxq-pinctrl.dtsi> |
9 | 9 | #include <zephyr/dt-bindings/flash_controller/xspi.h> |
| 10 | +#include <zephyr/dt-bindings/gpio/raspberrypi-csi-connector.h> |
10 | 11 | #include <zephyr/dt-bindings/input/input-event-codes.h> |
11 | 12 | #include "arduino_r3_connector.dtsi" |
12 | 13 |
|
|
54 | 55 | led2 = &red_led; |
55 | 56 | sw0 = &user_button; |
56 | 57 | }; |
| 58 | + |
| 59 | + csi_connector: connector_csi { |
| 60 | + compatible = "raspberrypi,csi-connector"; |
| 61 | + #gpio-cells = <2>; |
| 62 | + gpio-map-mask = <0xffffffff 0xffffffc0>; |
| 63 | + gpio-map-pass-thru = <0 0x3f>; |
| 64 | + gpio-map = <CSI_IO0 0 &gpioo 5 0>, |
| 65 | + <CSI_IO1 0 &gpioa 0 0>; |
| 66 | + }; |
57 | 67 | }; |
58 | 68 |
|
59 | 69 | &clk_hse { |
|
109 | 119 | status = "okay"; |
110 | 120 | }; |
111 | 121 |
|
| 122 | +&ic17 { |
| 123 | + pll-src = <1>; |
| 124 | + ic-div = <4>; |
| 125 | + status = "okay"; |
| 126 | +}; |
| 127 | + |
| 128 | +/* IC18 must be enabled for the 27MHz CSIPHY */ |
| 129 | +&ic18 { |
| 130 | + pll-src = <1>; |
| 131 | + ic-div = <60>; |
| 132 | + status = "okay"; |
| 133 | +}; |
| 134 | + |
112 | 135 | &perck { |
113 | 136 | clocks = <&rcc STM32_SRC_HSI PER_SEL(0)>; |
114 | 137 | status = "okay"; |
|
154 | 177 | status = "okay"; |
155 | 178 | }; |
156 | 179 |
|
| 180 | +csi_i2c: &i2c2 { |
| 181 | + clocks = <&rcc STM32_CLOCK(APB1, 22)>, |
| 182 | + <&rcc STM32_SRC_CKPER I2C2_SEL(1)>; |
| 183 | + pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>; |
| 184 | + pinctrl-names = "default"; |
| 185 | + clock-frequency = <I2C_BITRATE_STANDARD>; |
| 186 | + status = "okay"; |
| 187 | +}; |
| 188 | + |
157 | 189 | &i2c4 { |
158 | 190 | clocks = <&rcc STM32_CLOCK(APB4, 7)>, |
159 | 191 | <&rcc STM32_SRC_CKPER I2C4_SEL(1)>; |
@@ -257,3 +289,9 @@ zephyr_udc0: &usbotg_hs1 { |
257 | 289 | }; |
258 | 290 | }; |
259 | 291 | }; |
| 292 | + |
| 293 | +csi_interface: &dcmipp { |
| 294 | + port { |
| 295 | + csi_ep_in: endpoint {}; |
| 296 | + }; |
| 297 | +}; |
0 commit comments