From patchwork Thu Aug 2 19:45:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10554645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B2F713BB for ; Fri, 3 Aug 2018 07:16:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61F092C451 for ; Fri, 3 Aug 2018 07:16:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 564062C578; Fri, 3 Aug 2018 07:16:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0A9152C451 for ; Fri, 3 Aug 2018 07:16:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 321416E6B5; Fri, 3 Aug 2018 07:14:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id A19CB89890 for ; Thu, 2 Aug 2018 19:45:42 +0000 (UTC) Received: by mail-ed1-x543.google.com with SMTP id s16-v6so1328200edq.12 for ; Thu, 02 Aug 2018 12:45:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=EmyceJsWlKJKj6s5+Zz3FdA8utFArWkVCik2jDUiN6E=; b=tob9T4AxZM2JrNrEMSFw7EeC8dM3OwN6HmqkIXUz4tMI1n7EEv29BWJ4EfxroUxSHE OfCsyoQk4IBsgN8gX2uYaXYQAleKR/PPoMUGp5PjNE5sfKR6SKpmjre/yKsirdf0v4LT LZynPJvCS0HFg7d81J2eLckzEErC1pe8Q+JutBCezZC04wt9ELkqXVPAKBEMO8st4gbg LbN7m8Bu7atO5nekYQSY/tsNxwE+fzksSuzomU+cLTsExoSUhiN06+TreemECKDW8Wzc j/q7VqBs38mfOOvBJ8M2fx71qJpAxdbkgEUp/Qa9WEDsbqK8bQWRJi51tOxksYy/P0F8 GQ0g== X-Gm-Message-State: AOUpUlEfwasSz0WyMDp6ofTvIMIARRsS0Mco7ewBbJuaJCe1dfVz+ysN PjlLNyTIDcOMUvNOCdXG6W1lZjxP X-Google-Smtp-Source: AAOMgpdeOrDFpcLwNdkN/bA+C9nkk4jXDsqGWw1FZG5A3IVNe8Tbf1XiF9uUCcd2HRqKkFAQRCuGIw== X-Received: by 2002:a50:c8c3:: with SMTP id k3-v6mr4532127edh.193.1533239141291; Thu, 02 Aug 2018 12:45:41 -0700 (PDT) Received: from jupiter.lan (126.158-248-196.customer.lyse.net. [158.248.196.126]) by smtp.gmail.com with ESMTPSA id g6-v6sm1219655edn.28.2018.08.02.12.45.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Aug 2018 12:45:40 -0700 (PDT) From: Sam Ravnborg To: Noralf T , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 1/5] dt-bindings: add parallel data bus (pardata) Date: Thu, 2 Aug 2018 21:45:32 +0200 Message-Id: <20180802194536.10820-1-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180802193909.GA11443@ravnborg.org> References: <20180802193909.GA11443@ravnborg.org> X-Mailman-Approved-At: Fri, 03 Aug 2018 07:13:57 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The parallel data bus is a simple parallel bus that may be used to drive displays. It is mostly used in simple embedded systems but is also used in some desings utilising Linux. Signed-off-by: Sam Ravnborg --- .../bindings/pardata/parallel-data-bus.txt | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/pardata/parallel-data-bus.txt diff --git a/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt b/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt new file mode 100644 index 000000000000..fa33b5bb8302 --- /dev/null +++ b/Documentation/devicetree/bindings/pardata/parallel-data-bus.txt @@ -0,0 +1,60 @@ +DT binding for parallel data bus + +Required properties: +- compatible: "parallel-data-bus" +- data-gpios: array of 8 GPIO specifiers, referring to the GPIO pins + connected to the data signal lines DB0-DB7 + (8-bit mode) of the LCD Controller's bus interface, +- enable-gpios: GPIO specifier, referring to the GPIO pin connected to + the "E" (Enable) signal line of the controller's bus interface, +- rs-gpios: GPIO specifier, referring to the GPIO pin + connected to the "RS" (Register Select) controller's bus interface, + +Required properties for 8080 interface: +- readwrite-gpios: For chips with 8080 interface list the GPIO + pin connected to the controllers read/write pin + +Required properties for 6800 interface: +- read-gpios: For chips with 6800 interface list the GPIO + pin connected to the controllers read pin +- write-gpios: For chips with 6800 interface list the GPIO + pin connected to the controllers write pin + +Required property for child node(s): +- reg: numeric identifier for the display + +Example: + + backlight: backlight { + compatible = "gpio-backlight"; + } + + power: regulator@0 { + } + + pardatabus { + compatible = "parallel-data-bus"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pardata>; + data-gpios = <&pioe 0 GPIO_ACTIVE_HIGH + &pioe 1 GPIO_ACTIVE_HIGH + &pioe 2 GPIO_ACTIVE_HIGH + &pioe 3 GPIO_ACTIVE_HIGH + &pioe 4 GPIO_ACTIVE_HIGH + &pioe 5 GPIO_ACTIVE_HIGH + &pioe 6 GPIO_ACTIVE_HIGH + &pioe 7 GPIO_ACTIVE_HIGH>; + enable-gpios = <&pioe 8 GPIO_ACTIVE_HIGH>; + rs-gpios = <&pioe 12 GPIO_ACTIVE_HIGH>; + readdwrite-gpios = <&pioe 11 GPIO_ACTIVE_HIGH>; + + wg160160@0 { + compatible = "winstar,wg160160"; + reg = <1>; + reset-gpios = <&pioe 13 GPIO_ACTIVE_LOW>; + chipselect-gpios = <&pioe 9 GPIO_ACTIVE_LOW>; + backlight = &backlight; + power = &power; + } + } +