1 // SPDX-License-Identifier: GPL-2.0-only OR MI 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 2 /* 2 /* 3 * IMX219 (RPi v2) Camera Module 3 * IMX219 (RPi v2) Camera Module 4 * Copyright (C) 2023-2024 Texas Instruments I 4 * Copyright (C) 2023-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_imx219_fixed: imx219-xclk { 13 clk_imx219_fixed: imx219-xclk { 14 compatible = "fixed-clock"; 14 compatible = "fixed-clock"; 15 #clock-cells = <0>; 15 #clock-cells = <0>; 16 clock-frequency = <24000000>; 16 clock-frequency = <24000000>; 17 }; 17 }; 18 }; 18 }; 19 19 20 &main_i2c2 { 20 &main_i2c2 { 21 #address-cells = <1>; 21 #address-cells = <1>; 22 #size-cells = <0>; 22 #size-cells = <0>; 23 status = "okay"; 23 status = "okay"; 24 24 25 i2c-switch@71 { 25 i2c-switch@71 { 26 compatible = "nxp,pca9543"; 26 compatible = "nxp,pca9543"; 27 #address-cells = <1>; 27 #address-cells = <1>; 28 #size-cells = <0>; 28 #size-cells = <0>; 29 reg = <0x71>; 29 reg = <0x71>; 30 30 31 /* CAM port */ 31 /* CAM port */ 32 i2c@1 { 32 i2c@1 { 33 #address-cells = <1>; 33 #address-cells = <1>; 34 #size-cells = <0>; 34 #size-cells = <0>; 35 reg = <1>; 35 reg = <1>; 36 36 37 ov5640: camera@10 { 37 ov5640: camera@10 { 38 compatible = " 38 compatible = "sony,imx219"; 39 reg = <0x10>; 39 reg = <0x10>; 40 40 41 clocks = <&clk 41 clocks = <&clk_imx219_fixed>; 42 clock-names = 42 clock-names = "xclk"; 43 43 44 reset-gpios = 44 reset-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>; 45 45 46 port { 46 port { 47 csi2_c 47 csi2_cam0: endpoint { 48 48 remote-endpoint = <&csi2rx0_in_sensor>; 49 49 link-frequencies = /bits/ 64 <456000000>; 50 50 clock-lanes = <0>; 51 51 data-lanes = <1 2>; 52 }; 52 }; 53 }; 53 }; 54 }; 54 }; 55 }; 55 }; 56 }; 56 }; 57 }; 57 }; 58 58 59 &cdns_csi2rx0 { 59 &cdns_csi2rx0 { 60 ports { 60 ports { 61 #address-cells = <1>; 61 #address-cells = <1>; 62 #size-cells = <0>; 62 #size-cells = <0>; 63 63 64 csi0_port0: port@0 { 64 csi0_port0: port@0 { 65 reg = <0>; 65 reg = <0>; 66 status = "okay"; 66 status = "okay"; 67 67 68 csi2rx0_in_sensor: end 68 csi2rx0_in_sensor: endpoint { 69 remote-endpoin 69 remote-endpoint = <&csi2_cam0>; 70 bus-type = <4> 70 bus-type = <4>; /* CSI2 DPHY. */ 71 clock-lanes = 71 clock-lanes = <0>; 72 data-lanes = < 72 data-lanes = <1 2>; 73 }; 73 }; 74 }; 74 }; 75 }; 75 }; 76 }; 76 }; 77 77 78 &ti_csi2rx0 { 78 &ti_csi2rx0 { 79 status = "okay"; 79 status = "okay"; 80 }; 80 }; 81 81 82 &dphy0 { 82 &dphy0 { 83 status = "okay"; 83 status = "okay"; 84 }; 84 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.