From patchwork Wed Mar 20 13:18:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10861707 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 ED97D18EC for ; Wed, 20 Mar 2019 13:20:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2F7D28A93 for ; Wed, 20 Mar 2019 13:20:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C764629BE0; Wed, 20 Mar 2019 13:20:14 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB 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 7957F28A93 for ; Wed, 20 Mar 2019 13:20:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728354AbfCTNT5 (ORCPT ); Wed, 20 Mar 2019 09:19:57 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39973 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728070AbfCTNTz (ORCPT ); Wed, 20 Mar 2019 09:19:55 -0400 Received: by mail-pf1-f194.google.com with SMTP id c207so1922375pfc.7 for ; Wed, 20 Mar 2019 06:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=qKXF150NnoD6hcYF3ZEcLMoM6yEN8jPT+N985toWhiQ=; b=jY9OC/Z6mfCscuQwlqSkewP82zJgv7CWpnTSmleHgo2FrKtoV3ptvqL97VpzbiTwEI ZNtbTifHoKSXeXij9/9HwZGFezGjtWGbq2cJgvaTGy4ZpiLfigLW/70WimfaARhyo/Tv DoLuBoAtMHC7QhoxFwIa2LbT9vu3KKfgWxwyEqEUwtU8YpIz0xoOhquRmFMCUDyRl3gD 49xzbj/gIgkrfZGuLZkJsrWJ/i5Cls0T5e5rTzc4GSsxpmTSQhhnby4J06X9vHyg7XCF osz+lzlU3BQG7zX0twU7PFkPIOdcgTbksCs3zCE7Qoz5D25kt2Xd8af64qsViQzh4ZAX AaHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=qKXF150NnoD6hcYF3ZEcLMoM6yEN8jPT+N985toWhiQ=; b=bArxr+IhakWrCUOMA/zOY5mB4Dht8KiQ9I0Zr27Rdimt3Fh6KJSCgczgfiL6yltXYy 7BlG3n2CFzyfHGsSbdEiNEibC39PRhofBdE5Xa6RlmPcmw2wDy6HfBHDQbHre3rc7ufm boc5I2pwd2A4svsorkihyjR/YM97K5Dn485z1XjCiFn3x6cIZzToWqTRo4vMOz1JmqbB 9VcfwQ2Kdzm21XJTfI1+XCYVGl/P0B49mDDhVux9fEwZOPjkn3WSfn2qZ2lDEC6RMt5Z P5drQlB+pYS9LipIo7etLN1iq7JrVqPZIiWS7UNc+pQrOcm2y/9NpDyqnAc3L0rnALyJ ZdpQ== X-Gm-Message-State: APjAAAU9UZNsWjf7mEjEm6bkpiEi/nd8kd2K316my5egxGjd7MJ+ToTt Ay3BfWZQ5zeTT2tLIDL6f0+1uQ== X-Google-Smtp-Source: APXvYqxz0UegrVHveHgDSEx6nF8KGAopmxtg/BvzmMacHjUpaKd19eBkAjlC5JCXR4AXC8c9DeGqWg== X-Received: by 2002:aa7:9088:: with SMTP id i8mr6087166pfa.118.1553087995113; Wed, 20 Mar 2019 06:19:55 -0700 (PDT) Received: from localhost ([114.143.122.221]) by smtp.gmail.com with ESMTPSA id l28sm6945655pfi.186.2019.03.20.06.19.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 06:19:54 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCHv3 21/23] arm64: dts: qcom: qcs404: Add tsens controller Date: Wed, 20 Mar 2019 18:48:01 +0530 Message-Id: <9108372823aba9288b98b1c8a003c21b578d1e13.1553086065.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP qcs404 has a single TSENS IP block with 10 sensors. The calibration data is stored in an eeprom (qfprom) that is accessed through the nvmem framework. We add the qfprom node to allow the tsens sensors to be calibrated correctly. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index e8fd26633d57..7881792980b8 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -259,6 +259,16 @@ reg = <0x00060000 0x6000>; }; + qfprom: qfprom@a4000 { + compatible = "qcom,qfprom"; + reg = <0x000a4000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + tsens_caldata: caldata@d0 { + reg = <0x1f8 0x14>; + }; + }; + rng: rng@e3000 { compatible = "qcom,prng-ee"; reg = <0x000e3000 0x1000>; @@ -266,6 +276,16 @@ clock-names = "core"; }; + tsens: thermal-sensor@4a9000 { + compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "calib"; + #qcom,sensors = <10>; + #thermal-sensor-cells = <1>; + }; + tlmm: pinctrl@1000000 { compatible = "qcom,qcs404-pinctrl"; reg = <0x01000000 0x200000>,