Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp169833imu; Sun, 4 Nov 2018 21:49:00 -0800 (PST) X-Google-Smtp-Source: AJdET5dkVgpevOv3++Os8wdnuhuF72dUU50xNLdNmxOi9uIqczSUH2/xRtbrA/Mcme70vI2VL9Ug X-Received: by 2002:a63:ff16:: with SMTP id k22mr13727849pgi.244.1541396939985; Sun, 04 Nov 2018 21:48:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541396939; cv=none; d=google.com; s=arc-20160816; b=K0do1g8aBEyhd6jukJB4xOPteAhhDkTr333HX9clWDwD/xXacEQ3n2SaEI9c0FdMWZ pM1AxUITXASZTs4151AYldn7q74karAHNf6TY9FZf0Mh4p2//a6Bx/CqKMI28ikS1NC0 l9WyJ61eAbv0sTy3OVqUKpsrY/ITEnzD5l1d9BbIxdWlVzwAiLbdYKutdeotqzNKLS4v 0Sta+6awac0lv67v3+SofiXGqdZDjGMY7eViguVz0KupqmeQ+c+b9oQGTE+v3uwSLTvM SQ8yi+0TnLxy+nkFifmMqDEWe14M/99fLHrXGr9IZ0/CgutH0fOs2gpG71re5CB0uwdJ rT8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=QscRBHoDrekLthW+NW6+qZ6aBPRecqLNZaYb/z7gxjA=; b=XKS5dFUNoeBjm7x0lUADWJvrHgDot7t2JUUHxJafcWeK8GjA7l1FJ0hNhZ+YtF9jjU 8M9/kxED1niYH3lVhHxVpGhHpbJgXw3EYuUiRwT8OQRpwkvV9dwRlDYeAKysU7KgYgW2 CsiKC05iztaQrZKBAHpEd7B03AXJqqj+bzJOPGshInTtkYa/XInnv3zztVce1eUhphGp Q+xM+MPNUZuMISQwOyiS7+j3Yuy65bAUxTILfr3JGUktgGrAv/nQfnMHT+2xYe88bqu7 VQ9leDCnf2m4IRngbEdaAzvAIqtJBpdszZMtkvfkfIwW8cD17Ya5UXC694nvCuf3KWzH tYeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si42419786ply.390.2018.11.04.21.48.45; Sun, 04 Nov 2018 21:48:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729265AbeKEPGD (ORCPT + 99 others); Mon, 5 Nov 2018 10:06:03 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39786 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729042AbeKEPGD (ORCPT ); Mon, 5 Nov 2018 10:06:03 -0500 Received: by mail-ed1-f66.google.com with SMTP id w25so529342edx.6; Sun, 04 Nov 2018 21:48:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QscRBHoDrekLthW+NW6+qZ6aBPRecqLNZaYb/z7gxjA=; b=G6s0rYspcUdEAzDP9qBjwM9wL7rHZQPfWutgO0I01tUh8cpnjUo1m6KyZB9evjlhBp zYFjmKLKhOPEK8wJAhtORULrkiDf+3wKDO/rZzlZv/1TQPeLaRgXtlLb+oWg1DfmZILI M/9H4HeZaEMkfhT84sWxx/CUGPLLjyj+Clnuo4XEAvhd5F8vl/jcm+tckHLMjTmueIVv ckRnB9SLcf103CzOsuFG1fDmE1pjoFZj+wxO0Bq1RLR67G8GlivtGxgz72Lv08CfA1tt l986YGPhLhUQf3dObiaIR6/BfJSz0tVQ7ycGCNLbtBEXjKDCql3Zlifdm5GxvqgNNKWg sJvw== X-Gm-Message-State: AGRZ1gIAd4R3akz7VBQFLN5soxFpmgo0qDViXGQAWa1g0KkL/SIywJcT rrSViwJe30/hqx+T/ci0zvAJUbnoLqg= X-Received: by 2002:a50:9a45:: with SMTP id o63-v6mr16491582edb.105.1541396885314; Sun, 04 Nov 2018 21:48:05 -0800 (PST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com. [209.85.221.42]) by smtp.gmail.com with ESMTPSA id j9-v6sm5932465edk.88.2018.11.04.21.48.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 21:48:03 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id 74-v6so7997083wrb.13; Sun, 04 Nov 2018 21:48:03 -0800 (PST) X-Received: by 2002:adf:e307:: with SMTP id b7-v6mr19491637wrj.91.1541396882691; Sun, 04 Nov 2018 21:48:02 -0800 (PST) MIME-Version: 1.0 References: <20181023185330.10472-1-oskari@lemmela.net> <20181023185330.10472-5-oskari@lemmela.net> <20181024135633.GA342@bogus> <20181028154011.04efdecf@archlinux> <20181029130757.m5okrfvusjl5fu5m@qschulz> <20181103102153.4f0481ad@archlinux> In-Reply-To: <20181103102153.4f0481ad@archlinux> From: Chen-Yu Tsai Date: Mon, 5 Nov 2018 13:47:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 04/11] dt-bindings: iio: adc: add AXP803 ADC bindings To: jic23@jic23.retrosnub.co.uk Cc: Rob Herring , Lars-Peter Clausen , "open list:THERMAL" , linux-iio@vger.kernel.org, Linus Walleij , Sebastian Reichel , linux-kernel , Vasily Khoruzhick , Quentin Schulz , devicetree , oskari@lemmela.net, linux-gpio@vger.kernel.org, Hartmut Knaack , Lee Jones , linux-arm-kernel , Quentin Schulz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 3, 2018 at 6:22 PM Jonathan Cameron wrote: > > On Wed, 31 Oct 2018 10:29:59 +0800 > Chen-Yu Tsai wrote: > > > On Mon, Oct 29, 2018 at 9:10 PM Quentin Schulz > > wrote: > > > > > > Hi Jonathan, > > > > > > On Sun, Oct 28, 2018 at 03:40:11PM +0000, Jonathan Cameron wrote: > > > > On Wed, 24 Oct 2018 08:56:33 -0500 > > > > Rob Herring wrote: > > > > > > > > > On Tue, 23 Oct 2018 21:53:23 +0300, Oskari Lemmela wrote: > > > > > > The AXP803 ADC is compatible with AXP813 ADC, but add > > > > > > specific compatible for it. > > > > > > > > > > > > Signed-off-by: Oskari Lemmela > > > > > > --- > > > > > > Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 2 ++ > > > > > > 1 file changed, 2 insertions(+) > > > > > > > > > > > > > > > > Reviewed-by: Rob Herring > > > > > > > > This doesn't seem to have any dependencies with the other patches > > > > so applied to the togreg branch of iio.git and pushed out as testing > > > > for the autobuilders to ignore. However I am a little curious to know > > > > why we would add the ID and then not use it (that I can see)? > > > > > > > > > > Sometimes with Allwinner (and X-Powers), two IPs seem identical until we > > > discover something that is slightly different. When this happens, we > > > have to add a compatible to differentiate both. However, we would also > > > need to change the Device Tree to change the compatible. We would need > > > to handle the driver behaviour for both Device Trees. > > > > > > So better anticipate a possible difference so that we don't have to do > > > some hacks in the driver to handle the device correctly. > > > > > > As always, Chen-Yu or Maxime may know better so I'm just stating what I > > > seem to recall. > > > > With Allwinner stuff (X-Powers included), sometimes the documents are > > incomplete or have errors. We tend to add a model-specific compatible > > just in case things turn out not to be so compatible, unless someone > > has triple-checked everything, documents and actual hardware included. > > > > However we don't actually document these, so this patch isn't strictly > > needed. (I suppose this might annoy the device tree binding maintainers.) > > > > ChenYu > I don't think it does any harm so I'll leave it in place. Thanks for > the explanations. It might cause a bit of confusion though. We are not targetting these compatibles in terms of driver support, and they should not be used individually. IMO dropping this patch altogether is better. In the device tree we would use the tuplet axp803 + axp813. ChenYu