imx8mm-venice-gw72xx-0x-imx219.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright 2022 Gateworks Corporation
  4. */
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include "imx8mm-pinfunc.h"
  7. /dts-v1/;
  8. /plugin/;
  9. &{/} {
  10. compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm";
  11. reg_cam: regulator-cam {
  12. pinctrl-names = "default";
  13. pinctrl-0 = <&pinctrl_reg_cam>;
  14. compatible = "regulator-fixed";
  15. regulator-name = "reg_cam";
  16. gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
  17. enable-active-high;
  18. regulator-min-microvolt = <1800000>;
  19. regulator-max-microvolt = <1800000>;
  20. };
  21. cam24m: cam24m {
  22. compatible = "fixed-clock";
  23. #clock-cells = <0>;
  24. clock-frequency = <24000000>;
  25. clock-output-names = "cam24m";
  26. };
  27. };
  28. &csi {
  29. status = "okay";
  30. };
  31. &i2c3 {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. imx219: sensor@10 {
  35. compatible = "sony,imx219";
  36. reg = <0x10>;
  37. clocks = <&cam24m>;
  38. VDIG-supply = <&reg_cam>;
  39. port {
  40. /* MIPI CSI-2 bus endpoint */
  41. imx219_to_mipi_csi2: endpoint {
  42. remote-endpoint = <&imx8mm_mipi_csi_in>;
  43. clock-lanes = <0>;
  44. data-lanes = <1 2>;
  45. link-frequencies = /bits/ 64 <456000000>;
  46. };
  47. };
  48. };
  49. };
  50. &mipi_csi {
  51. status = "okay";
  52. ports {
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. port@0 {
  56. reg = <0>;
  57. imx8mm_mipi_csi_in: endpoint {
  58. remote-endpoint = <&imx219_to_mipi_csi2>;
  59. data-lanes = <1 2>;
  60. };
  61. };
  62. port@1 {
  63. reg = <1>;
  64. imx8mm_mipi_csi_out: endpoint {
  65. remote-endpoint = <&csi_in>;
  66. };
  67. };
  68. };
  69. };
  70. &iomuxc {
  71. pinctrl_reg_cam: regcamgrp {
  72. fsl,pins = <
  73. MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x41
  74. >;
  75. };
  76. };