|
29 | 29 |
|
30 | 30 | &i2c4 {
|
31 | 31 | status = "okay";
|
32 |
| - ov7670: ov7670@21 { |
33 |
| - compatible = "ovti,ov7670"; |
34 |
| - reg = <0x21>; |
| 32 | + gc2145: gc2145@3c { |
| 33 | + compatible = "galaxycore,gc2145"; |
| 34 | + reg = <0x3c>; |
35 | 35 | reset-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
|
36 | 36 | pwdn-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>;
|
37 | 37 |
|
38 | 38 | port {
|
39 |
| - ov7670_ep_out: endpoint { |
| 39 | + gc2145_ep_out: endpoint { |
40 | 40 | remote-endpoint = <&dcmi_ep_in>;
|
41 | 41 | };
|
42 | 42 | };
|
|
76 | 76 | compatible = "pwm-clock";
|
77 | 77 | clock-frequency = <0>;
|
78 | 78 | #clock-cells = <1>;
|
79 |
| - pwms = <&cam_clock_pwm 3 PWM_HZ(6000000) PWM_POLARITY_NORMAL>; |
| 79 | + pwms = <&cam_clock_pwm 3 PWM_HZ(12000000) PWM_POLARITY_NORMAL>; |
80 | 80 | };
|
81 | 81 | };
|
82 | 82 |
|
|
90 | 90 |
|
91 | 91 | &dcmi {
|
92 | 92 | status = "okay";
|
93 |
| - sensor = <&ov7670>; |
| 93 | + sensor = <&gc2145>; |
94 | 94 | /* ext-sdram = <&sdram1>; */
|
95 | 95 | pinctrl-0 = <&dcmi_hsync_ph8 &dcmi_pixclk_pa6 &dcmi_vsync_pi5
|
96 | 96 | &dcmi_d0_ph9 &dcmi_d1_ph10 &dcmi_d2_ph11 &dcmi_d3_pg11
|
|
102 | 102 | pixelclk-active = <0>;
|
103 | 103 | capture-rate = <1>;
|
104 | 104 | dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
|
105 |
| - STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS | |
| 105 | + STM32_DMA_MEM_INC | STM32_DMA_PERIPH_32BITS | STM32_DMA_MEM_32BITS | |
106 | 106 | STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
|
107 | 107 |
|
108 | 108 | port {
|
109 | 109 | dcmi_ep_in: endpoint {
|
110 |
| - remote-endpoint = <&ov7670_ep_out>; |
| 110 | + remote-endpoint = <&gc2145_ep_out>; |
111 | 111 | };
|
112 | 112 | };
|
113 | 113 | };
|
|
264 | 264 | /{
|
265 | 265 | chosen {
|
266 | 266 | zephyr,camera = &dcmi;
|
| 267 | + /* zephyr,console = &cdc_acm_uart0; */ |
267 | 268 | };
|
268 | 269 |
|
269 | 270 | /* used to overcome problems with _C analog pins */
|
|
450 | 451 | cdc-acm = <&cdc_acm_uart0>;
|
451 | 452 | i2cs = <&i2c2>, <&i2c4>, <&i2c1>;
|
452 | 453 | spis = <&spi1>, <&spi5>;
|
453 |
| - pwms = <&cam_clock_pwm 3 PWM_HZ(6000000) PWM_POLARITY_NORMAL>; |
| 454 | + pwms = <&cam_clock_pwm 3 PWM_HZ(12000000) PWM_POLARITY_NORMAL>; |
454 | 455 |
|
455 | 456 | io-channels = <&adc1 4>,
|
456 | 457 | <&adc1 8>,
|
|
0 commit comments