Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp495928ybk; Fri, 15 May 2020 06:14:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx62GjVxv4Patu0nEpDSOtgCZzC8lG69jxoddCORa8e9CBhNQ5MBrEbcbjt+XGC2/mf4OHS X-Received: by 2002:a50:9eac:: with SMTP id a41mr2876188edf.120.1589548472365; Fri, 15 May 2020 06:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589548472; cv=none; d=google.com; s=arc-20160816; b=LgOiTT7Q4CMxwHKa4R+aJPV7PbKoNVZzZW5CRVLjokioWIldMtIOYIKtrv+VQ/ygYt 0ld5DQci0wuhINNUeoA1A2+l/spT6a0x3Uuyxcoo17ku7yWbR6bsdYabLOCXxuG4Brsl 4JGX3LSiD4cmMnY06qMRsZjVr11SfayO1M4RKyAlwbEyn8Iatl5FOZNdgI1UtkCypS2c t45JbQkqR9HOuTpwdG7413alJ7kUiD73vRbRmEAO0lx/0SNNRi9MXhpIFQnKo+KQEIDj qKj8A5bO/DQzv/Lt/CC9o/IeIK/gs6pjM8raeCwPn/F/HhEVFrsHC9LEiR47g+FukqBs 4iQw== 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:to:from; bh=TLxWCaF0XHyenSIY/RrUDGI7pWoJgwgkNCbyv84oG2I=; b=UWoRS156cOu2IQYiWwtfO4gFJBbDm+nYWn5PJpOeDdD6Frkq1vlsAFw43HGd4NvPmi 70aIhaSgtWeReONIF5YW+FodLQViTKt4Uq7Z8MadbDmbbhO5nFDyEaV9jDje61D3i9Te uALH6pKlDSC8JpAELiXphxUg8fMDci4kzt1mae9cUFMLRRZ6845cqnacebadIfRFePxG oxOHRPmHif5nLrjiD9uQ/a6+BniBxCAV/IoLQVaA0cXmsHbqbzaOc9e5AoeEY8idLfbT OxOMmCskk40btH2R9j/OAmkUVNQu8bxDYM0lgcLfipxrjYaiR9HXDCh6yt0ynDU4DPrj GStg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si1048723edq.99.2020.05.15.06.14.07; Fri, 15 May 2020 06:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbgEONMe (ORCPT + 99 others); Fri, 15 May 2020 09:12:34 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:53450 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgEONMX (ORCPT ); Fri, 15 May 2020 09:12:23 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 52834FB02; Fri, 15 May 2020 15:12:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f2J9qBn8ahqL; Fri, 15 May 2020 15:12:16 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 686394458A; Fri, 15 May 2020 15:12:15 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Laurent Pinchart , David Airlie , Daniel Vetter , Rob Herring , Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrzej Hajda , Sam Ravnborg , Anson Huang , Leonard Crestez , Lucas Stach , Peng Fan , Robert Chiras , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 1/6] dt-bindings: display/bridge: Add binding for input mux bridge Date: Fri, 15 May 2020 15:12:10 +0200 Message-Id: <14a44a664f40584ffa25c1764aab5ebf97809c71.1589548223.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bridge allows to select the input source via a mux controller. Signed-off-by: Guido Günther --- .../display/bridge/mux-input-bridge.yaml | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/mux-input-bridge.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/mux-input-bridge.yaml b/Documentation/devicetree/bindings/display/bridge/mux-input-bridge.yaml new file mode 100644 index 000000000000..4029cf63ee5c --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/mux-input-bridge.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/mux-input-bridge.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DRM input source selection via multiplexer + +maintainers: + - Guido Gúnther + +description: | + The input multiplexer bridge allows to select an input source + via an associated mux controller. + +properties: + compatible: + const: mux-input-bridge + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + default-input: + description: The default input to use + + mux-controls: + description: + mux controller node to use for operating the input mux + + ports: + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^port@[0-9]+": + type: object + description: + At least three nodes containing endpoints connecting to the + pixel data inputs and outputs. The last port is always the + output port. + + properties: + reg: + maxItems: 1 + + endpoint: + description: sub-node describing the input + type: object + + required: + - reg + + additionalProperties: false + + required: + - port@0 + - port@1 + - port@2 + + additionalProperties: false + +required: + - '#address-cells' + - '#size-cells' + - mux-controls + - ports + +additionalProperties: false + +examples: + - | + #include + + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + }; + + mipi-mux { + compatible = "mux-input-bridge"; + default-input = <0>; + mux-controls = <&mux 0>; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dpi_mux_from_lcdif: endpoint { + remote-endpoint = <&lcdif_dpi_out>; + }; + }; + + port@1 { + reg = <1>; + + dpi_mux_from_dccss: endpoint { + remote-endpoint = <&dcss_dpi_out>; + }; + }; + + port@2 { + reg = <2>; + + dpi_mux_out: endpoint { + remote-endpoint = <&nwl_dpi_in>; + }; + }; + }; + }; -- 2.26.1