From patchwork Thu Apr 18 13:52:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 233 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 920C740B04 for ; Thu, 18 Apr 2019 15:52:49 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id 18sf1393775pgx.11 for ; Thu, 18 Apr 2019 06:52:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555595568; cv=pass; d=google.com; s=arc-20160816; b=R8i2koPy5/ysJcoU8yMn26T1gtUGhgasd/UgaL53zP9LAukFgcdBO/lD60BmXR59O0 AJo5c6MCZDdfreVyRIKidQ69s5rdlgJVI2vSlX9zOFoJVGL+3iZ7z+KAkpGImGBJHP4J IjRpajlwTDS9oYRoG/HTGqW9lFdQhI3aGPkomFdbDpP5Fo1SnORIYHU3taaqlyx6zr0c 69ngZRmCRO6jrT9dKOdMWZ/dVPng2AkCbWLdtyKKGzu0pVi6MKH+rZdCVrzyyZ5CArKa cHJVeW/xNaj9GnSV+bff9eALNXFiTAaD50bSUcpLQvA6o+xmDdcK0GMdXfeWfuJCaVLJ XxQQ== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xskST5awvtJAZ4iAblPgcc5+6UxNkHg6ieIjhUR99JE=; b=w8SRZ2axGizdU/G6yTijna++f5Pd/droUwSnv/ATOZMC/xjOtTa7O1ebO4IeNJ+UWZ EInm3jflhE/oetc6zb/QdfWCe8Kn7Dwcv9e2lh7cY+NYWa7MroRvcUTRpqcpMDywVqjA eSEgO2jCBWCiBevml4mxI83bdHeFKZwkdiX2+TQTTFEZsG75vHZjPRftBQbferUQEd+X UvBTB3VProoggdTuQATRvr+DqDY47Fml/GhM0X+WUjNeB2iKiDVgtmCKjCMIDgvTcoFI PIyKIQL+Tlm1unV0QNPhksfmMowt/Xs5FeuuvZCeNl08geX724/BBvWcmG5Kc21NruAQ quXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YXL7gweD; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=xskST5awvtJAZ4iAblPgcc5+6UxNkHg6ieIjhUR99JE=; b=o9sqL/8hmQQCLw5Njgy22ejcvgdhmCoC066Rn22XEMPry5juCWwZd0h9XAKo6bPm2d KD/q16ngeS/DN7AM/z5IKi+o6eJjzHNUNIrxjUt1jDx78RPBRYN6CvyUOSBYUx7hn7O9 tNPrmuCx6QIXSxDNMi8TsjDl2fG7sJH13DjII= 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: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=xskST5awvtJAZ4iAblPgcc5+6UxNkHg6ieIjhUR99JE=; b=pK0xsqvzLrBGdOFBlaw88DeVHvUGYC9uA6o5TXswmYMGKZcFVUVQPEqdRY/WfUgOek NsUjVxoFOotZ6Lc1ZWMCmMZFwJ/nQMo2QiMZmMrmxojCvp78NRxxGV4v12XSTKU0sJa0 btfm/fvVYBnO8P4rkE+vc0q7EEpy9icsDISLSPMi1GuVdDWF/Rz6s+3w5Z/R9ETRgYzm GBrh5puZYdJBIfDx1C1jD3hDhFPB3t54sXZvglFrUGTMhwg4kI7lc6oP28cFW8/1GubK Cz1m5DRM71clzagmXIWn00N0dvNRleVH2PB7YEgPWj5mZ7e2UMhEGwgzWqCKwxs0/bPU NeaA== X-Gm-Message-State: APjAAAV3U4FkBdBXIEnePeDLt8jsA8/7Z6aYbTZF9jdY4mZqTmfmkNdr Y1K9fe2f1EJ8QjbXYZ4p1YBT+d/w X-Google-Smtp-Source: APXvYqyOZU08W4iO0DUq8pwbPUI1Aei8GSbarRFAb89qhh4VW1Kskq4rmkhQ7aE+xhjrVB09k/Ustg== X-Received: by 2002:a62:1c13:: with SMTP id c19mr95434640pfc.11.1555595568394; Thu, 18 Apr 2019 06:52:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:56cb:: with SMTP id w11ls619570pgs.12.gmail; Thu, 18 Apr 2019 06:52:48 -0700 (PDT) X-Received: by 2002:a63:f444:: with SMTP id p4mr90898876pgk.32.1555595568052; Thu, 18 Apr 2019 06:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595568; cv=none; d=google.com; s=arc-20160816; b=olptjdzXT/aoISSSa+7JNrI+sC2yeMYHONj93tB4WaIzNXq4C4yc+Njfhq6EiOZ097 veCGZ/WRIB/6T+g+keM1cxda+UljPO1dHK6LTQFNLVGFHfg6VAxys3Byb77zLborS615 BmTU4aJKdn3SaXPbR4GKwxClne3qD1i2ZThyqMQO+Yx+s2XQW3Tgr4Arn9lzYbqGKjHK aqnADHYQ7tLmvzysblXv0X6Q2H9scqWrF+5j+Ime9hU6Ja8QO+/wlzcC2KIJ+6KgMjeh g/OugjofewlOCaJdEgYgnRiJuBZYACzqusJgyW62AaqwwBD2ea28sEfDMDGe8SUmMy8Q 7RAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=usMx7S8Zw6gUlsfBkvTuHsgMXBMVM7qEmvo3v4uBHU8=; b=R1VDFGiQCxM/EL+5DkYCy08DDWJA0+OwHCh5ebbLc9Z/bI2nlwDCf3ZjLdK7bdw8s3 946KEOlrbALsEIhDSNNcp7Zro+I8Ly7yJU6fzrHQYDGnqPS4rKTlP7dlTRNJiBjlFsQm KB9SlcM5PmtQTPkoDg6XBPqmkeFkL/b9TM1/osg8acDcpJmjyZy1VmZyAT70lT5rwoK6 xwAui8emXQbYpUjyfhhykZ4Q+bhvw/Odd9ce8Zu7V+ynZ+nznkQ0FDb6k1jWETNfdVXL LfbACmA25n3lmsttVO43AoldH2z+GfioTIB6UHrl8hfzsilRFsK8AVKYcsGwHshey/Z1 6/pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YXL7gweD; 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 t20sor2266530plo.69.2019.04.18.06.52.48 for (Google Transport Security); Thu, 18 Apr 2019 06:52:48 -0700 (PDT) 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:a17:902:784d:: with SMTP id e13mr96739166pln.152.1555595567749; Thu, 18 Apr 2019 06:52:47 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id c5sm2357861pgh.5.2019.04.18.06.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 06:52:47 -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 v2 2/2] arm64: dts: allwinner: a64-amarula-relic: Add OV5640 camera node Date: Thu, 18 Apr 2019 19:22:32 +0530 Message-Id: <20190418135232.9368-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418135232.9368-1-jagan@amarulasolutions.com> References: <20190418135232.9368-1-jagan@amarulasolutions.com> 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=YXL7gweD; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , 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 --- Changes for v2: - use node name as i2c instead of i2c-csi - drop i2c gpio pin documentation - drop unneeded address, size properties .../allwinner/sun50i-a64-amarula-relic.dts | 50 +++++++++++++++++++ 1 file changed, 50 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 bd31a4385bc1..7bb1d93f5e65 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 { + compatible = "i2c-gpio"; + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; + 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,21 @@ }; }; +&csi { + status = "okay"; + + port { + 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"; };