[PATCH] ARM: dts: gr-peach: Add GR-Peach audiocamerashield support
Add device tree header for GR-Peach's audiocamerashield with MT9V111 image sensor. Signed-off-by: Jacopo Mondi --- The GR-Peach audiocamera shield is an expansion board for the GR-Peach that comes with an MT9V111 camera module. https://www.core.co.jp/product/m2m/gr-peach/audio-camera.html https://www.digikey.com/product-detail/en/renesas-electronics-america/YGRPEACHAUDIOCAMERASHIELD/YGRPEACHAUDIOCAMERASHIELD-ND/5800301 The series functionally depends on the already sent support for the MT9V111 sensor, but does not have any compile time dependency on it (a checkpatch warning on the un-documented "aptina-mt9v111" compatible string apart). https://lkml.org/lkml/2018/6/11/469 (copied the linux-media list to which I'll send a gentle ping for the driver later ;) Thanks j --- arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi diff --git a/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi b/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi new file mode 100644 index 000..e31a9e3 --- /dev/null +++ b/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi @@ -0,0 +1,79 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the GR-Peach audiocamera shield expansion board + * + * Copyright (C) 2017 Jacopo Mondi + */ + +#include "r7s72100.dtsi" +#include +#include + +/ { + /* On-board camera clock. */ + camera_clk: camera_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <2700>; + }; +}; + +&pinctrl { + i2c1_pins: i2c1 { + /* P1_2 as SCL; P1_3 as SDA */ + pinmux = , ; + }; + + vio_pins: vio { + /* CEU pins: VIO_D[0-10], VIO_VD, VIO_HD, VIO_CLK */ + pinmux = , /* VIO_VD */ +, /* VIO_HD */ +, /* VIO_D0 */ +, /* VIO_D1 */ +, /* VIO_D2 */ +, /* VIO_D3 */ +, /* VIO_D4 */ +, /* VIO_D5 */ +, /* VIO_D6 */ +, /* VIO_D7 */ +; /* VIO_CLK */ + }; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + + status = "okay"; + clock-frequency = <10>; + + camera@48 { + compatible = "aptina,mt9v111"; + reg = <0x48>; + + clocks = <&camera_clk>; + + port { + mt9v111_out: endpoint { + remote-endpoint = <&ceu_in>; + }; + }; + }; +}; + +&ceu { + pinctrl-names = "default"; + pinctrl-0 = <&vio_pins>; + + status = "okay"; + + port { + ceu_in: endpoint { + hsync-active = <1>; + vsync-active = <1>; + bus-width = <8>; + pclk-sample = <1>; + remote-endpoint = <&mt9v111_out>; + }; + }; +}; -- 2.7.4
Re: [PATCH] ARM: dts: gr-peach: Add GR-Peach audiocamerashield support
On Tue, Jul 03, 2018 at 10:41:09PM +0200, Jacopo Mondi wrote: > Add device tree header for GR-Peach's audiocamerashield with MT9V111 > image sensor. > > Signed-off-by: Jacopo Mondi > --- > > The GR-Peach audiocamera shield is an expansion board for the GR-Peach that > comes with an MT9V111 camera module. > > https://www.core.co.jp/product/m2m/gr-peach/audio-camera.html > https://www.digikey.com/product-detail/en/renesas-electronics-america/YGRPEACHAUDIOCAMERASHIELD/YGRPEACHAUDIOCAMERASHIELD-ND/5800301 > > The series functionally depends on the already sent support for the MT9V111 > sensor, but does not have any compile time dependency on it (a checkpatch > warning on the un-documented "aptina-mt9v111" compatible string apart). > > https://lkml.org/lkml/2018/6/11/469 > > (copied the linux-media list to which I'll send a gentle ping for the > driver later ;) > > Thanks >j > --- > arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi | 79 > +++ > 1 file changed, 79 insertions(+) > create mode 100644 arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi Thanks, This looks fine to me but I will wait to see if there are other reviews before applying. Reviewed-by: Simon Horman
Re: [PATCH] ARM: dts: gr-peach: Add GR-Peach audiocamerashield support
On Thu, Jul 05, 2018 at 06:00:42PM +0200, Simon Horman wrote: > On Tue, Jul 03, 2018 at 10:41:09PM +0200, Jacopo Mondi wrote: > > Add device tree header for GR-Peach's audiocamerashield with MT9V111 > > image sensor. > > > > Signed-off-by: Jacopo Mondi > > --- > > > > The GR-Peach audiocamera shield is an expansion board for the GR-Peach that > > comes with an MT9V111 camera module. > > > > https://www.core.co.jp/product/m2m/gr-peach/audio-camera.html > > https://www.digikey.com/product-detail/en/renesas-electronics-america/YGRPEACHAUDIOCAMERASHIELD/YGRPEACHAUDIOCAMERASHIELD-ND/5800301 > > > > The series functionally depends on the already sent support for the MT9V111 > > sensor, but does not have any compile time dependency on it (a checkpatch > > warning on the un-documented "aptina-mt9v111" compatible string apart). > > > > https://lkml.org/lkml/2018/6/11/469 > > > > (copied the linux-media list to which I'll send a gentle ping for the > > driver later ;) > > > > Thanks > >j > > --- > > arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi | 79 > > +++ > > 1 file changed, 79 insertions(+) > > create mode 100644 arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi > > Thanks, > > This looks fine to me but I will wait to see if there are other reviews > before applying. Thanks, applied.