Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3398393ybl; Sun, 15 Dec 2019 09:01:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwfWxyei8287dnphTh2A/bdqf/wyKjFS6vj7k/SSLUCzMWHS3s/3xuTTlQDHKjog7jb79f1 X-Received: by 2002:a05:6830:12cc:: with SMTP id a12mr24870546otq.73.1576429290407; Sun, 15 Dec 2019 09:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576429290; cv=none; d=google.com; s=arc-20160816; b=k13IqMmLURd4cKrcgugeXVfEL8IutnbCiDJBHIfkoczGjpdTdcbsvmHgOA7u2EeC8T x9kT8opbH6VgTu+ND34Bw56s3wjLyvQGMedDWHomKSXvSVQzwr51AYURebnCgCM8/IMI 1bc77pdP3BNEe0ZGa4fOUCnnmEaDBNWhwtWe69g8Jrtwf7tyUgmrERsqoTHnvqg6yoGs Y6tPaonRdk2+HANZjlzigVgTBLu8sFql2+Q1vOWfBJgTxGlpubAbmLHR6qkR3iieQukn WaNqLRNl3HTKLqrRLvZqtYoaqStz/UNfvPurEoIRO+Aip+Oqsskj4VPgW3Ch+XUND4Oh kxFg== 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=hPMSDNGA3FqGJXw+14Sd9VR+bZjHSepaYwejbO3ZhPw=; b=eBTsrujzyHa3hPov3W1jsy/FP62K0VJSo++VQOhdWw+B4bJtFBnHeNQe7AgIC9aVVK rb8/Ik9B0pVrvZWDUjL9E2LIV4VcE+5M2xCGgB3U+XITWNciRjCxfefVE+wEMQ8n81Zo WPdvD0uffYAfoOVxvLfqj2mQ5oNqqEvsEZJ0xuUfJFcG2Ofmpj8G4qxp/TuVt+AcSUwb l/BGkO0h/E91RP27QZ9JSAKeU5MlVUHAVfRXjvBvpgH5KKzdDi/T0S1pT7pVbpfRCRoz rwmalpr3cF9w5YX4S433nawVSrFq5Rd6X256+h99z1m0PFL5HYlwVkoI9MZCnANIaYd6 YoEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LUPNYD1O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si8660400otq.217.2019.12.15.09.01.19; Sun, 15 Dec 2019 09:01:30 -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=@kernel.org header.s=default header.b=LUPNYD1O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbfLORAE (ORCPT + 99 others); Sun, 15 Dec 2019 12:00:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:55158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbfLOQ7c (ORCPT ); Sun, 15 Dec 2019 11:59:32 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9114D24682; Sun, 15 Dec 2019 16:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576429171; bh=p2Yk04lSXEPWoex3Y1O8riiRlK5G3iH1Tys7J7+B3o8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LUPNYD1OWdsrcYwcbkmcQkooPutjW5PbLh2mVYdomXCucnPWv3+MNCkcBv/slwdR+ xd06MXKjknUg224R+4jO5D97MX/f7tw07Mst6kGuUBCIHJbaSoRAt8vLNj+iECTyyX jSrik9KNfNdc16z8O53hBYQX22RjcQafO4lVD0fs= Received: by wens.tw (Postfix, from userid 1000) id 7FE985FF5A; Mon, 16 Dec 2019 00:59:26 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Mauro Carvalho Chehab , Sakari Ailus , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai Subject: [PATCH 11/14] ARM: dts: sun8i: r40: Add device node for CSI0 Date: Mon, 16 Dec 2019 00:59:21 +0800 Message-Id: <20191215165924.28314-12-wens@kernel.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191215165924.28314-1-wens@kernel.org> References: <20191215165924.28314-1-wens@kernel.org> 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 From: Chen-Yu Tsai The CSI0 and CSI1 blocks are the same as found on the A20. However only CSI0 is supported upstream right now. Add a device node for CSI0 using the A20 compatible as a fallback, and the standard pinctrl options. Also add the MBUS interconnect. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-r40.dtsi | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 82ea0b5b0710..2d1e97cc4155 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -180,6 +180,20 @@ nmi_intc: interrupt-controller@1c00030 { interrupts = ; }; + csi0: csi@1c09000 { + compatible = "allwinner,sun8i-r40-csi0", + "allwinner,sun7i-a20-csi0"; + reg = <0x01c09000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI0>, <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI0>; + clock-names = "bus", "isp", "ram"; + resets = <&ccu RST_BUS_CSI0>; + interconnects = <&mbus 5>; + interconnect-names = "dma-mem"; + status = "disabled"; + }; + mmc0: mmc@1c0f000 { compatible = "allwinner,sun8i-r40-mmc", "allwinner,sun50i-a64-mmc"; @@ -355,6 +369,20 @@ clk_out_a_pin: clk-out-a-pin { function = "clk_out_a"; }; + /omit-if-no-ref/ + csi0_8bits_pins: csi0-8bits-pins { + pins = "PE0", "PE2", "PE3", "PE4", "PE5", + "PE6", "PE7", "PE8", "PE9", "PE10", + "PE11"; + function = "csi0"; + }; + + /omit-if-no-ref/ + csi0_mclk_pin: csi0-mclk-pin { + pins = "PE1"; + function = "csi0"; + }; + gmac_rgmii_pins: gmac-rgmii-pins { pins = "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", @@ -624,6 +652,14 @@ gmac_mdio: mdio { }; }; + mbus: dram-controller@1c62000 { + compatible = "allwinner,sun8i-r40-mbus"; + reg = <0x01c62000 0x1000>; + clocks = <&ccu 155>; + dma-ranges = <0x00000000 0x40000000 0x80000000>; + #interconnect-cells = <1>; + }; + tcon_top: tcon-top@1c70000 { compatible = "allwinner,sun8i-r40-tcon-top"; reg = <0x01c70000 0x1000>; -- 2.24.0