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