Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright 2022 Gateworks Corporation
0004  */
0005 
0006 #include <dt-bindings/gpio/gpio.h>
0007 
0008 #include "imx8mm-pinfunc.h"
0009 
0010 /dts-v1/;
0011 /plugin/;
0012 
0013 &{/} {
0014         compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm";
0015 
0016         reg_cam: regulator-cam {
0017                 pinctrl-names = "default";
0018                 pinctrl-0 = <&pinctrl_reg_cam>;
0019                 compatible = "regulator-fixed";
0020                 regulator-name = "reg_cam";
0021                 gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
0022                 enable-active-high;
0023                 regulator-min-microvolt = <1800000>;
0024                 regulator-max-microvolt = <1800000>;
0025         };
0026 
0027         cam24m: cam24m {
0028                 compatible = "fixed-clock";
0029                 #clock-cells = <0>;
0030                 clock-frequency = <24000000>;
0031                 clock-output-names = "cam24m";
0032         };
0033 };
0034 
0035 &csi {
0036         status = "okay";
0037 };
0038 
0039 &i2c3 {
0040         #address-cells = <1>;
0041         #size-cells = <0>;
0042 
0043         imx219: sensor@10 {
0044                 compatible = "sony,imx219";
0045                 reg = <0x10>;
0046                 clocks = <&cam24m>;
0047                 VDIG-supply = <&reg_cam>;
0048 
0049                 port {
0050                         /* MIPI CSI-2 bus endpoint */
0051                         imx219_to_mipi_csi2: endpoint {
0052                                 remote-endpoint = <&imx8mm_mipi_csi_in>;
0053                                 clock-lanes = <0>;
0054                                 data-lanes = <1 2>;
0055                                 link-frequencies = /bits/ 64 <456000000>;
0056                         };
0057                 };
0058         };
0059 };
0060 
0061 &mipi_csi {
0062         status = "okay";
0063 
0064         ports {
0065                 #address-cells = <1>;
0066                 #size-cells = <0>;
0067 
0068                 port@0 {
0069                         reg = <0>;
0070 
0071                         imx8mm_mipi_csi_in: endpoint {
0072                                 remote-endpoint = <&imx219_to_mipi_csi2>;
0073                                 data-lanes = <1 2>;
0074                         };
0075                 };
0076 
0077                 port@1 {
0078                         reg = <1>;
0079 
0080                         imx8mm_mipi_csi_out: endpoint {
0081                                 remote-endpoint = <&csi_in>;
0082                         };
0083                 };
0084         };
0085 };
0086 
0087 &iomuxc {
0088         pinctrl_reg_cam: regcamgrp {
0089                 fsl,pins = <
0090                         MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1       0x41
0091                 >;
0092         };
0093 };