From patchwork Sun Aug 12 13:31:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563651 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 9362D14E2 for ; Sun, 12 Aug 2018 13:32:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78AF8295CC for ; Sun, 12 Aug 2018 13:32:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B834295CE; Sun, 12 Aug 2018 13:32:50 +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 E9A31295CC for ; Sun, 12 Aug 2018 13:32:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727807AbeHLQKx (ORCPT ); Sun, 12 Aug 2018 12:10:53 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44752 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQKw (ORCPT ); Sun, 12 Aug 2018 12:10:52 -0400 Received: by mail-wr1-f67.google.com with SMTP id r16-v6so12002202wrt.11 for ; Sun, 12 Aug 2018 06:32:47 -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; bh=aPMRegDni15Tmx5+8+dv69KlvNMzYA8YgUA+MqFIvb8=; b=CsuY4Bt7IOgSYNlfIME+IlqDUZ0bqAQAYUr2CFWmF+JRwBExFFb39a6MR0VmSNhXQt vyKjZgnEdrO43YOewWpxkydwlmu2SYSDQTrvikGJd2HZHc3BMvlhSkNKNaTSfyEb6zZ7 MntLebqDDrpsrR6Ieh1/2KL8/OzYaYYgzmov9quP6ZPfltkhfdtGcPj4+yWiUuN7b7C8 RnVD9xbLZsFZ/i2/xYwp68+8A5r/uMJrfCkC9sAVK6o4rdNjyOH376k5PgAmhwizZXAf Irkd4OWTT+E3t/e2Wktt1I05q2jgSxUWvDbo0lz+YmIqb4s+Iy5nHt90vLqsOFgAsbWF 40uQ== 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; bh=aPMRegDni15Tmx5+8+dv69KlvNMzYA8YgUA+MqFIvb8=; b=Ui7r9xtTO8Y34pTmGG0g//X37TbD45NcAb4zd5I8RAolLBKleb9tL9Sjb28n4adLx4 VnwCl3G7HcmXAn3wdWJ2u+UziYUZDm6f+zv7KmEAWUP2kxzbqs4g0Yj9OELJFm2cVciI hbIGqvLtCSgB5SWss3G5CqvQYWsvXMx0MGRJ3ipjmDoMI1xy1mlOdQHVgQ5MzKg8XnsA 7au0xzBK/RWve6SSLs6eF+hTiU9FO6Q5oAQXIcsf94t0J2pGTzOhx8NgpNXbge77u+Wc fDuTokgLFicWltwFCa3tb7ZifYmngdK8+McqjUw2dh3ZdMzttu8Vjqb/hIVHW+giglNn QwLg== X-Gm-Message-State: AOUpUlFAN+xTGPzA0y1vodXva/fua1QsU7p6VgIVcKaP3aw9zzda3A+p 9wAPVFgm/H2lR5g7eSw6PHI= X-Google-Smtp-Source: AA+uWPzuJAVMwmjQ/l7KOlzaoLNIL8R/bfoktr25QIXvCDlUWtNU6AunQIIor+ltSUdc31rz7cbgtw== X-Received: by 2002:a5d:438d:: with SMTP id i13-v6mr8753019wrq.156.1534080767303; Sun, 12 Aug 2018 06:32:47 -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.32.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:32:46 -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 1/7] dt-bindings: arm: Document Renesas R-Car M3-N-based ULCB board Date: Sun, 12 Aug 2018 15:31:43 +0200 Message-Id: <20180812133149.7710-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.18.0 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 In harmony with ATF and U-Boot outputs [1] and [2], the new board is based on M3-N revision ES1.1 and the amount of memory present on SiP is 2GiB, contiguously addressed. The amount of RAM is mentioned based on the assumption that it is encoded in the board id/string. There is some evidence supporting this in form of last-digit-mismatch between two R-Car H3 ES2.0 ULCB board ids, one with 4GiB and one with 8GiB of RAM (see [3]). [1] BL2: R-Car Gen3 Initial Program Loader(CA57) Rev.1.0.21 BL2: PRR is R-Car M3N Ver.1.1 [2] U-Boot 2015.04-00295-* CPU: Renesas Electronics R8A77965 rev 1.1 ---8<---- DRAM: 1.9 GiB Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB ---8<---- [3] https://patchwork.kernel.org/patch/10555957/#22169325 Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Horman --- Changes in v2: - [Jacopo Mondi] Emphasized the fact the amount of RAM is encoded in the board id, so documenting it *is* relevant for this commit. - [Simon Horman] - Renamed board name 's/M3-N ULCB/M3NULCB/' - Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/' - Pushed all dt-bindings patches to the beginning of the series. --- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt index d8cf740132c6..03a314c7989d 100644 --- a/Documentation/devicetree/bindings/arm/shmobile.txt +++ b/Documentation/devicetree/bindings/arm/shmobile.txt @@ -106,6 +106,8 @@ Boards: compatible = "renesas,lager", "renesas,r8a7790" - M3ULCB (R-Car Starter Kit Pro, RTP0RC7796SKBX0010SA09 (M3 ES1.0)) compatible = "renesas,m3ulcb", "renesas,r8a7796" + - M3NULCB (R-Car Starter Kit Pro, RTP0RC77965SKBX010SA00 (M3-N ES1.1)) + compatible = "renesas,m3nulcb", "renesas,r8a77965" - Marzen (R0P7779A00010S) compatible = "renesas,marzen", "renesas,r8a7779" - Porter (M2-LCDP) From patchwork Sun Aug 12 13:31:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563653 X-Patchwork-Delegate: geert@linux-m68k.org 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 268291510 for ; Sun, 12 Aug 2018 13:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1453F28784 for ; Sun, 12 Aug 2018 13:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 057ED287BF; Sun, 12 Aug 2018 13:32:58 +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 9DC1628784 for ; Sun, 12 Aug 2018 13:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbeHLQLA (ORCPT ); Sun, 12 Aug 2018 12:11:00 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39879 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQLA (ORCPT ); Sun, 12 Aug 2018 12:11:00 -0400 Received: by mail-wr1-f67.google.com with SMTP id h10-v6so12014643wre.6 for ; Sun, 12 Aug 2018 06:32:55 -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=qwPlaihTeGmnASnJYagJLjnUCbpNeL1F5Efw11UbP40=; b=cg57ZW6YAUuYqYqFlY0ZnftM1dTDtGc5kMYDLmIiurSvIVG8BqmKXbe6sgt5R6dumb 3VAdjBg4TDSLZBZVqJFna6P+w2ZreszIZgG7dAC4Kq9mECBBIEyq+2eb1XJjf/rjq4w+ iEeqr0oEQgYOfHDZVTdrMzNkC9HwdCRm3WmvIVulNlbaRcHqKQZdl81Jw3QH5L2c7Im2 0TmMAxiSXDYIpaqVkGxgyG4r4Wssj+IUOorJt9su1NgzRwpxcx+hLioCop0eyfvMoi8F 911CvRTQozTysNjJceEQbwYAjwgZwJJpIAhlzWy1Yrq4lXWB5vIVDPUM6VOHNAN7k4rb fqag== 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=qwPlaihTeGmnASnJYagJLjnUCbpNeL1F5Efw11UbP40=; b=X+/9RmwxiXr4bR5Ja2bXj0uZxMf7AWih8XZCoJMNzG26N6tFX8w5bi96s+p/zgy+tT eR9iKJRI3+TJ8Vm621CJNQoWRASNASAVxz6eqA4eqiDK5oF0FUysmNlb0T9Q4zxd1mtv U0DerYDVafd3T4c6aU0NI24yWNlsGg/QRgIa0DsfuMZTUDRQTa4mZlWuWjNeDJVJdwoQ svnBP0KHcttOEmapKrXNNkR6m9bQ1tQSPJ/527t+cSBISlBZJ308zb1yfvyLw2Ivea6g hIke+5CL0WpR9jSSafKguX5GUGAor3+XF87dGvKGzCiPoWONi6W1oAci6MQAMom5bha8 D/6g== X-Gm-Message-State: AOUpUlGONML2vfyLSofORiFw2lwyKEFpxRP4wGjGUHxA2tPp/XkRC5Ih YLb3adpuEZdNGqB5ohj4F6M= X-Google-Smtp-Source: AA+uWPwamj4MofYFc5u8ZDSPYybpO9uEWgcEmaqGxsZzHcq7YCuqfjsv3AInVSq5w5w9OzctQUKjTw== X-Received: by 2002:adf:a963:: with SMTP id u90-v6mr8546030wrc.248.1534080775096; Sun, 12 Aug 2018 06:32:55 -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.32.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:32:54 -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 2/7] dt-bindings: can: rcar_can: document r8a77965 can support Date: Sun, 12 Aug 2018 15:31:44 +0200 Message-Id: <20180812133149.7710-2-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 Document the support for rcar_can on R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text. Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Horman Reviewed-by: Kieran Bingham --- Changes in v2: - [Kieran Bingham] Simplified commit description. Rewrapped text. - [Sergei Shtylyov] Replaced footnotes with inline text. - Pushed all dt-bindings patches to the beginning of the series. --- Documentation/devicetree/bindings/net/can/rcar_can.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt index 94a7f33ac5e9..60daa878c9a2 100644 --- a/Documentation/devicetree/bindings/net/can/rcar_can.txt +++ b/Documentation/devicetree/bindings/net/can/rcar_can.txt @@ -13,6 +13,7 @@ Required properties: "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC. "renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC. "renesas,can-r8a7796" if CAN controller is a part of R8A7796 SoC. + "renesas,can-r8a77965" if CAN controller is a part of R8A77965 SoC. "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device. "renesas,rcar-gen2-can" for a generic R-Car Gen2 or RZ/G1 compatible device. @@ -28,11 +29,10 @@ Required properties: - pinctrl-0: pin control group to be used for this controller. - pinctrl-names: must be "default". -Required properties for "renesas,can-r8a7795" and "renesas,can-r8a7796" -compatible: -In R8A7795 and R8A7796 SoCs, "clkp2" can be CANFD clock. This is a div6 clock -and can be used by both CAN and CAN FD controller at the same time. It needs to -be scaled to maximum frequency if any of these controllers use it. This is done +Required properties for R8A7795, R8A7796 and R8A77965: +For the denoted SoCs, "clkp2" can be CANFD clock. This is a div6 clock and can +be used by both CAN and CAN FD controller at the same time. It needs to be +scaled to maximum frequency if any of these controllers use it. This is done using the below properties: - assigned-clocks: phandle of clkp2(CANFD) clock. From patchwork Sun Aug 12 13:31:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563655 X-Patchwork-Delegate: geert@linux-m68k.org 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 8123A1510 for ; Sun, 12 Aug 2018 13:33:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7101D28784 for ; Sun, 12 Aug 2018 13:33:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63BB4287BF; Sun, 12 Aug 2018 13:33:08 +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 E391F28784 for ; Sun, 12 Aug 2018 13:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727821AbeHLQLL (ORCPT ); Sun, 12 Aug 2018 12:11:11 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33536 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQLK (ORCPT ); Sun, 12 Aug 2018 12:11:10 -0400 Received: by mail-wm0-f66.google.com with SMTP id r24-v6so5392838wmh.0 for ; Sun, 12 Aug 2018 06:33:05 -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=A6fFZcCSZcmOfPY1PoJAIoZVIQLb+gUM8EN0XNNt8P0=; b=lh4WkAFM9qYFmmAuwkTWwZiPcUHEwqbp7EbStNsBofKhXfPxPaqWggvwp7GSVYtTAq Cy0xlW4aEg0KaJVPbX99YG8UZAj+EMcEk8uZlmH7/7zvQGuH1oM1PAx5S7SIsxuP1fXA r0Qt7n8qnzJlyn8gsZUeA0gqf+iIaXRFHT3OTvUbNYPCbfeuRN+PTkPWzTGcQWKcBYnc Jwyz8v/X34lFCAgspzM/bB5MpfEwkNFvB+FDgWSvMH5kZ51hwmAuEVFjQ5TCRO5+oZOc ublrg16ITCGr7dhOmZyHPj6qfagRBkXGini7jEWuFfpHnMvp9qBKSzIIPKDI3wnhCmPZ 9Mzg== 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=A6fFZcCSZcmOfPY1PoJAIoZVIQLb+gUM8EN0XNNt8P0=; b=TZDmnRhxovZwqCFTs+2nL8rUpIOjWgLQf1ijBRFQUxTGHkFD6MrQGHZ7Rd6GhdiXxY q5vx/SLfs8woZBgbJbtjkTz+WKSva6B1rMhlwaXFjk4Sx0gBXARC0+3YEHbj0cQ8s49F rxIxqppEByeGRwrT0xJEeTLFsyeMz9mcG0ZwMHRHyhmnVALI5BINpuOcOz/DiO0uDHG2 jueBtXYYT5Q2Qb20nYD939mP9mGqMO9eyfzsvvPByJnVDllCTZ4DcYyhYfzAxZRAfAHm AtPLNUGP4easZKOtgGKs+Baz6ejCWrmoAznFVX988Wi8xioCiu5utDVG0EIn5JVvxMcE nndA== X-Gm-Message-State: AOUpUlHC1HkKqZlwvefEe7XxJaNPhJ/3ec/BZDCSYjLhZ+eXSroSiSIQ nk53zJOgjnIcU4OHSCsBXwQ= X-Google-Smtp-Source: AA+uWPzXQD6hyPkKTigMZUJ5VNDZeGu+4YrKvbp2NCsEvE2Z74wi9Z7QroIDkH1JPSrcSEA6Rym9eg== X-Received: by 2002:a1c:9d02:: with SMTP id g2-v6mr5360499wme.122.1534080784873; Sun, 12 Aug 2018 06:33:04 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:33:04 -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 3/7] pinctrl: sh-pfc: r8a77965: Add HSCIF0 pins, groups, and functions Date: Sun, 12 Aug 2018 15:31:45 +0200 Message-Id: <20180812133149.7710-3-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 Rev.1.00 Apr 2018, M3-N SoC implements five (0..4) HSCIF channels, similar to H3, M3-W and E3. The story behind this patch is tackling below dmesg warnings, which pop up when booting M3NULCB Kingfisher board: $ dmesg | grep sh-pfc sh-pfc e6060000.pin-controller: r8a77965_pfc support registered sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table To fix them, extract the HSCIF0 part from below v4.15-rc1 commits: - commit 7a362e3488cb ("pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions") - commit 0e4e4999aac1 ("pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions") Note that `checkpatch --strict` throws several "CHECK: Please use a blank line after function/struct/union/enum declarations", which are ignored for the sake of staying in sync with the aforementioned commits. Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Horman --- Changes in v2: - Newly added. - IMHO mirroring the mentioned H3 and M3-W sh-pfc commits *entirely* is a better option to avoid work fragmentation, but I leave this decision to the maintainer. --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c index d2bbee656381..fe16d194f69b 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c @@ -1758,6 +1758,28 @@ static const unsigned int du_disp_mux[] = { DU_DISP_MARK, }; +/* - HSCIF0 ----------------------------------------------------------------- */ +static const unsigned int hscif0_data_pins[] = { + /* RX, TX */ + RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14), +}; +static const unsigned int hscif0_data_mux[] = { + HRX0_MARK, HTX0_MARK, +}; +static const unsigned int hscif0_clk_pins[] = { + /* SCK */ + RCAR_GP_PIN(5, 12), +}; +static const unsigned int hscif0_clk_mux[] = { + HSCK0_MARK, +}; +static const unsigned int hscif0_ctrl_pins[] = { + /* RTS, CTS */ + RCAR_GP_PIN(5, 16), RCAR_GP_PIN(5, 15), +}; +static const unsigned int hscif0_ctrl_mux[] = { + HRTS0_N_MARK, HCTS0_N_MARK, +}; /* - I2C -------------------------------------------------------------------- */ static const unsigned int i2c1_a_pins[] = { /* SDA, SCL */ @@ -3169,6 +3191,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(du_oddf), SH_PFC_PIN_GROUP(du_cde), SH_PFC_PIN_GROUP(du_disp), + SH_PFC_PIN_GROUP(hscif0_data), + SH_PFC_PIN_GROUP(hscif0_clk), + SH_PFC_PIN_GROUP(hscif0_ctrl), SH_PFC_PIN_GROUP(i2c1_a), SH_PFC_PIN_GROUP(i2c1_b), SH_PFC_PIN_GROUP(i2c2_a), @@ -3379,6 +3404,12 @@ static const char * const du_groups[] = { "du_disp", }; +static const char * const hscif0_groups[] = { + "hscif0_data", + "hscif0_clk", + "hscif0_ctrl", +}; + static const char * const i2c1_groups[] = { "i2c1_a", "i2c1_b", @@ -3651,6 +3682,7 @@ static const char * const usb30_groups[] = { static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(avb), SH_PFC_FUNCTION(du), + SH_PFC_FUNCTION(hscif0), SH_PFC_FUNCTION(i2c1), SH_PFC_FUNCTION(i2c2), SH_PFC_FUNCTION(i2c6), From patchwork Sun Aug 12 13:31:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563657 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 9FAB914E2 for ; Sun, 12 Aug 2018 13:33:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 904DE28784 for ; Sun, 12 Aug 2018 13:33:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 846F8287BF; Sun, 12 Aug 2018 13:33:17 +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 074D628784 for ; Sun, 12 Aug 2018 13:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727854AbeHLQLU (ORCPT ); Sun, 12 Aug 2018 12:11:20 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34974 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQLU (ORCPT ); Sun, 12 Aug 2018 12:11:20 -0400 Received: by mail-wm0-f65.google.com with SMTP id o18-v6so6265557wmc.0 for ; Sun, 12 Aug 2018 06:33:14 -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=aOjwUUw00ROUgiLfIxHwjKH/Xp8I6/wZWVmYLSNYymI=; b=ub0nHlUHWe6fh6hBc1Q6UDx8AZ9zObAT2WsQa94zhIy8FcnVJlurSGutg5wswaSjsm 12lxVwLER62XswgbnGvpazcfQlLAiJEJ5B/o3O1PnAeph0OtDnhyOKFPYJxl57TwKyXm v4JAATfq1XAKJuxX5cMwLDJ4Q3lYT7NXzSgEwQoZZUSYfc/IRXcMrgzSm4oxEB+ATEjE FN0zjfO5n0lAYoB4DK8U77GvRAfoPRqH/Ksp7nZ4dy4U5gAIi7fK0KUymLYfvB1KeFkS rw/lrBF6gavmefBiJNHFOfOtolP8ILCwA0uS0sX9Jzok1jDw+7agdv5bV2cLzklxgMRT Ehtw== 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=aOjwUUw00ROUgiLfIxHwjKH/Xp8I6/wZWVmYLSNYymI=; b=iFZfY6TUXaVubGNT0vUcyerxMTio8SzhglxeX9GMCkGqkXtPclJkwK9L/NFq9jWaqQ y7Xwrq9YEGrOkiniEgaT7Dk8+IBRUaJUoz5Lodjdsqv3xphZwkY6RFw86YrhHcLH4TQ+ +AIKYSHeaT+9yqzDx6oqZ87CE5io2ugedEX+SjyoWQhSKldWM+WnTBIoHSFDH0bADEEP 4TY2Aaf1ebi35jeRq/WeM2avTh9AhwTmaRggIppwdlg+L8Qb8tsQBWUZsNbR2GuLRAWJ 1m+wHIePLSXl5gde8xoTbaBAu5lblXLLjAwj9cowrx9WprAj5pEaVXoLRou5YkA/nFqy Ja/Q== X-Gm-Message-State: AOUpUlGg/4dH9MwcvTiWUkGVzq78baMenG3uriR3sghu8Fm6kEPFYbxT jxjwhVCahEDJGd892AZnyEE= X-Google-Smtp-Source: AA+uWPy+nuQPkp6GkWq9AYoRK6wZ6c7jdGsZjG97oJJHUeLfUXKHekvD9FTa/i3hS3y4baP+tXjU4g== X-Received: by 2002:a1c:cc17:: with SMTP id h23-v6mr5614630wmb.82.1534080794271; Sun, 12 Aug 2018 06:33:14 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:33:13 -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 4/7] arm64: dts: renesas: r8a77965: m3nulcb: Initial device tree Date: Sun, 12 Aug 2018 15:31:46 +0200 Message-Id: <20180812133149.7710-4-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 Allow the bare M3-N-based ULCB board to boot. Signed-off-by: Eugeniu Rosca Reviewed-by: Jacopo Mondi --- Changes in v2: - [Jacopo Mondi] Removed redundant license text. Added Reviewed-by. - [Simon Horman] - Renamed DTS 's/r8a77965-ulcb.dts/r8a77965-m3nulcb.dts/' - Renamed board name 's/M3-N ULCB/M3NULCB/' - Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/' - Adapted Makefile and commit summary line 's/ulcb/m3nulcb/' --- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a77965-m3nulcb.dts | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index 9e2394bc3c62..eb158d1f90e9 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb +dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb r8a77980-v3hsk.dtb dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts b/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts new file mode 100644 index 000000000000..964078b6cc49 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the M3NULCB (R-Car Starter Kit Pro) board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77965.dtsi" +#include "ulcb.dtsi" + +/ { + model = "Renesas M3NULCB board based on r8a77965"; + compatible = "renesas,m3nulcb", "renesas,r8a77965"; + + memory@48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x78000000>; + }; +}; + +&du { + clocks = <&cpg CPG_MOD 724>, + <&cpg CPG_MOD 723>, + <&cpg CPG_MOD 721>, + <&versaclock5 1>, + <&versaclock5 3>, + <&versaclock5 2>; + clock-names = "du.0", "du.1", "du.3", + "dclkin.0", "dclkin.1", "dclkin.3"; +}; 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>; From patchwork Sun Aug 12 13:31:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563661 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 A59771510 for ; Sun, 12 Aug 2018 13:33:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97629288EA for ; Sun, 12 Aug 2018 13:33:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B85A28924; Sun, 12 Aug 2018 13:33:31 +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 31BB228BFE for ; Sun, 12 Aug 2018 13:33:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbeHLQLe (ORCPT ); Sun, 12 Aug 2018 12:11:34 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40904 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQLe (ORCPT ); Sun, 12 Aug 2018 12:11:34 -0400 Received: by mail-wm0-f66.google.com with SMTP id y9-v6so6240690wma.5 for ; Sun, 12 Aug 2018 06:33:29 -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=z3wggtHzNbEY4eg0Qb0ks+lGVPzwqzHq0jc4d8EvVog=; b=J3mdfedxLFQWBg65XcE5Z8phLg67nFoJCvi6GrXEWRBMGaEi+ZylYdQm4og8xoMsWH prRx/pvD2IqXKxQS3Eu6vNGkNYeYWHiH1HePPCTvduA9C0BdFBWu7IyxkWk5hjt3i+0i TilQ3k2a3gh0AigcYBeriPG9rDW6vwznRCkeyEA580Pnd5IwM53cuWDclTVHcwcOtfl7 WAdNpPfcQZYn+7YOL+3eXLQ7Oed6wM5WNUU5sYB/mnBmY75SZfYn/wDmLWZmIAmRlIYX r8S0j5ny2iXzEDwZ39BzmtUNAFT+SXnzBG23asQ1r9YW/5vxIX86iGO6GctSMKLxge4A JZQw== 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=z3wggtHzNbEY4eg0Qb0ks+lGVPzwqzHq0jc4d8EvVog=; b=hv+79SaMYqB2p7S5LSTm+CZhuKjI9Qhig2et8IAW/ziQdHKsXtrchHM70g5EBIZ16V RORySTaa7ZkVuZQN9iMb+WLCk1qNfuOpryWIIOfJaUjSj1sGU8HKnjrQi0oCuZG4aYak BIjOVLn2AhP+4wZ0aD6cwyAkB5rtRlM0nd5kKA1kSVypiGdZpyQR9Tx8PPGX9UPsv6ds ymuVMVcGuxGODIfYN8XMCz6CgQ4QVtM4B9EK0PisVr6M0EIjycCUVjALEudeAoBlTIfO 2oC+TfRIzORrXUcRRfKwq4W1faH+wegtpH1gLBY+BxqC5U4C3ugCSdFhA9q+CmoOD6Hj 9huA== X-Gm-Message-State: AOUpUlHapSc2cOWwopJGRPZjsON0LaGbXxY46nD69UKW9sRviA78UZKY GzkwtBWTnQ7eEkApEFnuvNM= X-Google-Smtp-Source: AA+uWPyDVaLpnMYCpnKReDeaZh84oARF9Xt+dfWxrGCIt5gyGJrJifVHrLF6vAiqt1WpuVcLrT4QLg== X-Received: by 2002:a1c:97cb:: with SMTP id z194-v6mr6082656wmd.35.1534080808595; Sun, 12 Aug 2018 06:33:28 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:33:27 -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 6/7] arm64: dts: renesas: r8a77965: Add HSCIF0 device node Date: Sun, 12 Aug 2018 15:31:48 +0200 Message-Id: <20180812133149.7710-6-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 Fix below DTC error: Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:36.1-8 Label or path hscif0 not found The DTC error occurs *after* the addition of r8a77965-m3nulcb-kf.dts. Fix it beforehand. Inspired from v4.12-rc1 commits: - commit 68cd16107260 ("arm64: dts: r8a7796 dtsi: Add all HSCIF nodes") - commit 6d50bb893504 ("arm64: dts: r8a7796: Enable HSCIF DMA") - commit bec0948e810f ("arm64: dts: r8a7796: Add reset control properties") Signed-off-by: Eugeniu Rosca --- Changes in v2: - Slightly improved the commit description. - Note that this commit could be replaced by https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git/commit/?h=b8e3c8e17611 --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 4da479d3c226..d04a8b671cc2 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -451,6 +451,24 @@ status = "disabled"; }; + hscif0: serial@e6540000 { + compatible = "renesas,hscif-r8a77965", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6540000 0 0x60>; + interrupts = ; + clocks = <&cpg CPG_MOD 520>, + <&cpg CPG_CORE R8A77965_CLK_S3D1>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x31>, <&dmac1 0x30>, + <&dmac2 0x31>, <&dmac2 0x30>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 520>; + status = "disabled"; + }; + hsusb: usb@e6590000 { compatible = "renesas,usbhs-r8a7796", "renesas,rcar-gen3-usbhs"; From patchwork Sun Aug 12 13:31:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 10563663 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 05D0514E2 for ; Sun, 12 Aug 2018 13:33:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA6A4288D7 for ; Sun, 12 Aug 2018 13:33:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDA6328924; Sun, 12 Aug 2018 13:33:36 +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 7E9B7288D7 for ; Sun, 12 Aug 2018 13:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727873AbeHLQLk (ORCPT ); Sun, 12 Aug 2018 12:11:40 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38109 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbeHLQLj (ORCPT ); Sun, 12 Aug 2018 12:11:39 -0400 Received: by mail-wm0-f67.google.com with SMTP id t25-v6so6224429wmi.3 for ; Sun, 12 Aug 2018 06:33:34 -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=F2Qe2wAfXvyE06GNa77zRhpVZ04atlzaztI82YgCKsI=; b=tsaoKK0DBM509Td73R8TivNjzHpOxEWnk1dxs9P1bLZgoUQa7wSS3GPDHjv4o124TY uQgjQjuImQM8DbxO+om1dfxU2KDnIdli5vdKxmCr1CFVKpBf7FFbbsJPle6ntHLYFpnf Oypq91MgFVY7smBTcTpONYKK+UVIWvIFDXWicBsGpH/2lhJI1khVrucybHYKIcreTuzi PjAoMTCe+hJa9Jz0cBQY30KKolkvPwMY8V1Yp3003RAoJ2LDrh3F66d84Zv1tWq933/F aASRd6myXZpR/kUGHeBRR2OEXRZntxc6zybWSTUSAG/gSoQG+1URJ1z3374wksPEogJG VGxQ== 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=F2Qe2wAfXvyE06GNa77zRhpVZ04atlzaztI82YgCKsI=; b=jEeY4PUrhp4GXTt7+uJJ9zb56lWX/91QFqpQbyKPwGlQ2TdyFFTYmvtpP5yk/8WFkI 3XIoRfLzfJwmWuxcIs/Pq0Bm6voODhqbkxRbna+idC9nE5l7jFWWiqgiSq3w6nuZY+r3 SG0m3HRRfWMNWT7Dx+zZM38HTVfcFTq5jBF3ZvlE4kwsZ0Sz8wUvCC0Ji/gJH5zDSu5z 3GyWb16JgBZSUcDXCy4Ohtg9aWmGeYKcI3sYxg81ZmaAuQIMqPCShDkrjRxWQ9ZbyYhK 1mTP+1k/4OIqiOWM58Pxr4f90cavkqKQP5cu9gze2HombeGtZLzP/ueJciKnkMh8sqEq o1dw== X-Gm-Message-State: AOUpUlEnye5N5DKjVFiNJOsd5zg/JwkPKtKen5ZThqfPBEBvlPETeo4B nah1yreG7CasC9EUReF906k= X-Google-Smtp-Source: AA+uWPxBSYqyPew4hn+TSD1+NcPRMthT/oW5qkHAn1gKnYctRYwUW8yE/9hh9j6pMtQVG30P53TlFw== X-Received: by 2002:a1c:7c13:: with SMTP id x19-v6mr6133548wmc.27.1534080814135; Sun, 12 Aug 2018 06:33:34 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Aug 2018 06:33:33 -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 7/7] arm64: dts: renesas: r8a77965: m3nulcb-kf: Initial device tree Date: Sun, 12 Aug 2018 15:31:49 +0200 Message-Id: <20180812133149.7710-7-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 This is based on the existing KF device tree sources: $ ls -1 arch/arm64/boot/dts/renesas/*-kf.dts arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Horman --- Changes in v2: - [Jacopo Mondi] Removed redundant license text. - [Simon Horman] - Renamed DTS 's/r8a77965-ulcb-kf.dts/r8a77965-m3nulcb-kf.dts/' - Renamed board name 's/M3-N ULCB/M3NULCB/' - Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/' - Adapted Makefile and commit summary line 's/ulcb-kf/m3nulcb-kf/' - Documented the source of inspiration in the commit description. --- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a77965-m3nulcb-kf.dts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index eb158d1f90e9..a8ce6594342d 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb +dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb r8a77980-v3hsk.dtb dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts b/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts new file mode 100644 index 000000000000..dadad97051b9 --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the M3NULCB Kingfisher board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +#include "r8a77965-m3nulcb.dts" +#include "ulcb-kf.dtsi" + +/ { + model = "Renesas M3NULCB Kingfisher board based on r8a77965"; + compatible = "shimafuji,kingfisher", "renesas,m3nulcb", + "renesas,r8a77965"; +};