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: 10626743 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 DF1B214BD for ; Thu, 4 Oct 2018 21:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1F582960F for ; Thu, 4 Oct 2018 21:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C632E29620; Thu, 4 Oct 2018 21:01:43 +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=unavailable 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 790622960F for ; Thu, 4 Oct 2018 21:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727489AbeJED4q (ORCPT ); Thu, 4 Oct 2018 23:56:46 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46292 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeJED4q (ORCPT ); Thu, 4 Oct 2018 23:56:46 -0400 Received: by mail-lf1-f66.google.com with SMTP id q2-v6so7825264lfc.13 for ; Thu, 04 Oct 2018 14:01:41 -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=R/gSseHKNOpcnweOK2t+LETSPZ3XMr3rhWEwhAowaAu/TqiyNSAhrrm7CWgiK9zUDT QJyxSqpVRuEcdqJQx88wxSU0ffj2Q5gue+GCIODI90G2AVR1Bv/fTfUaeSyGSdXCqL1T +j94WkwlJvVBbz3fV3vc2MI2h/fQ32TygfrJLqEwyLKe0HN/XZXJZ6w0wqTmUnneFSUC Hv+7mr/wHot0ST5Ih6RUGTdz7WjqzlrAjdGFZaR/qcKM0xKCEtH6GvmlYZt+0wfoh84V EUyIcgTxYCufjz9CYD6E6uHrrxZ2apcQQTOPpKm6pIw915Eeq8Mym0BSRC7c+vw3yAqC WRng== X-Gm-Message-State: ABuFfoj0OuubBqH5O+TGYbSBtpXAhEhoI/JrxvwhMpVkFKK/Q61hc1ej nkKIARGwtTq5gzd74yMC5biK+g== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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: 10626747 X-Patchwork-Delegate: eduardo.valentin@ti.com 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 96FD814BD 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 89B5B26E3E for ; Thu, 4 Oct 2018 21:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DC572793B; 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=unavailable 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 3318F28426 for ; Thu, 4 Oct 2018 21:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbeJED6V (ORCPT ); Thu, 4 Oct 2018 23:58:21 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35808 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbeJED6V (ORCPT ); Thu, 4 Oct 2018 23:58:21 -0400 Received: by mail-lf1-f68.google.com with SMTP id r191-v6so7865314lff.2 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=N4xZgw+oBBteYedXtKPHp64mGlNpnY+PV3Qwp7L9ceaN/OPgN4c2nPoRvCn1JMa9MV kp0Sul1e1XtIhqybVCWp5VoXn8pSzx5ncCva1TWn/jM294kQbrSnpyGNIig3c/OZq9c/ S0MNSCnN10NZQ6tNIUSxBVXRnjG04Pw/EIrMQVI0BVhGXCXvMpTCCaFM/gJZS2JvA2Eb kyEBH/fddld784iakw795u+V9K1iYMZUJi3DYOQmfdBE+836bXUWVlSmKeFu1PmE1ekm vuh6Tao7hNIqPhNFaYr89T+SB6a2zKEhAUMLf1Q2pXDM7D02e/8VvzKaTGJW6SLYeHBq d/8g== X-Gm-Message-State: ABuFfojm/FOmr4ipA6hSlFCovEJUiLnszPI5LmJ5IruFnhp/MnG/56UW /3ADRHT0UE9Mm8Bq4OmL9PL2ZQ== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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, },