Guest User

Untitled

a guest
Dec 2nd, 2022
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. diff --git a/imx8mq-phanbell.dts.orig b/imx8mq-phanbell.dts
  2. index a3b9d61..5b7da9b 100644
  3. --- a/arch/arm64/boot/dts/freescale/imx8mq-phanbell.dts
  4. +++ b/arch/arm64/boot/dts/freescale/imx8mq-phanbell.dts
  5. @@ -478,4 +478,54 @@
  6. MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
  7. >;
  8. };
  9. +
  10. + pinctrl_csi1: csi1grp {
  11. + fsl,pins = <
  12. + MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x19 /* PWDN */
  13. + MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x19 /* RESETB */
  14. + /* vsync pin mux? can't find in schematic */
  15. + >;
  16. + };
  17. +};
  18. +
  19. +&i2c2 {
  20. + status = "okay";
  21. + ov5645_mipi: ov5645_mipi@3c {
  22. + compatible = "ovti,ov5645_mipi";
  23. + reg = <0x3c>;
  24. + status = "okay";
  25. + pinctrl-names = "default";
  26. + pinctrl-0 = <&pinctrl_csi1>;
  27. + clocks = <&clk IMX8MQ_CLK_DUMMY>;
  28. + clock-names = "csi_mclk";
  29. + csi_id = <0>;
  30. + pwn-gpios = <&gpio3 8 1>;
  31. + rst-gpios = <&gpio1 12 0>;
  32. + mclk = <20000000>;
  33. + mclk_source = <0>;
  34. + ae_target = <52>;
  35. + port {
  36. + ov5645_mipi1_ep: endpoint {
  37. + remote-endpoint = <&mipi1_sensor_ep>;
  38. + };
  39. + };
  40. + };
  41. +};
  42. +
  43. +&csi1 {
  44. + fsl,mipi-mode;
  45. + fsl,two-8bit-sensor-mode;
  46. + status = "okay";
  47. +};
  48. +
  49. +&mipi_csi1 {
  50. + #address-cells = <1>;
  51. + #size-cells = <0>;
  52. + status = "okay";
  53. + port {
  54. + mipi1_sensor_ep: endpoint1 {
  55. + remote-endpoint = <&ov5645_mipi1_ep>;
  56. + data-lanes = <1 2>;
  57. + };
  58. + };
  59. };
  60.  
Advertisement
Add Comment
Please, Sign In to add comment