Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4467854ybi; Tue, 11 Jun 2019 07:09:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuUGio53JPwYQxcYjiWp8N4d5cGIvY8AlhG/Yole7W+fyMbNRmSBtQL96gY4+4NvD+ef1D X-Received: by 2002:a63:1c59:: with SMTP id c25mr20246299pgm.395.1560262193283; Tue, 11 Jun 2019 07:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560262193; cv=none; d=google.com; s=arc-20160816; b=rpPvV+WcY/noRRvlfsMJBrrh+sS7xsS24JF8f4zOX4lorH7qNqzKJjDWq6PBNRokrd lJ4ZmdmqxI//EJE4Xtr0rRGXgpDCP5tGeIh/T39FVgd77OR24rXz8zYMeRynGLItZUdo gh16mIiqoXTyTKPrAu3J1P9/WZocpUY+POB7HqsjI+3J6F1h7AEXGlBmEldybc6NNAsJ rJX9GPB1Nm7fM5gJc+hVTxsCCEepvuyMa+Ly7YCMopI3YNV0Qmas9lMdfQQjv5hKgTf1 Wz3ixg0EHlFUAEEMOeO7WHUqIWwdSw6HXqHOpy4+scYyfYIzdEdR3+fWKAGuX83IStjp hVkg== 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=J+cjvtzjl6nyzfBTsWaWwXAuzbXvnsojX3JdLi0kbDo=; b=j4VF+Qnyq9gpIGrUQarkjGGukcdUTUD83xa78ICNQ8N+KzvQsRwEKi+ZdFfTgqZ9Td I/mpNhcyMo8tXcwbnjZetvLGQGF9geEgX7EwtRrkTFViMf4/3eb0JdZJATg5F/Qe9OHu 7Tu1cOU/dnkQCaUpzQqZjYcnd8iZWcPuLCAHuUksIfGLXAXR1DwqCKPjlhyssuzJZJsS OQV8rLNyi8/s/UYNjbekLgU+88m9YXCvk/BP8V7Ww6mV2rFPRkrBLVXE+drdTffXiuKP WoQAUyveatlFBbeIwAEQgZNhl+Sz4AP24qKIwQAGA6+JlMO4S/btCteTBv8knMJPdthQ IGxA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59si12913235plb.107.2019.06.11.07.09.38; Tue, 11 Jun 2019 07:09:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390295AbfFKOFG (ORCPT + 99 others); Tue, 11 Jun 2019 10:05:06 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:55711 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389844AbfFKOFB (ORCPT ); Tue, 11 Jun 2019 10:05:01 -0400 Received: from [167.98.27.226] (helo=happy.office.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1hahOS-0003vU-3u; Tue, 11 Jun 2019 15:04:56 +0100 From: Michael Drake To: Andrzej Hajda , Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Drake Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , linux-kernel@lists.codethink.co.uk, Patrick Glaser , Nate Case Subject: [PATCH v1 03/11] dt-bindings: display/bridge: Add config property for ti948 Date: Tue, 11 Jun 2019 15:04:04 +0100 Message-Id: <20190611140412.32151-4-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190611140412.32151-1-michael.drake@codethink.co.uk> References: <20190611140412.32151-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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>; }; -- 2.20.1