Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2675496imu; Mon, 19 Nov 2018 04:27:24 -0800 (PST) X-Google-Smtp-Source: AJdET5f0WBy4ixfKdi8P3DuHxJ8i5bD5PlrgYa8XIHwhsPWMazyizbakYpzYQBomSmQNlKJLjyMi X-Received: by 2002:a62:d2c1:: with SMTP id c184mr13667260pfg.248.1542630444087; Mon, 19 Nov 2018 04:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542630444; cv=none; d=google.com; s=arc-20160816; b=Yz4owOsDgT7HyrCQWB57BfJ3nryPOpAIL98XekH8CnWubG3/FFGwBR2RM6JhOh75SP JNzd20fpqrhdq057bJoeBdN3Hw9aK7Uuv+1thsxqu6gi+fRk/rpPSzmKRCNlK4yz74TA rK5VzPrxa6uYc4Bq1n51gWUz2UV6xMsA3RwHqlIBE4/dXZgd/QKjnDGXKc5rLYBVb0qv 8AVtoQeT4uC+uJa0fLnGk3LiKZrHQdBg/ogQOcigb9lOzzKMc56LpQuy+/3lBIhP7reh zT/SROkqfbc9ps0YT37FkWEgAWZIMoSyBH0UfrxJp8NlzWzKvnuqNGLWYWuYsAVxmaXN 5YCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=vbujpZlR3xwCQtHN+6i4d1gyZCoKcwoCzl86pAegAMo=; b=ZnRBJ8QF+sga44y64mNmysCPjKdd9K0n8ClbQ91PIR/7+qZW4F3YR3KNti6Ka9RePm ediaGcbGFl1A8lGDD4R8wqWXVJ5LUv2LDew428altlSomTnB0k9k493DdhFsPymyGOOH IJ0bTxfWe9ZKHn3uSxRTlvHUm54vHT6qYavJtInIaP2I1W8mIGXkwH05RSi0Ewggou8j PUqFi+Ge3D2QCpNXtpcv0ATGoX61uJDdajvMIlWopS2wKpximoMqj5EE0SGpEyvI4/kR rbzMyZr9oQk1FOuUcnAmN7wJExwvY5w2am7wmzpeSfL4EaKWo5nCoeUXGWl/5igTBQgp OaWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="G/8MFWFL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si6675383pfg.185.2018.11.19.04.27.09; Mon, 19 Nov 2018 04:27:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="G/8MFWFL"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728865AbeKSWte (ORCPT + 99 others); Mon, 19 Nov 2018 17:49:34 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44323 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbeKSWte (ORCPT ); Mon, 19 Nov 2018 17:49:34 -0500 Received: by mail-wr1-f66.google.com with SMTP id j17-v6so31811932wrq.11 for ; Mon, 19 Nov 2018 04:26:05 -0800 (PST) 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=vbujpZlR3xwCQtHN+6i4d1gyZCoKcwoCzl86pAegAMo=; b=G/8MFWFL/2b/pz78l1CvrUfCvTR63oUZyGVoJDnd4pU0iEETt3KEAIlDSYGzANK6td t/iNHC9qBHA5qlFYMe/gBF7qmX6LhFWfb8wjR0X9PPOgRlYSzX8pOPt9gCDYDufbFxal mM+QOUyUqOHj9uETDRP9NYe/UBH5Li2LC9KT4= 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=vbujpZlR3xwCQtHN+6i4d1gyZCoKcwoCzl86pAegAMo=; b=minsqE+K7oD3P8bj7c8jwd7yObkAbqkqlHP1Mg6r1h1itkfCCbB9Q0WMm8jxoIre6N rn0oGRb7S9qx2KWjlPAe6SwRfUj7H+V8AwmnP16iIOOZ5RRK839v1WHT8rbcrZTMHL9m W8Yw/MPNqBeh9RXipKsa5bJEITWjl3vDL3PkclbjhH2zfuZqK7oZwasymoCtyOWhm2yy 1DwKp8murTVSU8Ujd/PwlK/afZC9eeAyKC4Qsx91f5pxFZkaqUIw5CtShzlfDb+4kR7Y /j0RU0Hhuq4nDdsPCacVFG9t6oV9dF5/J6BEvBYtGNkYy3cT+WnNV6skHIIoovL9rGb8 c97A== X-Gm-Message-State: AGRZ1gJ45RNAm8ZS1GnWG6LV9vLQT9vaL+sT2jxeePIrB+KASTfAWKfm bTSxAg9aopIUzYAOt7Q4EVM3o/WJM4M= X-Received: by 2002:adf:df0a:: with SMTP id y10-v6mr18346814wrl.127.1542630364278; Mon, 19 Nov 2018 04:26:04 -0800 (PST) Received: from localhost ([49.248.195.80]) by smtp.gmail.com with ESMTPSA id u8-v6sm27063818wrr.33.2018.11.19.04.26.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 04:26:03 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, vkoul@kernel.org, David Brown , Rob Herring , Mark Rutland Subject: [PATCH v2 3/4] arm64: dts: qcom: qcs404: Add tsens controller Date: Mon, 19 Nov 2018 17:55:21 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Vinod Koul Tested-by: Vinod Koul --- 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 9b5c16562bbe4..57d14d8f0c901 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -253,6 +253,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>; @@ -260,6 +270,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>, -- 2.17.1