From nobody Thu Oct 2 07:48:53 2025 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02C5222CBC0; Sun, 21 Sep 2025 08:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758443803; cv=pass; b=ulUooZEC3sgtvVdaqHvKBTs4M8Q+/jVN7v1xLAhyg6fUz2gWEkQRXlHJH2EooFMXJpcxu6fLpdHj6wjJ7qUiPBOgWq+7DusTL6ADFbYK07l/XzhI3LRBqHWSHpmrmqKXnfoKOha7yRSE1H4U/bZPpgEWI3hQ08aW5RGOQy8Jx0g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758443803; c=relaxed/simple; bh=IZ9F3NS1M2AUOVBZZf7r9qzYydISFqwXt9fG+i59pOI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HGnmTo+YNJ+mMuF/50t5B494RqoAId/HVPNNCbjIF+JcBtxShIPmZyRWq2syDOlYooV6VG3DjDV+0Y+yAeicLJDRqQh/UAGHUu54ThVat4c9352d3GGmXfWt0ynmtIBm9jrcBcYD2jgbw65X303uwD81be8KqGngocVJgwsytKo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me; spf=pass smtp.mailfrom=icenowy.me; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b=RFHUWAuy; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icenowy.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b="RFHUWAuy" ARC-Seal: i=1; a=rsa-sha256; t=1758443762; cv=none; d=zohomail.com; s=zohoarc; b=JHYrdiw4cX583wjUQjpVOc+s3YqXLV30Ak7vRvLTTZWxMqrk1by2tIdcV8lHJ8KA5MAIqGpCMZh8/2uRSF/8k7q13jrRutJuPKflknux1YunJJ6U8axNsOxC0GJ0ajghu+3drT8i0cyTjSgkCDJGOMW0gCjXD5AyWGyNcRXM92M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758443762; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=UummsIlLCqmOdqHJZnvTjKcukpG7EfpYHc84mjTRvVE=; b=ClwfO+GrwB6BvQcTC0F29lelVRyWjQO5cJCDTIpGUlEzuZzuIjWuPM+Cmj3yJqXG74w8LHHzdKBh6/Eh/RPSmw9xzFni8k9o1D4Wrqry67PZX7EigXCbhxOE50i6677VwgsbFUxsWTuZodJBD3jCZytFdbpoNXM4bgQvVMQj6Bs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1758443762; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=UummsIlLCqmOdqHJZnvTjKcukpG7EfpYHc84mjTRvVE=; b=RFHUWAuyB3dm23rD+bHxqcetPXhCoYxpFbqBEN48fh9DtL3ztC8WSgRSOa407PBF VtAFsWJj7u+C2rMmgu5OwzYI8Tah88ooqEhm66+aFubgnAh+fvRkPgKCUnpoEsvj48F kuEaoR/cdHT5TdhkvohpCf2r6tZGmim8++PZeFX4IejJe3GcY1IFZAz/Qm4UX/TblT6 TOZdsjGj52zDDSEqED4kSAsGXDNrIQHTkcrQEsd1Kdy7Rz1g2OxnLdZ16gudm9hfXYF vE/1RwLhIAp7H4JK7aLXoUp5E5+cAKBPVK/Gio8bqllfYAOWOSyHz3wP56IgJepfYiz e2ebVufc6A== Received: by mx.zohomail.com with SMTPS id 175844375941682.81760504450949; Sun, 21 Sep 2025 01:35:59 -0700 (PDT) From: Icenowy Zheng To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Drew Fustini , Guo Ren , Fu Wei , Philipp Zabel , Heiko Stuebner , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Michal Wilczynski Cc: Han Gao , Yao Zi , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Icenowy Zheng , Krzysztof Kozlowski Subject: [PATCH v2 4/8] dt-bindings: display/bridge: add binding for TH1520 HDMI controller Date: Sun, 21 Sep 2025 16:34:42 +0800 Message-ID: <20250921083446.790374-5-uwu@icenowy.me> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250921083446.790374-1-uwu@icenowy.me> References: <20250921083446.790374-1-uwu@icenowy.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" T-Head TH1520 SoC contains a Synopsys DesignWare HDMI controller paired with DesignWare HDMI PHY, with an extra clock gate for HDMI pixel clock and two reset controls. Add a device tree binding to it. Signed-off-by: Icenowy Zheng Reviewed-by: Krzysztof Kozlowski --- Changes in v2: - Re-aligned multi-line clocks/resets in example. - Added Krzysztof's R-b. .../display/bridge/thead,th1520-dw-hdmi.yaml | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/thead,= th1520-dw-hdmi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/thead,th1520-= dw-hdmi.yaml b/Documentation/devicetree/bindings/display/bridge/thead,th152= 0-dw-hdmi.yaml new file mode 100644 index 0000000000000..68fff885ce15b --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/thead,th1520-dw-hdmi= .yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/thead,th1520-dw-hdmi.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-Head TH1520 DesignWare HDMI TX Encoder + +maintainers: + - Icenowy Zheng + +description: + The HDMI transmitter is a Synopsys DesignWare HDMI TX controller + paired with a DesignWare HDMI Gen2 TX PHY. + +allOf: + - $ref: /schemas/display/bridge/synopsys,dw-hdmi.yaml# + +properties: + compatible: + enum: + - thead,th1520-dw-hdmi + + reg-io-width: + const: 4 + + clocks: + maxItems: 4 + + clock-names: + items: + - const: iahb + - const: isfr + - const: cec + - const: pix + + resets: + items: + - description: Main reset + - description: Configuration APB reset + + reset-names: + items: + - const: main + - const: apb + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input port connected to DC8200 DPU "DP" output + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: HDMI output port + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reg-io-width + - clocks + - clock-names + - resets + - reset-names + - interrupts + - ports + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + hdmi@ffef540000 { + compatible =3D "thead,th1520-dw-hdmi"; + reg =3D <0xff 0xef540000 0x0 0x40000>; + reg-io-width =3D <4>; + interrupts =3D <111 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&clk_vo CLK_HDMI_PCLK>, + <&clk_vo CLK_HDMI_SFR>, + <&clk_vo CLK_HDMI_CEC>, + <&clk_vo CLK_HDMI_PIXCLK>; + clock-names =3D "iahb", "isfr", "cec", "pix"; + resets =3D <&rst_vo TH1520_RESET_ID_HDMI>, + <&rst_vo TH1520_RESET_ID_HDMI_APB>; + reset-names =3D "main", "apb"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + port@0 { + reg =3D <0>; + + hdmi_in: endpoint { + remote-endpoint =3D <&dpu_out_dp1>; + }; + }; + + port@1 { + reg =3D <1>; + + hdmi_out_conn: endpoint { + remote-endpoint =3D <&hdmi_conn_in>; + }; + }; + }; + }; + }; --=20 2.51.0