From patchwork Sun Mar 12 13:28:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Menschel X-Patchwork-Id: 9619393 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E77BD604CC for ; Sun, 12 Mar 2017 13:31:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D614C28495 for ; Sun, 12 Mar 2017 13:31:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6F86284A7; Sun, 12 Mar 2017 13:31:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6A1B328495 for ; Sun, 12 Mar 2017 13:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zA39MncdJW37Amg1yGnDH6U47kCJlkWOUnOmRNB11Mc=; b=DH8bMOTGq7VgXMIZ1eNDxlkF9y FPOTIuRyU8EcnUzysCIKTTQm7vg2xXBRdv3bbDPNd1FsPtIpxnAKSNC/krjINnmYMY7D0G7NmDcDT ZU/ZJvyTXbhuE1aFOgInEX8psB9psP+Jt9fjTtmyj8y/uRD/SiQaBgL/t0igpN0P7X4VAhKuQVE8I g6/nwVPkLhm7Yhw3enauKsglaAU/ypX1F8vkr+7N4OKnBzDNHBcv55b0Lskk0cCpZFbQ26TeMCr+j QsyEknMJCCt5+0VAqkj2XC/A6zJomeRUDkzuxjemjUDWKFq0Wvifx42Ll1qirnYM7JEHO1csiHvXC ERS7vxFA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cn3aw-0003lP-FS; Sun, 12 Mar 2017 13:31:34 +0000 Received: from mout02.posteo.de ([185.67.36.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cn3Zz-0003X7-WB for linux-arm-kernel@lists.infradead.org; Sun, 12 Mar 2017 13:30:38 +0000 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 26CED20B38 for ; Sun, 12 Mar 2017 14:30:10 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3vh21F1c3lz1096; Sun, 12 Mar 2017 14:30:09 +0100 (CET) From: Patrick Menschel To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: sun7i: Add CAN node and can0_pins_a pinctrl settings Date: Sun, 12 Mar 2017 14:28:11 +0100 Message-Id: <1489325291-6298-3-git-send-email-menschel.p@posteo.de> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489325291-6298-1-git-send-email-menschel.p@posteo.de> References: <1489325291-6298-1-git-send-email-menschel.p@posteo.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170312_063036_216024_60A06A35 X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Patrick Menschel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The A20 SoC has an on-board CAN controller. This patch adds the device node and the corresponding pinctrl settings for pins PH20 and PH21. The CAN controller is inherited from the A10 SoC and uses the same driver. This patch is adapted from the description in Documentation/devicetree/bindings/net/can/sun4i_can.txt Signed-off-by: Patrick Menschel --- arch/arm/boot/dts/sun7i-a20.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index f7db067..a0417c0 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -1390,6 +1390,13 @@ allwinner,drive = ; allwinner,pull = ; }; + + can0_pins_a: can0@0 { + allwinner,pins = "PH20","PH21"; + allwinner,function = "can"; + allwinner,drive = ; + allwinner,pull = ; + }; }; timer@01c20c00 { @@ -1711,5 +1718,13 @@ clocks = <&apb1_gates 7>; status = "disabled"; }; + + can0: can@01c2bc00 { + compatible = "allwinner,sun4i-a10-can"; + reg = <0x01c2bc00 0x400>; + interrupts = ; + clocks = <&apb1_gates 4>; + status = "disabled"; + }; }; };