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