From patchwork Mon Dec 3 10:07:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07B5D13BF for ; Mon, 3 Dec 2018 10:07:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E81512AFDA for ; Mon, 3 Dec 2018 10:07:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D745E2AFDC; Mon, 3 Dec 2018 10:07:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0722AFDA for ; Mon, 3 Dec 2018 10:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726169AbeLCKIS (ORCPT ); Mon, 3 Dec 2018 05:08:18 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44296 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbeLCKIS (ORCPT ); Mon, 3 Dec 2018 05:08:18 -0500 Received: by mail-wr1-f66.google.com with SMTP id z5so11452654wrt.11 for ; Mon, 03 Dec 2018 02:07:55 -0800 (PST) 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; bh=gylxsZ9fcYlwwbMYTHy/WVwKOtRSFqkbXsc3NH3T39A=; b=D8HGrzy7OYGWo08Qc+ECKpX1y2ejt5+HrIc/yd+Vbf49JlWm2ZtoOGx6cVj697YjZB ZJrcHmYFaBvGDFacfQ9PvGob03Zzvd+GFDzL/EnZ8oE6nKeKfBWveveUlZSZtvmkvRRo jqqsnsC9ocZh40KMwLM4IAvllIzfpIjKgl5CU= 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; bh=gylxsZ9fcYlwwbMYTHy/WVwKOtRSFqkbXsc3NH3T39A=; b=E5wGZKi5bDgkWdBHX0OW9m8NBNZx/kKO8BGe0P7Tlyn9BxfqPGmpubqzfyniHSgkoF nZ20bWe2KX6kkvhLNPG0Z2is/2qAk3umVn517or60ovPkLwm64USEuQMC6wQgnjm04/I M3laiPqq9NG42f1wpn5pO1cG8evTPoZDueIuDCuIZe+ybtAxrx7DwREibeGsZEg0odgc oOhtz9zcRZguCb2l/3HLr7zlOgQwhmJ7b1YSITw0qq2o5vW0yLKOfdcf6TUSR+HqnWg5 5qKO24yXsEjFvUSXcKhINbiQ/VC3g+15OXiUcBfDKXsK0HVRWa3mfBfRvjaRT8HFoJIH f9HA== X-Gm-Message-State: AA+aEWYDYg7aRpA17QDaB2Z7Q2lbYFMMDThefcgrLAQBn0J7W745uap7 mGzgBTQchBD+9hgS+A8thXglaQ== X-Google-Smtp-Source: AFSGD/X/ftP2iitUfgcxC8dWoPI4Wirc8tHDe0MCInKQ/fAjCaSEPe51HLEf83+T1guceMN9DtEBIQ== X-Received: by 2002:a5d:56d2:: with SMTP id m18mr14405877wrw.113.1543831675070; Mon, 03 Dec 2018 02:07:55 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id n15sm18589236wrt.21.2018.12.03.02.07.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:07:54 -0800 (PST) From: Jagan Teki To: Yong Deng , Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Mark Rutland , Chen-Yu Tsai , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jagan Teki Subject: [PATCH 0/5] media/sun6i: Allwinner A64 CSI support Date: Mon, 3 Dec 2018 15:37:42 +0530 Message-Id: <20181203100747.16442-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series support CSI on Allwinner A64. The CSI controller seems similar to that of in H3, so fallback compatible is used to load the driver. Unlike other SoC's A64 has set of GPIO Pin gropus SDA, SCK intead of dedicated I2C controller, so this series used i2c-gpio bitbanging. Right now the camera is able to detect, but capture images shows sequence of red, blue line. any suggestion please help. Any inputs, Jagan. Jagan Teki (5): dt-bindings: media: sun6i: Add A64 CSI compatible (w/ H3 fallback) dt-bindings: media: sun6i: Add vcc-csi supply property media: sun6i: Add vcc-csi supply regulator arm64: dts: allwinner: a64: Add A64 CSI controller arm64: dts: allwinner: a64-amarula-relic: Add OV5640 camera node .../devicetree/bindings/media/sun6i-csi.txt | 4 ++ .../allwinner/sun50i-a64-amarula-relic.dts | 54 +++++++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 26 +++++++++ .../platform/sunxi/sun6i-csi/sun6i_csi.c | 15 ++++++ 4 files changed, 99 insertions(+)