gr-peach-audiocamerashield.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the GR-Peach audiocamera shield expansion board
  4. *
  5. * Copyright (C) 2017 Jacopo Mondi <[email protected]>
  6. */
  7. #include "r7s72100.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
  10. / {
  11. /* On-board camera clock. */
  12. camera_clk: camera_clk {
  13. compatible = "fixed-clock";
  14. #clock-cells = <0>;
  15. clock-frequency = <27000000>;
  16. };
  17. };
  18. &pinctrl {
  19. i2c1_pins: i2c1 {
  20. /* P1_2 as SCL; P1_3 as SDA */
  21. pinmux = <RZA1_PINMUX(1, 2, 1)>, <RZA1_PINMUX(1, 3, 1)>;
  22. };
  23. vio_pins: vio {
  24. /* CEU pins: VIO_D[0-10], VIO_VD, VIO_HD, VIO_CLK */
  25. pinmux = <RZA1_PINMUX(1, 0, 5)>, /* VIO_VD */
  26. <RZA1_PINMUX(1, 1, 5)>, /* VIO_HD */
  27. <RZA1_PINMUX(2, 0, 7)>, /* VIO_D0 */
  28. <RZA1_PINMUX(2, 1, 7)>, /* VIO_D1 */
  29. <RZA1_PINMUX(2, 2, 7)>, /* VIO_D2 */
  30. <RZA1_PINMUX(2, 3, 7)>, /* VIO_D3 */
  31. <RZA1_PINMUX(2, 4, 7)>, /* VIO_D4 */
  32. <RZA1_PINMUX(2, 5, 7)>, /* VIO_D5 */
  33. <RZA1_PINMUX(2, 6, 7)>, /* VIO_D6 */
  34. <RZA1_PINMUX(2, 7, 7)>, /* VIO_D7 */
  35. <RZA1_PINMUX(10, 0, 6)>; /* VIO_CLK */
  36. };
  37. };
  38. &i2c1 {
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&i2c1_pins>;
  41. status = "okay";
  42. clock-frequency = <100000>;
  43. camera@48 {
  44. compatible = "aptina,mt9v111";
  45. reg = <0x48>;
  46. clocks = <&camera_clk>;
  47. port {
  48. mt9v111_out: endpoint {
  49. remote-endpoint = <&ceu_in>;
  50. };
  51. };
  52. };
  53. };
  54. &ceu {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&vio_pins>;
  57. status = "okay";
  58. port {
  59. ceu_in: endpoint {
  60. remote-endpoint = <&mt9v111_out>;
  61. };
  62. };
  63. };