From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BF9DC4321A for ; Tue, 11 Jun 2019 14:05:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EDF1B20665 for ; Tue, 11 Jun 2019 14:05:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390339AbfFKOFG (ORCPT ); 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