1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2/* 3 * Device Tree Overlay for an IMX219 camera sensor on connector J2 on R-Car V4H 4 * ES3.0 Sparrow Hawk board. 5 * 6 * Copyright 2025 Renesas Electronics Corp. 7 * Copyright 2025 Niklas Söderlund <niklas.soderlund@ragnatech.se> 8 */ 9 10/dts-v1/; 11/plugin/; 12 13#include <dt-bindings/gpio/gpio.h> 14#include <dt-bindings/media/video-interfaces.h> 15 16&{/} { 17 clk_cam_j2: clk-cam-j2 { 18 compatible = "fixed-clock"; 19 #clock-cells = <0>; 20 clock-frequency = <24000000>; 21 }; 22 23 /* Page 29 / CSI_IF_CN / J2 */ 24 reg_cam_j2: reg-cam-j2 { 25 compatible = "regulator-fixed"; 26 regulator-name = "cam-J2"; 27 enable-active-high; 28 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 29 }; 30}; 31 32&i2c2 { 33 #address-cells = <1>; 34 #size-cells = <0>; 35 status = "okay"; 36 37 cam@10 { 38 compatible = "sony,imx219"; 39 reg = <0x10>; 40 41 clocks = <&clk_cam_j2>; 42 43 VANA-supply = <®_cam_j2>; 44 VDIG-supply = <®_cam_j2>; 45 VDDL-supply = <®_cam_j2>; 46 47 orientation = <2>; 48 rotation = <0>; 49 50 port { 51 imx219_j2_out: endpoint { 52 clock-noncontinuous; 53 link-frequencies = /bits/ 64 <456000000>; 54 data-lanes = <1 2>; 55 remote-endpoint = <&csi41_in>; 56 }; 57 }; 58 }; 59}; 60 61/* Page 29 / CSI_IF_CN */ 62&csi41 { 63 status = "okay"; 64 65 ports { 66 #address-cells = <1>; 67 #size-cells = <0>; 68 69 port@0 { 70 reg = <0>; 71 72 csi41_in: endpoint { 73 bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; 74 clock-lanes = <0>; 75 data-lanes = <1 2>; 76 remote-endpoint = <&imx219_j2_out>; 77 }; 78 }; 79 }; 80}; 81 82&isp1 { 83 status = "okay"; 84}; 85 86&vin08 { 87 status = "okay"; 88}; 89 90&vin09 { 91 status = "okay"; 92}; 93 94&vin10 { 95 status = "okay"; 96}; 97 98&vin11 { 99 status = "okay"; 100}; 101 102&vin12 { 103 status = "okay"; 104}; 105 106&vin13 { 107 status = "okay"; 108}; 109 110&vin14 { 111 status = "okay"; 112}; 113 114&vin15 { 115 status = "okay"; 116}; 117