From patchwork Thu Jul 18 11:44:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048823 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 A36C76C5 for ; Thu, 18 Jul 2019 11:42:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 920F0286D4 for ; Thu, 18 Jul 2019 11:42:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85CE228779; Thu, 18 Jul 2019 11:42:45 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 20B39286D4 for ; Thu, 18 Jul 2019 11:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390212AbfGRLmo (ORCPT ); Thu, 18 Jul 2019 07:42:44 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:42414 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389994AbfGRLmo (ORCPT ); Thu, 18 Jul 2019 07:42:44 -0400 Received: by mail-pf1-f179.google.com with SMTP id q10so12499438pff.9; Thu, 18 Jul 2019 04:42:43 -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=pA1p9SQmsthhyvWExkbUHd//8HZUcj8m/l7tDDbT0MM=; b=pe1VaIKbRCZ9wydTjHetPd5GXaeXZmJJ5LSXTi3f8Eb7DHxKVU4sUM5qjJDhB4GsX3 I0KZmRYLGBoAj3tME8k/JuXBxdjN5zipJLHPDceqTPZ8V2LMrZ4IyaP/3pT5Sa7oqKIJ R4vAztZnWJlKcjj74sA7vG83KgdQPLYqc1yfGcr0djhPiZ00tMWOSkaFhWh/gPKq7DJk iA8s38EeAN7qcReyXNIsqPAGaSn4UtGguOkt2cO5dYwsSmZlw4A9kQK5GdGWXZWgNT23 lWEabiyv9omCkUKRWRQvrYmIftNUyLCm41rXPEgPI7mwDL0XgpM4VZydnG8IkEvwsVa8 Ck3Q== 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=pA1p9SQmsthhyvWExkbUHd//8HZUcj8m/l7tDDbT0MM=; b=s5M4vG6cMGOdrXykxJ1brkVnHZWrLJ7F0prYUi258iSTFwYBVSeQKpL8AYK3rUF1w1 6MUJ8FgVxULjnSVS6sQU3ZaWoOD30btkREXCsZaSeVaFLeJLaBXBAehNtdbJXmK+7GXY G2EqFNIW8SoaKOfpD8A87LOlRq0uxkIFOFw0ZGCzEbOypw4gke2Yr1C/rS6IM9+tyC7g qsEj1xZ2Gwqeh0J6aUQ6PZsD2TS+XnWqY6zFBzk5de+uuK/1p+CjxhtmhuvuoMrLPEDg vvmjiG2wfiuuOR+yP8X52BdgZZ2PyX9PT27zbyjMC+QFc860zCRpvOLlVOWSH5M5Mf+M lykg== X-Gm-Message-State: APjAAAU4vefI+0lAmUU0e68xQQcFtZJEJNkWwJTYa21oGY2x9zSU8A6v BKT5qqYPsANuo85MO9xiIraZiUwl X-Google-Smtp-Source: APXvYqwgZ72B5yzDiWFdF/vhhUSMlGG3jVVcE/1sJM4mls2IIPD41T5i/b/aXHaG8fDJC/4NB5Ba9w== X-Received: by 2002:a17:90a:7788:: with SMTP id v8mr20475991pjk.132.1563450163197; Thu, 18 Jul 2019 04:42:43 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id r188sm44533047pfr.16.2019.07.18.04.42.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:42:42 -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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:44:12 +0900 Message-Id: <156345025207.5307.17135263586186534810.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 Thu Jul 18 11:44: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: 11048825 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 8808A13A4 for ; Thu, 18 Jul 2019 11:42:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77EEB286D4 for ; Thu, 18 Jul 2019 11:42:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B8FA28767; Thu, 18 Jul 2019 11:42:59 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 1095B28779 for ; Thu, 18 Jul 2019 11:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727914AbfGRLm6 (ORCPT ); Thu, 18 Jul 2019 07:42:58 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36287 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfGRLm6 (ORCPT ); Thu, 18 Jul 2019 07:42:58 -0400 Received: by mail-pf1-f195.google.com with SMTP id r7so12510956pfl.3; Thu, 18 Jul 2019 04:42: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=5Hwya+Wwg25VnCncH+8OKitD1ukfwLEFFxcSbFbJqkg=; b=mZSJIysQLYlHpV2TFVwv3SFVKuNFJjKBnMpOf7HkCRwag/rztCSCIgQZoWNDvWSj3v foU3KqCPRdx81EbGvHDb6qLPFQ0l6OyCVGePpBHKnzLZ0aCAaP/KVz7K/r8xOP0AuerS fwv1lVD/hLFdQ1fKU8jPFHY28+4JG+4hadAIjl2yaBK4I+ns8J5nWM2BU/jKNtgQFY07 oA764nz2tJCf9TjFu6frXUhekC0DaF21pGNhZWXZOs8obcA4d04OxZnvS0k/Eom+KdQp SlVcS3MqKTfH8i18JpjZt/t4JW/VPI6e+cBRISE96q3pAYv1mL4Hiw80ML7QZ6Je18s8 Bxdw== 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=5Hwya+Wwg25VnCncH+8OKitD1ukfwLEFFxcSbFbJqkg=; b=dD4HLoN+9CfAA9Ver+YLnS2RyaOi6l6itiD96ngjQYtZrxejMQ3jLT5cdVy07/WnHc EYpd8oPEshmyQXFs+GC1mNLgSb9SLsCECWn3VDkSFz/l9Bm+Js8AMPR0JKexBEkiXD5Q XOoYSq4X9FW/TV2SxrF1q9kjC9gRjJqzLMrcW51nQ5Ngu+7gO9jExAcBSu3d7tOvaLPp qWHDxEAwMWaXZMHota9L9bjDMBGTuNeUJBS9+E8wtBXEuRoCH5UtS/6UKz7rZcIFhRNt hgQrWmplTfqO5axwEQMJ47BcCN1dj3nk/wTiFe1fh3285pByt8FWt/qaPqbO7FCKrPGp 8qvA== X-Gm-Message-State: APjAAAUBWoezQJoplihg3LuJQTqa94kpwsxndLAzuWdXToOQUx3tn+Hi 5kmufWbbdj4bXePqt0xQ7vyD/7IT X-Google-Smtp-Source: APXvYqysYbJ5rimAhnv0tnpMVkuC6Ue1IatcAOSeQ6GTQeJPhS72UvlqNygBxLShLbeKIOhx/9X5sA== X-Received: by 2002:a65:4841:: with SMTP id i1mr47001893pgs.316.1563450177159; Thu, 18 Jul 2019 04:42:57 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id 143sm43840115pgc.6.2019.07.18.04.42.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:42: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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:44:25 +0900 Message-Id: <156345026539.5307.17098096827162445534.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 Thu Jul 18 11:44:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048827 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 D893513A4 for ; Thu, 18 Jul 2019 11:43:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C531E286D4 for ; Thu, 18 Jul 2019 11:43:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B566528779; Thu, 18 Jul 2019 11:43:16 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 65FB8286D4 for ; Thu, 18 Jul 2019 11:43:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389994AbfGRLnM (ORCPT ); Thu, 18 Jul 2019 07:43:12 -0400 Received: from mail-pg1-f181.google.com ([209.85.215.181]:36155 "EHLO mail-pg1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbfGRLnL (ORCPT ); Thu, 18 Jul 2019 07:43:11 -0400 Received: by mail-pg1-f181.google.com with SMTP id l21so12786490pgm.3; Thu, 18 Jul 2019 04:43:11 -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=lHm/SnAy3z7GpF51kHy6TrQ8kpH1638yiyjDOGq15/Y=; b=PPiVFn6CGKhqfkX7njs3mE+1vNFJWNvSKB7nECzgWnVF+Dtot3jDXUySnQyHFzhIwl TnlxI3tzatI2j6WKibZGz9vlhY/w9lvFqJ5XpI4f+DH+wvumuhX4AwuqQ4tE9X1cdIqL FpvPbum/2hWZDw3FURLuQltgsn4yFkuLXf7CsvQjGBwwozcmP8OYvgbZ7AMWuvD3asL7 wlVAsvS5yCQR1j2meM3XC2L2L2mJ+TgGKzJ40DXZqzMhEa2OrsdIQxaaDUvZILTdkN0c D9tQzad62uhiOEndNCtZTqba1VrEpru7ieSjnP39x8X5EXevJ4wAisFvMPanfaGg/rMa x5kg== 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=lHm/SnAy3z7GpF51kHy6TrQ8kpH1638yiyjDOGq15/Y=; b=FgTyG/knW+3WKRS1JZAGcPS3U9ElS7hxLAB9DGAtoVGM4opeppkik31J0+Fb7Z78QC joLmXK0f+of9Ll7FZvV8+LOJJFYxLCMvnKL6ijbCxcFtM9scrvS4p+svcdrER8UfbHZ9 iZAjXCkJ7WmdfOHTxGFmKDIipx2gWHZZNMX008DCHFjgKP1jduxpREgU2YoMd4TjcF1Y 4hrmpTOoesugpDNnjSx6WqqS1dViN49ihKQne3qeTkANi7umXJZKf582Yby4LrxIjIiO x+QBa/NiHCoe6jYXkDhRXRikDy5/xSew8FYhCsZ0zVnx2yc7TJiyxdBBKqtJ8HOWLiTI mPcw== X-Gm-Message-State: APjAAAVX01LbgstGkzEdRirzr8rxHLrP+oBP4Lh9DaUWQx4uUlelNQBY rAG+X366ZF/mdhQNenfoMfCfP+Zd X-Google-Smtp-Source: APXvYqy5uxWCqnR38AUskc5el0oSCe8s0o21ANA74xpa8c4PVSgcg2QO6yC8EPmnkvmsBQQaDFLGtA== X-Received: by 2002:a63:d603:: with SMTP id q3mr1397852pgg.0.1563450190669; Thu, 18 Jul 2019 04:43:10 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id c12sm11443410pgb.83.2019.07.18.04.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:43:09 -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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:44:39 +0900 Message-Id: <156345027946.5307.6314778386600420219.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Thu Jul 18 11:44:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048829 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 1FD7D6C5 for ; Thu, 18 Jul 2019 11:43:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E6D2286D4 for ; Thu, 18 Jul 2019 11:43:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02A7428779; Thu, 18 Jul 2019 11:43:30 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 A9099286D4 for ; Thu, 18 Jul 2019 11:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389956AbfGRLna (ORCPT ); Thu, 18 Jul 2019 07:43:30 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:39266 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbfGRLna (ORCPT ); Thu, 18 Jul 2019 07:43:30 -0400 Received: by mail-pl1-f173.google.com with SMTP id b7so13777489pls.6; Thu, 18 Jul 2019 04:43: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=tPePu7pSpTPNOXIejkRoYY8GOOyZlXM/IzBHuBk3B3g=; b=N96848BJBSzFJUeK5OtYubF/48VDV6scGTObyO76Zsyq/Q7czfeEVKcwSGiNQiU+yw XNMBwiT6XdwcwZjRnWxw+XEGSj1TIZTOSwgFTPrLd/i3iuDUxY5tCtUX6C9hwBKisyGz YoyblvqwYh4TnNexMaDFSi1n+VWUdptMULkHB5dXWCJ82vRmRoqN5tC3/JiBh4RNdbIB +FwZnH2HL0eKOyg0OLB98ZxjEOB5rp1jlkrK28NDS4LSzGbv2OkLKRkeIk1CTthy4qBK hdzN06o5aJfqpK9pzMJqLRjq5JfUMntXvRRd+ue8syvEjSKO8E1bhnJbrU0YhijxENR9 LMXA== 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=tPePu7pSpTPNOXIejkRoYY8GOOyZlXM/IzBHuBk3B3g=; b=GRRODX9jbE6fe00l1xFmdoWCQMOI1ORnIhMMyH9R6aOrEgv2KK7pEhhkcoPrloRdwo gFCDgRipnBtsxW/tWgbJuW8PM6NOOVKTzXteQ9Wky2eBiem6quOPTO7XQ2kWI680ha90 WT3S7zjwPVIMsh4UWN5HGwR+RY0QuaRpjAJXOSmX74BCJDMjErH9rNkx6iAToY3zqE36 OP2au7DBHttSJIqLcVO9Ztrx5DChKCI8pYP2PSuebiVKwDYWEAUyYtT6LVGue/ivpDxW TnUAKySWFD9+NO/s1CAydm8ScLD1fTf1ADRg4YAZ73qHGjNVRYGHNyE1Ft20QirnwUZL C1fg== X-Gm-Message-State: APjAAAUYZ/lg5Jhv/gA02oQLAr3jDpRI81szpiKbgMRo04sKSrrXa0AD AmkUJ9WNMbBxez26Ie0xZtVXUxCR X-Google-Smtp-Source: APXvYqx5cB9psRdWqvSaNPzT1VMaszaZ19aUpmz+gk+vl60WQsCY+xUmzn91Xq0QA+mCSyQDSuz7jQ== X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr50187014plg.62.1563450209272; Thu, 18 Jul 2019 04:43:29 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id r6sm51105864pjb.22.2019.07.18.04.43.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:43: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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:44:53 +0900 Message-Id: <156345029298.5307.13303613183227788698.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Thu Jul 18 11:45:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048831 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 2FEA36C5 for ; Thu, 18 Jul 2019 11:43:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F447286D4 for ; Thu, 18 Jul 2019 11:43:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1346B28779; Thu, 18 Jul 2019 11:43:46 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 2AE96286D4 for ; Thu, 18 Jul 2019 11:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbfGRLnn (ORCPT ); Thu, 18 Jul 2019 07:43:43 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33221 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbfGRLnn (ORCPT ); Thu, 18 Jul 2019 07:43:43 -0400 Received: by mail-pf1-f196.google.com with SMTP id g2so12518745pfq.0; Thu, 18 Jul 2019 04:43:42 -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=0uFR2lJJHAQXqBn4mBCze4q72PnDPTYuv0ecU5Uw7sQ=; b=VKQ4wXQXhFTrGD0EtuGQOAqQOtV4g0I4DIxlZMtFmrSq0r7MnxHoxxCyWZUR5ezUmI He42Hkh4Fe1CBLCWhYfeXvdhlKKXJuxaddXZJsk8A7EDpnWB9vuJhV7mI/gd8FdtBPsY iNav4jErZufz3wGFGPi63EKZqyTp487wkMSRwNnVtklUuJQJ8ygj+N6QRJVPzzF5CS6N VviUxGquCTIss347lVzuHD0dcy4A8PkErgd1MdEBp+WjrWzDK0JVRG6gcewkwjUGm+K0 GMrNlHwIA2fLkpYC3CgJcVmAVZddnOL5sqam7n+iQRoOsiUfLGREXAEjFfEGhkHSkHsr Ouvw== 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=0uFR2lJJHAQXqBn4mBCze4q72PnDPTYuv0ecU5Uw7sQ=; b=pKtiTMSI8Y09bE3Cg/0xBGIduOym6gSYxUZOYWXjwf2AzgldBhvKU5ZbjKyAsAcy6Y 6xClKMfPCrm0cDwK0SnCsK+jAduf0RFUPDvoDlAj275HMgEo5xVkgACrXye5Yo6t5WZh Us7Z6KLC1OzvbnVcSmwRme8+wc1xnyeIFSHLRusUE+hX+NvUd8uMCFwT78ZFTnIgcag5 UsUdPi5GwPD376HrSFoF1MavHd1XjFRPYCSxvi6l9ycPBZY1RvvSXZif0SZZ3vPr7GZ/ JWIlYeJbxNyIUxb5sv8emb9A38ITsZXM9jpNGuqvYHafvelSM0V22v+01sKZD1TT4xIY A2LQ== X-Gm-Message-State: APjAAAXL+3H6G9NRLlhzP0oolz0KNokhHc7AmIFwO/XVOD98w0uDDVez 4psUuEuRy1LqZGxucYowIoIbT5Uj X-Google-Smtp-Source: APXvYqx6bxEFHCw9GHz9AL2aZa31wQvU4mp+dWDRUjtLvTYN6lC4B72MY/vTMVGKMhkJMF9gzV3Trw== X-Received: by 2002:a63:b46:: with SMTP id a6mr36867501pgl.235.1563450221781; Thu, 18 Jul 2019 04:43:41 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id j15sm30169776pfe.3.2019.07.18.04.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:43:40 -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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:45:11 +0900 Message-Id: <156345031152.5307.4388075759256453367.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Thu Jul 18 11:45:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048833 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 638BB13A4 for ; Thu, 18 Jul 2019 11:43:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 519DC28767 for ; Thu, 18 Jul 2019 11:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45BA328784; Thu, 18 Jul 2019 11:43: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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 F3E7128767 for ; Thu, 18 Jul 2019 11:43:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726715AbfGRLn5 (ORCPT ); Thu, 18 Jul 2019 07:43:57 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45893 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbfGRLn5 (ORCPT ); Thu, 18 Jul 2019 07:43:57 -0400 Received: by mail-pg1-f195.google.com with SMTP id o13so12770968pgp.12; Thu, 18 Jul 2019 04:43:56 -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=IGzz/j95f1SCm6JxIZBHarR8Zr/45NveZScDEByX+FA=; b=Pn6e3M6cmUUJXwpH5V+kSi/GAKBH2dMqGFvxp/ZpDZ5KWU2fPgyJRIr/D+DSZCWhaB Pueg+7FgQgBukLcazFSKSXIMbyKAP+m8BfQjN3412JXYRiTKW7YJOkhvEMBHfZj+dQnb nTJvL5a5P/JGU/TvM79wsQ1Upkb0uZQG/n2sDe+e6Ux9zVp4TQKo4hWBUPLWytiSF40q ILchNY5souYmy4YCty/H0nXP/9ZM84JeEbE1o628EtOl8QuEnODqu9UhC/8cpzW12ALM QdM22XHdlsH+SJTnHS82pydXIz0257iGVn9hU5RvqRB7T4ZCPcGzdfPZKJrBYnsvgKM2 o5Qw== 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=IGzz/j95f1SCm6JxIZBHarR8Zr/45NveZScDEByX+FA=; b=LXmeMNh5gy57l0Ka8t9dja4KLXWpoqcQUjkFXCQT18lVZT9YvXizhiXyJZgMHjFE6h AIHyPf36/51/vbc6p2z7inuZkGoaMU6fAGlZrot061b2Bq/JKZvRzAMXwus9jVqkql/W 24ZSyZ+O5O4ls3YBuMIEl1gCviju6WYJnbjaFs/gUHubthB5cBMH7tU6b0NVog2YP6P7 M9ri0vWXAvAsAcNG+1mWU/w3G3C2P9KqqxEodVHkQKZryNt5YLfClNBAID82KffcVOlv rvMtbWP0ceRXWxImDnfhsihy0CCx93RrG5c4rL2Ls3K9Ujll9wgoyQuOjJ/DZXHgdY1b HuOA== X-Gm-Message-State: APjAAAUko5Y5pR0pwCxM6ZZ970lR8mNmvGg4hEu28DZ0rsRUuPqBcjWO rdpx5PRoDgWxriBuKt7Xk55DFGkA X-Google-Smtp-Source: APXvYqx0SuuW9UZDBzwqmepbneO4j6zQjBnRObwyEe0onLOEwDx6yk1Kk4TAS4UIpLd2GnXhuKQ3RQ== X-Received: by 2002:a63:fe15:: with SMTP id p21mr47770944pgh.149.1563450236000; Thu, 18 Jul 2019 04:43:56 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id j15sm39116123pfn.150.2019.07.18.04.43.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:43:54 -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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:45:24 +0900 Message-Id: <156345032407.5307.16702422867507502597.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 Thu Jul 18 11:45:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11048835 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 4A8AD13A4 for ; Thu, 18 Jul 2019 11:44:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37DC328767 for ; Thu, 18 Jul 2019 11:44:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 295DC28784; Thu, 18 Jul 2019 11:44:10 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 D2D9228767 for ; Thu, 18 Jul 2019 11:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390030AbfGRLoJ (ORCPT ); Thu, 18 Jul 2019 07:44:09 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43592 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389994AbfGRLoJ (ORCPT ); Thu, 18 Jul 2019 07:44:09 -0400 Received: by mail-pf1-f194.google.com with SMTP id i189so12507554pfg.10; Thu, 18 Jul 2019 04:44: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=DeKDZOFHUlI3nMz/EaT1o5xWxfybZf2zd27CHn8oOdg=; b=r+zSM5opOHjy7dH4d7v0u+BRJBKTy02dx42DCYFCSSgH5tsJvbfd/kPkhrAfVOLScA YfBoN6vWyD1zEBAobw/aSdJX6ulvvpLC1aBNxZn0uvt8eGc8Vb8OC90ekh4DX/iOYKIw +H/nrgue0rfam/MkX1gLpzub/79AepLYPWrr9oDTNFEKu07KQG5g45aRcB8nBfUvnYBQ iPE6PR9DkS7hQ3uqDJdTwzRsdNcGS6SUabUDUgHv91VCXIigIxnNeG+QMsBzs2ZcSMiM YeT2Zv9Ozqukq7Wxagdfgs3wXc6ixzvXjlgHG3E9wJQTnq1/nYjtDatSlHctEqau8o2C IjMQ== 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=DeKDZOFHUlI3nMz/EaT1o5xWxfybZf2zd27CHn8oOdg=; b=mJ9DAxRnw8AdqEZfvZjtX3GyYbyqDECxKYqutYHbuZZzlhZwZ8IYteohP5xSbxOzP/ JtJ16Hz/EapcemsHoEaMT8BPoW+O+tvoQ/S3bj/5CUA2WsWZYIY8uddjz3QV7wthiRBm oJl/nponhVIAQnzUSgig1iaHjeupP28kf4Z5gbFT7a2MeIuQH4wigKz1vRIRVy/mNyKP NI9t8lJ9yfPKX+qA3YiutSevlDmDuGNwm3NiVCFdwQ69s4p3pB20PxRbJlWtHBqHLBed IgId0ZSxZKUXDaEltsIlQqtUwS3iSVXZ4KycokloZH9EQh8Ok7xKnkXSZkoMJTi2eaPT 69fQ== X-Gm-Message-State: APjAAAXGqwfA3inLr+OI5NgFd+E5hT0Zy1khsxxbLMNvWWTMsfd1GlKf k13TQMlugDH9JfzO6MyyxGDp1Zxl X-Google-Smtp-Source: APXvYqyF+H2dhW1xjuLVeOTGT0sUgQRDWKxiKNoilbEq5kT1jdbnra2GxR7P7K2S2nrCzL4vBkFmUw== X-Received: by 2002:a17:90a:db52:: with SMTP id u18mr51038726pjx.107.1563450248226; Thu, 18 Jul 2019 04:44:08 -0700 (PDT) Received: from [127.0.0.1] (FL1-133-202-12-40.iwa.mesh.ad.jp. [133.202.12.40]) by smtp.gmail.com with ESMTPSA id b136sm26298472pfb.73.2019.07.18.04.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 04:44:07 -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, Magnus Damm , tglx@linutronix.de Date: Thu, 18 Jul 2019 20:45:38 +0900 Message-Id: <156345033835.5307.9206628986166423962.sendpatchset@octo> In-Reply-To: <156345023791.5307.6113391102648394591.sendpatchset@octo> References: <156345023791.5307.6113391102648394591.sendpatchset@octo> Subject: [PATCH 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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",