Advertisement
Guest User

5.15.18.rkisp_dtb

a guest
Feb 23rd, 2022
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. /dts-v1/;
  2. /plugin/;
  3.  
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/pinctrl/rockchip.h>
  6.  
  7. / {
  8. compatible = "rockchip,rk3399";
  9.  
  10. fragment@0 {
  11. target = <&isp0_mmu>;
  12. __overlay__ {
  13. status = "okay";
  14. };
  15. };
  16.  
  17. fragment@1 {
  18. target = <&mipi_dphy_rx0>;
  19. __overlay__ {
  20. status = "okay";
  21. };
  22. };
  23.  
  24. fragment@2 {
  25. target = <&isp0>;
  26. __overlay__ {
  27. status = "okay";
  28. ports {
  29. port@0 {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. mipi_in_wcam: endpoint@0 {
  33. reg = <0>;
  34. remote-endpoint = <&wcam_out>;
  35. data-lanes = <1 2 3 4>;
  36. };
  37. };
  38. };
  39. };
  40. };
  41.  
  42. fragment@3 {
  43. target = <&sdio0>;
  44. __overlay__ {
  45. status = "disabled";
  46. };
  47. };
  48.  
  49. fragment@4 {
  50. target = <&i2c1>;
  51. __overlay__ {
  52.  
  53. // https://github.com/friendlyarm/kernel-rockchip/blob/nanopi-r2-v5.15.y/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
  54. status = "okay";
  55.  
  56. // 24M mclk is shared between world and user cameras
  57. pinctrl-0 = <&i2c1_xfer &test_clkout1>; // THIS CAUSES AN ERROR IF SDIO0 is not disabled;
  58.  
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61.  
  62. clock-frequency = <100000>;
  63.  
  64. wcam: imx214@0c {
  65. compatible = "sony,imx214";
  66. reg = <0x0c>;
  67.  
  68. vdddo-supply = <&vcc1v8_mipi>;
  69. vddd-supply = <&vcc1v2_mipi_dvdd>;
  70. vdda-supply = <&vcc2v8_mipi>;
  71.  
  72. enable-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>; // GPIO2_B4
  73.  
  74. clocks = <&cru 169>;
  75. clock-names = "xvclk";
  76.  
  77. port {
  78. wcam_out: endpoint {
  79. data-lanes = <1 2 3 4>;
  80. link-frequencies = /bits/ 64 <480000000>;
  81. remote-endpoint = <&mipi_in_wcam>;
  82. };
  83. };
  84. };
  85. };
  86. };
  87.  
  88. fragment@5 {
  89. target = <&pinctrl>;
  90. __overlay__ {
  91. dvp {
  92. dvp_pwr_en: dvp-pwr-en {
  93. rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
  94. };
  95. };
  96. };
  97. };
  98.  
  99. fragment@6 {
  100. target-path = "/";
  101. __overlay__ {
  102. vcc2v8_mipi: vcc2v8-mipi-regulator {
  103. compatible = "regulator-fixed";
  104. enable-active-high;
  105. gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&dvp_pwr_en>;
  108. regulator-name = "vcc2v8_mipi";
  109. regulator-always-on;
  110. regulator-boot-on;
  111. regulator-min-microvolt = <2800000>;
  112. regulator-max-microvolt = <2800000>;
  113. startup-delay-us = <1000>;
  114. vin-supply = <&vcc5v0_sys>;
  115. };
  116. // turned on automatically as vcc2v8_mipi is turned on...
  117. vcc1v8_mipi: vcc1v8-mipi-regulator {
  118. compatible = "regulator-fixed";
  119. regulator-name = "vcc1v8_mipi";
  120. regulator-always-on;
  121. regulator-boot-on;
  122. regulator-min-microvolt = <1800000>;
  123. regulator-max-microvolt = <1800000>;
  124. startup-delay-us = <1000>;
  125. vin-supply = <&vcc3v3_sys>;
  126. };
  127.  
  128. vcc2v8_mipi_af: vcc2v8-mipi-af-regulator {
  129. compatible = "regulator-fixed";
  130. regulator-name = "vcc2v8_mipi_af";
  131. regulator-always-on;
  132. regulator-boot-on;
  133. regulator-min-microvolt = <2800000>;
  134. regulator-max-microvolt = <2800000>;
  135. startup-delay-us = <1000>;
  136. vin-supply = <&vcc5v0_sys>;
  137. };
  138.  
  139. vcc1v2_mipi_dvdd: vcc1v2-mipi-dvdd-regulator {
  140. compatible = "regulator-fixed";
  141. regulator-name = "vcc1v2_mipi_dvdd";
  142. regulator-always-on;
  143. regulator-boot-on;
  144. regulator-min-microvolt = <1200000>;
  145. regulator-max-microvolt = <1200000>;
  146. startup-delay-us = <1000>;
  147. vin-supply = <&vcc3v3_sys>;
  148. };
  149. };
  150. };
  151. };
  152.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement