From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dawei Chien Subject: [PATCH v2 0/3] Add Mediatek thermal driver for mt2701 Date: Thu, 18 Aug 2016 11:50:50 +0800 Message-ID: <1471492253-7185-1-git-send-email-dawei.chien@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Zhang Rui , Eduardo Valentin Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Matthias Brugger , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Sascha Hauer , Fan Chen , Eddie Huang , Yingjoe Chen , Erin Lo List-Id: devicetree@vger.kernel.org This series support for mt2701 chip to mtk_thermal.c, and integrate both mt8173 and mt2701 on the same driver. MT8173 has four banks and five sensors, and MT2701 has only one bank and three sensors. Change since V1: 1. Restore macro name with MT8173 for nvmem calibration data since original macro name could be used for both MT2701/MT8173. 2. Add flexible array member to instead of normal array since thermal bank has different array size between MT2701 to MT8173. Dawei Chien (3): dt-bindings: thermal: Add binding document for Mediatek thermal controller thermal: Add Mediatek thermal driver for mt2701. arm: dts: thermal: add thermal/auxadc node. .../bindings/thermal/mediatek-thermal.txt | 4 +- arch/arm/boot/dts/mt2701.dtsi | 44 ++++ drivers/thermal/mtk_thermal.c | 215 ++++++++++++++------ 3 files changed, 199 insertions(+), 64 deletions(-)