Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4545890ybb; Tue, 14 Apr 2020 09:20:28 -0700 (PDT) X-Google-Smtp-Source: APiQypK9KiHzJm/W0bb1tQHw8TQ6rA6Rk4yu6qtSdjPIvH1MK5ThfA6Mvi8icJb1DqEBa5MJ9sue X-Received: by 2002:a17:906:81d7:: with SMTP id e23mr820486ejx.309.1586881228098; Tue, 14 Apr 2020 09:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586881228; cv=none; d=google.com; s=arc-20160816; b=0mjrygwhXujt/5DztC+0jxedNakdHMPDZA6EbvveYu7p0zt19SktBDlPHdoq3LMK5V iu3ApPIKc/yr/aHcn656wMqEvjAgjNa+dQMrcawhLU33hirjdSOS0O5Hbp2BSy8c2KLy T2fAAzgG7H0++5QbkE1myiSRmuHCACNNbwTYJaoj1tuIGSjwnBTtrX5cH+TLezVCBtcX ynxxTf/TnH0Y2Dd97ZlG2FYC9tLByJ5CtQc44lJUpHphAJXvdTU8GgCsJbVVY75nMb2N JK/sis2wJ+0hBxb1CkhJkn355F0mIv5FhOMasygqtBYP91VYaZ0EoSC1Pp5BC0ks0ung Rvjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tvBOegwMax/fJ1sSGGcYH3io5wFpuf8pTS+koXs/DDY=; b=SChBOv49cR/GCkZUZBuUxWMgILsH+0nEi7O80+D9kFUwrS1TYeDT0URx/yZ6oiw07g eyZRo6Y8UKGgfiqB4z99y3ZvergSSw+K4rgEVpgE/5PEcpVZeRatzoN1U29jQ0xbBvVd ORDlBuzVcoYqA7CA5V+5g/kt87TEHmC44TA+DWGfCDdHaIXPXPNeR4VN9vy/wLv8xg9Q JubRDwYKodYH58NHL5yXCEqmoHPOAVD8KkRjv1B5u3wfcfXazVzfWJKeAt0pwc0rFy3i am5ur/gFO52jYOxJuJF30q/O2F4QK9TIIYJRKCNwhYx0+KZqK7ieuQTUSuR2Cw5pPAAc m4DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=ZjpJwCvj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si9310939edw.369.2020.04.14.09.20.04; Tue, 14 Apr 2020 09:20:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=ZjpJwCvj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391056AbgDNOoS (ORCPT + 99 others); Tue, 14 Apr 2020 10:44:18 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:36978 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391043AbgDNOoK (ORCPT ); Tue, 14 Apr 2020 10:44:10 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 98B2F40484; Tue, 14 Apr 2020 14:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1586875449; bh=eIIjCzTpeJMIfjiUtE1G7XmBmAu7WJWsaBPpYxUyTbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjpJwCvjTZ21Cw6M82VbKtkgqmtUwYkUiWoPlLLJG+DfRoun9E8cp9Xvx8Itvp3wt LlC9t4GqFfRUGGr6le6HQNBMia/TtaTMPbNX9fVX3FuA6ekNnOiH1QRKYgpMa/75MH DKdRc6xdsas3aQyo9kmM+0t9Nbs+LEF6vMjz61MYT5rEu3xtZ+S1rzaJJWe85jaLh8 ZFWvMB3i6OkPlPdgdB/DySbCKVKRo90Pu7d92gpl3nihdJ7dgji/68V4/GHsGyxS6W PW5qWMekRh4C/2HlCgCL5ENxJer93//39vyh0ueus1G988FsoofGhWeL4HGSlWYRTm vPELGrUEnHjNQ== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.225.48.89]) by mailhost.synopsys.com (Postfix) with ESMTP id D6D14A0065; Tue, 14 Apr 2020 14:44:06 +0000 (UTC) From: Eugeniy Paltsev To: dri-devel@lists.freedesktop.org, Alexey Brodkin Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , devicetree@vger.kernel.org, Rob Herring , Sam Ravnborg , Eugeniy Paltsev Subject: [PATCH v2 2/2] dt-bindings: Document the Synopsys ARC HDMI TX bindings Date: Tue, 14 Apr 2020 17:44:02 +0300 Message-Id: <20200414144402.27643-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200414144402.27643-1-Eugeniy.Paltsev@synopsys.com> References: <20200414144402.27643-1-Eugeniy.Paltsev@synopsys.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation of device tree bindings for the Synopsys HDMI 2.0 TX encoder driver for ARC SoCs. Signed-off-by: Eugeniy Paltsev --- .../display/bridge/snps,arc-dw-hdmi.yaml | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/snps,arc-dw-hdmi.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/snps,arc-dw-hdmi.yaml b/Documentation/devicetree/bindings/display/bridge/snps,arc-dw-hdmi.yaml new file mode 100644 index 000000000000..f52fc3b114b0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/snps,arc-dw-hdmi.yaml @@ -0,0 +1,131 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/snps,arc-dw-hdmi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare HDMI 2.0 TX encoder driver + +maintainers: + - Eugeniy Paltsev + +description: | + The HDMI transmitter is a Synopsys DesignWare HDMI 2.0 TX controller IP + with a companion of Synopsys DesignWare HDMI 2.0 TX PHY IP. + + These DT bindings follow the Synopsys DWC HDMI TX bindings defined in + Documentation/devicetree/bindings/display/bridge/dw_hdmi.txt + with the following device-specific properties. + +properties: + compatible: + const: snps,dw-hdmi-hsdk + + reg: + maxItems: 1 + description: | + Memory mapped base address and length of the DWC HDMI TX registers. + + clocks: + items: + - description: The bus clock for AHB / APB + - description: The internal register configuration clock + + clock-names: + items: + - const: iahb + - const: isfr + + reg-io-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [1, 4] + description: + Width of the registers specified by the reg property. The + value is expressed in bytes and must be equal to 1 or 4 if specified. + The register width defaults to 1 if the property is not present. + + ports: + type: object + description: | + A ports node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: | + Video input endpoints of the controller. + Usually the associated with PGU. + + port@1: + type: object + description: | + Output endpoints of the controller. HDMI connector. + + required: + - "#address-cells" + - "#size-cells" + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - clock-names + - ports + +additionalProperties: false + +examples: + - | + hdmi: hdmi@0x10000 { + compatible = "snps,dw-hdmi-hsdk"; + reg = <0x10000 0x10000>; + reg-io-width = <4>; + interrupts = <14>; + clocks = <&apbclk>, <&hdmi_pix_clk>; + clock-names = "iahb", "isfr"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hdmi_enc_input: endpoint { + remote-endpoint = <&pgu_output>; + }; + }; + + port@1 { + reg = <1>; + hdmi_enc_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; + + hdmi-out { + port { + hdmi_con: endpoint { + remote-endpoint = <&hdmi_enc_out>; + }; + }; + }; + + pgu { + port_o: port { + pgu_output: endpoint { + remote-endpoint = <&hdmi_enc_input>; + }; + }; + }; -- 2.21.1