hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the HiHope RZ/G2[HMN] MIPI common parts
  4. *
  5. * Copyright (C) 2020 Renesas Electronics Corp.
  6. */
  7. #define MIPI_OV5645_PARENT_I2C i2c2
  8. #define MIPI_IMX219_PARENT_I2C i2c3
  9. #include "aistarvision-mipi-adapter-2.1.dtsi"
  10. &csi20 {
  11. status = "okay";
  12. ports {
  13. port@0 {
  14. csi20_in: endpoint {
  15. clock-lanes = <0>;
  16. data-lanes = <1 2>;
  17. remote-endpoint = <&ov5645_ep>;
  18. };
  19. };
  20. };
  21. };
  22. &csi40 {
  23. status = "okay";
  24. ports {
  25. port@0 {
  26. csi40_in: endpoint {
  27. clock-lanes = <0>;
  28. data-lanes = <1 2>;
  29. remote-endpoint = <&imx219_ep>;
  30. };
  31. };
  32. };
  33. };
  34. &i2c3 {
  35. pinctrl-0 = <&i2c3_pins>;
  36. pinctrl-names = "default";
  37. status = "okay";
  38. };
  39. &imx219 {
  40. port {
  41. imx219_ep: endpoint {
  42. clock-lanes = <0>;
  43. data-lanes = <1 2>;
  44. link-frequencies = /bits/ 64 <456000000>;
  45. remote-endpoint = <&csi40_in>;
  46. };
  47. };
  48. };
  49. &ov5645 {
  50. enable-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;
  51. reset-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>;
  52. port {
  53. ov5645_ep: endpoint {
  54. clock-lanes = <0>;
  55. data-lanes = <1 2>;
  56. remote-endpoint = <&csi20_in>;
  57. };
  58. };
  59. };
  60. &pfc {
  61. i2c3_pins: i2c3 {
  62. groups = "i2c3";
  63. function = "i2c3";
  64. };
  65. };
  66. &vin0 {
  67. status = "okay";
  68. };
  69. &vin1 {
  70. status = "okay";
  71. };
  72. &vin2 {
  73. status = "okay";
  74. };
  75. &vin3 {
  76. status = "okay";
  77. };
  78. &vin4 {
  79. status = "okay";
  80. };
  81. &vin5 {
  82. status = "okay";
  83. };
  84. &vin6 {
  85. status = "okay";
  86. };
  87. &vin7 {
  88. status = "okay";
  89. };