Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp525021pjc; Mon, 20 May 2019 11:14:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzIt0p54ievlzbTTC7RZNwV5lVwiac8y0Y8yxMqKwoCojSwq+yXUI5K6nafbSpq4Q9WAz6 X-Received: by 2002:a17:902:a611:: with SMTP id u17mr42641783plq.38.1558376078232; Mon, 20 May 2019 11:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558376078; cv=none; d=google.com; s=arc-20160816; b=qwnfOuQk0l3Q2DcTYteT6wl1+NZ2UkyMyDzlT9zRKCklMrmZKwBr2xTEwS4BvJSuxv V2zLxkz9yc61Z+GwhIfaPKvsg8Mm3bLyYa7Xfj4004+V5WcF0WQacNix5jbyYt3pEhIs VLsFxEEkbUGjiAbT0l6ifjZ51HApwgbJYHB2RIG9D8O9knQIwfGia1h2H/o4COKvqckS OdLThanlu5LlxJg670/tolVirpemTU15qbPZpz6Rkz5RKhAJsM2HFcI7ZR2AxM6WuwjQ hWMgWFggzPdetVQDiCFR2fcc/zVAAXYqt7b2YKH6m5pXdftLS/ZPo/YZ8xIWAiYwgH6G 6A9A== 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=F/RRRMg5C8t4Vql0na5LAQdTLwAe69N/FzR9Bt/KIKI=; b=JPRm4pklVjK3FenMDzg5YAKELvNygcPnnB2bmXQTPKdeuAW0GvzEwvZ3QvzB03szuC cagudXvjh1h/jzq+MPdnfb/2e/1rSFyDtH7wKkht4SsSELTNOsvPTCHEgfoo3BwAfEKp BsWIxwKjHlZudHeoVHJalMoCHOmJH7Q7vw88QhFIpf6HH2ILoOTIgStCGiGH0PjtkUBB WurgqdZFP/PuberhQN0oVyFffD9sJ0Y12VlAZuA92iQdLjgdjuIMuOo1LP5I6iflfZU9 HLSEjbFFniGmxlarn1E+dj4NRGwwKpdRS74HMuC2W78suml64TlA3SNfpbgT7i3EalWE GtJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=rQhfQbp2; 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=REJECT sp=REJECT dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si18752685plp.139.2019.05.20.11.14.23; Mon, 20 May 2019 11:14:38 -0700 (PDT) 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=@megous.com header.s=mail header.b=rQhfQbp2; 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=REJECT sp=REJECT dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388117AbfETPGq (ORCPT + 99 others); Mon, 20 May 2019 11:06:46 -0400 Received: from vps.xff.cz ([195.181.215.36]:54782 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733010AbfETPGm (ORCPT ); Mon, 20 May 2019 11:06:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1558364800; bh=rVjMF+TqkJ/FvHNWAdCJqFuT4fG2WrGc2hjCFSuXWa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQhfQbp2x63PPAn7Ojxchslau4MFbCKFqSHsg+upPxRhrIHhl0cWE5xDLMytcKjah eC+OGNdhGc5TpOp0WYcI/LFwf7bQ8+G90ZEyos72XJeLKZUZ4HpolRi6dhVJSOJrxQ 0c537OvoVhWw3b4n4YCIaW6tILJTT/rphDhUaayA= From: megous@megous.com To: Chen-Yu Tsai , Maxime Ripard , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Yong Deng , Mauro Carvalho Chehab Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Kocialkowski , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, Ondrej Jirman Subject: [PATCH v2 3/3] ARM: dts: sun8i: a83t: Add device node for CSI (Camera Sensor Interface) Date: Mon, 20 May 2019 17:06:37 +0200 Message-Id: <20190520150637.23557-4-megous@megous.com> In-Reply-To: <20190520150637.23557-1-megous@megous.com> References: <20190520150637.23557-1-megous@megous.com> 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 A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add a device node for it, and pinctrl nodes for the commonly used MCLK and 8-bit parallel interface. The property /omit-if-no-ref/ is added to the pinctrl nodes to keep the device tree blob size down if they are unused. Signed-off-by: Chen-Yu Tsai Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 392b0cabbf0d..ada6d08bc540 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -679,6 +679,20 @@ #interrupt-cells = <3>; #gpio-cells = <3>; + /omit-if-no-ref/ + csi_8bit_parallel_pins: csi-8bit-parallel-pins { + pins = "PE0", "PE2", "PE3", "PE6", "PE7", + "PE8", "PE9", "PE10", "PE11", + "PE12", "PE13"; + function = "csi"; + }; + + /omit-if-no-ref/ + csi_mclk_pin: csi-mclk-pin { + pins = "PE1"; + function = "csi"; + }; + emac_rgmii_pins: emac-rgmii-pins { pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD11", "PD12", "PD13", "PD14", "PD18", @@ -997,6 +1011,21 @@ interrupts = ; }; + csi: camera@1cb0000 { + compatible = "allwinner,sun8i-a83t-csi"; + reg = <0x01cb0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + status = "disabled"; + + csi_in: port { + }; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun8i-a83t-dw-hdmi"; reg = <0x01ee0000 0x10000>; -- 2.21.0