1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright 2022 Gateworks Corporation 4 */ 5 6#include <dt-bindings/gpio/gpio.h> 7 8#include "imx8mm-pinfunc.h" 9 10/dts-v1/; 11/plugin/; 12 13&{/} { 14 compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm"; 15 16 reg_vana: regulator-2p8v { 17 compatible = "regulator-fixed"; 18 regulator-name = "2P8V"; 19 regulator-min-microvolt = <2800000>; 20 regulator-max-microvolt = <2800000>; 21 }; 22 23 reg_vddl: regulator-1p2v { 24 compatible = "regulator-fixed"; 25 regulator-name = "1P2V"; 26 regulator-min-microvolt = <1200000>; 27 regulator-max-microvolt = <1200000>; 28 }; 29 30 reg_cam: regulator-cam { 31 pinctrl-names = "default"; 32 pinctrl-0 = <&pinctrl_reg_cam>; 33 compatible = "regulator-fixed"; 34 regulator-name = "reg_cam"; 35 gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>; 36 enable-active-high; 37 regulator-min-microvolt = <1800000>; 38 regulator-max-microvolt = <1800000>; 39 }; 40 41 cam24m: cam24m { 42 compatible = "fixed-clock"; 43 #clock-cells = <0>; 44 clock-frequency = <24000000>; 45 clock-output-names = "cam24m"; 46 }; 47}; 48 49&csi { 50 status = "okay"; 51}; 52 53&i2c3 { 54 #address-cells = <1>; 55 #size-cells = <0>; 56 57 imx219: sensor@10 { 58 compatible = "sony,imx219"; 59 reg = <0x10>; 60 clocks = <&cam24m>; 61 VDIG-supply = <®_cam>; 62 VANA-supply = <®_vana>; 63 VDDL-supply = <®_vddl>; 64 65 port { 66 /* MIPI CSI-2 bus endpoint */ 67 imx219_to_mipi_csi2: endpoint { 68 remote-endpoint = <&imx8mm_mipi_csi_in>; 69 clock-lanes = <0>; 70 data-lanes = <1 2>; 71 link-frequencies = /bits/ 64 <456000000>; 72 }; 73 }; 74 }; 75}; 76 77&mipi_csi { 78 status = "okay"; 79 80 ports { 81 #address-cells = <1>; 82 #size-cells = <0>; 83 84 port@0 { 85 reg = <0>; 86 87 imx8mm_mipi_csi_in: endpoint { 88 remote-endpoint = <&imx219_to_mipi_csi2>; 89 data-lanes = <1 2>; 90 }; 91 }; 92 93 port@1 { 94 reg = <1>; 95 96 imx8mm_mipi_csi_out: endpoint { 97 remote-endpoint = <&csi_in>; 98 }; 99 }; 100 }; 101}; 102 103&iomuxc { 104 pinctrl_reg_cam: regcamgrp { 105 fsl,pins = < 106 MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x41 107 >; 108 }; 109}; 110