From patchwork Mon Apr 19 07:12:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 424749 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 97E50C43460 for ; Mon, 19 Apr 2021 07:12:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 747736135C for ; Mon, 19 Apr 2021 07:12:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237636AbhDSHM4 (ORCPT ); Mon, 19 Apr 2021 03:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237581AbhDSHMz (ORCPT ); Mon, 19 Apr 2021 03:12:55 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 040D2C06174A for ; Mon, 19 Apr 2021 00:12:26 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m9so20034535wrx.3 for ; Mon, 19 Apr 2021 00:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CVHcO7akxBa72/X7FrsMB/fvKb0p1e2KUjNMQdLiNAc=; b=ZMzkwdXp/CzrI7tBL9v1ONStdrw1ViW4X//V00qNjTFeskT1zQy3AwkbZEHmm/PdsB 4+55Tyu31p5Z3gFfbQV956zejngtCVRWrr4aUhSsUxAjr3EknGaeVosXEn6x1iiq6Q57 /V6MIariYSuYikcTfBqn8v9ML+Df7SOl5oNNqWa4QkyTPJB8WG3r8Xwgz7L+nu86QDV9 VkWSEs8ODal2PNVVvTG1YQhbw0iUOjIqobtR0Yagf4kKna98wgyU29KRKhkApGc/piZA BQJ4O/9wO+ulPBp2CuMU9gTeOunsNeXJQgGo/k4qd1EH00FGBdKKwphMNd1cUWMhdcek RIyg== 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=CVHcO7akxBa72/X7FrsMB/fvKb0p1e2KUjNMQdLiNAc=; b=O0k75X+JrJ2QcxYszmopWhBAoJRvZAfUOq1cdKVC5Ae+2CumGkp95XwD72XfaLS/c0 Qu3Q/xL52xJzczA7Lpdf7AUnV/4mYH0mwl/T/9TcTEilMk5I6h4qrT9lep6pVHG73f01 MGwS03MHUUQPnjrCX0MGm1EHPiLioOumPIFTEgu7yR8hADpqgxvLqPiL3/Xjrd2zcs2/ nl8JvGlhc/PALQVGntdTH9iEmhz5iHXR3lnwBfGkXw6sxdUlFpsI4USRTdYjnZVA/fot Kix/4nQRrlfBdXEvmTQAfqNaWTAbBPLZXq/N4O1P5yE3tFbtYuHc4knaFo+uXb50ZkFV 0AhQ== X-Gm-Message-State: AOAM5334644Roee+5u8n6GLJS6UVrrZJ47eOEfKej2+pcI3FBqOpZKcf yDNO4osix8g1vlduV97KFM8I/Q== X-Google-Smtp-Source: ABdhPJxczwmslePqXk+KftKBflLc3iAlG17HunPpf12xQ4UKo4Ipg4xfRyX1Z6kJq4DFZhMSpxzwhQ== X-Received: by 2002:adf:ecc8:: with SMTP id s8mr12462248wro.169.1618816344715; Mon, 19 Apr 2021 00:12:24 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:2e82:31e6:67f1:4f33]) by smtp.gmail.com with ESMTPSA id i9sm10447922wmg.2.2021.04.19.00.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 00:12:24 -0700 (PDT) From: Neil Armstrong To: a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, paul@crapouillou.net, robert.foss@linaro.org, devicetree@vger.kernel.org Cc: jonas@kwiboo.se, jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Phong LE , Neil Armstrong , Rob Herring , Laurent Pinchart Subject: [PATCH v4 1/3] dt-bindings: display: bridge: add it66121 bindings Date: Mon, 19 Apr 2021 09:12:21 +0200 Message-Id: <20210419071223.2673533-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210419071223.2673533-1-narmstrong@baylibre.com> References: <20210419071223.2673533-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=A37XVUhvAjeOHadMAQvzsTXvq4/Mx+3fpb+QMgZO0wk=; m=hE6W1GKMCnDe7Xl9Y2XkaKJE8GpE3GDH9eFQ15OmrR0=; p=eWsF/9X6dJ2dGxyfExV9lgaFxqhX7MsrvS3ZLcdKl2U=; g=b0191a1ee2971a02d75b9362a1e39795593059ab X-Patch-Sig: m=pgp; i=narmstrong@baylibre.com; s=0xA4CFF8AE; b=iQIzBAABCgAdFiEEPVPGJshWBf4d9CyLd9zb2sjISdEFAmB9LUEACgkQd9zb2sjISdGQ+w/+PKr bmPInssnRpLnrUXH34tL/DOBc1ijeBguSraXABsWzrn1WtmxnEN26WsStOUHD0h+s0pEEVz6UjWde zMbs1WWTa0tAPRY/pVAtMwnIvVA0jf1hvIHx+jY8A8he6oMzhhBIqEnF+13yZw9xlcJZdP0dgRw1N 4U6sJwqpxuk+vaOXrRexMshwNNBKBsX7xhj+8cIDuOGHkQr7xK84i+pfPAyGdAX+onwbhJuUEp4ct tx0oA6qIousQTQTIiV0CdJAsXHOG4tQrRBCrI8vTUfMzPQuDqNbfu6FZilPW9BySsGtXe9Jh75p+J 5dwobwC2XumiiV//ecuN4+TTHStKMHNb0WiD4/jhiGxtCVHuX4QgJ1h6wrkYf2+3Huq4uR6Fd2EHs Oc91zTlc4JQgWzNWeTUDwaIaduWdtoQ49QFH0blNMEz/5EK5tqwNYhxuqp7+uR/h3Y2BIcQWXz1Y8 i/u2O3D++aPFK7JGQdWwwHxYXwcOmTCypVdGyvDsNIlaq/FgRV+iB9TwYJxNE6kZ+dOP/KCwfTsEA V5DQYpDnggXd7ys3KMff8FXz6qG7/btmLbNK2/AARUOa6TEYxgONq0MhOhvEtsue5ExtaWLLIPLbs WRiQw4UAqMcQXm1VYYS0rFouyfLWLf2OYOg4P+wgnQPWRcgFJcE7eeRpff/tmB68= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Phong LE Add the ITE bridge HDMI it66121 bindings. Signed-off-by: Phong LE Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- .../bindings/display/bridge/ite,it66121.yaml | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml new file mode 100644 index 000000000000..6ec1d5fbb8bc --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml @@ -0,0 +1,124 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ite,it66121.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ITE it66121 HDMI bridge Device Tree Bindings + +maintainers: + - Phong LE + - Neil Armstrong + +description: | + The IT66121 is a high-performance and low-power single channel HDMI + transmitter, fully compliant with HDMI 1.3a, HDCP 1.2 and backward compatible + to DVI 1.0 specifications. + +properties: + compatible: + const: ite,it66121 + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: GPIO connected to active low reset + + vrf12-supply: + description: Regulator for 1.2V analog core power. + + vcn33-supply: + description: Regulator for 3.3V digital core power. + + vcn18-supply: + description: Regulator for 1.8V IO core power. + + interrupts: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: DPI input port. + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + bus-width: + description: + Endpoint bus width. + enum: + - 12 # 12 data lines connected and dual-edge mode + - 24 # 24 data lines connected and single-edge mode + default: 24 + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: HDMI Connector port. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reset-gpios + - vrf12-supply + - vcn33-supply + - vcn18-supply + - interrupts + - ports + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + it66121hdmitx: hdmitx@4c { + compatible = "ite,it66121"; + pinctrl-names = "default"; + pinctrl-0 = <&ite_pins_default>; + vcn33-supply = <&mt6358_vcn33_wifi_reg>; + vcn18-supply = <&mt6358_vcn18_reg>; + vrf12-supply = <&mt6358_vrf12_reg>; + reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + reg = <0x4c>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it66121_in: endpoint { + bus-width = <12>; + remote-endpoint = <&display_out>; + }; + }; + + port@1 { + reg = <1>; + hdmi_conn_out: endpoint { + remote-endpoint = <&hdmi_conn_in>; + }; + }; + }; + }; + };