Received: by 10.223.176.5 with SMTP id f5csp2815011wra; Mon, 29 Jan 2018 04:32:29 -0800 (PST) X-Google-Smtp-Source: AH8x226qY6mHIeF5hbayvZFuUFtCk9waXHlpQvgCa6o5OWm6gqj2+2G9BsDduNalcj7BoTgad0Tl X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr13038333pld.17.1517229149376; Mon, 29 Jan 2018 04:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517229149; cv=none; d=google.com; s=arc-20160816; b=yAO+2THE45LTa2qOwmaF7fEwJeLHGTdAedZ29qhW41hi7GiWHW2a5bVE+vz4/0PoYc onbuRPWtydKCa4L1UgDr40I+4l7bVLuVQ2g9/j5wOgaDSeWnC7UEoVVLT9CR3QJTvS9L jnVC9+yCp9ha2vWUrfsLJDMLNwM303vjlEMJ1w+cRl2UzoPcpjeyYYBnMmTf0D2y8TsR 81c0a88K7/h1oSBMvK3R4gearH+klTX3YHGvi82Vkq5ZgYJUcA6cBJrtD6+UUCJm6Aas DbvUOCfbLz7aftZMgfp6e4Y5qPyIc37KGlmXHVJ3maFSiuh83uhGw+56axaSMiHsuZAM LQsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=olB0sNglE9MwSSdBg5byNFC9idnkRghRcsW2lRY+vVg=; b=waHObD8tqfRw11vwptcYVMV5jj4wJnNs6Vifih48br0eYH8YC7JZ4nh9nioWpAk9/y bs3K2OgnZhoxaV5nWhZVACJwqMORCRsYoYqkAWd2d/VZfRQMqp/xeav1168d7eb4wuWu 4xdlX1atZCMapQMDuNlKa3tx1/dEAJopbZoJaXcxZB7yzGalj9WnT56GmyGvk3kYeOQw +m3oRTzXqoUkWVD0queoOhki3LU8I1sQPW89Cg1/C3fEX7FuRyPP5meavDN5nlDW6wPP UC4ZVHj2Nb/xXJ38js9Tl/Zf0Phqsd0PiTFAgVKS2ZJVb7wLLyG7fAgNX2slonRCw+Ep cEgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DDTX97zo; 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 205si11773755pfw.227.2018.01.29.04.32.13; Mon, 29 Jan 2018 04:32:29 -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=DDTX97zo; 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 S1751920AbeA2Max (ORCPT + 99 others); Mon, 29 Jan 2018 07:30:53 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33178 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbeA2MaY (ORCPT ); Mon, 29 Jan 2018 07:30:24 -0500 Received: by mail-wm0-f65.google.com with SMTP id x4so44689319wmc.0; Mon, 29 Jan 2018 04:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=olB0sNglE9MwSSdBg5byNFC9idnkRghRcsW2lRY+vVg=; b=DDTX97zoe9IoKyjJIUYkOpoe9baWEt4OZ0IW+fHtqW7Wba99L3a3r6y2tFk/n5fEWo dr6W0vaRh7iydVt6uKJ5k/3hW3AWx2747tmZHIzf1+a1Kn0kSusXNeJ3bQHpe5dKl5bT B5btRAZDUaEyfH/6zhlHxe+EqpoGxdQpcsseVeb0gRUCD+oxYy1uRlHwLA0zpxenszxV 6brMhv7DLlDaEXqNF9ZlZB32idjcmKsRQidCvSTcd/cH8C+QudwtInV3p6BPFpzpT17n xPHZ3txUccdz3MkcuHQTkIMT6Z1XLgwIznOdDfL9W6p8lzxQdVnAJ8jZpiBUv3WCmyH1 E1Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=olB0sNglE9MwSSdBg5byNFC9idnkRghRcsW2lRY+vVg=; b=kzLTJzV6LaDH3evrdER8bcIeslW05twWcOyMtzK5WBJN55MEEpC40BTOraW4cKd5FJ 7WB3uSFB4p4j3cwVU2AWSw/AMjbpEItTiPo/X295XfAbKlXvCI5nufrrPFtnTdl337sH fkOmGB3VclAh6yq3ICkHT1NT3vAr+QdikWdevelwe7yLMrOdtCQC9ou1TPbtiRJGRkRd xJB3K3XKstpUHHL5kXZ07W7G/G8xufH+/WfgVbIPAPCHpi18LaE2IY3N8F1YP6eZ9Pw6 bj6QRA8t47ZrvFlHTjP5Tz9fYrn+v08ShyPTqB9YtSXe27MWwlsuGOS5gD7/v7l+tfUt O8lw== X-Gm-Message-State: AKwxyterw/m5ndqMDITOSXMYku74rzCMic/1h+898eVAetespvS6fkHq QvqF01vHWUlAD+wY8ZACtQ0= X-Received: by 10.28.0.212 with SMTP id 203mr16155062wma.128.1517229023500; Mon, 29 Jan 2018 04:30:23 -0800 (PST) Received: from [192.168.2.62] (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id d73sm12138495wma.16.2018.01.29.04.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 04:30:22 -0800 (PST) Subject: Re: [PATCH v2 01/16] dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T To: Maxime Ripard Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.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, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com References: <20180128232919.12639-1-embed3d@gmail.com> <20180128232919.12639-2-embed3d@gmail.com> <20180129091937.w3c3btvva5yaqlf6@flea.lan> From: Philipp Rossak Message-ID: Date: Mon, 29 Jan 2018 13:30:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180129091937.w3c3btvva5yaqlf6@flea.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> +Example for A33: >> ths: ths@1c25000 { >> compatible = "allwinner,sun8i-a33-ths"; >> reg = <0x01c25000 0x100>; >> @@ -17,6 +40,27 @@ Example: >> #io-channel-cells = <0>; >> }; >> >> +Example for H3: >> + ths: thermal-sensor@1c25000 { >> + compatible = "allwinner,sun8i-h3-ths"; >> + reg = <0x01c25000 0x400>; >> + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; >> + clock-names = "bus", "mod"; >> + resets = <&ccu RST_BUS_THS>; >> + interrupts = ; >> + #thermal-sensor-cells = <0>; >> + #io-channel-cells = <0>; >> + }; >> + >> +Example for A83T: >> + ths: thermal-sensor@1f04000 { >> + compatible = "allwinner,sun8i-a83t-ths"; >> + reg = <0x01f04000 0x100>; >> + interrupts = ; >> + #thermal-sensor-cells = <1>; >> + #io-channel-cells = <0>; >> + }; >> + > > I'm wondering if this is actually needed. We've used this convoluted > constructs to be compatible with the old driver, but I'm not sure this > is actually worth it now, and this is causing several issues, among > which: > - We need to have a bunch of quirks to handle all the DT cases. > - We need to have an MFD, which isn't really optimal > > So I'd rather introduce a new compatible for the old SoCs, keep the > old driver around, and simplify a lot that driver code that will ease > further developments. And we can also get rid of the MFD in the > process. I discussed it with Quentin, and he was ok with it, what do > you think? > > (and that would involve creating a new file for the bindings you > introduce here). > > Maxime > I think this is a good idea, and the desired way to rework the driver. To sum up what we talked on IRC: This will end up in removing the MFD driver and moving the interrupt handling into the iio driver. At the end this will also simplify the IRQ part. Philipp