1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Device Tree Source for the GR-Peach audioca 3 * Device Tree Source for the GR-Peach audiocamera shield expansion board 4 * 4 * 5 * Copyright (C) 2017 Jacopo Mondi <jacopo+rene 5 * Copyright (C) 2017 Jacopo Mondi <jacopo+renesas@jmondi.org> 6 */ 6 */ 7 7 8 #include "r7s72100.dtsi" 8 #include "r7s72100.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/r7s72100-pinctrl 10 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h> 11 11 12 / { 12 / { 13 /* On-board camera clock. */ 13 /* On-board camera clock. */ 14 camera_clk: camera_clk { 14 camera_clk: camera_clk { 15 compatible = "fixed-clock"; 15 compatible = "fixed-clock"; 16 #clock-cells = <0>; 16 #clock-cells = <0>; 17 clock-frequency = <27000000>; 17 clock-frequency = <27000000>; 18 }; 18 }; 19 }; 19 }; 20 20 21 &pinctrl { 21 &pinctrl { 22 i2c1_pins: i2c1 { 22 i2c1_pins: i2c1 { 23 /* P1_2 as SCL; P1_3 as SDA */ 23 /* P1_2 as SCL; P1_3 as SDA */ 24 pinmux = <RZA1_PINMUX(1, 2, 1) 24 pinmux = <RZA1_PINMUX(1, 2, 1)>, <RZA1_PINMUX(1, 3, 1)>; 25 }; 25 }; 26 26 27 vio_pins: vio { 27 vio_pins: vio { 28 /* CEU pins: VIO_D[0-10], VIO_ 28 /* CEU pins: VIO_D[0-10], VIO_VD, VIO_HD, VIO_CLK */ 29 pinmux = <RZA1_PINMUX(1, 0, 5) 29 pinmux = <RZA1_PINMUX(1, 0, 5)>, /* VIO_VD */ 30 <RZA1_PINMUX(1, 1, 5) 30 <RZA1_PINMUX(1, 1, 5)>, /* VIO_HD */ 31 <RZA1_PINMUX(2, 0, 7) 31 <RZA1_PINMUX(2, 0, 7)>, /* VIO_D0 */ 32 <RZA1_PINMUX(2, 1, 7) 32 <RZA1_PINMUX(2, 1, 7)>, /* VIO_D1 */ 33 <RZA1_PINMUX(2, 2, 7) 33 <RZA1_PINMUX(2, 2, 7)>, /* VIO_D2 */ 34 <RZA1_PINMUX(2, 3, 7) 34 <RZA1_PINMUX(2, 3, 7)>, /* VIO_D3 */ 35 <RZA1_PINMUX(2, 4, 7) 35 <RZA1_PINMUX(2, 4, 7)>, /* VIO_D4 */ 36 <RZA1_PINMUX(2, 5, 7) 36 <RZA1_PINMUX(2, 5, 7)>, /* VIO_D5 */ 37 <RZA1_PINMUX(2, 6, 7) 37 <RZA1_PINMUX(2, 6, 7)>, /* VIO_D6 */ 38 <RZA1_PINMUX(2, 7, 7) 38 <RZA1_PINMUX(2, 7, 7)>, /* VIO_D7 */ 39 <RZA1_PINMUX(10, 0, 6 39 <RZA1_PINMUX(10, 0, 6)>; /* VIO_CLK */ 40 }; 40 }; 41 }; 41 }; 42 42 43 &i2c1 { 43 &i2c1 { 44 pinctrl-names = "default"; 44 pinctrl-names = "default"; 45 pinctrl-0 = <&i2c1_pins>; 45 pinctrl-0 = <&i2c1_pins>; 46 46 47 status = "okay"; 47 status = "okay"; 48 clock-frequency = <100000>; 48 clock-frequency = <100000>; 49 49 50 camera@48 { 50 camera@48 { 51 compatible = "aptina,mt9v111"; 51 compatible = "aptina,mt9v111"; 52 reg = <0x48>; 52 reg = <0x48>; 53 53 54 clocks = <&camera_clk>; 54 clocks = <&camera_clk>; 55 55 56 port { 56 port { 57 mt9v111_out: endpoint 57 mt9v111_out: endpoint { 58 remote-endpoin 58 remote-endpoint = <&ceu_in>; 59 }; 59 }; 60 }; 60 }; 61 }; 61 }; 62 }; 62 }; 63 63 64 &ceu { 64 &ceu { 65 pinctrl-names = "default"; 65 pinctrl-names = "default"; 66 pinctrl-0 = <&vio_pins>; 66 pinctrl-0 = <&vio_pins>; 67 67 68 status = "okay"; 68 status = "okay"; 69 69 70 port { 70 port { 71 ceu_in: endpoint { 71 ceu_in: endpoint { 72 remote-endpoint = <&mt 72 remote-endpoint = <&mt9v111_out>; 73 }; 73 }; 74 }; 74 }; 75 }; 75 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.