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