From patchwork Sun Aug 12 13:31:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563659 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 779F11510 for ; Sun, 12 Aug 2018 13:33:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 687AD288D7 for ; Sun, 12 Aug 2018 13:33:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BB2F28924; Sun, 12 Aug 2018 13:33:26 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E751B288D7 for ; Sun, 12 Aug 2018 13:33:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727842AbeHLQL3 (ORCPT ); Sun, 12 Aug 2018 12:11:29 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35941 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQL3 (ORCPT ); Sun, 12 Aug 2018 12:11:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id h9-v6so12053518wro.3 for ; Sun, 12 Aug 2018 06:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NbMLv1klGcfRxjpUIF2cU4/WDn6OVbTaP6GIMr3qcXM=; b=dwSdCEI8+OR1gGiE5oH9ZRs4ADHGlHH0ejvhvfo7CZdlKGY6ey3C/vfaCH60jTySsG gvvn0J/2zJZJtdotf9VCa1pj8KaVISZPjgx4vi2C9um5lrI39Src7S2ka/DOYBQSKrI+ 9EVIsoBXhdJgPumMzrgmuJJPG/DxGFfF4bx8ntH6CzWfz1xISTRm4egbWmhofwElh4k1 brdPH5Ln/ytTADqdFihA2dE+LE2/bWi8U/Ttz1jeoiXm56Zb6s5YU1vLVbB/o91NMB4B gUORO2YshR2W9/6jviU/dB+9lg0lZTeRfgL5MIZalBVYDlsX+K5UHbxzFU6BidGJrHNp TKPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NbMLv1klGcfRxjpUIF2cU4/WDn6OVbTaP6GIMr3qcXM=; b=X1yVPxVPI7saG4LgzCsQ7pHmboFgJd8evUwFa8f9VUO8odT5O57y2pYraTsJDjFlHw E98LAbmpVU/VMp/ovuGOVkplPvzmbrnMqFXM/EfuSX7wYFrue+S99/p4O9MPMLg8lyb+ 9KI6Y/lPJgqTJ183+r+zpXG1pBJHv6peLSnImK9UNqI2m2qxvyOu7qj9khlnGOqy63U9 FHLF2AG0UgTUCt7/uefh2AInSRc+bVGhtL+TpyCc3bmuSE1tMMRZU3zaeHMufiwgbRpp 6oyVrJ1Oi3xH+nh4ZBph8ZJxVU5nZf3VPrTYvdxOUqFtkwjImMaeiojVd3qrnvFIxm+E UcXA== X-Gm-Message-State: AOUpUlHBvin9cy08CeZ6hrXsqMFlE4pW8B4rYCd1zpKmNIx7hyhul9A4 SsAlauGjOdHcF+/umC5YjE4= X-Google-Smtp-Source: AA+uWPxSQfavyiLB2/dipIF1Zrd/1jX5Z/pN2BHKMzC2ncxi9c2FGifqQjDsAkzjdeLKb7KSzmVB/g== X-Received: by 2002:adf:f148:: with SMTP id y8-v6mr8648660wro.134.1534080803577; Sun, 12 Aug 2018 06:33:23 -0700 (PDT) Received: from localhost.localdomain (ipb218f42f.dynamic.kabel-deutschland.de. [178.24.244.47]) by smtp.gmail.com with ESMTPSA id f6-v6sm14987436wrw.78.2018.08.12.06.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:33:22 -0700 (PDT) From: Eugeniu Rosca X-Google-Original-From: Eugeniu Rosca To: Simon Horman , Geert Uytterhoeven , Yoshihiro Shimoda , Sergei Shtylyov , Vladimir Barinov , Niklas Soderlund , Laurent Pinchart , Jacopo Mondi , Magnus Damm , Kieran Bingham , Takeshi Kihara , Ulrich Hecht , Kuninori Morimoto , linux-renesas-soc@vger.kernel.org Cc: Eugeniu Rosca , Eugeniu Rosca Subject: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes Date: Sun, 12 Aug 2018 15:31:47 +0200 Message-Id: <20180812133149.7710-5-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180812133149.7710-1-erosca@de.adit-jv.com> References: <20180812133149.7710-1-erosca@de.adit-jv.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family. Add CAN placeholder nodes to avoid below DTC errors: Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not found These errors occur *after* the addition of r8a77965-m3nulcb-kf.dts. Fix them beforehand. CAN support is inspired from below commits: - v4.7 commit 308b7e4ba62e ("arm64: dts: r8a7795: Add CAN support") - v4.11 commit 909c16252415 ("arm64: dts: r8a7796: Add CAN support") - v4.12 commit bec0948e810f ("arm64: dts: r8a7796: Add reset control properties") Signed-off-by: Eugeniu Rosca Reviewed-by: Kieran Bingham --- Changes in v2: - [Kieran Bingham] Improved commit description: - Referenced the newer HW manual rev1.00 instead of rev0.55E. - Kept the "true story" behind the patch. Just made it more clear. - [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration). --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 486aecacb22a..4da479d3c226 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -656,6 +656,22 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + + can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;