Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the GR-Peach audiocamera shield expansion board
0004  *
0005  * Copyright (C) 2017 Jacopo Mondi <jacopo+renesas@jmondi.org>
0006  */
0007 
0008 #include "r7s72100.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
0011 
0012 / {
0013         /* On-board camera clock. */
0014         camera_clk: camera_clk {
0015                 compatible = "fixed-clock";
0016                 #clock-cells = <0>;
0017                 clock-frequency = <27000000>;
0018         };
0019 };
0020 
0021 &pinctrl {
0022         i2c1_pins: i2c1 {
0023                 /* P1_2 as SCL; P1_3 as SDA */
0024                 pinmux = <RZA1_PINMUX(1, 2, 1)>, <RZA1_PINMUX(1, 3, 1)>;
0025         };
0026 
0027         vio_pins: vio {
0028                 /* CEU pins: VIO_D[0-10], VIO_VD, VIO_HD, VIO_CLK */
0029                 pinmux = <RZA1_PINMUX(1, 0, 5)>, /* VIO_VD */
0030                          <RZA1_PINMUX(1, 1, 5)>, /* VIO_HD */
0031                          <RZA1_PINMUX(2, 0, 7)>, /* VIO_D0 */
0032                          <RZA1_PINMUX(2, 1, 7)>, /* VIO_D1 */
0033                          <RZA1_PINMUX(2, 2, 7)>, /* VIO_D2 */
0034                          <RZA1_PINMUX(2, 3, 7)>, /* VIO_D3 */
0035                          <RZA1_PINMUX(2, 4, 7)>, /* VIO_D4 */
0036                          <RZA1_PINMUX(2, 5, 7)>, /* VIO_D5 */
0037                          <RZA1_PINMUX(2, 6, 7)>, /* VIO_D6 */
0038                          <RZA1_PINMUX(2, 7, 7)>, /* VIO_D7 */
0039                          <RZA1_PINMUX(10, 0, 6)>; /* VIO_CLK */
0040         };
0041 };
0042 
0043 &i2c1 {
0044         pinctrl-names = "default";
0045         pinctrl-0 = <&i2c1_pins>;
0046 
0047         status = "okay";
0048         clock-frequency = <100000>;
0049 
0050         camera@48 {
0051                 compatible = "aptina,mt9v111";
0052                 reg = <0x48>;
0053 
0054                 clocks = <&camera_clk>;
0055 
0056                 port {
0057                         mt9v111_out: endpoint {
0058                                 remote-endpoint = <&ceu_in>;
0059                         };
0060                 };
0061         };
0062 };
0063 
0064 &ceu {
0065         pinctrl-names = "default";
0066         pinctrl-0 = <&vio_pins>;
0067 
0068         status = "okay";
0069 
0070         port {
0071                 ceu_in: endpoint {
0072                         remote-endpoint = <&mt9v111_out>;
0073                 };
0074         };
0075 };