Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21257787ybl; Mon, 6 Jan 2020 00:43:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyP8AQrfZlgOKWY9TbFiwBy//j5Eg3oJ1591kcG0fKrCNyIe6zd/l7ReHzBnxqXBnREhdsk X-Received: by 2002:a9d:68cb:: with SMTP id i11mr109486541oto.210.1578300239258; Mon, 06 Jan 2020 00:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578300239; cv=none; d=google.com; s=arc-20160816; b=oMrhJ5BcGc9WOV48lj1QBtm0Gseu3/QMZZJb2QOmql6ePHOIrQxYVeT84VCGm6wc+6 qd0EmDhBg2vk1EtPFOtVL5tXBnIwdGFVE8GeVDBUh97YvDWOLdRImd5h+7/1Dfw2d/43 4PYbmBCYQsFCBNaY3mK9xMiyKfvFDOEhDq3mXzUjyOJi/JiPLuY00b25hwTOpBBvHrYZ v5BH3XHk6xrWzYsduAM3VgrWCrUSlJeJiLlZpKJj230WaJU36lUJ2P1gWN/LL8dk14P6 6sGtH9NtqOeSg+iUikXyyaWA1kdPz0Q0nbfuIsOO9kmlrnmimtIU/6BeSCwwYMHhXBQF Shcw== 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=xEff8JRlx1UlZTV7YEoi79KF/ixnK7BsT5O3GlXXt2w=; b=A6ui4b9MnW9JdHkEt7i4TZ8XGfwWWYXZJ9SNDcBonQXazQXCIBzB9kw+5OA6YHKzHS dp9jqqWC/jz64z0cI/1oaMcvdMpElJvEBsed54S4AxEdRBoMg83dLnc5PrjQGk/laTIu GXl8JD1x2OvWIoSyijjqIRSFbCuYbjqvt+ViunSP4XdiE65tew5MYOApM4yGvguO/n4N CAKjkp6fk7xWqxw0Agx8c3Oklk17SX409BVzeWGGfxzIHa9TDgPNgif41bUC/SovgPqV L7dBDppaMgBu/4FEO/Td2A5CN2gx54asaoLJpQ9pm2kcbxaEov1VC8V/U/yUpgEaH3Kk 9VrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Jy2xk/me"; 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 j19si11433299oij.51.2020.01.06.00.43.47; Mon, 06 Jan 2020 00:43:59 -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="Jy2xk/me"; 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 S1726422AbgAFImo (ORCPT + 99 others); Mon, 6 Jan 2020 03:42:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:40106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgAFImo (ORCPT ); Mon, 6 Jan 2020 03:42:44 -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 605E221734; Mon, 6 Jan 2020 08:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578300163; bh=VJ4ImZ00cxy3xkCVmZ6KZaFMceyqzh4UVXc9csKCJc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jy2xk/me0XoytAHWGwDMuBVDqNtR7ItKlG980kKOeHCSXvb2oamlqMb0VFYEZSkSz aIC0LdHDay20/0Goe6o4x3cmR22PzfOLbioj2kyxn6laabk1Mfbqa71O+p2cq19vLv ibfxE/BxKLtWTGhQzVmyv6hEe8hWINX4ZnJAQdws= Received: by wens.tw (Postfix, from userid 1000) id 60F0D5FD64; Mon, 6 Jan 2020 16:42:41 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] ARM: dts: sun8i: r40: Add device node for CSI0 Date: Mon, 6 Jan 2020 16:42:37 +0800 Message-Id: <20200106084240.1076-5-wens@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106084240.1076-1-wens@kernel.org> References: <20200106084240.1076-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 7c940b20b81c..84d240c39f0f 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -181,6 +181,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"; @@ -356,6 +370,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", @@ -625,6 +653,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.1