| Message ID | 20181218113320.4856-1-jagan@amarulasolutions.com |
|---|---|
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBCNW4PQAKGQEVA3EQ2Y@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 048472E1136 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 18 Dec 2018 12:33:30 +0100 (CET) Received: by mail-wr1-f72.google.com with SMTP id x13sf5208707wro.9 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 18 Dec 2018 03:33:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1545132809; cv=pass; d=google.com; s=arc-20160816; b=muX9o556kz/0suFVAYaU4wTVuam0nS7SiWnovT9BHdjRoIBDGzHk5Q5Subn6W/EoPV vx9+DnVdmmG7ABKOOQ16YsDKGJKwIIkyeJpZat4VHUPyg9LuVCPXDWpUaA3PvaguuqTo I+V8OZHEgcfF2H7TyzSrDNcYAd1Ca/7yIAGwUY0ncjQRhhFepS9/y8u9ZektqNwiiWsm GG4//fxvWWi0Wde2YwyHF9jeMAJ05nV8P/KM12k69Y7InLfXx10ZIL+Atwj70IMnyqDr EeRdN7kE5mCvUplzpZKliLLmVUQqirQCEX7CBJcubg1yk+FLetPQgEiNuW+gSfN9Wd2l lQ2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/ZX3Vb1QocJF5KFof1FWVSsQ8WcfFPPJfBBeloD+g+g=; b=ctKTqDDVVTb5mffzlKKAazSIzYA/GDtBJ9TL6vmy6YQ9Jfv6y1R7NmKvAlmcDUOSk4 Ood5s/KO0c4ON6ONnIWhZASZXe64Z7PUba91pecXTNlKnzM1XiIr4pW5fDOdqvN023Uh zayRb4eEZ5hhI4JxiERkgRu4EAxzRb0IkKnMgMuQ+LXIfawx4c1xPb/t0hP4XcxWhvu4 qqT+4+T7SvlBU6zoHqBeOv029BwiqGVF3ZV//Ytn0PWs3RCIWwg5bpT2pzdSECmOEBR3 W+eKUxmdlpJo+pr1QdWTsa9Koy2B4L6iwzDaLqZTRbsHaiOp9PbpLZM0njI1o3KeAWCK 3BtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KXuf4HSt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=/ZX3Vb1QocJF5KFof1FWVSsQ8WcfFPPJfBBeloD+g+g=; b=Ae72BPiJV73ED4oAk4c08Xhs2t7pGxcKnTFu2yO84av23QZo8Gl+2Y9Uf7TelSCz9/ aWG+RtYNkxAvFdSK5kylAAvy+wt05pLcgaV1NLHLNiqm4IJc/LtUb0T3Yo7SiUQp+11j 3QBkirua3Zo3UbskdeLATT8AJBboXmJ0gQnlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=/ZX3Vb1QocJF5KFof1FWVSsQ8WcfFPPJfBBeloD+g+g=; b=ujT0soyT+5Cwzootp2E03tKCA6Zf9SCQobl2kTtioxDKfEboKaS1EAL8JTtv//pqdg JUWf31QQd8N3X9sxcI71z8p2ZyXKTkVDz9SSeKwyfH+OMUGIPYZtwBPGJsfJMm6G0xJv N3rZs7sPAPcl1YGC6gmVUAMouvmevr+HSs0oMWlqJcRUa9YW8C+tMn4QiUX4Irpxjxys KqlJ68/cMZX1aSEvIlv5cDtB/rf/+GTOf733q8FzENf/sUJmPu5DOb6A4psdq+v1A891 ufC6+7y866Q2pZMYsDHeSmNhPsHLgBlRe7VK1VgZjpAV1CausKGqYLINeRYEfQFyKO/9 8gcA== X-Gm-Message-State: AA+aEWampJ1gNsEb+SYR9/ybXTVCpowZwk4a5cs65Lh1xFoT86MSGef4 yhv/nKgCi2Rec35+wKIr3zKUrQfm X-Google-Smtp-Source: AFSGD/U71Pt9SOELoccAWp6gXhyajhM0cIjJxDya1kSVZYzFwgM/D58XAJmi1IwVopweHWecmtMFOw== X-Received: by 2002:adf:d14e:: with SMTP id b14mr1484410wri.16.1545132809488; Tue, 18 Dec 2018 03:33:29 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:3581:: with SMTP id c123ls377685wma.9.gmail; Tue, 18 Dec 2018 03:33:29 -0800 (PST) X-Received: by 2002:a1c:2902:: with SMTP id p2mr2800123wmp.19.1545132809037; Tue, 18 Dec 2018 03:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545132809; cv=none; d=google.com; s=arc-20160816; b=ctTECa03DUWsaLOwd2lQTAE6WEUgEsFr0CeOCisPt+KoPDZ1D2v09KcIQPQo8PtGwB +dJaYyaRooYhOwGwmt1QZfKepkzx4RniPFmsO28cSJ0VF4N/6ljJHfAFvtyTP7EweRJz x1R/WqKOeAPyUHrg1bOF4Xm7Sz7a1Y8vcpehjUsegMya7wq+r6Jc1JjRu+ng3EwKAaPM c7AZ1hgDcbLsXNmThYpRj0X5gus36/I+sxOxmYCgNF0SowcIZVzT8jqsxB0tdAVnDOoW FU85KqnyQmJsF7GvEyTLmMmvm8xzIjx2W655h54xUxP65Rh5uVwcuZjz9qfkvDYkp0Nf jQrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=/ZX3Vb1QocJF5KFof1FWVSsQ8WcfFPPJfBBeloD+g+g=; b=V/6UtpdHO+t2CcpwwqHLGm71sOdxx1leJmLsm/KLUDMnZsc4l7W0c2yZ4n+cuYCpSz /ETesFEFGufmy1WDTugEAsuaKeOvO133KTGcyxwkEHxUc9BRy340T9HRH9kagWgipHNZ /ToDzF+w+icvfABmJLsL7D7VxpeltlicQoefnEcMMWQGKMXZGrlAx5DI1Vrv2M50GWpX bvkseSp+qvo64pFW6qZnGW6C8Np7Zp0GwmyT4WyIXbs1BvJHgNVHEGB3IFFkBRCXEaSV QBUjbQfDL3jh5/7wN1I99KDrNo18iwbvwr/G867jXXQ0OJZ/wlCmwnCzbPa67krauQaE /Hug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KXuf4HSt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f20sor1474602wml.10.2018.12.18.03.33.28 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 18 Dec 2018 03:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a1c:6508:: with SMTP id z8mr2907356wmb.28.1545132808608; Tue, 18 Dec 2018 03:33:28 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host230-181-static.228-95-b.business.telecomitalia.it. [95.228.181.230]) by smtp.gmail.com with ESMTPSA id h2sm4276184wrv.87.2018.12.18.03.33.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 03:33:27 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Yong Deng <yong.deng@magewell.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Maxime Ripard <maxime.ripard@bootlin.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Chen-Yu Tsai <wens@csie.org>, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi <linux-sunxi@googlegroups.com>, linux-amarula@amarulasolutions.com, Michael Trimarchi <michael@amarulasolutions.com> Cc: Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v4 0/6] media/sun6i: Allwinner A64 CSI support Date: Tue, 18 Dec 2018 17:03:14 +0530 Message-Id: <20181218113320.4856-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KXuf4HSt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
media/sun6i: Allwinner A64 CSI support
|
|
Message
Jagan Teki
Dec. 18, 2018, 11:33 a.m. UTC
This series support CSI on Allwinner A64. Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. Changes for v4: - update the compatible string order - add proper commit message - included BPI-M64 patch - skipped amarula-a64 patch Changes for v3: - update dt-bindings for A64 - set mod clock via csi driver - remove assign clocks from dtsi - remove i2c-gpio opendrian - fix avdd and dovdd supplies - remove vcc-csi pin group supply Note: This series created on top of H3 changes [1] [1] https://patchwork.kernel.org/cover/10705905/ Any inputs, Jagan. Jagan Teki (6): dt-bindings: media: sun6i: Add A64 CSI compatible media: sun6i: Add A64 compatible support media: sun6i: Update default CSI_SCLK for A64 arm64: dts: allwinner: a64: Add A64 CSI controller arm64: dts: allwinner: a64: Add pinmux setting for CSI MCLK on PE1 [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Add HDF5640 camera module .../devicetree/bindings/media/sun6i-csi.txt | 1 + .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 65 +++++++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 25 +++++++ .../platform/sunxi/sun6i-csi/sun6i_csi.c | 6 ++ 4 files changed, 97 insertions(+)
Comments
On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > This series support CSI on Allwinner A64. > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > Changes for v4: > - update the compatible string order > - add proper commit message > - included BPI-M64 patch > - skipped amarula-a64 patch > Changes for v3: > - update dt-bindings for A64 > - set mod clock via csi driver > - remove assign clocks from dtsi > - remove i2c-gpio opendrian > - fix avdd and dovdd supplies > - remove vcc-csi pin group supply > > Note: This series created on top of H3 changes [1] > > [1] https://patchwork.kernel.org/cover/10705905/ You had memory corruption before, how was this fixed? Maxime
On Tue, Dec 18, 2018 at 8:51 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > > This series support CSI on Allwinner A64. > > > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > > > Changes for v4: > > - update the compatible string order > > - add proper commit message > > - included BPI-M64 patch > > - skipped amarula-a64 patch > > Changes for v3: > > - update dt-bindings for A64 > > - set mod clock via csi driver > > - remove assign clocks from dtsi > > - remove i2c-gpio opendrian > > - fix avdd and dovdd supplies > > - remove vcc-csi pin group supply > > > > Note: This series created on top of H3 changes [1] > > > > [1] https://patchwork.kernel.org/cover/10705905/ > > You had memory corruption before, how was this fixed? Memory corruption observed with default 600MHz on 1080p. It worked fine on BPI-M64 (with 300MHz)
On Tue, Dec 18, 2018 at 08:58:22PM +0530, Jagan Teki wrote: > On Tue, Dec 18, 2018 at 8:51 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > > > On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > > > This series support CSI on Allwinner A64. > > > > > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > > > > > Changes for v4: > > > - update the compatible string order > > > - add proper commit message > > > - included BPI-M64 patch > > > - skipped amarula-a64 patch > > > Changes for v3: > > > - update dt-bindings for A64 > > > - set mod clock via csi driver > > > - remove assign clocks from dtsi > > > - remove i2c-gpio opendrian > > > - fix avdd and dovdd supplies > > > - remove vcc-csi pin group supply > > > > > > Note: This series created on top of H3 changes [1] > > > > > > [1] https://patchwork.kernel.org/cover/10705905/ > > > > You had memory corruption before, how was this fixed? > > Memory corruption observed with default 600MHz on 1080p. It worked > fine on BPI-M64 (with 300MHz) I don't get it. In the previous version of those patches, you were mentionning you were still having this issue, even though you had the clock running at 300MHz, and then you tried to convince us to merge the patches nonetheless. Why would you say that then if that issue was fixed? Maxime
Hi Maxime On Wed, Dec 19, 2018 at 11:25 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > On Tue, Dec 18, 2018 at 08:58:22PM +0530, Jagan Teki wrote: > > On Tue, Dec 18, 2018 at 8:51 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > > > > > On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > > > > This series support CSI on Allwinner A64. > > > > > > > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > > > > > > > Changes for v4: > > > > - update the compatible string order > > > > - add proper commit message > > > > - included BPI-M64 patch > > > > - skipped amarula-a64 patch > > > > Changes for v3: > > > > - update dt-bindings for A64 > > > > - set mod clock via csi driver > > > > - remove assign clocks from dtsi > > > > - remove i2c-gpio opendrian > > > > - fix avdd and dovdd supplies > > > > - remove vcc-csi pin group supply > > > > > > > > Note: This series created on top of H3 changes [1] > > > > > > > > [1] https://patchwork.kernel.org/cover/10705905/ > > > > > > You had memory corruption before, how was this fixed? > > > > Memory corruption observed with default 600MHz on 1080p. It worked > > fine on BPI-M64 (with 300MHz) > > I don't get it. In the previous version of those patches, you were > mentionning you were still having this issue, even though you had the > clock running at 300MHz, and then you tried to convince us to merge > the patches nonetheless. > > Why would you say that then if that issue was fixed? It's simple, we have a full working platform with ov5640 that support all the resolutions, that can be test by anyone and we have an industrial product that has some problem on high xvclk because it can not give us a clear image but this is limited on another design and another camera module vendor. Problem is not in the kernel code but it's just on relic design. We are getting the information on that module and see if inside is really using the xvclk or it's clocked by some other things. We have only the schematic up to the connector. Michael > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com
On Wed, Dec 19, 2018 at 3:55 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > On Tue, Dec 18, 2018 at 08:58:22PM +0530, Jagan Teki wrote: > > On Tue, Dec 18, 2018 at 8:51 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > > > > > On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > > > > This series support CSI on Allwinner A64. > > > > > > > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > > > > > > > Changes for v4: > > > > - update the compatible string order > > > > - add proper commit message > > > > - included BPI-M64 patch > > > > - skipped amarula-a64 patch > > > > Changes for v3: > > > > - update dt-bindings for A64 > > > > - set mod clock via csi driver > > > > - remove assign clocks from dtsi > > > > - remove i2c-gpio opendrian > > > > - fix avdd and dovdd supplies > > > > - remove vcc-csi pin group supply > > > > > > > > Note: This series created on top of H3 changes [1] > > > > > > > > [1] https://patchwork.kernel.org/cover/10705905/ > > > > > > You had memory corruption before, how was this fixed? > > > > Memory corruption observed with default 600MHz on 1080p. It worked > > fine on BPI-M64 (with 300MHz) > > I don't get it. In the previous version of those patches, you were > mentionning you were still having this issue, even though you had the > clock running at 300MHz, and then you tried to convince us to merge > the patches nonetheless. > > Why would you say that then if that issue was fixed? Previous version has A64-Relic board, which has some xclk issue on sensor side wrt 1080p. I have tried 300MHz on the same hardware, it's failing to capture on 30fps and so I tried 600MHz(which is default) on the same configuration but it encounter memory corruption. So, for checking whether there is an issue with hardware on A64-Relic I moved with BPI-M64 dev board. which is working 1080p with 300MHz, ie reason I have not included A64-Relic on this version and included BPI-M64. We processed A64-Relic to hardware team to figure out the clock and once ie fixed I'm planning to send DTS patch for that. This is overall summary, hope you understand.
65;5402;1c On Wed, Dec 19, 2018 at 04:11:50PM +0530, Jagan Teki wrote: > On Wed, Dec 19, 2018 at 3:55 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > > > On Tue, Dec 18, 2018 at 08:58:22PM +0530, Jagan Teki wrote: > > > On Tue, Dec 18, 2018 at 8:51 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote: > > > > > > > > On Tue, Dec 18, 2018 at 05:03:14PM +0530, Jagan Teki wrote: > > > > > This series support CSI on Allwinner A64. > > > > > > > > > > Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. > > > > > > > > > > Changes for v4: > > > > > - update the compatible string order > > > > > - add proper commit message > > > > > - included BPI-M64 patch > > > > > - skipped amarula-a64 patch > > > > > Changes for v3: > > > > > - update dt-bindings for A64 > > > > > - set mod clock via csi driver > > > > > - remove assign clocks from dtsi > > > > > - remove i2c-gpio opendrian > > > > > - fix avdd and dovdd supplies > > > > > - remove vcc-csi pin group supply > > > > > > > > > > Note: This series created on top of H3 changes [1] > > > > > > > > > > [1] https://patchwork.kernel.org/cover/10705905/ > > > > > > > > You had memory corruption before, how was this fixed? > > > > > > Memory corruption observed with default 600MHz on 1080p. It worked > > > fine on BPI-M64 (with 300MHz) > > > > I don't get it. In the previous version of those patches, you were > > mentionning you were still having this issue, even though you had the > > clock running at 300MHz, and then you tried to convince us to merge > > the patches nonetheless. > > > > Why would you say that then if that issue was fixed? > > Previous version has A64-Relic board, which has some xclk issue on > sensor side wrt 1080p. I have tried 300MHz on the same hardware, it's > failing to capture on 30fps and so I tried 600MHz(which is default) on > the same configuration but it encounter memory corruption. > > So, for checking whether there is an issue with hardware on A64-Relic > I moved with BPI-M64 dev board. which is working 1080p with 300MHz, ie > reason I have not included A64-Relic on this version and included > BPI-M64. We processed A64-Relic to hardware team to figure out the > clock and once ie fixed I'm planning to send DTS patch for that. > > This is overall summary, hope you understand. Ok, great, thanks! Maxime