From patchwork Thu Apr 18 08:38:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 228 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EB88240B04 for ; Thu, 18 Apr 2019 10:38:23 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id cs14sf1099157plb.5 for ; Thu, 18 Apr 2019 01:38:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555576702; cv=pass; d=google.com; s=arc-20160816; b=Vqd5vBRaLxu5SVO/wRLoyHMWE3K4eYDIU5IFRa/c+x2+qPdbTrZFCE8Y75PEzB0vMn P1ADzqBDvXDl0QGn9+XQav1knOdK9rFxddnd7BZhpXAtWnpkMrDW3WmhLY/hTin5OnQP WFl3G5/tBQ3jXNFobwJoqygrdZx64RBCCkFaN5ALRdVwwOndh6aHsv+Pm+nlJcHzQTqG 8mYkCOvYuppb93SYcWbe5kfzuR8zjdTk3i7qutFF3RVikTxBUPtYXPtot5DhHB8TPlh2 PIj3zCupeeaDkTkuhPk4aPs0U6zrchqDdRngNIRVuttfr/i6+OQYzahZMhLl4F0HuRiD SVVA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=pI1zse7IweWcUVoqhc4PRV+Jfs157xiQmznL5jgVgoU=; b=T7n8SdwMbpdXa0IoJB3ruHqCWHSin+UmRlHns7VAtjnNkEDitxyXgMC1DohJ8Z7Vvl WKKbN7HgWfUvqKInAHuB3G+X3DPIkioQDpbDWx3WyzvQEs3ptKbTSVW8cGv7nGJZ0MeV fJE464RfFWWh8q9qAirTLh1j2LWXFSCQSB1jsPhf7Gs1n79w8u4alkj9WLlFDRX56BbB D7uirecOPpTb9lCMmo7UbRv0//h8Ud9FIMJjEgTEOyWJHqaZLkSUUrRH0Go0bmk0vGmp fIwsSoyR/i3gWU1O/Ex+0/DuibnNLKdW9gNobRNd27aXVmo9MItzQVH46DU9pOjI/Bqd aVLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d+kP4iGn; 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=pI1zse7IweWcUVoqhc4PRV+Jfs157xiQmznL5jgVgoU=; b=k5N4mtD1c8WvrXwHWIGhML5bVk0A4i5Rxn33E4hUmTb73AbRXJOfnbmAHmbGAUfePv 11aA3DYfcFWRKgbbiWRObBYlUZTX7VMKBL2bpML2ZKEyE+xFlLjldvp/NTcsPRHjSjPn mgz+gMlZuNIskgELFfHTJSv1pugnuDeSIZsiQ= 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 :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=pI1zse7IweWcUVoqhc4PRV+Jfs157xiQmznL5jgVgoU=; b=VySA5bDaPKW4y7nPNm/Zwd7VyAhszttbK/MbQ/cApxVAjBwCJWqnRm/6vQSHdxhxq3 SUmJzo6bUmqQPgyCVaWicia0Vp+Z5z3QXBqASA6W6VAFK5Gmo3iZdT7iCgWdtvBG2gKv xR86shAUbKFQJM787jr7scmSO5bbMkK7ccQQCCjPKcxN5XzL5L6hJS4ehzqpUzzuusc4 vnrkW5TOK+0tcwGTOBGQo0QOrcIA7wfQApxZ2HEe4g1cskJRvXXY/H5pR9NzKRUOGywu q2AI02CallG9PKi0+2dpnD3VRbASnT6GlcqaXJBAuOrOxn4zryNGDVrNhxnUzDyZY4Y1 j//A== X-Gm-Message-State: APjAAAUwVpZ82Gvd5N1a4K4sm+uQpFEE5m5BOo9Te+RfU0qjdIBwmI8E JnGZKdHb7xB8h6Z3o5X9X6pk0LFZ X-Google-Smtp-Source: APXvYqwquAgQkZvXo7csp5McIU8HeeB+LpjMoq8nETAmNu688/gUTgZNcsNbhP6YqgQZVjA8JoeQ3w== X-Received: by 2002:a63:cc0a:: with SMTP id x10mr84727092pgf.179.1555576702730; Thu, 18 Apr 2019 01:38:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6886:: with SMTP id d128ls442234pgc.4.gmail; Thu, 18 Apr 2019 01:38:22 -0700 (PDT) X-Received: by 2002:a63:330e:: with SMTP id z14mr85493593pgz.4.1555576702413; Thu, 18 Apr 2019 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576702; cv=none; d=google.com; s=arc-20160816; b=cuNR/Thfnlda6eneY+nLwnu/UqXGmIMZHiDcPpCWzOs7uv+uzj0nzyF2kUasfJm0Fi BhUrGxGc0n2T2kTRezXFvfEI24hLKAWDx2itCaWYnnqF3FWQF7adJUxDJMk2jnCjZS1b qkx4YzxFRLP9HJ0Lqzr18nknV7WPaqIxElugdhwHn+7riJScSmCkhdf8jOSm5kJwJGFu +4hvtIDbW1ningEUpnHANe+nI1zgHBcmTWD+pS7w9kGSpaNTJsLLmn3PLGgvxpgHHs7L un8UpW0eEUtGabgutuX+Y1I1yYK0N2M00QWny19LOvGF2WsX+UaJNAJoducU1uHaxMk/ 99gA== 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=bVH6oZEWqWRwSE0/zky4AIHwuUMb+EYBfI1m7D47hvA=; b=jwqOi5sCq+U9ni3uKzS2S3xTndTIVrXQ6SwpM0ljLe1XcZvN9brfJLgb4EF33e8dpc ZiCKaghpiDw0tk5qLxmTMWAWKQvsKSYuSGWMTls5Rd3Dnd7AGXlxQ8k55QQKZMQwTQGW BpQ/N3+R6lvtH08oNCxA9sokSw7B9kIoLH+oRys59rlvQC9WCeueqODfWZxdbU2BdqAX xMPiiv+LmhOlxbUxNJte6FK3XpoE/pqmzinCuaDCfcwPwRtgmnHKdePSdVhT665a9zjL xjJaRwVCmpUhKkaAAtvY61hbpZ0mh5mMLyJljQyQ9TxoSmsGf5nNQgI2C0oNVz1eyZzW aPeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d+kP4iGn; 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 e93sor1435582plk.9.2019.04.18.01.38.22 for (Google Transport Security); Thu, 18 Apr 2019 01:38:22 -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:b58e:: with SMTP id a14mr64799527pls.44.1555576702113; Thu, 18 Apr 2019 01:38:22 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id o81sm2075917pfa.156.2019.04.18.01.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:38:21 -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 1/2] arm64: dts: allwinner: a64: Add pinmux setting for CSI MCLK on PE1 Date: Thu, 18 Apr 2019 14:08:12 +0530 Message-Id: <20190418083813.11776-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=d+kP4iGn; 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: , Some camera modules have the SoC feeding a master clock to the sensor instead of having a standalone crystal. This clock signal is generated from the clock control unit and output from the CSI MCLK function of pin PE1. Add a pinmux setting for it for camera sensors to reference. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 6f27eb082429..6f4e00ec9c68 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -597,6 +597,11 @@ function = "csi"; }; + csi_mclk_pin: csi-mclk { + pins = "PE1"; + function = "csi"; + }; + i2c0_pins: i2c0-pins { pins = "PH0", "PH1"; function = "i2c0"; From patchwork Thu Apr 18 08:38:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 229 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8012C40B04 for ; Thu, 18 Apr 2019 10:38:27 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id e14sf697636pgg.12 for ; Thu, 18 Apr 2019 01:38:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555576706; cv=pass; d=google.com; s=arc-20160816; b=A+vqeN/n3ZuKj3rnMb7Hia84QLvDzuGhsXWk89o8Jp5UjNuMwYXw++NTZxDqXJ5R1f NJpxeV6Iq25b/icqlPbPo7mMU+1wR422JX7tW1y54MH6ND85H60jPKox5L8jJ7c4O9qz 939qKWO1moJJ6+iTSHma56iJigBwaxT7lw2zDlYHGdHAP8gvXdYYTPpDKc8ieDZgW9A9 pr8qvEimTOXd0Ky0A69lGxvUKFjAfZ+aPgYAr3cCVhLB7CFDVyvHCL0j5Dv21MfVyuUJ jyAEUo4qZ93PdbxAFAO/ICg9wPREK82n9jeOZMGRr8oxVINs8jf93ks3cnfI/0h8vJmK aH6w== 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=hwyaFRDCn57BsuZG8enPdnOOhBplr4YEkEnQ2B+v7aE=; b=kyO20h3d3PR5TjbCFmFYcPSqdwaykkKa9wLwPRmphgweT6tpo2dbbMZH9PqcVLHunt 5uCh0hGam7gJ1NLZ1hPGH3A/MkTWuvVB5/LcV5oU7wi0jhitf7Bgd2lw91FOXUqAPTPU tEGkNU9YSwY+EKTeSURlIqs+E8fdPwJYX9uNIm0fNlqHM8JKvGPQ7bAX0961IOhH9OeC tbTqfTeTb6iyAoisrGvEMAvvegk+ylXW9szf0j88wgqRM/juHEaplPXbFDoSXNbtIUr6 InmK9fbMJGWTEGStLN9Pkm78n1DJjKTpsWEBQokxyeno2ejXjZ9U/yGrRnunjxPxbu2/ pJwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dYp4PJHF; 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=hwyaFRDCn57BsuZG8enPdnOOhBplr4YEkEnQ2B+v7aE=; b=FoevQeBwx97b5grqq1qTS8NFCXUkYMzQgydVOIwk4qZrPzca9BUdl779Xv8moGrX4o pOqCVdkKju7JfMQjP+c4XYIw0n1xVgkP3xr4owg1otAPGNkbcAfMfc82Q9tX44ToE/mm WrDEWAGviAgJHFtdR7CxpOcHKIhhZVmRr5OEg= 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=hwyaFRDCn57BsuZG8enPdnOOhBplr4YEkEnQ2B+v7aE=; b=JXGD9hnZFi4T6tzT1Yn22Q8GQGs+HSM3aeuTGpiwoWZQHpgqELLudnvSU2DCfZLSqt kZHGL1j2iCKU0S2b5IJV3hg2+i+q8IsVk3Q+vIzcNb1xPtc9qByDMbtW9F3D31/2LL+X 154wEr8Oj3IYqiVWjpPpC4gYnVv0ridQp910OIuS10LNUnunnaV8qJ/UAAMaet3cQ8WN uzvTxnTCQCiCRUGTSKzGYGoH7vSjbeDyv8XlTmZA2IznS3LHJlpA8ThUyrBvx77PB9lN PzYs9Q6gfYJDr/5lGn6Cl+BVgYw+TJe+Z9qDxBPq+kcE5fMYgb2hbVV/6uKeePy5GZjI wEtQ== X-Gm-Message-State: APjAAAVyx6SRwlaA6ONxPKLDmiEhYIx1dKQqOoYXHg1VZWNuSzeUCdHY f0Qa+W6hir9HdPGYobsjEVS2F6CX X-Google-Smtp-Source: APXvYqzuBZEDX+ikmYlItSypYTKBMcEvpsoZDmy5mFQK4Eyyhx647xYBLnMzbYQSkrquVB5XKTcZDg== X-Received: by 2002:a17:902:4381:: with SMTP id j1mr29984551pld.173.1555576706301; Thu, 18 Apr 2019 01:38:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:d605:: with SMTP id q5ls439405pgg.6.gmail; Thu, 18 Apr 2019 01:38:25 -0700 (PDT) X-Received: by 2002:a65:6645:: with SMTP id z5mr62936905pgv.251.1555576705866; Thu, 18 Apr 2019 01:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576705; cv=none; d=google.com; s=arc-20160816; b=lc3R8jn51BQzZyfiCf6deRV+kxnTSA9rJm8/1UhpmhtW63QpZylGFI3LK/wG3+K0iT XGqO6N4Ntbys+lSJgLvbgLr7rTgaIzhJ5N8Bne+jyaMywmz/J2uufGIMks6iMq6nBkSq iiiU8J0xmBO2hO7/QuCE1E8JIYSvvuYw0ijAs4bS6992A4qCh2w3xJVO5nEhomQy+3+w THX3xB2St1km3m4hAS0wItrdZRG7egsOm9lnygT1aCvxAH5LHzU/IRID0KDCDwYRWQM0 KzB8komYbE5uZ8CXxdeygT9dgAm+F5yB2VjbvsRmX+YklEoNT+7H8anjsNz/GkvCJ1ed OKDQ== 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=2J/G+YDKHjKA1qZqXV86pFjVgW4CG2JHv9U1E6Kr4M0=; b=YpQkxPpdY9IXFnZ9G/NEArIgGkav21Dfm6hc7jxC1HIEW5tMvdX2Hz+PCo4z+Q4eoh aQLulwBcp6nFBghfT7t1GJjQamXXqPtqLi1rVXTLXmAmm08dOANdRag1cK8lOgmT493S LlF0zESLGWryXg0GBPdQEOLClruUeaZ4+EsGcMnpiMqdJcXd1fuO9d3WPnejonFoO+6l xbqaJQVu8fvVrc3HxJlWB/CLpwx6tnI00NxNqaL558ZUJVT0gj8j4KGrjtifP0rpluG8 NTMFn6AcKEcDRDvRVHUDx4fkfJ7LnCMLqb+bVb+ZTnSzm7BQG2XcoikvQMRpD/W/lmDK yb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dYp4PJHF; 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 c14sor1443275pfc.71.2019.04.18.01.38.25 for (Google Transport Security); Thu, 18 Apr 2019 01:38:25 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dYp4PJHF; 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 --- .../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"; };