From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE1DB606A322 for ; Thu, 3 Dec 2026 01:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=oAzRtFR3; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=js9sY65H DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=+ruSqR285x/ygE1tgpcdJNMnFdkpyn2IZsqS0AfeSKU=; b=oAzRtFR3TK2Y3v Bx7M2xB/z+ykJ1K3rEpeuxh4mNoO0+BnCaw1/IeKYGPe5oSpoSVjp5ZRwUMJixVHp3TN14+GwOKUi 6wxXeKBDTUKO3z+FPXpiq/9Y3pir9V6PMbtnZXM4Mh1zqOFWOZuWDO70Gmu60POOAgcTUuxOkjK9l WFS4+XWcxwp5Nr7g8MvnZXmBmHccO/yFW/Bm4FkkDrvXb4KnCr3KX3lZfitlRIZuVIxCdvNjCkJn5 eb7U5M9jJG8L/ewrN/7SaIpJXcK+pbxWMYPtKjpSDoJTw51FW2we/tHG0TWUKcY06vJNKCslcm/9S 0lJuGVnGyF162GoYnk6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYvhc-0000000D8HE-03NN; Thu, 03 Dec 2026 01:33:40 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYvhX-0000000D8Dv-3lRM for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 01:33:38 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-4acb44dcd7bso12040779f8f.0 for ; Wed, 02 Dec 2026 17:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796261614; x=1796866414; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+ruSqR285x/ygE1tgpcdJNMnFdkpyn2IZsqS0AfeSKU=; b=js9sY65Hx5YQeCj5jByxnRlyffcaWCpGAXXHsnwRczKPlaMHUw+bN7P1f+Jnwv1C4s 22OSRJjnuy5bnIyknJijnLWwqbNx39OPezRaKf3zvOWckp475lp1bCsDnaonp/VNFQgT Gg9haEf3TRrGvM2W+uJ7MPZUhf+Bop0KkL5ffRFuJSfutxCLZ9ipHdUv8H+bzca4lMQG psmDzlDVRqa1NVvtHAbTjRnT6xr/lyCu5opSaeqU+cECyjL1OYMIreivutmJ3QMxdY9H Cp8OVoru4DhJdsCCpwwVJP/NcpwmzVF2pOPRP4d/C+1tCFLbHSYcTsTzerHY+EfhpR7c wE/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796261614; x=1796866414; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+ruSqR285x/ygE1tgpcdJNMnF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wIazkBPtB+1 s89rCDic2SyqNAP0DhqsB7bh3p2IVuQ9TC09iAkzigvmFKOJS2YiYIXnswvFpgx9E26UypUEw3M BgTPQ20J2EzyZwUL2Hk1blurWHia8zRICi0HUewWrNTS7s9NDoc119VuuiBeobMmNcx48Y+DDKI OEeUkpOWuOjOOVUYzNlbqU+uO10O9MbtVLRG0yhvfa0YzZzWxMU1bW5IFuZa3ldMAvhEZ3HmgAI 8FxOaHcoEVtH8Hzyf X-Received: by 2002:a05:6000:2887:b0:4b3:e5d7:215a with SMTP id ffacd0b85a97d-4b3e5d72317mr67908923f8f.24.1796261613829; Wed, 02 Dec 2026 17:33:33 -0800 (PST) Received: from localhost.localdomain ([193.207.118.159]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b2050f1sm78226989f8f.38.2026.12.02.17.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 17:33:33 -0800 (PST) From: Gianfranco Mariotti To: Neil Armstrong , Dmitry Baryshkov , Robert Foss , Laurent Pinchart , Jernej Skrabec , Luca Ceresoli , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Heiko Stuebner , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Gianfranco Mariotti Subject: [PATCH 1/2] dt-bindings: display: bridge: Add Rockchip RK628 video interface bridge Date: Thu, 3 Dec 2026 02:33:23 +0100 Message-Id: <20261203013324.30650-2-gianfranco.mariotti94@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261203013324.30650-1-gianfranco.mariotti94@gmail.com> References: <20261203013324.30650-1-gianfranco.mariotti94@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_173336_034696_DB0F1012 X-CRM114-Status: GOOD ( 17.97 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Document the Rockchip RK628 (RK628D and RK628F) multi-interface video bridge and scaler IC, including power supplies, optional 24 MHz reference clock, interrupt and reset lines, and OF graph ports for all hardware video interfaces: - port@0: HDMI 1.4/2.0 input (HDMIRX; requires HDMI TMDS framing, raw DVI is not supported) - port@1: Combo TX PHY Channel A output (LVDS ChA, MIPI DSI0, MIPI CSI-2 TX, or GVI) - port@2: Combo TX PHY Channel B output (LVDS ChB or MIPI DSI1) - port@3: HDMI 1.4/2.0 output (HDMITX) - port@4: Parallel 24-bit RGB / YUV / BT.1120 input or output Signed-off-by: Gianfranco Mariotti --- .../display/bridge/rockchip,rk628.yaml | 253 ++++++++++++++++++ MAINTAINERS | 8 + 2 files changed, 261 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/rockchip,rk628.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/rockchip,rk628.yaml b/Documentation/devicetree/bindings/display/bridge/rockchip,rk628.yaml new file mode 100644 index 0000000000000..5186a20da7124 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/rockchip,rk628.yaml @@ -0,0 +1,253 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/rockchip,rk628.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK628 Video Interface Bridge + +maintainers: + - Gianfranco Mariotti + +description: | + The Rockchip RK628 (RK628D and RK628F) is a multi-interface video bridge and + scaler IC controlled over I2C. It integrates an internal clock and reset unit + (CRU), a line-buffered post-processor (scaler, timing generator, and color + space converter), two video input paths, and multiple video output + interfaces: + - HDMI 1.4/2.0 receiver (input) + - Parallel 24-bit RGB / YUV / BT.1120 interface (input or output) + - Combo TX PHY Channel A (LVDS Channel A, MIPI DSI0, MIPI CSI-2 TX, or GVI) + - Combo TX PHY Channel B (LVDS Channel B or MIPI DSI1) + - HDMI 1.4/2.0 transmitter (output) + +properties: + compatible: + enum: + - rockchip,rk628d + - rockchip,rk628f + + reg: + enum: [0x50, 0x51] + + clocks: + maxItems: 1 + description: + Optional 24 MHz reference clock if driven by an external oscillator + instead of a crystal across OSC_IN/OSC_OUT. + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: Active-low GPIO connected to the RESETN pin. + + vdd-supply: + description: + Regulator for 1.1V digital core and analog PHY power (DVDD, AVDD_1V1). + + vccio-supply: + description: + Regulator for 3.3V I/O and analog PHY power (VDDIO1, AVDD_3V3). + + vddio2-supply: + description: + Optional 1.8V or 3.3V I/O supply for the parallel RGB/BT.1120 interface + bank (VDDIO2). + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + HDMI 1.4/2.0 input port (HDMIRX). Requires HDMI TMDS framing with + preambles and guard bands; raw DVI streams are not supported. + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Combo TX PHY Channel A output port (TX0..TX4), configurable as + single-link LVDS, dual-link LVDS Channel A, MIPI DSI0, MIPI CSI-2 TX, + or GVI. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 8 + uniqueItems: true + items: + minimum: 1 + maximum: 8 + description: + Active serial data lanes when operating in MIPI DSI (1..4), + MIPI CSI-2 TX (1..4), or GVI (1..8) mode. + + port@2: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Combo TX PHY Channel B output port (TX5..TX9), configurable as + dual-link LVDS Channel B or MIPI DSI1. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + uniqueItems: true + items: + minimum: 1 + maximum: 4 + description: + Active serial data lanes when operating in MIPI DSI1 mode. + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: HDMI 1.4/2.0 output port (HDMITX). + + port@4: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Parallel 24-bit RGB / YUV / BT.1120 input or output port + (VOP_D[23:0]). + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-width: + enum: [16, 18, 24] + + pclk-sample: true + + dependencies: + port@2: [port@1] + + anyOf: + - required: + - port@0 + anyOf: + - required: [port@1] + - required: [port@3] + - required: [port@4] + - required: + - port@4 + anyOf: + - required: [port@1] + - required: [port@3] + +required: + - compatible + - reg + - vdd-supply + - vccio-supply + - ports + +additionalProperties: false + +examples: + - | + #include + + /* HDMI input to dual-link LVDS output */ + i2c { + #address-cells = <1>; + #size-cells = <0>; + + bridge@51 { + compatible = "rockchip,rk628d"; + reg = <0x51>; + reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + vdd-supply = <®_1v1>; + vccio-supply = <®_3v3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + rk628_in_hdmi: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + + port@1 { + reg = <1>; + + rk628_out_lvds0: endpoint { + remote-endpoint = <&panel_in_lvds_odd>; + }; + }; + + port@2 { + reg = <2>; + + rk628_out_lvds1: endpoint { + remote-endpoint = <&panel_in_lvds_even>; + }; + }; + }; + }; + }; + + - | + #include + #include + + /* Parallel RGB input to HDMI output */ + i2c { + #address-cells = <1>; + #size-cells = <0>; + + bridge@50 { + compatible = "rockchip,rk628f"; + reg = <0x50>; + interrupt-parent = <&gpio3>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + reset-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; + vdd-supply = <®_1v1>; + vccio-supply = <®_3v3>; + vddio2-supply = <®_1v8>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@3 { + reg = <3>; + + rk628_out_hdmi: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + + port@4 { + reg = <4>; + + rk628_in_rgb: endpoint { + remote-endpoint = <&dpi_out>; + bus-width = <24>; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index c00d3612c9acf..0e0caed96838e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24599,6 +24599,14 @@ S: Maintained F: Documentation/devicetree/bindings/media/rockchip-rga.yaml F: drivers/media/platform/rockchip/rga/ +ROCKCHIP RK628 VIDEO INTERFACE BRIDGE +M: Gianfranco Mariotti +L: dri-devel@lists.freedesktop.org +L: linux-rockchip@lists.infradead.org +S: Maintained +T: git https://gitlab.freedesktop.org/drm/misc/kernel.git +F: Documentation/devicetree/bindings/display/bridge/rockchip,rk628.yaml + ROCKCHIP RKVDEC VIDEO DECODER DRIVER M: Detlev Casanova M: Ezequiel Garcia -- 2.25.1