Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4968690pxu; Wed, 21 Oct 2020 09:39:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn0P/NoSZxFlfanY8sBm3G9PglEX93Mpz/mv4x/ra3aeUaH5SoTKwxO09ROiCeENT1PsU5 X-Received: by 2002:a17:906:86ce:: with SMTP id j14mr4513088ejy.158.1603298389439; Wed, 21 Oct 2020 09:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603298389; cv=none; d=google.com; s=arc-20160816; b=Ubn0qHgS3zywrWkIUtTZvT3MxSKZBxfZTB7t/kQ2JuXpT7dShnQCBlwQMRaxqJCKLf HHCyj3yoQO6BzarunRoO3IiJjpkpJ64DQKGxSDz3ovj4N99Qi+SiO7PKDFVIiRUYoaMx t/mUibu7iwo5SRV/kN6f4GU982nhNsoj4bQmTCwTrWYXmzbn5DEGoeDS8h2EdqyJmYCe jPzo6H/c0szIGxKvq19EMtwj8KPPwqvSB1z9sH6iprYQIOtEDrTNvY3sEAosv+l6xqar chqOJqLekGqalvApPTD64C49KUHsO5C1wKXDVXHpKUYXHC7QeN1C7I6fg48i+xr0Sv0+ LMTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Jn5QH9xgIRF3PIEv+FrNUvw9bmpPAG0ncuh+OcNsMeM=; b=miHqfbq4gwDZTP98lFaEZP46Rgn8i3NkmKRn+u7MgP7GPAuC18Aj5XTWxnUXB+7EQj CRQJyNiEiii81fDXsSKrbPkCL/So6ejRqhjH9DBgr74hPiuwdJWuCJoT3pCZtl67mubH kvORkac6HarStsRAOM/5mDkR8twWHr8BJKNwftZniHwev6NKRnLD5wDRSzyvYmA+ZAc+ GwnLX0STMe7Me4abZ4e61nEbEY01Yvh6bYZxSywPQReIbTRAqxa830V0Us4h1O3alrIm w8u+vQRnCeN1l579BD/9531kXwGxxzsSFpzkiVzLe2XweF2M0UhxsWXhZP4mUTu3VJNy TGtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si1570475edh.521.2020.10.21.09.39.25; Wed, 21 Oct 2020 09:39:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438291AbgJTTju (ORCPT + 99 others); Tue, 20 Oct 2020 15:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409108AbgJTTjo (ORCPT ); Tue, 20 Oct 2020 15:39:44 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FEF8C0613CE; Tue, 20 Oct 2020 12:39:44 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 15D721F44DF2 From: Helen Koike To: linux-media@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, robh+dt@kernel.org, heiko@sntech.de, kernel@collabora.com, hverkuil-cisco@xs4all.nl, dafna.hirschfeld@collabora.com, mark.rutland@arm.com, karthik.poduval@gmail.com, eddie.cai.linux@gmail.com, jbx6244@gmail.com, zhengsq@rock-chips.com, robin.murphy@arm.com Subject: [PATCH v6 9/9] arm64: dts: rockchip: add isp and sensors for Scarlet Date: Tue, 20 Oct 2020 16:38:50 -0300 Message-Id: <20201020193850.1460644-10-helen.koike@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201020193850.1460644-1-helen.koike@collabora.com> References: <20201020193850.1460644-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eddie Cai Enable ISP and camera sensor ov2685 and ov5695 for Scarlet Chromebook Verified with: make ARCH=arm64 dtbs_check Signed-off-by: Shunqian Zheng Signed-off-by: Eddie Cai Signed-off-by: Tomasz Figa Signed-off-by: Helen Koike Reviewed-by: Tomasz Figa --- .../boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi index 60cd1c18cd4e0..beee5fbb34437 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi @@ -296,6 +296,52 @@ camera: &i2c7 { /* 24M mclk is shared between world and user cameras */ pinctrl-0 = <&i2c7_xfer &test_clkout1>; + + /* Rear-facing camera */ + wcam: camera@36 { + compatible = "ovti,ov5695"; + reg = <0x36>; + pinctrl-names = "default"; + pinctrl-0 = <&wcam_rst>; + + clocks = <&cru SCLK_TESTCLKOUT1>; + clock-names = "xvclk"; + + avdd-supply = <&pp2800_cam>; + dvdd-supply = <&pp1250_cam>; + dovdd-supply = <&pp1800_s0>; + reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; + + port { + wcam_out: endpoint { + remote-endpoint = <&mipi_in_wcam>; + data-lanes = <1 2>; + }; + }; + }; + + /* Front-facing camera */ + ucam: camera@3c { + compatible = "ovti,ov2685"; + reg = <0x3c>; + pinctrl-names = "default"; + pinctrl-0 = <&ucam_rst>; + + clocks = <&cru SCLK_TESTCLKOUT1>; + clock-names = "xvclk"; + + avdd-supply = <&pp2800_cam>; + dovdd-supply = <&pp1800_s0>; + dvdd-supply = <&pp1800_s0>; + reset-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; + + port { + ucam_out: endpoint { + remote-endpoint = <&mipi_in_ucam>; + data-lanes = <1>; + }; + }; + }; }; &cdn_dp { @@ -353,10 +399,38 @@ &io_domains { gpio1830-supply = <&pp1800_s0>; /* APIO4_VDD; 4c 4d */ }; +&isp0 { + status = "okay"; + + ports { + port@0 { + mipi_in_wcam: endpoint@0 { + reg = <0>; + remote-endpoint = <&wcam_out>; + data-lanes = <1 2>; + }; + + mipi_in_ucam: endpoint@1 { + reg = <1>; + remote-endpoint = <&ucam_out>; + data-lanes = <1>; + }; + }; + }; +}; + +&isp0_mmu { + status = "okay"; +}; + &max98357a { sdmode-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; +&mipi_dphy_rx0 { + status = "okay"; +}; + &mipi_dsi { status = "okay"; clock-master; -- 2.28.0