Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4262358imm; Mon, 15 Oct 2018 11:41:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV622pzETV/J5Q1C+QX0v8TytQDEdnmX2QyH9hwrqtNfNqeORB2V8MlCp5dnIXh13TdeqRcjU X-Received: by 2002:a17:902:1008:: with SMTP id b8-v6mr9734641pla.337.1539628909608; Mon, 15 Oct 2018 11:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539628909; cv=none; d=google.com; s=arc-20160816; b=HYUq03azfH/K0p+OZo4Qb7beBGrmSIq6bFvrSG5QdANah6KSZcEKGKOPoeuy4/n9mP IVgdOWnhIOHAjuu2/Azzg/HXuJtBevHDKwL2e5C7BGKio1/8DPHYoo6WKh8UMvnwvY4Z 8Gmtu+18DP+jF3832PrZQ5+Imd5lHOc+j1GSQf8gPGRBedVV0pfDyMmZy7wg3dhgb1XZ oULEQwQ36FwbwZRI+s+rQhFLl4ukJ9UcNEM809JdDONh50mBMQ6G9ZtQF/TPuEg6F1nV 5aajuOBuYO8jb7sdcFIsN3bIB0nDy2e9H3Nl0Gq4oAQMw8EHWhADKrRUcZXpNQDSsn/O WmPw== 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=ogGQSy3dAWO6K9za/agsvOo3IJdF2oHNe8AuFMdfokI=; b=l+vPYxApoGdcPpNX/UlkQJnCNuJSqPEiYJlEKXmoh9BixZfu7tVugpWYMB/ROuwLqF 9cqP5lxQhuyMqUByM0hBWqRbSPRyZCrapWc/SSofhpBGSZkFmbE6iJ1H7ctWVRmFazZW a589iG7R/alwv3vjp6PpMXgFGC/CWiSgIwSQB3sKdwtL1F81iwcDggybrNIz6DqrG4xf xFlR7sb8FN+BpFeqPt6GnDWEXZCDXWXALKGJLa/8cTe1M9K6OnVd4xGkvOVbJIv/CQOH 467RQArOSGkwLHF+RchIKFPsnYBPWyFWdVI+CfP6W+nc48UWNLfWRykmYksrT2F3CNb7 D6ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ayjNbFIM; 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 19-v6si11027102pfq.180.2018.10.15.11.41.34; Mon, 15 Oct 2018 11:41:49 -0700 (PDT) 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=ayjNbFIM; 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 S1727015AbeJPC1a (ORCPT + 99 others); Mon, 15 Oct 2018 22:27:30 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39293 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbeJPC1a (ORCPT ); Mon, 15 Oct 2018 22:27:30 -0400 Received: by mail-pl1-f195.google.com with SMTP id e67-v6so741071plb.6 for ; Mon, 15 Oct 2018 11:41:03 -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=ogGQSy3dAWO6K9za/agsvOo3IJdF2oHNe8AuFMdfokI=; b=ayjNbFIMWUbEYOOTbf9xYFPjVipvqTvsLCX66z9P7KANNUtZ/j36x9xGvQ9pBtxNg8 4te2B+0UbjF7VnKVrxeABrCAQfmivkd53ojOu9+cWsqhFGc3GoZ5Z5nMmSSMD70HBd82 hBMwcZ74R6snIts9YiEHEJgERwfxZ+t94iuGE= 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=ogGQSy3dAWO6K9za/agsvOo3IJdF2oHNe8AuFMdfokI=; b=WRp00/QIQJkl7QVH8TdeUe8WTx6qAPU3CoJVL05oYrnTAw9XJS9T7CS5OkjgPXvINo BGGvEWD8QqFV3taIiVeVk5AE8i9Wqw7uHP+HJJoyq2dOnrWFHyDRmIryc9x4IUxPI8sm KkfLuwB4aGmxL/gxe0UcrI9zi2dPfEU2fE3NjJYJJO40e0oEl2QmD2JA3eRo/Tj/c6I/ UFNWiFYE/fFmlSdBp4XdyK2GTOeoasqcVmpRD1hL3HGnoC6h1jPZ5U85Aw4lQlPUiCOU 7kdGa5DMoXnH8fiQ/nrFndBN017f2PBbxLahNoLdc62y/m0stDasD5mP75OmmV9ZKCe6 NoTg== X-Gm-Message-State: ABuFfojQjn4I7hYhPQN2d3CcuXoy0PLYyNo6AAFGLcugpgWWxPfnDQG3 tVJuzS5TXx/v6FE2bQZ5ZpGenDgRr7A= X-Received: by 2002:a17:902:263:: with SMTP id 90-v6mr18103770plc.190.1539628862759; Mon, 15 Oct 2018 11:41:02 -0700 (PDT) Received: from localhost ([49.248.168.189]) by smtp.gmail.com with ESMTPSA id l26-v6sm19276104pfg.161.2018.10.15.11.41.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 11:41:02 -0700 (PDT) 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 v1 3/4] arm64: dts: qcom: qcs404: Add tsens controller Date: Tue, 16 Oct 2018 00:10:42 +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 --- 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 e1e2ba9cbfcd..dfd65c53cf5f 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -273,6 +273,26 @@ status = "okay"; }; + qfprom: qfprom@a4000 { + compatible = "qcom,qfprom"; + reg = <0xa4000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + tsens_caldata: caldata@d0 { + reg = <0x1f8 0x14>; + }; + }; + + tsens: thermal-sensor@4a9000 { + compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "calib"; + #qcom,sensors = <10>; + #thermal-sensor-cells = <1>; + }; + apcs_glb: mailbox@b011000 { compatible = "qcom,qcs404-apcs-apps-global", "syscon"; reg = <0xb011000 0x1000>; -- 2.17.1