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