Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10694078imu; Thu, 6 Dec 2018 05:24:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vjz0UiwOqqqVIwM/Lbb78UzUBtp8bkxs6iJAV33hdZSxceWnCfG7ka4eRJ+xnbyOlU/C80 X-Received: by 2002:a17:902:1126:: with SMTP id d35mr26424594pla.1.1544102688821; Thu, 06 Dec 2018 05:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102688; cv=none; d=google.com; s=arc-20160816; b=pUaeN0ATb1hxMmEU4cx+/P5eWFvvLEbxE5x4LFWEimlS4alPsZ+bACup+pCFVz0VoC 1t4Oe83tHBjdqP/WFhaorAOe5r3lgKWzy5tHs3IqM3bdQph+Sa2cQDjKBCJn/wzM7n4q 0MOnJpIeHRgBHoOljh6AATacHri6lHPndQaUWtJGDBU+evKyxe/Akxp6hJvGMjsLnyQI W53beJmQCaA8cFusMsxU+3PXd1gdWSh4Kgm+tpgiUfvLUdn22rOf2mH9Qebgt/E0TinJ HYFbu3BpgDVPNafmQzfKM9ctKGskejwUekUdNLyfcLeeyK3fdXr6qw+c7MIr9aRI6JQR lB/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=LpOIpuF6k0NOxH9Tglm6vp1qJOvQB7Zdu8YFSFmKNmzgpNRa3L/KgIwjr6Gps+9KfT VQLwd09nTMq8J7KiEXYc3RWXdPm6aa42pUbpFc59WuqCGDPxkACorSxvYaJ5/2F0uDl1 cQQara61pL9IBtZHjNxo8AAAkKWtGsKUvz7jQBul44SYR1TPYxOIE4xNL5O3zcPoBZ9s J+Pchij+2bY50ROaM8B/0f9aK4HZJnrAdkfnZxx0nxbibyZfp6wg8QXZUl/fnGPIlqqd IYjEUh7S3CE+b3igpW4XD0LnXtjPNbUINmLAfOPjrsYaudJdwclgXhSDuRaDHgaPUDS7 60Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WxNuUCnT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p127si298588pfp.119.2018.12.06.05.24.31; Thu, 06 Dec 2018 05:24:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WxNuUCnT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729715AbeLFNXU (ORCPT + 99 others); Thu, 6 Dec 2018 08:23:20 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41132 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbeLFNXR (ORCPT ); Thu, 6 Dec 2018 08:23:17 -0500 Received: by mail-wr1-f67.google.com with SMTP id x10so461104wrs.8 for ; Thu, 06 Dec 2018 05:23:16 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=WxNuUCnT1Nf9o2TGbxbYI6fyfX7UiZEYTyUyDHBaCvdcgoEPT9pKUcO93f18YdNy1G LF6hI2nQXeRc02/cfQeU6odDZj7c8Yk1/6jLpT/YEbDCeYaLPYpLTnxrQLlD8GjmgCPJ 2Hl2+V9JuTenZuY+s7r50Hcpw97U6He8dvIcE= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=I+cyUk+7hfdVphkg+QSYcP6oEiNLgC0d73Pm164M8lMOwo0FcvF8VL0Or39n7lOhUM qNEIOHWbRVm67Gg6ysnbigFk4pNSxyFnqk28iiNi4vgqDnM5NrqEhnT8evrfMPSZdTyP JDmLqc+8AlYa0dvkSAuivvQLGtQ93Lf11aMt1a464Rp7vKi2ixLq8c9uNWoyEVcCOxaT E7kxx1LiDMBFvoIk5uKhAa0JKjXoHOmzIl15wZqePyeATOclmFau6bNOiAztAp6mD1u6 bJKywIEZBqXnA7STHfslNG9LPxAhD8q6aSNr95a4TsjoIeOT0sPM9WeknrSqVb4MrT6E kWBw== X-Gm-Message-State: AA+aEWZi56EBkAw0jF7T3E6YMzxzZka8ReLHfioLCPCLTWHB8aSwkp6Q JVB87TMQsbmKcKQZZFsUuAp8xQ== X-Received: by 2002:a5d:4a45:: with SMTP id v5mr24199502wrs.7.1544102595481; Thu, 06 Dec 2018 05:23:15 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id z13sm363769wrq.19.2018.12.06.05.23.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 05:23:14 -0800 (PST) From: Jagan Teki To: Chen-Yu Tsai , Maxime Ripard , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v2 2/3] arm64: dts: allwinner: a64: Add A64 CSI controller Date: Thu, 6 Dec 2018 18:53:05 +0530 Message-Id: <20181206132306.11843-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181206132306.11843-1-jagan@amarulasolutions.com> References: <20181206132306.11843-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allwinner A64 CSI controller has similar features as like in H3, So add support for A64 via H3 fallback. Also updated CSI_SCLK to use 300MHz via assigned-clocks, since the default clock 600MHz seems unable to drive the sensor(ov5640) to capture the image. Signed-off-by: Jagan Teki --- Changes for v2: - Use CSI_SCLK to 300MHz arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 384c417cb7a2..d7ab0006ebce 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -532,6 +532,12 @@ interrupt-controller; #interrupt-cells = <3>; + csi_pins: csi-pins { + pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", + "PE7", "PE8", "PE9", "PE10", "PE11"; + function = "csi0"; + }; + i2c0_pins: i2c0_pins { pins = "PH0", "PH1"; function = "i2c0"; @@ -899,6 +905,23 @@ status = "disabled"; }; + csi: csi@1cb0000 { + compatible = "allwinner,sun50i-a64-csi", + "allwinner,sun8i-h3-csi"; + reg = <0x01cb0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + pinctrl-names = "default"; + pinctrl-0 = <&csi_pins>; + assigned-clocks = <&ccu CLK_CSI_SCLK>; + assigned-clock-rates = <300000000>; + status = "disabled"; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun50i-a64-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi"; -- 2.18.0.321.gffc6fa0e3