From patchwork Fri Feb 5 05:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Chien X-Patchwork-Id: 8231821 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C0DBBEEE5 for ; Fri, 5 Feb 2016 05:48:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 650AE20397 for ; Fri, 5 Feb 2016 05:48:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8167E20395 for ; Fri, 5 Feb 2016 05:48:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751610AbcBEFsh (ORCPT ); Fri, 5 Feb 2016 00:48:37 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51779 "EHLO mailgw02.hq.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750763AbcBEFsg (ORCPT ); Fri, 5 Feb 2016 00:48:36 -0500 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw02.hq.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 216214104; Fri, 05 Feb 2016 13:48:31 +0800 Received: from localhost.localdomain (10.21.14.116) by mtkhts07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.266.1; Fri, 5 Feb 2016 13:48:30 +0800 From: Dawei Chien To: Rob Herring , Matthias Brugger CC: Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Daniel Kurtz , Dawei Chien , , , , , , , Sascha Hauer , Punit Agrawal Subject: [PATCH] arm64: dts: mt8173: add node for thermal calibration Date: Fri, 5 Feb 2016 13:47:38 +0800 Message-ID: <1454651258-41990-1-git-send-email-dawei.chien@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add this for supporting thermal calibration by e-fuse data. Signed-off-by: Dawei Chien --- Because MTK thermal/efuse patches hadn't landed on mainline, this patch must base on following patchset: https://lkml.org/lkml/2015/11/17/251 https://lkml.org/lkml/2015/11/19/169 https://lkml.org/lkml/2015/11/30/239 https://lkml.org/lkml/2015/12/16/195 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index ffcca66..0c9d17e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -391,6 +391,11 @@ efuse: efuse@10206000 { compatible = "mediatek,mt8173-efuse"; reg = <0 0x10206000 0 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + thermal_calibration: calib@528 { + reg = <0x528 0xc>; + }; }; apmixedsys: clock-controller@10209000 { @@ -744,6 +749,8 @@ resets = <&pericfg MT8173_PERI_THERM_SW_RST>; mediatek,auxadc = <&auxadc>; mediatek,apmixedsys = <&apmixedsys>; + nvmem-cells = <&thermal_calibration>; + nvmem-cell-names = "calibration-data"; }; }; };