From patchwork Tue Aug 20 12:35:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103737 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25E0B14F7 for ; Tue, 20 Aug 2019 12:33:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03BDE22DCB for ; Tue, 20 Aug 2019 12:33:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F7dgwzvw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729842AbfHTMd0 (ORCPT ); Tue, 20 Aug 2019 08:33:26 -0400 Received: from mail-pg1-f176.google.com ([209.85.215.176]:45383 "EHLO mail-pg1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729137AbfHTMd0 (ORCPT ); Tue, 20 Aug 2019 08:33:26 -0400 Received: by mail-pg1-f176.google.com with SMTP id o13so3168333pgp.12; Tue, 20 Aug 2019 05:33:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=S32qZ7XdO5r2dv+B4HOk2JeOvdYbAozdIuuwCf7sti8=; b=F7dgwzvwRzwC8dfYziXXjVhC18h5NoVV9F+4fZQph7PCaQnEuNUsqrbtK10afywKUZ wX8r1gTgmQtZmCOTEsafas9R/yA/y9awJerXj5Vbfs244LeRLnTFVCzgyU4rGPanGt+J eo5nq2YtkRqs6paFryQAMwuMfgOzUcgueipM+dYMv5hyTJxZuPEED2lTVMwSmkaBaaJV wGRIvwdgDKEEQvCiuF6f4Kmg0BhTmEmN7fDJLZzkFkdgJRpkbqFzrTU5T1zRO5/b2pw4 kE8JZENlhB5NoWs4jrdM5svzSTzv3pqk3wJoXWo0D2T0gULIaYjRkFraBwitpkstrcxz A2KQ== 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:date:message-id:in-reply-to :references:subject; bh=S32qZ7XdO5r2dv+B4HOk2JeOvdYbAozdIuuwCf7sti8=; b=ingJMq3vwZSbNz+2N7tJVpWNhihfI1KG3YZ1bb7KhuljQpi7FuRjqtcT4c/i0SB1Sm OUKSsYMD/Lbx7kvBqT73kbKhXsyxwGhItjf9F2pX98X0IaY4+l1O1BMiB8gAbjcEXwa3 lrid/oQ4xBx7MpgCscqlhI9iuQynGkvhBkagABNPc521MwzLNBLNb4h6e/HrP7E8qK0P fOHsaX2R20246V3mcdbwYR0QVeu8oWtFKoyYcfLWr+idjug1wDe8mfidiY056KvE7YvD FZV8baQhM0TtYINREKyhdCXlnH2fhccenO1wq0el70O2B2SPMY32O1vHSOOQCWAMMnnF XphQ== X-Gm-Message-State: APjAAAV8hrmaossjsS81la7RBdhodmWlYqK1YMFrGYnGezX1Bm7oPihU 3CUMgJJ4BTWxebCE25avx58aiR2b X-Google-Smtp-Source: APXvYqzTGgLOPzi1SyQRiFX0+hK1/ORpjhZH2ZEfm2b6ed9+KwUCFUX4DWfb7zNhG+YK+mC0CxUNGA== X-Received: by 2002:aa7:93c4:: with SMTP id y4mr30117289pff.39.1566304405396; Tue, 20 Aug 2019 05:33:25 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id x2sm20517773pja.22.2019.08.20.05.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:33:24 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:03 +0900 Message-Id: <156630450374.17444.10813153921641289392.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 1/7] dt-bindings: timer: renesas, cmt: Add CMT0234 to sh73a0 and r8a7740 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm Document the on-chip CMT devices included in r8a7740 and sh73a0. Included in this patch is DT binding documentation for 32-bit CMTs CMT0, CMT2, CMT3 and CMT4. They all contain a single channel and are quite similar however some minor differences still exist: - "Counter input clock" (clock input and on-device divider) One example is that RCLK 1/1 is supported by CMT2, CMT3 and CMT4. - "Wakeup request" (supported by CMT0 and CMT2) Because of this one unique compat string per CMT device is selected. Signed-off-by: Magnus Damm Reviewed-by: Rob Herring Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 8 ++++++++ 1 file changed, 8 insertions(+) --- 0001/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ work/Documentation/devicetree/bindings/timer/renesas,cmt.txt 2019-07-18 18:19:43.196165331 +0900 @@ -22,6 +22,10 @@ Required Properties: - "renesas,r8a73a4-cmt0" for the 32-bit CMT0 device included in r8a73a4. - "renesas,r8a73a4-cmt1" for the 48-bit CMT1 device included in r8a73a4. + - "renesas,r8a7740-cmt0" for the 32-bit CMT0 device included in r8a7740. + - "renesas,r8a7740-cmt2" for the 32-bit CMT2 device included in r8a7740. + - "renesas,r8a7740-cmt3" for the 32-bit CMT3 device included in r8a7740. + - "renesas,r8a7740-cmt4" for the 32-bit CMT4 device included in r8a7740. - "renesas,r8a7743-cmt0" for the 32-bit CMT0 device included in r8a7743. - "renesas,r8a7743-cmt1" for the 48-bit CMT1 device included in r8a7743. - "renesas,r8a7744-cmt0" for the 32-bit CMT0 device included in r8a7744. @@ -54,6 +58,10 @@ Required Properties: - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990. - "renesas,r8a77990-cmt1" for the 48-bit CMT1 device included in r8a77990. + - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0. + - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0. + - "renesas,sh73a0-cmt3" for the 32-bit CMT3 device included in sh73a0. + - "renesas,sh73a0-cmt4" for the 32-bit CMT4 device included in sh73a0. - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2 and RZ/G1. From patchwork Tue Aug 20 12:35:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103739 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3040014F7 for ; Tue, 20 Aug 2019 12:33:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F43722DA9 for ; Tue, 20 Aug 2019 12:33:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="obkg4fpB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728595AbfHTMdh (ORCPT ); Tue, 20 Aug 2019 08:33:37 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36463 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMdh (ORCPT ); Tue, 20 Aug 2019 08:33:37 -0400 Received: by mail-pf1-f194.google.com with SMTP id w2so3318293pfi.3; Tue, 20 Aug 2019 05:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=QXHTiA9+lmYaDV1fP1jTKDbQnYtFZzu5gMQ/7TlFQJU=; b=obkg4fpBVG5ro1EO4LITiU/m1X2OSkp1Jqt3lqRGQnF6E+muAWGWwofa8FoKRLii8H +lJLJ/3ChfytPIpDTKuRjaICN1tjTdoBIYUvUpImPdOhpxN1yhxinor7EQHNlX1+ajS0 m4nLvC6a/6q9/aNvFg9YkDuDsnK4EwXTgabq+FKPTMgLg31ACYu3aSwxnDCiUT6aWSLW Akp+Vwvv/lAq+GTQEwNR/eGw1WWrVLp3QWIsMYx6pLitgbmT2VUUToMQt/YefwxgqZgJ ZlCg7zYEyzcYNafpnyG4clpMQ8m0UnV4cPVBaWM1AW8236IpIaBWeT2NcghplTFMAXxH jt+Q== 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:date:message-id:in-reply-to :references:subject; bh=QXHTiA9+lmYaDV1fP1jTKDbQnYtFZzu5gMQ/7TlFQJU=; b=hUCrNaThh7tbSjpmSuwLUXwSIFbOgHxlwo/hxdmR/GWuXhPzgL5DmfwkhgaJ3dbS5i aLuX3iygAdF4n+yhK45YUzA4prAcOIGKx2wwcW2ZrmpUwOKddcQdtzFkzoaTpE+4PGmV i24u9W1RwWHN8c7dXwZFGMJr0+HwkcUJVnRIE38Sw2HonbERMaz4IR0FnqNcK+EHYOBA 2+NeickR2XOICm1AqcI5EimGMGee/aLgiQZz5/VHxsrMV/uw5GaUNuWYWdL5zAiUYhJD HOe7ybc31UcHiXWw/6TKtu7z92cts9dQESMmVBIcJNR4/XLYP6FogsOSH4V+V+VPY2gN UL3w== X-Gm-Message-State: APjAAAXzmjvdbw7xg9U2BWGZfVQKEmDb45ighfniCUfUmcweu+AT+EIZ 5tA6N3jF3NTivDDJ+2PlPflhkZNO X-Google-Smtp-Source: APXvYqzQM2xZaPte6AlJ0W8J1aMmeqDzFAH1+gH4ueTSYoeJbwg+2558qF0KANLsGENF5sYynlrygA== X-Received: by 2002:a17:90a:17ab:: with SMTP id q40mr26456985pja.106.1566304416127; Tue, 20 Aug 2019 05:33:36 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id o24sm38726945pfp.135.2019.08.20.05.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:33:35 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:14 +0900 Message-Id: <156630451480.17444.3045034693349256156.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 2/7] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm This patch reworks the DT binding documentation for the 6-channel 48-bit CMTs known as CMT1 on r8a7740 and sh73a0. After the update the same style of DT binding as the rest of the upstream SoCs will now also be used by r8a7740 and sh73a0. The DT binding "cmt-48" is removed from the DT binding documentation, however software support for this deprecated binding will still remain in the CMT driver for some time. Signed-off-by: Magnus Damm Reviewed-by: Rob Herring Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --- 0002/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ work/Documentation/devicetree/bindings/timer/renesas,cmt.txt 2019-07-18 18:21:59.453309074 +0900 @@ -12,17 +12,10 @@ datasheets. Required Properties: - compatible: must contain one or more of the following: - - "renesas,cmt-48-sh73a0" for the sh73A0 48-bit CMT - (CMT1) - - "renesas,cmt-48-r8a7740" for the r8a7740 48-bit CMT - (CMT1) - - "renesas,cmt-48" for all non-second generation 48-bit CMT - (CMT1 on sh73a0 and r8a7740) - This is a fallback for the above renesas,cmt-48-* entries. - - "renesas,r8a73a4-cmt0" for the 32-bit CMT0 device included in r8a73a4. - "renesas,r8a73a4-cmt1" for the 48-bit CMT1 device included in r8a73a4. - "renesas,r8a7740-cmt0" for the 32-bit CMT0 device included in r8a7740. + - "renesas,r8a7740-cmt1" for the 48-bit CMT1 device included in r8a7740. - "renesas,r8a7740-cmt2" for the 32-bit CMT2 device included in r8a7740. - "renesas,r8a7740-cmt3" for the 32-bit CMT3 device included in r8a7740. - "renesas,r8a7740-cmt4" for the 32-bit CMT4 device included in r8a7740. @@ -59,6 +52,7 @@ Required Properties: - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990. - "renesas,r8a77990-cmt1" for the 48-bit CMT1 device included in r8a77990. - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0. + - "renesas,sh73a0-cmt1" for the 48-bit CMT1 device included in sh73a0. - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0. - "renesas,sh73a0-cmt3" for the 32-bit CMT3 device included in sh73a0. - "renesas,sh73a0-cmt4" for the 32-bit CMT4 device included in sh73a0. From patchwork Tue Aug 20 12:35:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103741 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68E6E14F7 for ; Tue, 20 Aug 2019 12:33:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 476F822DBF for ; Tue, 20 Aug 2019 12:33:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VUujqLe4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729913AbfHTMdr (ORCPT ); Tue, 20 Aug 2019 08:33:47 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34245 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMdr (ORCPT ); Tue, 20 Aug 2019 08:33:47 -0400 Received: by mail-pf1-f195.google.com with SMTP id b24so3322218pfp.1; Tue, 20 Aug 2019 05:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=2OniBu/IvTb/n2Hc5EWkIP9jtRjD6Kd2174qWP69kZA=; b=VUujqLe4B4DPUouqETpSI24k1HGY5GtUhMI89gCNLQ6gBFNlLaVMV0i9LacdXe636f UMU/npAnWQxHRCW5hENbF7QOsSWhwK6kdCqyUWY+scaI9W50fYDEuM3gjPEHJQm1/lRT 8TIOCYYhPNlbxbZmCzQA6kQziqAhas8NlrYE5gSgC5aalzaIM9Cofde7GeNFr1MCXRLy NUcqGk4fCFj0qVSlr9rY0Az9ofuOIMPvbqmWFOLb4eKofkqehv90iuA20X/McjfP1MUZ hTrP6jt9XInH6CxkJRPGKyjdGLFfS8cBwWsRFi9JlFiKlrjFcR3sJ6FFRRP/YVjDLRDJ LJSA== 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:date:message-id:in-reply-to :references:subject; bh=2OniBu/IvTb/n2Hc5EWkIP9jtRjD6Kd2174qWP69kZA=; b=Xw/Eh14wujbpS0f6/dt/+LDebxz4SuC95HzeJtllYGoiIIkC5P/r+jBoJTliyPbtbg sv82YvjdrznkW/vX6Wcucv1/R/pAhVTVzZ9X/4CqDybLvnVuXDeKSwjOzZrubmmjIQur T4nIaJSWmoJEs3bus3049mndQ+DVDs6JS8QZGILnmgaMhh/rFmQuSTNal8naw+cBiBPh dgRuY65JOl+LspDEE5bvyCZ4aPx8lLGk0VtoyS9/5NtU9BOWiaB14JEnLJse9vgvcKRR 96NxuUxXIMZP6zTq20ztRyaiYRmYrDtqtTtgsvMmvVf9187sTWaF7jWIlmR03LVqHoFS xFjw== X-Gm-Message-State: APjAAAWhK4nx+b4TEIQBRP6mGYy1YAQj28xCBLqnBwgIkJCSBms/pOkE 85xF1bN6cDZWMISH22lsI4cIzKLw X-Google-Smtp-Source: APXvYqyl2Z3dCSiM20Mgs8l622OtGUEx88W4nrneL8zk0MfP9qiW5O/SdJtJqWvaOoby5pmPuAyYew== X-Received: by 2002:a63:6106:: with SMTP id v6mr24155403pgb.36.1566304426544; Tue, 20 Aug 2019 05:33:46 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id d12sm18788077pfn.11.2019.08.20.05.33.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:33:45 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:25 +0900 Message-Id: <156630452545.17444.4277682052018128256.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 3/7] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a7792 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen2 V2H (r8a7792) SoC. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring Reviewed-by: Simon Horman --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++ 1 file changed, 2 insertions(+) --- 0004/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ work/Documentation/devicetree/bindings/timer/renesas,cmt.txt 2019-07-18 18:23:48.256013425 +0900 @@ -35,6 +35,8 @@ Required Properties: - "renesas,r8a7790-cmt1" for the 48-bit CMT1 device included in r8a7790. - "renesas,r8a7791-cmt0" for the 32-bit CMT0 device included in r8a7791. - "renesas,r8a7791-cmt1" for the 48-bit CMT1 device included in r8a7791. + - "renesas,r8a7792-cmt0" for the 32-bit CMT0 device included in r8a7792. + - "renesas,r8a7792-cmt1" for the 48-bit CMT1 device included in r8a7792. - "renesas,r8a7793-cmt0" for the 32-bit CMT0 device included in r8a7793. - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793. - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794. From patchwork Tue Aug 20 12:35:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103743 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9679F1398 for ; Tue, 20 Aug 2019 12:33:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 73F7022DBF for ; Tue, 20 Aug 2019 12:33:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tDh7+hAa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729458AbfHTMd6 (ORCPT ); Tue, 20 Aug 2019 08:33:58 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37800 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMd5 (ORCPT ); Tue, 20 Aug 2019 08:33:57 -0400 Received: by mail-pl1-f195.google.com with SMTP id bj8so2694467plb.4; Tue, 20 Aug 2019 05:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=9Tlc10QRrkzwPRJ8X0TkKc564s8B/22KIsVVaWaxv+k=; b=tDh7+hAaJvlbvYYQFCx/GssHKjMXi9/JEBVjHkk2MksjPcvLijspXFP2ctwjQOrUEc ADOjyRTu4Mm27mS+vB+35fySUMSge+EKr/jXLd+AolslRr5DJCuAh1Mx1zAIuB2mTfrm ShiWHmMINJ+gd5SmWPMsSDk6e5dcossvVZRIx2+pKuxBedBl0VRp5CivmH4M5cCEX6o9 lkctokfDllqXY8U7d9+wmSiwj0rZPZrHpmfuHsGxAY0huL4xUBE6FOZNyQkIzT7tpTzr HIbCgzOU14bc8QzcipLgX8yaCn1HLB79JQxosPxPj4585zUrrCSDq3MFLPsMuR9ch9rt dZwg== 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:date:message-id:in-reply-to :references:subject; bh=9Tlc10QRrkzwPRJ8X0TkKc564s8B/22KIsVVaWaxv+k=; b=q8qy5bVgo8F72axeLZkhlTbojOvhZ1tJ/NXfkZ8X6GJwRDo4/QM5UVgVWYeAl9izJh ymmY6wpzWIR8dV8hWeITjwVq11Ua+FwDkB+BfSfOdb7RSDRub/QyjmcZXRxxNgTsD39h 6+/zctIIpo+/4UfwyUecJc5Pb9Mol55zOFyoZ+VVI65iP9W/N9ZZ//RQu/DExRoiGToc nigO89by/9ek3Fm1DoGBVlNvtwqZbIIbvkRyna2Y6Zids/DOySilPKQ7GmXQKCrJ+Z0W X0XSGsFxFp/zi7PjrMa2fnFXNbHovM8GAe7Ky07a5CxB+Nd2twqooiRcYEcllN6o7UY6 jV8A== X-Gm-Message-State: APjAAAVRHYL76UHGBXSW9xcgPayYsOzFp84uE3HOr7M2O08do/mwVO3s RlMREv+OsKmV0Y8x2DHQw2ZxVGmC X-Google-Smtp-Source: APXvYqyIuB6z66x/vySh5yusevzVwaDpUL7xBnamEbAxsCrldeRnDOZt2xwk+KMYbQlfJHpfVLuG4g== X-Received: by 2002:a17:902:f216:: with SMTP id gn22mr29295422plb.59.1566304436787; Tue, 20 Aug 2019 05:33:56 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id z4sm19058314pgp.80.2019.08.20.05.33.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:33:55 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:36 +0900 Message-Id: <156630453593.17444.15839904958810436985.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 4/7] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a77995 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen3 D3 (r8a77995) SoC. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring Reviewed-by: Simon Horman --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++ 1 file changed, 2 insertions(+) --- 0006/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ work/Documentation/devicetree/bindings/timer/renesas,cmt.txt 2019-07-18 18:25:04.331001914 +0900 @@ -53,6 +53,8 @@ Required Properties: - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990. - "renesas,r8a77990-cmt1" for the 48-bit CMT1 device included in r8a77990. + - "renesas,r8a77995-cmt0" for the 32-bit CMT0 device included in r8a77995. + - "renesas,r8a77995-cmt1" for the 48-bit CMT1 device included in r8a77995. - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0. - "renesas,sh73a0-cmt1" for the 48-bit CMT1 device included in sh73a0. - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0. From patchwork Tue Aug 20 12:35:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103745 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9957B1398 for ; Tue, 20 Aug 2019 12:34:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CBD622DBF for ; Tue, 20 Aug 2019 12:34:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GMfp5wAl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729958AbfHTMeJ (ORCPT ); Tue, 20 Aug 2019 08:34:09 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34279 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMeI (ORCPT ); Tue, 20 Aug 2019 08:34:08 -0400 Received: by mail-pf1-f196.google.com with SMTP id b24so3322764pfp.1; Tue, 20 Aug 2019 05:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=8oA63snBNV/Bkd2YgxYNdAqVER+7qy7bykyIGizRM1o=; b=GMfp5wAlSvjY+4Z6ww9ftI1o5kNGBET8O9vkKcZ57Ls5ay+Ydg3AMNxJRjaD7aNfQY brX/6EWkcMWAv04zJCl9JELIUiKpq+3Y8Sitfyly45AhElOVvpW41MnT11Qw5u5gnnAK VLvhZ0u4k/wArBuU8Dev9ByzPKL86C1Laz+lVn+Z+Iqucp8bE50a7K08otZLSonLvOL+ a+eqkEM67wCcRQ95lm75SqntzeY+durTNVm0xjH6wMmu9lV0EvIgp9yKHZK5skxI0GNG OFRJuDC8CsVGFB2aC/hoGEF63+wIwtWC6YKd1uLVLPjm8ZauCodRZSfSHaXd7XgORgdy X2xg== 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:date:message-id:in-reply-to :references:subject; bh=8oA63snBNV/Bkd2YgxYNdAqVER+7qy7bykyIGizRM1o=; b=d3weRaljrdTpiVFTX7EXX057YrEldZd+6nUyfLfxLr5ZhwVB/rFrYNRSK0aWBIskYG WdRDaAyRQjVhT1fHHLCPVPvfCQ8NZtASQVjGr0FvIR9h4m9y4Zbl4hR+3O5l9zdJ72I/ GHYb36RM348ZbvLzrM0FS8w9gHgWsQiyVJNxU3anTSghRhj5bCr7mdpZUi9mA9rqkDER AyZEcaaxdU+HqUU7XnxwmUW3A25HlmV/cAmAo52hLeHmPISJakpmO2sEdoryq9wjM44W +ta8ktZgwEvU3K9RIJ2fxgkJfwA1DAtNDtCe9AKcGpkLj+O63DMR/fxU5JAN6gOWbtQa oaWQ== X-Gm-Message-State: APjAAAWt0gAgohCbCJiT21beCoTYMNE7U/MucGLC+Zd0l+AXFA/gplr/ igNLKlhcU3QmJfqc8P08QcAhUQKc X-Google-Smtp-Source: APXvYqzO9e11Ca6pYjLEOwTwW8ogDv/GdifGYYz73wctVgmCmryfdvyVsD9yT+M2/4sz2DEFdBeMnw== X-Received: by 2002:a65:68c8:: with SMTP id k8mr24242054pgt.192.1566304447287; Tue, 20 Aug 2019 05:34:07 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id e66sm19797874pfe.142.2019.08.20.05.34.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:34:06 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:46 +0900 Message-Id: <156630454613.17444.12802355338071222783.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 5/7] dt-bindings: timer: renesas, cmt: Update R-Car Gen3 CMT1 usage Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm The R-Car Gen3 SoCs so far come with a total for 4 on-chip CMT devices: - CMT0 - CMT1 - CMT2 - CMT3 CMT0 includes two rather basic 32-bit timer channels. The rest of the on-chip CMT devices support 48-bit counters and have 8 channels each. Based on the data sheet information "CMT2/3 are exactly same as CMT1" it seems that CMT2 and CMT3 now use the CMT1 compat string in the DTSI. Clarify this in the DT binding documentation by describing R-Car Gen3 and RZ/G2 CMT1 as "48-bit CMT devices". Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring Reviewed-by: Simon Horman --- Changes since last version: - Use "devices" for fallback entry - thanks Geert! - Keen to Gen3 so removed out-of-scope Gen2 portions Documentation/devicetree/bindings/timer/renesas,cmt.txt | 20 +++++++-------- 1 file changed, 10 insertions(+), 10 deletions(-) --- 0008/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ work/Documentation/devicetree/bindings/timer/renesas,cmt.txt 2019-07-18 19:24:05.195643742 +0900 @@ -28,9 +28,9 @@ Required Properties: - "renesas,r8a77470-cmt0" for the 32-bit CMT0 device included in r8a77470. - "renesas,r8a77470-cmt1" for the 48-bit CMT1 device included in r8a77470. - "renesas,r8a774a1-cmt0" for the 32-bit CMT0 device included in r8a774a1. - - "renesas,r8a774a1-cmt1" for the 48-bit CMT1 device included in r8a774a1. + - "renesas,r8a774a1-cmt1" for the 48-bit CMT devices included in r8a774a1. - "renesas,r8a774c0-cmt0" for the 32-bit CMT0 device included in r8a774c0. - - "renesas,r8a774c0-cmt1" for the 48-bit CMT1 device included in r8a774c0. + - "renesas,r8a774c0-cmt1" for the 48-bit CMT devices included in r8a774c0. - "renesas,r8a7790-cmt0" for the 32-bit CMT0 device included in r8a7790. - "renesas,r8a7790-cmt1" for the 48-bit CMT1 device included in r8a7790. - "renesas,r8a7791-cmt0" for the 32-bit CMT0 device included in r8a7791. @@ -42,19 +42,19 @@ Required Properties: - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794. - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794. - "renesas,r8a7795-cmt0" for the 32-bit CMT0 device included in r8a7795. - - "renesas,r8a7795-cmt1" for the 48-bit CMT1 device included in r8a7795. + - "renesas,r8a7795-cmt1" for the 48-bit CMT devices included in r8a7795. - "renesas,r8a7796-cmt0" for the 32-bit CMT0 device included in r8a7796. - - "renesas,r8a7796-cmt1" for the 48-bit CMT1 device included in r8a7796. + - "renesas,r8a7796-cmt1" for the 48-bit CMT devices included in r8a7796. - "renesas,r8a77965-cmt0" for the 32-bit CMT0 device included in r8a77965. - - "renesas,r8a77965-cmt1" for the 48-bit CMT1 device included in r8a77965. + - "renesas,r8a77965-cmt1" for the 48-bit CMT devices included in r8a77965. - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970. - - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in r8a77970. + - "renesas,r8a77970-cmt1" for the 48-bit CMT devices included in r8a77970. - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980. - - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. + - "renesas,r8a77980-cmt1" for the 48-bit CMT devices included in r8a77980. - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990. - - "renesas,r8a77990-cmt1" for the 48-bit CMT1 device included in r8a77990. + - "renesas,r8a77990-cmt1" for the 48-bit CMT devices included in r8a77990. - "renesas,r8a77995-cmt0" for the 32-bit CMT0 device included in r8a77995. - - "renesas,r8a77995-cmt1" for the 48-bit CMT1 device included in r8a77995. + - "renesas,r8a77995-cmt1" for the 48-bit CMT devices included in r8a77995. - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0. - "renesas,sh73a0-cmt1" for the 48-bit CMT1 device included in sh73a0. - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0. @@ -69,7 +69,7 @@ Required Properties: listed above. - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3 and RZ/G2. - - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car Gen3 + - "renesas,rcar-gen3-cmt1" for 48-bit CMT devices included in R-Car Gen3 and RZ/G2. These are fallbacks for R-Car Gen3 and RZ/G2 entries listed above. From patchwork Tue Aug 20 12:35:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103747 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 102B71398 for ; Tue, 20 Aug 2019 12:34:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E258822DA7 for ; Tue, 20 Aug 2019 12:34:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IQBdSDx5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729203AbfHTMeT (ORCPT ); Tue, 20 Aug 2019 08:34:19 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43462 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMeT (ORCPT ); Tue, 20 Aug 2019 08:34:19 -0400 Received: by mail-pf1-f195.google.com with SMTP id v12so3306420pfn.10; Tue, 20 Aug 2019 05:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=n2dMRsdwfpn3m4PSgcPafEcsJ0ybsqqrm3x2kxCkFU4=; b=IQBdSDx5npIsXlkVKLmiajWWOdVIw0frQ2S/oR16GzVRggAWFsYEo7i1c1a/w8ZGIe 3pl9WSI6CBmjwyyCFCJPEjsHam61G6NWkxGuLxPw7ozXZqMefmNRYED4ZniYIP8xITAH iv0hVbCvQi86Ti0KqgVuiiXt7srueAE1S7/WB5JIW3QjloeHFkA/Ics63cHDiwsVYo3j z0pODXNRhO5qV0oJjo7g7M9LKYtzyWCuNr/fRbuVXbHlM55JCCcRtz+z0HvyIzaGiX31 KhC/O3F3xYcMAFwz6OiJvXjWWJb3s80t6H8LnG2v/kUO/bqi0evOkXoeW75bU+dCq2ri pd4w== 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:date:message-id:in-reply-to :references:subject; bh=n2dMRsdwfpn3m4PSgcPafEcsJ0ybsqqrm3x2kxCkFU4=; b=O0dAqO5LV94+Okbdd0k1D4BfSPbYpgLCmZLBNNnEdXFseQKrNxe7krcUYymWh5HXMr WGgP1q8YFqwg/sks9Y+DIXH/YCLmnw2foXKnk4cPtzvyUJQJi7ub5IqVe0hu2rmZkm7Q 55oUh3Sy8X50CQAPfcirgvVNG9Vcb5jZyfVVBh8EckCgm08Sx+0itifYGNWbXqpWYBTJ ZIHFsS+5xYGBS8LREFiKR96Vig9IMXpS1DiVCC1mTw59e9Yl34Zgx66R7TGwFguVk7ew 32xt/rs1f7WPg+7dIQIs0/Hl0nxon4bhFEZPqGk4HVqlpEth9e/zLPzWmxgYCyyz5p9O +Iuw== X-Gm-Message-State: APjAAAUPVrs6+zy0NmqYa2uU2/ydjQWyx0UrxAKYUlZLHQ77q3dCy0he mIHn1P6UXFXX2D+JkE+lH2bxo33F X-Google-Smtp-Source: APXvYqyFi0RRHyPjWyiWv37fPHVQxZrUQKPUBMvJCtdJhEQg8WDc9pQGhbvTGAbJwFG/Dm1F9/gTLg== X-Received: by 2002:aa7:8dcc:: with SMTP id j12mr29947006pfr.137.1566304458143; Tue, 20 Aug 2019 05:34:18 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id o3sm5104992pje.1.2019.08.20.05.34.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:34:17 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:35:56 +0900 Message-Id: <156630455678.17444.15308898250025256159.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 6/7] clocksource/drivers/sh_cmt: r8a7740 and sh73a0 SoC-specific match Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm Add SoC-specific matching for CMT1 on r8a7740 and sh73a0. This allows us to move away from the old DT bindings such as - "renesas,cmt-48-sh73a0" - "renesas,cmt-48-r8a7740" - "renesas,cmt-48" in favour for the now commonly used format "renesas,-" Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- drivers/clocksource/sh_cmt.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- 0001/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-07-18 19:29:06.005414716 +0900 @@ -928,6 +928,14 @@ static const struct of_device_id sh_cmt_ .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, { + .compatible = "renesas,r8a7740-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, + { + .compatible = "renesas,sh73a0-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, + { .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, From patchwork Tue Aug 20 12:36:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11103751 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 485821398 for ; Tue, 20 Aug 2019 12:34:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2648122DBF for ; Tue, 20 Aug 2019 12:34:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QtvAZcsl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729383AbfHTMea (ORCPT ); Tue, 20 Aug 2019 08:34:30 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46267 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbfHTMea (ORCPT ); Tue, 20 Aug 2019 08:34:30 -0400 Received: by mail-pl1-f196.google.com with SMTP id c2so2685844plz.13; Tue, 20 Aug 2019 05:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=VvukjUY7yhh1mplnuU0GBYTFIC/QRKOm4rOEw/3nSUA=; b=QtvAZcslZsb3YgxB3Sj3yEhNi5/efLxNzCNroLsr7WgbWDAaiXEsyKWXwNFoqvBVb4 D6XeDlKWLc4YhwO5ngEkyMAVv26w55aUM/wMRfCDtZ4gPjLZ5bE9QjtXDTeAfibYZYkv 719vVeOG5NROCmxaERsw6JE0bgxYe64HG6cAaXfOLWpbSrx04T6zL0GyE1hmnsby9RkT MCwWhUbPkayXJH3PQjNlHe47OPsQECMycxZU4kf7a8xp1wXZcgDwxR3BPV2xB8+wkXiV jUGrNbdIKslkwNuUfQ0paJva6enwDphiyZzAcJ7woUd1XdWEoaNN945g8S50NJ6NweVt +sTQ== 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:date:message-id:in-reply-to :references:subject; bh=VvukjUY7yhh1mplnuU0GBYTFIC/QRKOm4rOEw/3nSUA=; b=uQvVbYfolojxceWW8fJceN5PW73Z6ANzxoMKdnFPnypovqt2q2PRL4iUcVFVg/a7Z4 QY6JMgYtpVAWz8tYG62fM4lKmQ78uyKdsw2nXY2rlYIU+yNDgDk7uaMCisoFmUPghjRJ 92GcIvxIlhnDyIByxkkSB2T4KUhUm6iO1fpd9rDpXs5YV6mLaOprugipEPVEpCoSdKWq L1CQD/U26ktz9EDH4XCPH63W3fEq3Ss3aAOUqug1fIpJkKLjiqfomxZ2WFAXoY6BtkuY Au+uyIrUbh75RCFhXL4L3WMNpJMzhiwcJyziIUrAy10fUNsQ7YahOy5K3arYngnKVDht OkmQ== X-Gm-Message-State: APjAAAUN5QGEo4kGxkPmpHd21xwsG+mH1HppjNKKBfYph3fS5fCyUW7M wiIxQjdJO4sIaAZcXPCgQpM1OgvU X-Google-Smtp-Source: APXvYqy4E2YYJ4bEXvIkA7jnUAYC58RuMccVQk/GnVbuRj6M4HygK8Pgt9JTX7vBHz56zHSU5X58+w== X-Received: by 2002:a17:902:1e8:: with SMTP id b95mr6254023plb.28.1566304469216; Tue, 20 Aug 2019 05:34:29 -0700 (PDT) Received: from [127.0.0.1] (l193216.ppp.asahi-net.or.jp. [218.219.193.216]) by smtp.gmail.com with ESMTPSA id s3sm17522204pgq.17.2019.08.20.05.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Aug 2019 05:34:28 -0700 (PDT) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geert+renesas@glider.be, daniel.lezcano@linaro.org, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, horms+renesas@verge.net.au, Magnus Damm , tglx@linutronix.de Date: Tue, 20 Aug 2019 21:36:07 +0900 Message-Id: <156630456771.17444.15687151782258703992.sendpatchset@octo> In-Reply-To: <156630449239.17444.11157306180861080402.sendpatchset@octo> References: <156630449239.17444.11157306180861080402.sendpatchset@octo> Subject: [PATCH v2 7/7] clocksource/drivers/sh_cmt: Document "cmt-48" as deprecated Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Magnus Damm Update the CMT driver to mark "renesas,cmt-48" as deprecated. Instead of documenting a theoretical hardware device based on current software support level, define DT bindings top-down based on available data sheet information and make use of part numbers in the DT compat string. In case of the only in-tree users r8a7740 and sh73a0 the compat strings "renesas,r8a7740-cmt1" and "renesas,sh73a0-cmt1" may be used instead. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- drivers/clocksource/sh_cmt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- 0011/drivers/clocksource/sh_cmt.c +++ work/drivers/clocksource/sh_cmt.c 2019-07-18 19:31:01.917491800 +0900 @@ -921,7 +921,11 @@ static const struct platform_device_id s MODULE_DEVICE_TABLE(platform, sh_cmt_id_table); static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { - { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, + { + /* deprecated, preserved for backward compatibility */ + .compatible = "renesas,cmt-48", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, { /* deprecated, preserved for backward compatibility */ .compatible = "renesas,cmt-48-gen2",