Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4711130ybi; Tue, 11 Jun 2019 11:08:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsQVgucy7RDt/dJsDqp6cB6wZwb0/AQc403NhVxVxHYEsbvoUA/tLUm+KLy967xR/gGCTS X-Received: by 2002:a17:90a:8d0d:: with SMTP id c13mr27002477pjo.137.1560276506487; Tue, 11 Jun 2019 11:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560276506; cv=none; d=google.com; s=arc-20160816; b=FoQCS0A62vxK8lCpkseQl/qvx1DA2sGG1mR6scq6UhNX029ft6eXi8DfGDmdJZcfdq yWVey7ROoIHiH33dGZCNPYJNC+Q9r6Q6WW+mqt7kywKsgWfVJ5gj1WGAKBUNflDKfh6y KhE7MJ8xMXeSbGe5z5HDMO64ueQ2ZlvHotBUebkt/VPxYcS0CeZXHC2s+p6enL4lssl5 BipfNyDf1UnO3q2AIDfa1gHAeJfJkehvtWWj7jNV4lPc9JzlyYAHf4veAHdCOKnEkaKh BUxjPauX5xZQ+zBAnjxRr3dUyOis1s4RyV5kyhOLAQmGouRGPinPQQawSnBulVqnJTHu a0gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NnwywgroT+z2l7T2D8nukhFpjTd4h837Ep7Uu0e873A=; b=j8JERnj/7mV5JtGkE9QGsl9wv6GFph+35QygEfPpqn5ZDfhHDcULq7nano4cSorW85 IwZlL55j3OP28JowKdKFTvYaKypT3tkLC6ElD+ziNkVSTFih3U0fDIpH24kpTqiiUMNe /c/5QYRH38t6z1Jk56VHKVDADx5pKOa5+L78LNRes6j1o8LLr7emg3I8yk26G6774a6W 7JZVaCLwPgIjTpq6zpFADIkCKZxUYAhR+6+qgrwyZyka59yIpGBMOfHqMlZXWAYuzJb8 yrHNBkRzZVOQdxdFoiQIGVWyL0OrX/g0vX6JVQbGn/ZTqfMR7PTiXofy88z/xugV/vkV S+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Vo19II7z; 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 r14si2804202pjp.95.2019.06.11.11.08.11; Tue, 11 Jun 2019 11:08:26 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Vo19II7z; 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 S2406848AbfFKSH2 (ORCPT + 99 others); Tue, 11 Jun 2019 14:07:28 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:36296 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406739AbfFKSH2 (ORCPT ); Tue, 11 Jun 2019 14:07:28 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5AD0EFA6; Tue, 11 Jun 2019 20:07:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1560276445; bh=U6cKsDlIYIUfJDEzJan9NNjl5MrieaoyWtyhjTAgz4k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vo19II7zbYRl4pohD//ZsjLDurh4XnSv5I1Hy7ArCKvKqru7lg3u0uay0D89nhrMj 8YQJj5RCRoL+L2ITwNGolf5osznyh/2qk17MiL1clDQktwm+OcaLxdORHCHfeUrivV e2rYFRwV3bT0NWBNdQ92AdePHJKImJuihtwF5Zdw= Date: Tue, 11 Jun 2019 21:07:10 +0300 From: Laurent Pinchart To: Michael Drake Cc: Andrzej Hajda , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , linux-kernel@lists.codethink.co.uk, Patrick Glaser , Nate Case Subject: Re: [PATCH v1 03/11] dt-bindings: display/bridge: Add config property for ti948 Message-ID: <20190611180710.GT5016@pendragon.ideasonboard.com> References: <20190611140412.32151-1-michael.drake@codethink.co.uk> <20190611140412.32151-4-michael.drake@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190611140412.32151-4-michael.drake@codethink.co.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, Thank you for the patch. On Tue, Jun 11, 2019 at 03:04:04PM +0100, Michael Drake wrote: > The config property can be used to provide an array of > register addresses and values to be written to configure > the device for the board. Please don't. DT describes the hardware (or more accurately the system), it's not meant to store arbitrary configuration data. All the registers specified below should instead be set by the driver based on a combination of hardware description and information obtained at runtime. > Signed-off-by: Michael Drake > Cc: Patrick Glaser > Cc: Nate Case > --- > .../bindings/display/bridge/ti,ds90ub948.txt | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt b/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt > index f9e86cb22900..1e7033b0f3b7 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt > +++ b/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt > @@ -12,6 +12,8 @@ Required properties: > Optional properties: > > - regulators: List of regulator name strings to enable for operation of device. > +- config: List of , pairs to be set to configure > + device on powerup. The register addresses and values are 8bit. > > Example > ------- > @@ -21,4 +23,23 @@ ti948: ds90ub948@0 { > > regulators: "vcc", > "vcc_disp"; > + config: > + /* set error count to max */ > + <0x41>, <0x1f>, > + /* sets output mode, no change noticed */ > + <0x49>, <0xe0>, > + /* speed up I2C, 0xE is around 480KHz */ > + <0x26>, <0x0e>, > + /* speed up I2C, 0xE is around 480KHz */ > + <0x27>, <0x0e>, > + /* sets GPIO0 as an input */ > + <0x1D>, <0x13>, > + /* set GPIO2 high, backlight PWM (set to 0x50 for normal use) */ > + <0x1E>, <0x50>, > + /* sets GPIO3 as an output with remote control for touch XRES */ > + <0x1F>, <0x05>, > + /* set GPIO5 high, backlight enable on new display */ > + <0x20>, <0x09>, > + /* set GPIO7 and GPIO8 high to enable touch power and prox sense */ > + <0x21>, <0x91>; > }; -- Regards, Laurent Pinchart