From patchwork Thu Dec 20 12:54:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 108 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 232CC2E54F7 for ; Thu, 20 Dec 2018 13:54:50 +0100 (CET) Received: by mail-wr1-f71.google.com with SMTP id w4sf551434wrt.21 for ; Thu, 20 Dec 2018 04:54:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1545310489; cv=pass; d=google.com; s=arc-20160816; b=YBwjaNMC6iNfW2OrzOpJajwMIJs7L4bMcOI9Q1Nn6xXOTQJ6pC2dQjM+05cTHvzdYI jp3DJ6GrzYT6Y7/R9Ip9E9UBz/HW+l3ytBpnb0T1aptTLJA0Dxb4RviwjqCSeaGSJCRi QE44kbMX/u2e1m4tPfIrcPc33izcXRXvBixFYVbf+XUpqaIorhTT8pkLjkOXTp0GIz4u ZJFY6LssgBq4ZYJ/bh/vs4Pib2kx58fwCyJEEW+wGKtkLc5cDZqgUSmB10LWyDnsiqu4 KFEjbkO+HqVP3jatWQsdIn5bAPienJVokXS+ZcUqBPeNbz+W/cTWN0DZHz2Nrfi8dTHR VP8A== 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=eTbaK90WQbfaV86T27wpc68Wcf5FjOqAAxWvucI8Kwc=; b=f74NZqsmRzcdq/OWY0XDqKQ2dnSRa8gk30V2I+VvLKy7Y056oE6FVjMtEMPd2nFnBs pHN8E2lretnFCTMo3ZOkftzzLSzCHe+r3xwspQYOO/Z2P5oYergpCW3qhI4hM6Mn1M6G MaseOP8A7MBiEG5nc+hI7E/boTBcmROXcfPU41juTbU++UQwyMscDbkpdfNPBhdK1JLB 44tIFy4NlQojLwWqk84RW/p28TNX1kxSYLS1g9DfsCk5Qkmc/8MzTmxPRzh2OXsPo1mD O8qYanucW2RUeS0qfiOCDORIwzGxWFJaAIjOiBqAumyjEow1oYi6/yIbKuZflVHKUum3 LyXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cHT6eHFT; 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=eTbaK90WQbfaV86T27wpc68Wcf5FjOqAAxWvucI8Kwc=; b=ZZPyAdB3RYVPOGyArt2mKX17pL+A/+04BEEyqWq89CefXcncRFmQbTdqsxxxIf05lK X+gZQe6SXF3WhtVxPkaWjen+amA77VFLdGDPkh6d5s8+m5VP8XxUM1CW9RUUpKhWBjNo 2K0CczOQxGw85yX906StBvCjPtgx0uj25+nI4= 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=eTbaK90WQbfaV86T27wpc68Wcf5FjOqAAxWvucI8Kwc=; b=YjxMSL7esEaqvRFhPh9gF9ckvVMyHNflnU6U5Pg5CcuTjgBh5yEJnN9hS40ORUv+HQ 1pOqF++IxMC0qGlyj9vvz9gsthleWFcj0In54qQe1cKuz6bWvIN/BBJ59xbeRT4UJHMJ +Y69OdmUBd4WI57zUkqYmAIn8nVJBjwFdHcmqbe524C83qpRgUb7Zmye4U72hk40U96+ 0dv0IxEH6/R5TGxjV+HMBiuPzR3uYEmgQgUGSl2KbBy4YgNPiHZlY/Zb0+sRJ4nupprl 0hIdv5gyZeHwVUtwdXuvRf9YFsHc0qzZVC/E+GEsBpB3yrxMq7U1fNApsBn4MvA6jUW/ xtLg== X-Gm-Message-State: AA+aEWZAkObLfP8yYXvVB9yz+xd589T6aA3KO285LVXsZz+6dgXjasYq kN02u0jQFzkV5nlRAIxMEw1DiXKG X-Google-Smtp-Source: AFSGD/Xajehl9i8VPtx8GFq1cYpq7ZQhEWFhKkZDYrXMM+t0fRoD3Heiy+7Pwhx8RDs5rPUi1hMfRg== X-Received: by 2002:a7b:c002:: with SMTP id c2mr1139827wmb.0.1545310489485; Thu, 20 Dec 2018 04:54:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:7c11:: with SMTP id x17ls21303wmc.12.canary-gmail; Thu, 20 Dec 2018 04:54:49 -0800 (PST) X-Received: by 2002:a1c:bd86:: with SMTP id n128mr4119851wmf.22.1545310488912; Thu, 20 Dec 2018 04:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545310488; cv=none; d=google.com; s=arc-20160816; b=CWOgDNbBY/tSi0zUcuF/uftEuHPdEBFzZYMqy7jaNTmjd1wvnQuUQ5lVkvMIigBK2w vaEfDpH+kP85kDqQVn9PxvI21GUF76HTzzKctcjStMclM38bgSewxPunlriCKuRpfl4g usd521k2VvAwG46U+ovNyrjF4zyCwXZd9Onqm4aZx4UEiS5FK5xsHcuhVr0IS2Nwhz9T BBaoIDXCaS2ZcZ+hE4glCRlHc4kwdbuHkxlT7GfiGaTw39ket7e0MWhuUKtnZvMljkcG 41/H7bzKq5bAK2zip8vNEbXeW8MX1HpDE2plo5w81oz/5+rkKWAk0fVdz1Jv8ASr3zuA jn0A== 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=eTbaK90WQbfaV86T27wpc68Wcf5FjOqAAxWvucI8Kwc=; b=WjVFDvGxC6NW9mGlFh5q2rOXRgttbCrkahGPQ8IVW88bzgBR21OPof8LOPMPYWSII6 tOYnuVxdoL14qlAGMAVm1hRf1/LNRbJFtiINKDZdSgFuv0QLXfoq8Rvq117G+Nlq12tq CADtcCCwIxrRl2w5X1ju+h8V6cdrp2WoNf7vamROACzLXT0I5bsmSQA7nvJL0HZ8cjhi EttYp2eoJ5A/wunleJ4aax9PrjGNDdEJsN8k0R5ddOyhelMDawxZ01AFWxr08ZHUphXp TMAdg5D2r6q5XFV6WXAJC1vONl9e8M7grM6rQuJue0KtjfK6c9YAO+kCbSiG0F8pwDeD 0Urw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cHT6eHFT; 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 s185sor1460187wmf.25.2018.12.20.04.54.48 for (Google Transport Security); Thu, 20 Dec 2018 04:54:48 -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:83c8:: with SMTP id f191mr11334134wmd.134.1545310488444; Thu, 20 Dec 2018 04:54:48 -0800 (PST) Received: from localhost.localdomain (ip-163-240.sn-213-198.clouditalia.com. [213.198.163.240]) by smtp.gmail.com with ESMTPSA id o4sm8732756wrq.66.2018.12.20.04.54.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 04:54:47 -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, linux-sunxi , linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v5 0/6] media/sun6i: Allwinner A64 CSI support Date: Thu, 20 Dec 2018 18:24:32 +0530 Message-Id: <20181220125438.11700-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cHT6eHFT; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series support CSI on Allwinner A64. Tested 640x480, 320x240, 720p, 1080p resolutions UYVY8_2X8 format. Changes for v5: - Add mod_rate quirk for better handling clk_set code 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] - Tested on top of Maxim's ov5640 changes[2] along with the change I praposed wrt 15fps change on this patch[3] - Here is the test log[4], for anyone's information. [4] https://paste.ubuntu.com/p/pC9ZQKNzQf/ [3] https://patchwork.kernel.org/patch/10708931/ [2] https://patchwork.kernel.org/cover/10708911/ [1] https://patchwork.kernel.org/cover/10705905/ Jagan Teki (6): dt-bindings: media: sun6i: Add A64 CSI compatible media: sun6i: Add mod_rate quirk media: sun6i: Add A64 CSI block support 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 | 39 +++++++++-- 4 files changed, 124 insertions(+), 6 deletions(-)