Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp21185ybm; Thu, 28 May 2020 15:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdNlaYQd0Ba+pqf9FHDJ9vgRvem4/7wpqrht55WRwzVB00+2fMxoTiW5J9JlPjNITr2KiA X-Received: by 2002:a17:907:9f0:: with SMTP id ce16mr4884793ejc.476.1590703474622; Thu, 28 May 2020 15:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590703474; cv=none; d=google.com; s=arc-20160816; b=vFL4G59LH65jxzFJ2xQ7kPeZqwOWGi3BVopkNj2n+f6MLMgSBOw2iN/zCOvWqzIbCu 87EDIRh+L4y24oI+w9KpFNQqBfpB476pEAX/Izp8PuPVui2vE9rkVhoD3bnIpoXN0SQc zubNJeyF6qStxpw2SbUTpdfYQ9UAtnGTR5xDjg2AOj+GOgr3v1WSixjdITJ8DDlRfM1T uhwqSWNPdN8QNQpTgmDTXq3mJ5zsLhedOTcVUQ8yW6rzZo9/iS9W2Ia/laKcV7oQCeYg 0LuM41KmOrQT5g7H/r1FEUVaWJzopsomDMMs5ris3Ik/wSfQIU3lcUtoFUyl3yyk1plC f68w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ypTe2PhllcbFDiwKFVMlag8IDVx6GgqoGKohXERCZBQ=; b=SnoPGShNQa3z+/gNVnsZq9pfog5mB6u38usBWPE78HvvpaQWKNdyieet7MUzyFfz9r kOxLuwj0dzv2pyKKL5LPJofaGU0VwJXn4IkJ4o5Oi8qXh47SxBu7vd+FaS1lGchvoweC cIhvHobpFyoq3AHtEfAHnvJx/Xfnwhh1JmJ0wKdr8VIoTI5e1kCIibgNwpoYeaXbWC9I EDPuamTyKHc3qGNNSXgn5u8ouzgJvD0Q4BHgT4WGb77kpGNDaYLY7FJwL8MhfT4Zf8f6 9FAPQHwXkDIfTFi7EFG5xoptsuuMuezRh+n1AJAB5Igf/6pCrJBBggOg4t508fJcLqh8 cd5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si4109350edt.279.2020.05.28.15.04.11; Thu, 28 May 2020 15:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436829AbgE1WCB (ORCPT + 99 others); Thu, 28 May 2020 18:02:01 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:40421 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436810AbgE1WBk (ORCPT ); Thu, 28 May 2020 18:01:40 -0400 Received: by mail-il1-f194.google.com with SMTP id a18so501799ilp.7; Thu, 28 May 2020 15:01:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ypTe2PhllcbFDiwKFVMlag8IDVx6GgqoGKohXERCZBQ=; b=nNIzupTrdmf9NfYSrznPeZOZaB6auMqjmpaOaCMkgLy4aYVigIfndKo6MLM1EXwA/8 f7PK8HSnjlnoeVC8aPUe3A9/iAYMB8BHlIzMK4Kv2R8S1Gq4m54FAShxFPLmyL1XFpqJ 4PezSh6/rt1AH4P/IOHuIn/FdFjsdlMKZB4gkOopdRUxdZzRVNC/nTKz9J9I4vLqAn+/ Lf2+W+3ssLF/rg4eSkTbIhTDIcRklSKWhyj9A5ZLRfTc8/DUYwHGs+5wvfZO04fEyNAa fM8CieQd8B4MbM947f8RX5pcx5NOTpBaVRdQi8FY9OEQlpr6/NRR7g+YlSKf4c7OLONN CE2w== X-Gm-Message-State: AOAM531FCt23Q8J/iQXVfomO3RLWE7E0X6PUh5hd4+SKbAIB8vTXWS0r w/WS+YR0Xl6I0IjF+V20xw== X-Received: by 2002:a92:2801:: with SMTP id l1mr5040474ilf.132.1590703298885; Thu, 28 May 2020 15:01:38 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id f9sm3853884ile.39.2020.05.28.15.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 15:01:38 -0700 (PDT) Received: (nullmailer pid 760172 invoked by uid 1000); Thu, 28 May 2020 22:01:36 -0000 Date: Thu, 28 May 2020 16:01:36 -0600 From: Rob Herring To: Heiko =?iso-8859-1?Q?St=FCbner?= Cc: Dmitry Torokhov , Johan Jonker , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: input: touchscreen: edt-ft5x06: change reg property Message-ID: <20200528220136.GA748777@bogus> References: <20200520073327.6016-1-jbx6244@gmail.com> <20200520171324.GS89269@dtor-ws> <4727344.YYj2SkWT1V@diego> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4727344.YYj2SkWT1V@diego> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 08:41:59PM +0200, Heiko St?bner wrote: > Hi Dmitry, > > Am Mittwoch, 20. Mai 2020, 19:13:24 CEST schrieb Dmitry Torokhov: > > Hi Johan, > > > > On Wed, May 20, 2020 at 09:33:27AM +0200, Johan Jonker wrote: > > > A test with the command below gives this error: > > > > > > arch/arm/boot/dts/rk3188-bqedison2qc.dt.yaml: > > > touchscreen@3e: reg:0:0: 56 was expected > > > > > > The touchscreen chip on 'rk3188-bqedison2qc' and other BQ models > > > was shipped with different addresses then the binding currently allows. > > > Change the reg property that any address will pass. > > > > > > make ARCH=arm dtbs_check > > > DT_SCHEMA_FILES=Documentation/devicetree/bindings/input/touchscreen/ > > > edt-ft5x06.yaml > > > > > > Signed-off-by: Johan Jonker > > > --- > > > Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > > > index 383d64a91..baa8e8f7e 100644 > > > --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > > > +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml > > > @@ -42,7 +42,7 @@ properties: > > > - focaltech,ft6236 > > > > > > reg: > > > - const: 0x38 > > > + maxItems: 1 > > > > Should we have a list of valid addresses instead of allowing any > > address? Controllers usually have only a couple of addresses that they > > support. > > from what I've read, the fdt touchscreen controllers are just a generic > cpu with device-specific (or better panel-specific) firmware, which seems > to include the address as well - so it looks to be variable. > > But of course that is only 2nd hand knowledge for me ;-) > > > But also, the i2c address is something you cannot really mess up, > either it is correct and your touchscreen works, or it isn't and and > adding entries to this list every time a new address variant pops up > feels clumsy. Is that an Ack? I'm fine either way. It's really only useful if there's a single address because with a list it could still be wrong just as any other data like an interrupt number could be wrong. Rob