From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796261616; b=q6Ngq1kp9ToBSxaWpBzqM4Cy6KA4vdejC+UMAiW+Qc8vspFQLtLMcJ1a/ewLYXowdrA4 ZCYl/r73tjpLQXgR9mPBh1lNQinHZ4Zt5f7tbd+M6aA0ILXFiM2+Zu2XWH+DmY2PYqE5O s5ViTtNczDTjqvjNkm5X6Yler6y2b6lbpMSKRpNOyjhVjlSHNU+ccugEDYb79315J0+dd um1IFxiTLXnXWsz2gGh8cwjYTQI/oBaRVXyAPW/VxraCpARdXicln8OZ9H0EzLYy7qaDO 7ImLEGYoCfTjgvPvG9l0fZ2SKgVfhQgjzKIfLKMhoqaWDsyOkQBnP4/kB18u+izbQ6w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796261616; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=+ruSqR285x/ygE1tgpcdJNMnFdkpyn2IZsqS0AfeSKU=; b=dH1qK0mwOQc8BfnQzhjsDZvN+0xwQ+busiVwk+UODj0Kca8VcCgf5yTq9qQ7FmLsJ5lS V1yFqLQvPkT99gdMdZsfSPcPUOcwcm38Xoy9cG2BO70UAfg9a3+qmBjrpxkZnMucoVKzH mjQriWNB2h5XUsqQYRWoA6FZ6/HI1BftKxVbSjUqbgotPkSVvDYwdyzs3E20fkfW4le7m SO9dpiBeCnHTviGuRRw/hKR2PMyT8F9i/jAK/1lgSmUsY0bB1j1WgNB7dZQjSxBx51Vqb gmbqzLZxlHZaZmBpJTtUgw2KYRnwF22vug0QEmHmrF9Za/Cy8RQiIq+dPaUTtxDPP0A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=W9xpQX2d; arc=none smtp.remote-ip=209.85.221.52 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D16606A33E for ; Thu, 3 Dec 2026 01:33:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1D16606A33E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=W9xpQX2d Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-4aa5833c263so13101508f8f.2 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=vger.kernel.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=W9xpQX2dAgdiZvjbPn34dJ1ybatXKbI4ah1XK2Gd/lVivIigd4+S99FwV+Auqf1ZvP AAljwHm3+TOkHtwB82UvK3TRR3CdK3JX4lyUrSORaPX44niQUHR/MWPR1lSO921hYSxU yhQLiWiyVjH0+QSOhNPLKDSQ9gM4D/Xahxf8VCXBTUBXVWOwHtnQrYKbc7Y1Un2h0fiY CPlK+7jTNRCF7tHPFlQVZTp8DlbxrKDrGQcGvO0VyDqy5m55QPVM7sDTPjRokAkiIKKE Q3BNAXdvNg6/SsOcX2DMc9MkQddKhCXsJC4Gan5QLGR4AUf0drBuWoRVB4qjjtWy4Qng uz5w== 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/ygE1tgpcdJNMnFdkpyn2IZsqS0AfeSKU=; b=GirxYyAhtHoK+iC73iEl9I2r7/UAt6G+d89ueY4/+dq+sXLoXil4YjyegSe396M3nu CrspjDz9GAwS4SNlyrsNYvTwGERmG8DWEfyM4GmPJcxprwLfwoyd7Dou5LYvaEB/GbSg DV5NhNxWwjyRiOORWZ8u4UUadeT+Kp0TpZICbYgWHHAZinOsgJ5IVWGKRQe8f1xYJo8p GPyt2NVMKCsLDGYNb2MV10VcE05QIJwc8a1oOrJOccxcgr+qrgEwCv9R30XSIUSHB8M3 gd1nABZkctFLSs/jv42E754gEG5tnb5IJlNFuLl3ECgKWutbNgTrllEYc/3Cg2Od78YJ L+Eg== X-Forwarded-Encrypted: i=1; AL+hErEy2NAAvdRqfk7YIIT0zokHA/hhA/dxnOOAcXr/zCEjLtufOky/S3LOUSV2NP/IKjvpcmwV056HT2hsUfg=@vger.kernel.org X-Gm-Message-State: APuU4Z9By2QPlVjkzwEM4yYcc70FHpZmyUBFGzM+vXtLWv8dTbc+BIYn Z83+BmGi8LBa+IjsG2e+pm4NwpuvWRBTs8iDpxmcXHXD7jxsU4WBaZw= X-Gm-Gg: AZFdTZdtZeaFR6ovu3XNvKKLCP2p3T4bqO5VMto7da8VRD6IsDInXK+9ynfNb6fh4yR kZ57owIdD0xahkMebEcyAHn7KbZONAo+HVfEYNds3jHGJoHlJXbV4UN+Hb8oyHESewuzVtxsoeZ FP/iIoiibSfzkmXZm1Td5C+t+2gzpYHukDxawBGSnnF3rh66MEXPARefpi7U7NOfXIf1qQAfETB iPlaCBLGzdp2pYLATDVllR+gof0TeOsAa8yvTJCy8093l4Ye4pBkfDxxI8dySvBeTDvTv1+8wbo wWbTDnjuzeYxwUOXtCSgd5kbyBo8OHzqm6aoPKm+0QgNM1VVsh4Ct1+/RaruHVO20rZ4BqAG+l0 bLseyLeTHn68lYUfEsR9x+U9psjtqkzupRTtkCFfvfvZQM9aHiLC31w2DEqc6cJxBHu5tuXZuh1 lGichh+rOWkwEqZPen/rm3oNolvpTIiiE7yt5OWdpeoeochFBvMjP+ZMT4AgNPMhTQqouvVj00m 5cCQmNL1Waxm5Z90NL88LZc0PpJio44Er6uFx2iI5Q6jVrEHMpHRFg8Twq6hUj5fQiINBrjpHbT BZSfzAjau7d7FsuIpx1Y3lB87lZC/z7kj8881tVfnwh1L/Vlvqzx3wJ+2vUf8zoZiX9B8VS+okQ W1+BqYryGrcWExb1W 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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