Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp779620ybk; Wed, 20 May 2020 11:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNB4F+UpUQG6As9lBzy7SSs7TikAR6XCdhtXlXffhLy/7cJMwLSY96MBvtN9fzig0uaK5J X-Received: by 2002:a17:906:310e:: with SMTP id 14mr412125ejx.177.1590000271206; Wed, 20 May 2020 11:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590000271; cv=none; d=google.com; s=arc-20160816; b=YGMAW0mmE8onB2QNe9ELZATuVpVNiG28mNdQiptrzzN3i+HSWH9ak6DFSJMhR9G6+y MO4JtsqSo9UkO2uMfXBnvQegP++QP5sQVMwc0n6+Sx4HhUQVKWUL8FGGz/eaItMiqdbr 3/h4iwCQnWZkeCwydmLh14+w6hjs2+p+Ngs77B6KmGNI1b1DsNB4YmW3HqTV13kVlHQ2 ojAv2q8cF5lyuLPX9MWrqYwo6xZHv7k2G2L4ugZzrJl2ZDHNmg5RdWgw8viP3M0fnXhO feJSeR82lgQiIHv0Nct4g4QjVS/AX0z0/piSwtHlk5b4oUAB+hmNLmliksslsywVHEwc gxGA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4FNdcj6xp+YhfjR/d3wMWmwn37nfhsl3w/6lutgGTK4=; b=v4cwabX32ML9X2GuiAKVkzHFRjIVHQ/On5uI5eHx0na+NyhfPRWSHHdSr0CaTVuh+j 56Cndr1dSm0q0b/CDqHPUgaE7SZQfTjagxvc4d5jlCqwZ6dmf0HHMdw8NnwXkmobX+ME 8Xrw6sMbRsGR9zFig9ubHD2By4s4lD3x2Q9v432AQZhL1ErGXHL+qLxdI1cpPpeQMpjZ huiyp1jjvfPpHBkMHeV6pmQ+cC/0vurWhObL4bBEvogf0SGqIIFi7FzcUNYIEbo270HI /or4RynLOckhPMGY/zwOLvWBLp45GwA9xhPf+xc9X7XhK0QPIM3Mi2vQlz5R2okQ30vc C8RQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si2175300ejm.613.2020.05.20.11.44.06; Wed, 20 May 2020 11:44:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbgETSmG (ORCPT + 99 others); Wed, 20 May 2020 14:42:06 -0400 Received: from gloria.sntech.de ([185.11.138.130]:43262 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726966AbgETSmG (ORCPT ); Wed, 20 May 2020 14:42:06 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbTfE-00040R-0g; Wed, 20 May 2020 20:42:00 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Dmitry Torokhov Cc: Johan Jonker , robh+dt@kernel.org, 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 Date: Wed, 20 May 2020 20:41:59 +0200 Message-ID: <4727344.YYj2SkWT1V@diego> In-Reply-To: <20200520171324.GS89269@dtor-ws> References: <20200520073327.6016-1-jbx6244@gmail.com> <20200520171324.GS89269@dtor-ws> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Heiko