Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp319372yba; Thu, 18 Apr 2019 01:40:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqza3hZ4AuNBck0FTB1BCtSioS7yzsOqqjYf1LhCijkFuMBmEFcKP5sdIm451JPbf6PWjQ4B X-Received: by 2002:a05:6a00:11:: with SMTP id h17mr46705911pfk.232.1555576806859; Thu, 18 Apr 2019 01:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576806; cv=none; d=google.com; s=arc-20160816; b=qkNWjvrBjjpTojwVpNHoH+ReQyyU9i997NUKbda5RS4aIUKNMVABfBGNVXKB7eBx1v +be1iiUlknAl7w85sD7790s8dWobVAma/HPOCYdgAvXPgH5cLooGqvcfyAjcq/3cwWFY oT+KLr4xfXMXJkEbAvV+vPPgJ+l7PK5TEw5LFmBTfuoIpkQAGTOasNLusbS7BOmgMQfg 1mDf1Za9bSJAv0SXmW5ZqfE4WW3I2cYgVc5IO8rftFaT1riR6SrlPWjynLiO0XiOOLKx E8s8OiEQ3bbcefl9rKozwHvmIFv6+dABhiE+U22SpHNBxhT6dU0UvDdecc71fF8xdJXM COgQ== 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=2J/G+YDKHjKA1qZqXV86pFjVgW4CG2JHv9U1E6Kr4M0=; b=ImzIM7bwVQ1qyS3VnYl+wPoxwR4tJqbIX4gkI62MyLI4fVJvd0ut/W/3c9wmPlj49F AyWMg7CjWhc/kBsLPiDrtYN+jJI68eYVHWb0tRfUDylt1ixqVoa/hnNpPNPwXEadxxPI 5/xDIwY+shEf8O8/bceu02/Xh7VJgac7F1ofLDaV4087V6msDm3XNvQgSk/pz9PVagb3 nUjceE3THx2rcEEfdPeo87+OlFKLdJFmCyXifufhEcvhatuTqCeZBY2jvYoieXTp4WNn 9RIhBDu4kLICGtLQCpqSi9aEFLZfRCdPYtfgkWKyhjmTVxmCDHM3t4RLXRvJBYN1UzzK qcJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dYp4PJHF; 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 r39si1556550pld.10.2019.04.18.01.39.51; Thu, 18 Apr 2019 01:40:06 -0700 (PDT) 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=dYp4PJHF; 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 S2388197AbfDRIi1 (ORCPT + 99 others); Thu, 18 Apr 2019 04:38:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37291 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbfDRIi0 (ORCPT ); Thu, 18 Apr 2019 04:38:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id 8so790393pfr.4 for ; Thu, 18 Apr 2019 01:38:25 -0700 (PDT) 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=2J/G+YDKHjKA1qZqXV86pFjVgW4CG2JHv9U1E6Kr4M0=; b=dYp4PJHFMRhFBebveYpeCkeKD0eK41MQ+C3YRUmi2sNi6wvWxgOe98/Pfme5KfDy8E RuUS/LawrPQ5mJAiDY7MWp3tA7zaxYGuYLpH/0ieumBHQh+F47gKmxkr2DsfA+xVr8+/ 1py7tPoQ2sOP+tFEtf/hysxGJ3R2+1+4waQ90= 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=2J/G+YDKHjKA1qZqXV86pFjVgW4CG2JHv9U1E6Kr4M0=; b=VIas5/8VBVZzq3ge69zWHjtHvbXsTHFpTBPN3qUWn9hu76mBK7neVZzCQotr4ec+ff R3w84SKMF3tIFQqcqJAeC68tjRTdpU2OVyuWSZj0iV9NEHSKA6uK2y4JdDtaFcL+FCJk jNCDkn1ZXxPg0J8/0egm9zf4qLYV5L7+qhw47syxZZNCn4Htb5E5RR39XUa22z1b8qUO yKgyp/8iMMoJA8TgmtNSbWoJLy9qwraoLKzSewQ8Lcsgkvkad0yP8msZ6eQKUvp/BKRS fDZLMav8AMB6snLd7iSznv8O41Ji8s28xW8cyMQ6XoLXWc7CHrOtGm72QgVFbrv9Zp33 taVg== X-Gm-Message-State: APjAAAX6d6Hb6joEse9XpqXg9yX/FSDksbjo3z92EtBT4sZrznYscLlI 7ZG+dnYkHcxxrLCXz9eW31/74w== X-Received: by 2002:a62:62c3:: with SMTP id w186mr62368274pfb.73.1555576705545; Thu, 18 Apr 2019 01:38:25 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id o81sm2075917pfa.156.2019.04.18.01.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:38:24 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/2] arm64: dts: allwinner: a64-amarula-relic: Add OV5640 camera node Date: Thu, 18 Apr 2019 14:08:13 +0530 Message-Id: <20190418083813.11776-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418083813.11776-1-jagan@amarulasolutions.com> References: <20190418083813.11776-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 Amarula A64-Relic board by default bound with OV5640 camera, so add support for it with below pin information. - PE13, PE12 via i2c-gpio bitbanging - CLK_CSI_MCLK as external clock - PE1 as external clock pin muxing - ALDO1 as AVDD supply - DLDO3 as DOVDD supply - ELDO3 as DVDD supply - PE14 gpio for reset pin - PE15 gpio for powerdown pin Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 3819ce396073..56c76b712e3b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -22,6 +22,41 @@ stdout-path = "serial0:115200n8"; }; + i2c-csi { + compatible = "i2c-gpio"; + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* CSI-SDA: PE13 */ + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* CSI-SCK: PE12 */ + i2c-gpio,delay-us = <5>; + #address-cells = <1>; + #size-cells = <0>; + + ov5640: camera@3c { + compatible = "ovti,ov5640"; + reg = <0x3c>; + pinctrl-names = "default"; + pinctrl-0 = <&csi_mclk_pin>; + clocks = <&ccu CLK_CSI_MCLK>; + clock-names = "xclk"; + + AVDD-supply = <®_aldo1>; + DOVDD-supply = <®_dldo3>; + DVDD-supply = <®_eldo3>; + reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */ + powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */ + + port { + ov5640_ep: endpoint { + remote-endpoint = <&csi_ep>; + bus-width = <8>; + hsync-active = <1>; /* Active high */ + vsync-active = <0>; /* Active low */ + data-active = <1>; /* Active high */ + pclk-sample = <1>; /* Rising */ + }; + }; + }; + }; + wifi_pwrseq: wifi-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rtc 1>; @@ -30,6 +65,24 @@ }; }; +&csi { + status = "okay"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + csi_ep: endpoint { + remote-endpoint = <&ov5640_ep>; + bus-width = <8>; + hsync-active = <1>; /* Active high */ + vsync-active = <0>; /* Active low */ + data-active = <1>; /* Active high */ + pclk-sample = <1>; /* Rising */ + }; + }; +}; + &ehci0 { status = "okay"; }; -- 2.18.0.321.gffc6fa0e3