From patchwork Sat Aug 4 23:11:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10555977 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 2CC3F13BB for ; Sat, 4 Aug 2018 23:14:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F3F029AC6 for ; Sat, 4 Aug 2018 23:14:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1378F29ACA; Sat, 4 Aug 2018 23:14:24 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB 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 AF45029AC6 for ; Sat, 4 Aug 2018 23:14:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729693AbeHEBQk (ORCPT ); Sat, 4 Aug 2018 21:16:40 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34025 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729669AbeHEBQk (ORCPT ); Sat, 4 Aug 2018 21:16:40 -0400 Received: by mail-wm0-f66.google.com with SMTP id l2-v6so8141337wme.1 for ; Sat, 04 Aug 2018 16:14:21 -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=z5uWKv5/AZG7f1WMECcZ0kt3b79VyVotz7u7sKLqvMQ=; b=JQbZYjGEkOEO4dwLO7cFJjBbmtg/3fgZnOHCljc+ryRSpKdsRhXc6M2nXa8nMqQmeK dyM9+aTAIzHRAZ47MH8aXkIr46eYfZXpZM5PvznMiREx1aiIdCa49xci7cWrIMcKKus5 40S741z3TF8YNaHboB2nm/duDtCA6wsRSZ4Gdkuvb6+Xu/UaFFN7516y2xpjML6h/P2b VQ5UgXxzk9I2gX9mxVIDy4hMpRvaWbSRK1cFAWd5snRDPHXGvnCNa+3u/kCXcUPF0r6J /EZPi2Wk5x3/pcmAbGGJad+oEgQC82cQmdktWTBAA1ikt0QvmIQodtFlarGZuj4OxbYj DLOw== 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=z5uWKv5/AZG7f1WMECcZ0kt3b79VyVotz7u7sKLqvMQ=; b=Ho2psDQIzacqyYwmN4AfJZuM0yEA1cAy3tgArLycnNUKrUHIUURmhm385AdiC9jChw V3C/yjOs9vNR/ZuCCmPcsp/6xBgtm0QQ2w1oVHgHjAPH98HCHywHgXizmW1pRsKwTHX4 l2dCQO0NorAfU7el62LlmuYeF/cvcrmg0IR3OuFROWq7pW10OyWaDSvWWyaiFIfxhRV5 DBUXPAVzuz3zcioT/TfhsVM0n6SK3J1aRnhsvn49RtvHm/SnjoqQaQadp1/NLJqpgQ0y ltzUyT1DBrcww2CkCvpZFjBsAN7PS2+9Mc63wK74A3nsO5og/GoqJJLNxHm3w1r3bUo2 EM4g== X-Gm-Message-State: AOUpUlFgp477H01pXHustkFgseDWwXQTFmqNQXYTvU+7i/8ux0hCkzrL hMbNj9E5pfmKOd6p/O4/HPE= X-Google-Smtp-Source: AAOMgpddpvscdQ0lRU9BnKAI61ZhJi7aR7qQEIfN52VxsmbuqdRlpDYkrhXtAal13YCWrb8U3JQdbw== X-Received: by 2002:a1c:9290:: with SMTP id u138-v6mr8681602wmd.52.1533424461257; Sat, 04 Aug 2018 16:14:21 -0700 (PDT) Received: from localhost.localdomain (ipb218f456.dynamic.kabel-deutschland.de. [178.24.244.86]) by smtp.gmail.com with ESMTPSA id f17-v6sm5645627wrs.1.2018.08.04.16.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Aug 2018 16:14:20 -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 12/14] arm64: dts: renesas: r8a77965: add CAN support Date: Sun, 5 Aug 2018 01:11:12 +0200 Message-Id: <20180804231114.21420-13-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180804231114.21420-1-erosca@de.adit-jv.com> References: <20180804231114.21420-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 rev0.55E, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family. Add CAN nodes to avoid below r8a77965-ulcb-kf.dtb build failure: 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 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 --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 486aecacb22a..cb8f8573d9ef 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -656,6 +656,38 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 916>; + status = "disabled"; + }; + + can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 915>; + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;