From patchwork Thu Oct 4 21:01:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10626741 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 DA14E15E2 for ; Thu, 4 Oct 2018 21:01:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB2562960F for ; Thu, 4 Oct 2018 21:01:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE07829620; Thu, 4 Oct 2018 21:01:42 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 5B4C22960F for ; Thu, 4 Oct 2018 21:01:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbeJED4p (ORCPT ); Thu, 4 Oct 2018 23:56:45 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42133 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727489AbeJED4p (ORCPT ); Thu, 4 Oct 2018 23:56:45 -0400 Received: by mail-lf1-f66.google.com with SMTP id s10-v6so7840659lfc.9 for ; Thu, 04 Oct 2018 14:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nyiuG5LJceOfinlxBnDY2n3YuPu4+RIbczzuH0/s1FY=; b=IBSwk+WaAC8LNWth0aVX2A6skR/fNoSLliZy9t/FSHLvrCjFjKVgOd6rF23t0MrUtn hXAkY5bp/GIfTDEPx2jLptpoyImlS9WDvUtfHuYVkFbkZfUbZc8O7FQI3NaWmbAliKAI +F3MBCWNvyZqjVT4CHSW/vz0pAtQgFgUQ7Byzp8s/JPxPj2yWwQ2dN14111kqJF6+vrY ueui4WM7Bh8A1Zf6yQFTHTm4VZwOH3KowEckJeTDj3SZukqWAtvkzcmJW/BbyYvYcmai 0ijLbXSaRx65PQoIWqS27vmNLzVk/PGzmulyPk+2OAnc0d/8zWK/4e6d1ftzJiRscPai Ms2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=nyiuG5LJceOfinlxBnDY2n3YuPu4+RIbczzuH0/s1FY=; b=BDTiWXhUi4xxs0P5UfZ8bVwN+NYP/jsXBDm14H6YAFSYsafFKskmzguBbX50lwVjw4 KOXoqTlTTeM5bM/TLdzsADrGf/JIm6bIozCk83VjIjKqsCXq9pxL8yB5uEIO67jCno+a XdbJG3Ix3pq7t8Ic9qb7KEjF8jjofo649f6jnZONsJZPZQ+nbB2Twe4pdqDbZ7omreRb YwokYC3tcGbR02Zon4z9m9fTpi82pOSOkSgLqzD5cOh+L6TmJA8Z/BtMDSUELbLHBZ4p W7FgVbY6x2aonYGDfHYFFjPqyBQls21CNqi7tAL6iSPGtQrm/+OXkuys3Yk6KeHfYt9W 7vuw== X-Gm-Message-State: ABuFfoj8etbAulQveiZ7YK1EtuWWrk2f80fJ1hYJB3og/ajEsVMRder5 ciZaWiDiggR/R8Ib8464BIGEkA== X-Google-Smtp-Source: ACcGV60jUN1hS+G47WSyKOr0aeouaDicaFOqKMIjsZES09e7Jd3PLmUfTF094bCqlOXZa7u+a3G+ng== X-Received: by 2002:a19:3855:: with SMTP id d21-v6mr4724790lfj.148.1538686900045; Thu, 04 Oct 2018 14:01:40 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.8]) by smtp.gmail.com with ESMTPSA id v18-v6sm1208211lja.26.2018.10.04.14.01.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 14:01:39 -0700 (PDT) Subject: [PATCH 1/2] dt-bindings: thermal: rcar-thermal: document R8A77970 bindings From: Sergei Shtylyov To: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org, Rob Herring , "devicetree@vger.kernel.org" Cc: linux-renesas-soc@vger.kernel.org, Mark Rutland References: <366d8e06-6164-94ff-823f-6b0d1e2d8d53@cogentembedded.com> Organization: Cogent Embedded Message-ID: <42fe460f-0c2e-ec8c-ecca-15ec5a5a4117@cogentembedded.com> Date: Fri, 5 Oct 2018 00:01:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <366d8e06-6164-94ff-823f-6b0d1e2d8d53@cogentembedded.com> Content-Language: en-MW 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 R-Car V3M (R8A77970) SoC in the Renesas R-Car gen2 thermal bindings. The hardware is the same as in the R-Car D3 (R8A77995) plus an extra status register. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/thermal/rcar-thermal.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux-soc-thermal/Documentation/devicetree/bindings/thermal/rcar-thermal.txt =================================================================== --- linux-soc-thermal.orig/Documentation/devicetree/bindings/thermal/rcar-thermal.txt +++ linux-soc-thermal/Documentation/devicetree/bindings/thermal/rcar-thermal.txt @@ -4,7 +4,7 @@ Required properties: - compatible : "renesas,thermal-", "renesas,rcar-gen2-thermal" (with thermal-zone) or "renesas,rcar-thermal" (without thermal-zone) as - fallback except R-Car D3. + fallback except R-Car V3M/D3. Examples with soctypes are: - "renesas,thermal-r8a73a4" (R-Mobile APE6) - "renesas,thermal-r8a7743" (RZ/G1M) @@ -13,6 +13,7 @@ Required properties: - "renesas,thermal-r8a7791" (R-Car M2-W) - "renesas,thermal-r8a7792" (R-Car V2H) - "renesas,thermal-r8a7793" (R-Car M2-N) + - "renesas,thermal-r8a77970" (R-Car V3M) - "renesas,thermal-r8a77995" (R-Car D3) - reg : Address range of the thermal registers. The 1st reg will be recognized as common register @@ -21,7 +22,7 @@ Required properties: Option properties: - interrupts : If present should contain 3 interrupts for - R-Car D3 or 1 interrupt otherwise. + R-Car V3M/D3 or 1 interrupt otherwise. Example (non interrupt support): From patchwork Thu Oct 4 21:03:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10626745 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 3C24E15E2 for ; Thu, 4 Oct 2018 21:03:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AFF326E3E for ; Thu, 4 Oct 2018 21:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C90C27F60; Thu, 4 Oct 2018 21:03:18 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 8093B26E3E for ; Thu, 4 Oct 2018 21:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbeJED6V (ORCPT ); Thu, 4 Oct 2018 23:58:21 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41326 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeJED6V (ORCPT ); Thu, 4 Oct 2018 23:58:21 -0400 Received: by mail-lf1-f67.google.com with SMTP id q39-v6so7836822lfi.8 for ; Thu, 04 Oct 2018 14:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8CU8kSAHmBmTSwt1TZDHlvyLUXlfoxAeu9CPTjWg9p4=; b=nhGnhGe5x9xAH8W4t9FommDRF5pVYWmOe2YB1Wm6bUrerHFTupErZ6NG1KgMBd3x9g 6MfI5jmS+24WGJ96TpvdNo89rhgXeiLj51G3UPsBoFb6rSR+6Wze0hTdVcshaeCYEHlx 1zQQqaF8eH9/s6CKX9hWtYKV2Frv9F2/PiE7Jl7G5F1QB7/ZhNMJO031Z+PWV8rl4h9L 4Nsjh2Cc3IKgIfrRIt69XfAitjl3Ma7beNQ6QxjjSr2Wc30WBeSUylKFPFHrOSgvkx9E agTzuut8GOQqaX8tetGOGTctvkjHpTw954X6Vki9QLZshF/7x3MKHlFOTSMKglzbe5ku 7kAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=8CU8kSAHmBmTSwt1TZDHlvyLUXlfoxAeu9CPTjWg9p4=; b=nwlaK04NEYmO+y5S0ZFb3WpUFKQn5Y/TvS/J0JBOI+wC/Jk0//IXb1jcyNVwnzKxj8 Q81k2Qe0cy6Qn0Gb+dqU1drpM1kkT8jFaNpfwPGzx+kfWisrfqtvi+my03bD5slHCZ+D aHlDEv+mzAcfc6eK1g5kdfSHU5MYv0YH7QQ1ZmYDVMUpeV9NDKNM0y5ouYFUJq969Ckl 3o3dxL4+7E7/Pbvva0nrEVk/SL/AYMMsVc2T1OrFgAc+ufe9MrX0Ni72GJ1x4FXH4jYa LyOJ1BFuBNymBmca4iP6xACnTQYvKqQn784ByyYnljdlehbSmvEyCHP5+SicE7tWH1mi rlXg== X-Gm-Message-State: ABuFfoiDay+Yp5g5MUqe4GHGC7tkOQj86PnimRimzQp8tAOKlnSLocIB C9K2mxOcSEAi/mM7AR2QKlqUghp+Kwc= X-Google-Smtp-Source: ACcGV60pWTBjuMENwZZko9UPJ9fue9cstSYvLoNbrRbKArl9hmoyu9fm0RiupPZnlZkVLtoVJNPQOg== X-Received: by 2002:a19:3855:: with SMTP id d21-v6mr4727091lfj.148.1538686995467; Thu, 04 Oct 2018 14:03:15 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.8]) by smtp.gmail.com with ESMTPSA id q13-v6sm1296091ljj.72.2018.10.04.14.03.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 14:03:14 -0700 (PDT) Subject: [PATCH 2/2] thermal: rcar_thermal: add R8A77970 support From: Sergei Shtylyov To: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org References: <366d8e06-6164-94ff-823f-6b0d1e2d8d53@cogentembedded.com> Organization: Cogent Embedded Message-ID: <65ec6fcf-931a-a807-af1b-f204c03344f0@cogentembedded.com> Date: Fri, 5 Oct 2018 00:03:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <366d8e06-6164-94ff-823f-6b0d1e2d8d53@cogentembedded.com> Content-Language: en-MW 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 Add the R-Car V3M (R8A77970) SoC support to the R-Car gen2 thermal driver. The hardware is the same as in the R-Car D3 (R8A77995) plus the CIVM status register (we don't use). Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman --- drivers/thermal/rcar_thermal.c | 4 ++++ 1 file changed, 4 insertions(+) Index: linux-soc-thermal/drivers/thermal/rcar_thermal.c =================================================================== --- linux-soc-thermal.orig/drivers/thermal/rcar_thermal.c +++ linux-soc-thermal/drivers/thermal/rcar_thermal.c @@ -113,6 +113,10 @@ static const struct of_device_id rcar_th .data = &rcar_gen2_thermal, }, { + .compatible = "renesas,thermal-r8a77970", + .data = &rcar_gen3_thermal, + }, + { .compatible = "renesas,thermal-r8a77995", .data = &rcar_gen3_thermal, },