|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | +// Definitions for IMX662 camera module on VC I2C bus |
| 3 | +/dts-v1/; |
| 4 | +/plugin/; |
| 5 | + |
| 6 | +#include <dt-bindings/gpio/gpio.h> |
| 7 | + |
| 8 | +/{ |
| 9 | + compatible = "brcm,bcm2835"; |
| 10 | + |
| 11 | + fragment@0 { |
| 12 | + target = <&i2c0if>; |
| 13 | + __overlay__ { |
| 14 | + status = "okay"; |
| 15 | + }; |
| 16 | + }; |
| 17 | + |
| 18 | + clk_frag: fragment@1 { |
| 19 | + target = <&cam1_clk>; |
| 20 | + clk: __overlay__ { |
| 21 | + status = "okay"; |
| 22 | + clock-frequency = <24000000>; |
| 23 | + }; |
| 24 | + }; |
| 25 | + |
| 26 | + fragment@2 { |
| 27 | + target = <&i2c0mux>; |
| 28 | + __overlay__ { |
| 29 | + status = "okay"; |
| 30 | + }; |
| 31 | + }; |
| 32 | + |
| 33 | + reg_frag: fragment@3 { |
| 34 | + target = <&cam1_reg>; |
| 35 | + cam_reg: __overlay__ { |
| 36 | + startup-delay-us = <300000>; |
| 37 | + }; |
| 38 | + }; |
| 39 | + |
| 40 | + i2c_frag: fragment@100 { |
| 41 | + target = <&i2c_csi_dsi>; |
| 42 | + __overlay__ { |
| 43 | + #address-cells = <1>; |
| 44 | + #size-cells = <0>; |
| 45 | + status = "okay"; |
| 46 | + |
| 47 | + #include "imx662.dtsi" |
| 48 | + |
| 49 | + vcm: ad5398@c { |
| 50 | + compatible = "adi,ad5398"; |
| 51 | + reg = <0x0c>; |
| 52 | + status = "disabled"; |
| 53 | + VANA-supply = <&cam1_reg>; |
| 54 | + }; |
| 55 | + }; |
| 56 | + }; |
| 57 | + |
| 58 | + csi_frag: fragment@101 { |
| 59 | + target = <&csi1>; |
| 60 | + csi: __overlay__ { |
| 61 | + status = "okay"; |
| 62 | + |
| 63 | + port { |
| 64 | + csi_ep: endpoint { |
| 65 | + remote-endpoint = <&cam_endpoint>; |
| 66 | + clock-lanes = <0>; |
| 67 | + data-lanes = <1 2>; |
| 68 | + clock-noncontinuous; |
| 69 | + }; |
| 70 | + }; |
| 71 | + }; |
| 72 | + }; |
| 73 | + |
| 74 | + fragment@102 { |
| 75 | + target = <&csi1>; |
| 76 | + __dormant__ { |
| 77 | + compatible = "brcm,bcm2835-unicam-legacy"; |
| 78 | + }; |
| 79 | + }; |
| 80 | + |
| 81 | + fragment@201 { |
| 82 | + target = <&csi_ep>; |
| 83 | + __dormant__ { |
| 84 | + data-lanes = <1 2 3 4>; |
| 85 | + }; |
| 86 | + }; |
| 87 | + |
| 88 | + fragment@202 { |
| 89 | + target = <&cam_endpoint>; |
| 90 | + __dormant__ { |
| 91 | + data-lanes = <1 2 3 4>; |
| 92 | + }; |
| 93 | + }; |
| 94 | + |
| 95 | + __overrides__ { |
| 96 | + rotation = <&cam_node>,"rotation:0"; |
| 97 | + orientation = <&cam_node>,"orientation:0"; |
| 98 | + media-controller = <0>,"!102"; |
| 99 | + cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, |
| 100 | + <&csi_frag>, "target:0=",<&csi0>, |
| 101 | + <&clk_frag>, "target:0=",<&cam0_clk>, |
| 102 | + <&cam_node>, "clocks:0=",<&cam0_clk>, |
| 103 | + <®_frag>, "target:0=",<&cam0_reg>, |
| 104 | + <&cam_node>, "VANA-supply:0=",<&cam0_reg>, |
| 105 | + <&vcm>, "VANA-supply:0=", <&cam0_reg>; |
| 106 | + vcm = <&vcm>, "status=okay", |
| 107 | + <&cam_node>,"lens-focus:0=", <&vcm>; |
| 108 | + 4lane = <0>, "+201+202"; |
| 109 | + clock-frequency = <&clk>,"clock-frequency:0"; |
| 110 | + link-frequency = <&cam_endpoint>,"link-frequencies#0"; |
| 111 | + mono = <&cam_node>,"compatible=sony,imx662aamr"; |
| 112 | + }; |
| 113 | +}; |
| 114 | + |
| 115 | +&cam_node { |
| 116 | + status = "okay"; |
| 117 | +}; |
| 118 | + |
| 119 | +&cam_endpoint { |
| 120 | + remote-endpoint = <&csi_ep>; |
| 121 | +}; |
0 commit comments