From patchwork Fri Jan 26 15:19:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 866416 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YsIfV0dc"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zSjPv1LYcz9ryQ for ; Sat, 27 Jan 2018 02:24:51 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbeAZPTr (ORCPT ); Fri, 26 Jan 2018 10:19:47 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51520 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbeAZPTq (ORCPT ); Fri, 26 Jan 2018 10:19:46 -0500 Received: by mail-wm0-f65.google.com with SMTP id r71so1959324wmd.1; Fri, 26 Jan 2018 07:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=W4CP7wyc10AGMzTepJcQBMCFUpCOQsE1k1iZyPNtvNc=; b=YsIfV0dc79nAK+h0k8S6z0gjuzMZs9hK9xJvQEsi7f9yA2dCsznvX0Iqe2jmEH2897 GdNP8q1VGxOSnuom76RYuTrwBPnu++QcPjQrbQKLJ307uQrmTnvnXz3pDePUfzCneBJm S91LqFO6wPmybO8xuNedq3EfzU46wD5weN0zN9kDAHznPT62H0Ne9GdW76VSIr99IAY5 tyxJjCYCps0yN2fYUXq5xGPxY5I9Pc65xCMBAYu3yhPwheWorzuXbew+8nJtW5sWmEFR i+itFLarJO1popd8cIJZhX94BJgM4qgbXaNXv9AnBm0HgpPGRlYDx7YJvIet7Cpfb1oM ClKA== 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; bh=W4CP7wyc10AGMzTepJcQBMCFUpCOQsE1k1iZyPNtvNc=; b=kkEL9nX1dYWO468myOaQ+p0ZbsYrXwas/P73d2f5hdYZjRWgD8GLvyUTI/f8m79RhB s75f72K2erdA7NUEas7AZl4aeekO4RRedAU6EbFolmlE7ec3dC6gMVFSsIsM+yyUl6pn kQHqF6ad1MXX1KCmfhnBwbgMLsw6pToo7GVRKR3wJPHjf+YhFug1ztcPmVz17sfLSuTO q9J14zJ0rXtl5+lCUKr8iXaz4yL5WRBytd6jhmMYP4EzUMTNohI1lSlHLqKPCvp+Tp6M UMa56auVbeHq5E4Qu0SgLy6x/2sz4XmohaYbb9/3kV9kFQFA1g4YJ6EYJ1xRLumdT11L No+A== X-Gm-Message-State: AKwxytdBy9afxA41TZmT6yJ2b+kMEsBCvOm1Pt3bGIEOKrqB0dzDbDXi YG9k4Kw701iNTahbbNQIvBU= X-Google-Smtp-Source: AH8x227tyGKs+zjsitrAy9BjtQBkxXjfMfnfZMCE2/UBgpkWEaWL1AfC/7j5ESmflaaMh6XwZ/72Kg== X-Received: by 10.28.203.142 with SMTP id b136mr12047869wmg.127.1516979984843; Fri, 26 Jan 2018 07:19:44 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id e15sm4586130wmd.26.2018.01.26.07.19.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 07:19:44 -0800 (PST) From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, davem@davemloft.net, hans.verkuil@cisco.com, mchehab@kernel.org, rask@formelder.dk, clabbe.montjoie@gmail.com, sean@mess.org, krzk@kernel.org, quentin.schulz@free-electrons.com, icenowy@aosc.io, edu.molinas@gmail.com, singhalsimran0@gmail.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 00/16] IIO-based thermal sensor driver for Allwinner H3 and A83T SoC Date: Fri, 26 Jan 2018 16:19:25 +0100 Message-Id: <20180126151941.12183-1-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allwiner H3 and A83T SoCs have a thermal sensor, which is a large refactored version of the old Allwinner "GPADC" (although it have already only thermal part left in A33). This patch tried to add support for the sensor in H3 and A83T based on the A33 thermal sensor driver by Quentin Schulz, which is already merged. This Patchseries is based on Icenowy Zhengs v4 patchseries [1]. The first 5 patches are reworked patches from the v4 patchseries. The rest of the patches add step by step a feature to support multible sensors, nvmem calibration and interupts. This patchseries should make it easy also to add other sunxi SoCs, like the H5, A64 and A80. Patches that adds support for H5, A64 and A80 SoCs are allready prepared, and will be upstreamed if this patchseries is applied and the testing is done. I tried to pick up all the feedback from [1]. I hope I didn't miss anything. Regards, Philipp [1]: https://lkml.org/lkml/2017/9/14/317 Icenowy Zheng (1): iio: adc: sun4i-gpadc-iio: rename A33-specified registers to contain A33 Philipp Rossak (15): dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T arm: config: sunxi_defconfig: enable SUN4I_GPADC iio: adc: sun4i-gpadc-iio: rework: sampling start/end code readout reg iio: adc: sun4i-gpadc-iio: rework: support clocks and reset iio: adc: sun4i-gpadc-iio: rework: support multible sensors iio: adc: sun4i-gpadc-iio: rework: support nvmem calibration data iio: adc: sun4i-gpadc-iio: rework: add interrupt support iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor iio: adc: sun4i-gpadc-iio: add support for A83T thermal sensor arm: dts: sunxi-h3-h5: add support for the thermal sensor in H3 and H5 arm: dts: sun8i: h3: add support for the thermal sensor in H3 arm: dts: sun8i: h3: add thermal zone to H3 arm: dts: sun8i: h3: enable H3 sid controller arm: dts: sun8i: a83t: add support for the thermal sensor in A83T arm: dts: sun8i: a83t: add thermal zone to A83T .../devicetree/bindings/mfd/sun4i-gpadc.txt | 50 ++- arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++ arch/arm/boot/dts/sun8i-h3.dtsi | 21 ++ arch/arm/boot/dts/sunxi-h3-h5.dtsi | 9 + arch/arm/configs/sunxi_defconfig | 1 + drivers/iio/adc/sun4i-gpadc-iio.c | 378 +++++++++++++++++++-- include/linux/mfd/sun4i-gpadc.h | 66 +++- 7 files changed, 522 insertions(+), 31 deletions(-) Acked-by: Jonathan Cameron Acked-by: Jonathan Cameron