1 // SPDX-License-Identifier: GPL-2.0-only OR MI 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 2 /* 2 /* 3 * ALINX AN5641 & Digilent PCam 5C - OV5640 ca 3 * ALINX AN5641 & Digilent PCam 5C - OV5640 camera module 4 * Copyright (C) 2022-2024 Texas Instruments I 4 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 /plugin/; 8 /plugin/; 9 9 10 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/gpio.h> 11 11 12 &{/} { 12 &{/} { 13 clk_ov5640_fixed: ov5640-xclk { 13 clk_ov5640_fixed: ov5640-xclk { 14 compatible = "fixed-clock"; 14 compatible = "fixed-clock"; 15 #clock-cells = <0>; 15 #clock-cells = <0>; 16 clock-frequency = <12000000>; 16 clock-frequency = <12000000>; 17 }; 17 }; 18 }; 18 }; 19 19 20 &main_gpio0 { 20 &main_gpio0 { 21 p11-hog { 21 p11-hog { 22 /* P11 - CSI2_CAMERA_GPIO1 */ 22 /* P11 - CSI2_CAMERA_GPIO1 */ 23 gpio-hog; 23 gpio-hog; 24 gpios = <11 GPIO_ACTIVE_HIGH>; 24 gpios = <11 GPIO_ACTIVE_HIGH>; 25 output-high; 25 output-high; 26 line-name = "CSI2_CAMERA_GPIO1 26 line-name = "CSI2_CAMERA_GPIO1"; 27 }; 27 }; 28 }; 28 }; 29 29 30 &wkup_i2c0 { 30 &wkup_i2c0 { 31 #address-cells = <1>; 31 #address-cells = <1>; 32 #size-cells = <0>; 32 #size-cells = <0>; 33 status = "okay"; 33 status = "okay"; 34 34 35 ov5640: camera@3c { 35 ov5640: camera@3c { 36 compatible = "ovti,ov5640"; 36 compatible = "ovti,ov5640"; 37 reg = <0x3c>; 37 reg = <0x3c>; 38 38 39 clocks = <&clk_ov5640_fixed>; 39 clocks = <&clk_ov5640_fixed>; 40 clock-names = "xclk"; 40 clock-names = "xclk"; 41 41 42 port { 42 port { 43 csi2_cam0: endpoint { 43 csi2_cam0: endpoint { 44 remote-endpoin 44 remote-endpoint = <&csi2rx0_in_sensor>; 45 clock-lanes = 45 clock-lanes = <0>; 46 data-lanes = < 46 data-lanes = <1 2>; 47 }; 47 }; 48 }; 48 }; 49 }; 49 }; 50 }; 50 }; 51 51 52 &cdns_csi2rx0 { 52 &cdns_csi2rx0 { 53 ports { 53 ports { 54 #address-cells = <1>; 54 #address-cells = <1>; 55 #size-cells = <0>; 55 #size-cells = <0>; 56 56 57 csi0_port0: port@0 { 57 csi0_port0: port@0 { 58 reg = <0>; 58 reg = <0>; 59 status = "okay"; 59 status = "okay"; 60 60 61 csi2rx0_in_sensor: end 61 csi2rx0_in_sensor: endpoint { 62 remote-endpoin 62 remote-endpoint = <&csi2_cam0>; 63 bus-type = <4> 63 bus-type = <4>; /* CSI2 DPHY. */ 64 clock-lanes = 64 clock-lanes = <0>; 65 data-lanes = < 65 data-lanes = <1 2>; 66 }; 66 }; 67 }; 67 }; 68 }; 68 }; 69 }; 69 }; 70 70 71 &dphy0 { 71 &dphy0 { 72 status = "okay"; 72 status = "okay"; 73 }; 73 }; 74 74 75 &ti_csi2rx0 { 75 &ti_csi2rx0 { 76 status = "okay"; 76 status = "okay"; 77 }; 77 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.