|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | +// Definitions for MIRA220 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 | + __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 | + i2c_frag: fragment@100 { |
| 34 | + target = <&i2c_csi_dsi>; |
| 35 | + __overlay__ { |
| 36 | + #address-cells = <1>; |
| 37 | + #size-cells = <0>; |
| 38 | + status = "okay"; |
| 39 | + |
| 40 | + #include "mira220.dtsi" |
| 41 | + |
| 42 | + }; |
| 43 | + }; |
| 44 | + |
| 45 | + csi_frag: fragment@101 { |
| 46 | + target = <&csi1>; |
| 47 | + csi: __overlay__ { |
| 48 | + status = "okay"; |
| 49 | + |
| 50 | + port { |
| 51 | + csi_ep: endpoint { |
| 52 | + remote-endpoint = <&cam_endpoint>; |
| 53 | + clock-lanes = <0>; |
| 54 | + data-lanes = <1 2>; |
| 55 | + // clock-noncontinuous; // mira220 reg seq use continous clk |
| 56 | + }; |
| 57 | + }; |
| 58 | + }; |
| 59 | + }; |
| 60 | + |
| 61 | + fragment@102 { |
| 62 | + target = <&csi1>; |
| 63 | + __dormant__ { |
| 64 | + compatible = "brcm,bcm2835-unicam-legacy"; |
| 65 | + }; |
| 66 | + }; |
| 67 | + |
| 68 | + fragment@201 { |
| 69 | + target = <&csi_ep>; |
| 70 | + __dormant__ { |
| 71 | + data-lanes = <1 2 >; |
| 72 | + }; |
| 73 | + }; |
| 74 | + |
| 75 | + fragment@202 { |
| 76 | + target = <&cam_endpoint>; |
| 77 | + __dormant__ { |
| 78 | + data-lanes = <1 2 >; |
| 79 | + link-frequencies = |
| 80 | + /bits/ 64 <363000000>; |
| 81 | + }; |
| 82 | + }; |
| 83 | + |
| 84 | + __overrides__ { |
| 85 | + rotation = <&cam_node>,"rotation:0"; |
| 86 | + orientation = <&cam_node>,"orientation:0"; |
| 87 | + media-controller = <0>,"!102"; |
| 88 | + cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, |
| 89 | + <&csi_frag>, "target:0=",<&csi0>, |
| 90 | + <&clk_frag>, "target:0=",<&cam0_clk>, |
| 91 | + <&cam_node>, "clocks:0=",<&cam0_clk>, |
| 92 | + <&cam_node>, "VANA-supply:0=",<&cam0_reg>; |
| 93 | + }; |
| 94 | +}; |
| 95 | + |
| 96 | +&cam_node { |
| 97 | + status = "okay"; |
| 98 | +}; |
| 99 | + |
| 100 | +&cam_endpoint { |
| 101 | + remote-endpoint = <&csi_ep>; |
| 102 | +}; |
0 commit comments