Received: by 10.223.176.46 with SMTP id f43csp820011wra; Fri, 26 Jan 2018 07:25:25 -0800 (PST) X-Google-Smtp-Source: AH8x227iB3sReUMQ5jjoPrdc/y2SzjeFLdulLAlGwjpJx8mEtHyH6HsFtF04cdIpY9FZbCdsCAwC X-Received: by 10.101.86.73 with SMTP id m9mr16056027pgs.70.1516980325366; Fri, 26 Jan 2018 07:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516980325; cv=none; d=google.com; s=arc-20160816; b=klBLRHr5kuZ27tGjwbYHpek23hK8OshHHfySn76dO9z46Agk29KQKCszCpvBN6KEgw jiHwG05viHzhr9Kglc3ulkAjFyGP8f03uzGpW0BYFhTZ9ZWyaVtvJIW0QyqLIsN+Pm9q z4TT51Rj5EA3Co0+yOxj5jnM/nxixo8wwQn3pO/au0tnSFYHTvZrk8A2+GCWRty2b8ga d6eA/y4y6XZ+XwtW+HoLf8a4bsMYvJfoS8T4ZZSZl0huyKt4P479vBXYcX3FLQBqG/ul pzwkG9E6RojUnFqGyGvpQi9BhTP5TWlV4ds2mOjqIci6wx6Xi5cHkXbogg2bpfLbmpvG s4Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=W4CP7wyc10AGMzTepJcQBMCFUpCOQsE1k1iZyPNtvNc=; b=yXrcnYHTjVnso7iTnd/V/tnJS94wMBDzTshM8Rt6+JlspjwJfGzCd6bxt5aoaa/ikN R0GQ5ZG3UVd257vfrt3kvJ9AJy1La/ncavmT2zCvXCe21w9YI0njo8ENZRV1LluXk0d0 CFsClmIXlElwb5WEOOROKCpnjgZIOf3f5Dhfq7lXJ/V0IZItEHa6OITmDeKOoi0EPd/W Yz/8XpxDaaGh5OWSfonzTdfO6pFg3K1QmHD5e8NS/qHGYFb3b6rjoQwvzGEB8z9gLls8 McOAiofH9NsLKDgc7vanKg6CS5U2ABWrquwNGSc9QlUZx+UlHiGhLKrhvNp1OD6Mc6L8 UTPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YsIfV0dc; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 129si3120638pgc.441.2018.01.26.07.25.10; Fri, 26 Jan 2018 07:25:25 -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=@gmail.com header.s=20161025 header.b=YsIfV0dc; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751671AbeAZPTs (ORCPT + 99 others); Fri, 26 Jan 2018 10:19:48 -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-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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.11.0