From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796261616; b=U8g3sy+7RAw9B8l/Nv9kOP+ZXhtdWKvHbZXKbhaaZRuaBglowwhUaMVcSe43+d+HK//G GRfMKGGaIfbCBL7lbXsRMxVwAGGOfxZUcKP/fERegfLcZ45hOi8CZsnodwl4y+mkY55jM AAIRNv4/lKCr5MasrAXvWxfbnXf2VCIgZSWWGpLfLFBJ0merfmbW0b3ENg5e8yiGf7t1m SlrMpSpTDHI5GxgMbkXba5W1m4rscaQOS6giAGSMUSDAp+SPM4CtSTs/G9XKUr/6O4OdD 8hDCuiB2LDGgsFhEsWUCrTnkmopDfbZFWahHeKegDAXrAxcVBKZ8C4c2wqe1EPlj15w== 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=HtLBU9Qxc3MOY7kGBQ+r7gJREjTF+LvRO+SaxeTkSkl19EP84NS+aoIuboFmotdOJwXL Hfh+pm46OboyTEZO4YImKCwVP6GavBKH9LpqlbcwfhLvJy2JDVhuwxQ/NcrCOK2Y8wRk+ oK4ZvNS05MtDvT8cYsJO+LcZonLfiyOQ93GxYO+DeRZdnXyu2rcK+lx7SHM2IMFSKMsLB 5srJpotXWxRnYERu0z7j+LzXSPqKKghHOHfcud3ZuJmkN8xo001m6f77O7rSThjf1AP87 oF95xIUpCRPEkJcaVkd8w2UY5PtjnKNACJ5fPnO8KkAyE7dZ5FLsSLjC/0RS8M5BURQ== 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.48 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 AF133606A33D for ; Thu, 3 Dec 2026 01:33:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AF133606A33D 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-f48.google.com with SMTP id ffacd0b85a97d-492690dd5daso10643851f8f.1 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=xl5u/BWol/L8tVoUKhYRN8Gl4jsYbxD1lY7kXawgjYlUTeSuGcvNw3LyCMWoxw9Z39 dSij9QQqHKI+2fdBuasatYm/Sg8LNzKmYU2RDotUNgqA4c2iH88J2AJxraTjkAHpnHOi lCYOegh5/ApPvoAZQ9aKm64Qpwuu6UjmgpQVH5cB2gS1nwkC/fZ/vcjDjiXYXKhuRRK+ JjYR9d3bzWJy6CC13guOL62eIfK+yz1+3eUfVP0CP6nViM2fOQ7VcCKNQLW7TUxOLrAe CM+OZocpk8R0Lp8ouw7z4nrvFOwLlFSYsuUqxBWzJlVGCJkKxfJfqA8u2ztMUXs18NHa VQAw== X-Forwarded-Encrypted: i=1; AL+hErExDttkXAAkXYklFiCAz+x8dMdyWbwlye9YAzH9SFVJs4F7Cqxp5mtwhers3yjSpqfxdqE4wnHW/zuU@vger.kernel.org X-Gm-Message-State: APuU4Z+dN/hASNy3vW4Mc9WS1l4HJAuhVMAqAHq/5OrVhBC1C0DtqqhN 4lz59AgxUMEHUzvIpJPSUsXkmHI8wGHkckh3O8h4b49YVUBcMrMRcTk= X-Gm-Gg: AZFdTZev10zi3Um1D/1LONtdKs7n4Qd8LhbEorsvMJIGRaxrbHVyXX8np7kLFVIQsGV h3OClQ28E3ud/mgQylUuXwbTbgKupDAyYxvWymIWNRR98DTC8BtJGejHS/wL/HRMIK85wHqmMvG 7ZIY0f/PL2hXQfXSv9I07msv2m1CtEySL6bRf9+LjJ2YAc6fLNZaVjxWPRh9kJkZ1trowR3wvlq wUYw2vgGNt6UrN8qX32ISnRUOhOkFXGwQ4I4VhYjpNEGTiO4mIL3gzzk35RECU0/Mg39ZfU57t4 O2TGYdNjxJ6j13a2E/mZ3xaLqWLvoAKLxGnXGMLrWcnrpc7KtYbkEsClcACm9T2Xr/vZFrt97AP Nw88Dc8PyuzhPXJ4F0oOlu08yKwnR1Ousf+EOgn+8M/5PtW7lQ061V+MwotPtNbT9u/hdavAKRd JLndt1Z9683ukVdTzD3aFhkodofWM8OhQa/AUXmIHiy0zEaWeqLOnIUSm2yd9vlmlWDnJ+RmImH 3ebEiWUj7u/BJyQ1RQ3LmgFy0Am/lZja3HdQv3p+XdKt/ew06b4nyQeqTP5zICVHaqkS7YWHTjk R+znetsrauHrDGFyq4NZB7fgICyxyyoIasfdr4NRw8acLDtpw1SQ0ilDgR2v933VP1bPBqn7wAZ lLhuTyy8XufWeAvlO 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: devicetree@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