From patchwork Wed Dec 11 06:19:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 1207468 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="JVb+Vkab"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47XmxF5Xkgz9sR8 for ; Wed, 11 Dec 2019 17:19:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727736AbfLKGTo (ORCPT ); Wed, 11 Dec 2019 01:19:44 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39831 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbfLKGTo (ORCPT ); Wed, 11 Dec 2019 01:19:44 -0500 Received: by mail-pl1-f195.google.com with SMTP id o9so994639plk.6 for ; Tue, 10 Dec 2019 22:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/vdhu1Xt9iOedS/Y8YF8BetiFT0tTQ4LeUM36vWZzls=; b=JVb+VkabPQpc1d5JUv94Fd3rqHXoQkJurV2AnuXWDyxigkquyeTCTxqAYzFjy9N+Dm ZQWD5a0FFJoK+9dAUlknTnV6sPgRWC1+3PHnstZPVCLZZdiKpS612xxtZEqQpCaeI0Ya k5Y9ILlV/QAS/hAe8zIKHJSZMN9pVZnMIMbkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/vdhu1Xt9iOedS/Y8YF8BetiFT0tTQ4LeUM36vWZzls=; b=bN4yErWczaH2LsrlvwS1KUwQN9OGxUkxuP4/8v/LBT4QdSzQZhi5J4Pg3at/n65EKK xj+026e0F+iRd1eUtWqlv8LxWL5y9b+DY78h90lij8cteqfKjCEup4o6NMV9BafC8x3U wdqa8o9dedU+SIZgNrduSSRxqCI+lpKqMGSpbixznbEPkGgDV5J1ndjL4C9nWo2uNXF3 7wPK6mtXRo4J0gcsgSV0vPv7CXm1AuItMNAXW4HAZ1rhw5ffBeVUD8kRfwjg76o/MWUc UnmoPQscsW1HkOKrSTUIVmkSBKKOKs5z5QjUyV3ltQsuTzUvz3AsHBADrcVZLgs7jGXQ jDDg== X-Gm-Message-State: APjAAAWgAvHUQDje19nPLCAIycXO474zdkd8m2KCaAiCQytBU0P40ZKE ZPAvK3ij2NaarIqqGvcLwI3C1w== X-Google-Smtp-Source: APXvYqxI5BdqGC+o0XbfbWbIJyNfBExUJT97/YgzDdhNEcLu8lCjJOHwASBUyGlA8wNzDs513PNQCA== X-Received: by 2002:a17:902:7c0a:: with SMTP id x10mr1557524pll.168.1576045183686; Tue, 10 Dec 2019 22:19:43 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b852:bd51:9305:4261]) by smtp.gmail.com with ESMTPSA id h5sm1225579pfk.30.2019.12.10.22.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 22:19:43 -0800 (PST) From: Hsin-Yi Wang To: dri-devel@lists.freedesktop.org Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Nicolas Boichat , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , p.zabel@pengutronix.de, Enric Balletbo i Serra , Matthias Brugger , Russell King Subject: [PATCH RESEND 1/4] dt-bindings: drm/bridge: analogix-anx7688: Add ANX7688 transmitter binding Date: Wed, 11 Dec 2019 14:19:08 +0800 Message-Id: <20191211061911.238393-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog In-Reply-To: <20191211061911.238393-1-hsinyi@chromium.org> References: <20191211061911.238393-1-hsinyi@chromium.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Nicolas Boichat Add support for analogix,anx7688 Signed-off-by: Nicolas Boichat Signed-off-by: Hsin-Yi Wang --- Change from RFC to v1: - txt to yaml --- .../bindings/display/bridge/anx7688.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/anx7688.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/anx7688.yaml b/Documentation/devicetree/bindings/display/bridge/anx7688.yaml new file mode 100644 index 000000000000..cf79f7cf8fdf --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/anx7688.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/anx7688.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analogix ANX7688 SlimPort (Single-Chip Transmitter for DP over USB-C) + +maintainers: + - Nicolas Boichat + +description: | + The ANX7688 is a single-chip mobile transmitter to support 4K 60 frames per + second (4096x2160p60) or FHD 120 frames per second (1920x1080p120) video + resolution from a smartphone or tablet with full function USB-C. + + This binding only describes the HDMI to DP display bridge. + +properties: + compatible: + const: analogix,anx7688 + + reg: + maxItems: 1 + description: I2C address of the device + + ports: + type: object + + properties: + port@0: + type: object + description: | + Video port for HDMI input + + port@1: + type: object + description: | + Video port for eDP output + + required: + - port@0 + +required: + - compatible + - reg + - ports + +examples: + - | + anx7688: anx7688@2c { + compatible = "analogix,anx7688"; + reg = <0x2c>; + + port { + anx7688_in: endpoint { + remote-endpoint = <&hdmi0_out>; + }; + }; + }; From patchwork Wed Dec 11 06:19:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 1207469 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="F9nIloV3"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47XmxR04fwz9sRK for ; Wed, 11 Dec 2019 17:19:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbfLKGTy (ORCPT ); Wed, 11 Dec 2019 01:19:54 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40627 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbfLKGTy (ORCPT ); Wed, 11 Dec 2019 01:19:54 -0500 Received: by mail-pf1-f193.google.com with SMTP id q8so1257445pfh.7 for ; Tue, 10 Dec 2019 22:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5SzZg/Any9b15PYJNx4TC/3Ha5cPQwIvnngJiL/O6D4=; b=F9nIloV3mkfv1BWp4npou4P6BtwgDkiffAbTsdiUkTmBcHM/KBFN58cVt+AMC4V8xS EAtttKKXOtsz9hji7eGv+2L61RmSt+L/GOvR0AmDuMjRiqHdL24NpwSqf5AKFEBLj9mL j/glY6I+kVN+ezQ23A2VtUe6jlGtYhFQjGA+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5SzZg/Any9b15PYJNx4TC/3Ha5cPQwIvnngJiL/O6D4=; b=m9yew7om2ekewjVBy30MknLTME5KgacS53okbkt5BD6ludZQqRqx5gVWqkct/4vwVX C9nQFLFGy2qfACFJF48YDIEXRG80LOLXB+AyGFHZFDQMxS7AN5LGECwjdJAcjigFiFsy IAgh8IZkUdcnvNkmoYd4if2IbfguI+k3gBm+BSDpl2SahJYrqF0m96hRVav0+wIBcujP Lg2fDaHE9L0sakHqz5H/32oh9GKUYF+ANs57zTZSUf6uUEPnkPxss7hCU2hB9E9/Tk7/ sfMFN9fDFdYWaELmFIOCo8LCsoJxPPjFCdiKHVsSapS4Tepa52LhTZ8+Ya59mmLR3VSC izug== X-Gm-Message-State: APjAAAXheRVxhPcl+vOzlryscK+/JI6NBBI1KxI68RQwjRM7d4KvQxZM +Jl2wX0WtGhHP1epRVxkMDIwKw== X-Google-Smtp-Source: APXvYqwq5ql9gkBVGJtQCkgVSEUeNJ/97XFaS3CTKAxAX61qj+67JfQL5hpgXLD4RlP2wt4YbE8eUQ== X-Received: by 2002:a63:220b:: with SMTP id i11mr2311164pgi.50.1576045193287; Tue, 10 Dec 2019 22:19:53 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b852:bd51:9305:4261]) by smtp.gmail.com with ESMTPSA id h5sm1225579pfk.30.2019.12.10.22.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 22:19:52 -0800 (PST) From: Hsin-Yi Wang To: dri-devel@lists.freedesktop.org Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Nicolas Boichat , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , p.zabel@pengutronix.de, Enric Balletbo i Serra , Matthias Brugger , Russell King Subject: [PATCH RESEND 3/4] dt-bindings: drm/bridge: Add GPIO display mux binding Date: Wed, 11 Dec 2019 14:19:10 +0800 Message-Id: <20191211061911.238393-4-hsinyi@chromium.org> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog In-Reply-To: <20191211061911.238393-1-hsinyi@chromium.org> References: <20191211061911.238393-1-hsinyi@chromium.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Nicolas Boichat Add bindings for Generic GPIO mux driver. Signed-off-by: Nicolas Boichat Signed-off-by: Hsin-Yi Wang --- Change from RFC to v1: - txt to yaml --- .../bindings/display/bridge/gpio-mux.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml b/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml new file mode 100644 index 000000000000..cef098749066 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/gpio-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic display mux (1 input, 2 outputs) + +maintainers: + - Nicolas Boichat + +description: | + This bindings describes a simple display (e.g. HDMI) mux, that has 1 + input, and 2 outputs. The mux status is controlled by hardware, and + its status is read back using a GPIO. + +properties: + compatible: + const: gpio-display-mux + + detect-gpios: + maxItems: 1 + description: GPIO that indicates the active output + + ports: + type: object + + properties: + port@0: + type: object + description: | + Video port for input. + + port@1: + type: object + description: | + 2 video ports for output. + The reg value in the endpoints matches the GPIO status: when + GPIO is asserted, endpoint with reg value <1> is selected. + + required: + - port@0 + - port@1 + +required: + - compatible + - detect-gpios + - ports + +examples: + - | + hdmi_mux: hdmi_mux { + compatible = "gpio-display-mux"; + status = "okay"; + detect-gpios = <&pio 36 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_mux_pins>; + ddc-i2c-bus = <&hdmiddc0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { /* input */ + reg = <0>; + + hdmi_mux_in: endpoint { + remote-endpoint = <&hdmi0_out>; + }; + }; + + port@1 { /* output */ + reg = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + hdmi_mux_out_anx: endpoint@0 { + reg = <0>; + remote-endpoint = <&anx7688_in>; + }; + + hdmi_mux_out_hdmi: endpoint@1 { + reg = <1>; + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + };