Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp603492ybz; Wed, 15 Apr 2020 14:59:11 -0700 (PDT) X-Google-Smtp-Source: APiQypKg9KcgK6//bIa82zAGBVwQxAV1Fftx0Vur0X7U/xV6yz0I/k0SfEyfq4N1mOde1/LsA5Sz X-Received: by 2002:a05:6402:1257:: with SMTP id l23mr28525549edw.197.1586987951575; Wed, 15 Apr 2020 14:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987951; cv=none; d=google.com; s=arc-20160816; b=D+QIssbfAQh1P2brqXdQH3R9/0cOyUWjVs1SU3kcHXzoi/NDheWMG2EDPl5xAojIMt PydQQc4d0FVf5qgsOLMlpDSJD5VQ0trpkqBvSntZjZE93wjo1pwGa2GZouUJD3amgnjf P/vLAj2sthPSlPBhUeRyUblHKZfgQ2bQTMgN1yZ86nucjp6er3omhbHLHM4xO1ZIQHOO uK4RL0p9xs5OaAbaDaDePNf2VNqGv7xvIQ4tMsFNPz1lKMGgg9eszbD3lBpwIluCzXC5 TQZ8396RuEmmqZyPnOiPtGOLjLvMXRLK2h9sklZAJ8JkMlVMOVD/qHmI4tTFolmrmhnM MB3A== 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=yCPxIAmSqDRZuPCayCLO0miqqXXqnpsO4SBcD1bUEr0=; b=CsRbWtfj65R1b2FvEqetzdcshA1TMnkhiSXNCu32zP2Gx0G2UbbY4B9fONaI3gRDQC /A1cToDb/2nkA/JesHQL9C6P1lmFDkdMxeCgtLR9QmMKD+18mGfnzyeQRwnr4316v0N/ kL2V7PxPBSky5Mj/lf0XS55YTcGzq4kkDuVCXOyAJYBGT/QstDD6osvNYjFi3RxKmFyX qN+2VFK/S3EOgMVUxyUrWbYopifU/cVOOHS3CqBh8fQgR9gz/Jp60NdqhX8tVxEYViA9 yiY/UCbJ8db5XBTJqoC8+V6Q5bv4NPYXXhbPIDEPh+3rbTagX8yCDZC5QG6raFzFZZxW jQ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="ld35b5F/"; spf=pass (google.com: 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 b89si2568216edf.345.2020.04.15.14.58.48; Wed, 15 Apr 2020 14:59:11 -0700 (PDT) Received-SPF: pass (google.com: 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="ld35b5F/"; spf=pass (google.com: 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 S2392151AbgDNX3v (ORCPT + 99 others); Tue, 14 Apr 2020 19:29:51 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:51558 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731280AbgDNX3o (ORCPT ); Tue, 14 Apr 2020 19:29:44 -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 A98DFC00DE; Tue, 14 Apr 2020 23:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1586906982; bh=tNu4Scr083t5TpR/FgPDRPLMswuTZmLX+MVL6F246l8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ld35b5F/22iSy4ujhnk9XA69Db+XLvF8r5GbDNw98Ky+EapwNFKzH6fWXathYC/sd rpPjVxISeXcG5TnQTtGdyV9gzCDHkmjgz34PUtX4FlLQ4OKUSGFSHGWB1Sg4iy2sbl ujG33FON9BrY8B1ZFAEMrwsIDnDw8XfxYjezBSyha4WU1fPyI9SCuOm6V4y0HAh61b 2s0D13KGqKpwCM50sAH96yO0+psKlMkUW4r6s90y8cXWyhat2yCn7Ar/qs5SKn9jXx z2kTa9LlODtCZQZjDFgk3B6iWP8ZzFmRNP5AkQWLLGuv5RUqvhtKVyMk7l8I4lAS6L vVd3Cu7zPminw== Received: from paltsev-e7480.internal.synopsys.com (ru20-e7250.internal.synopsys.com [10.225.48.89]) by mailhost.synopsys.com (Postfix) with ESMTP id E28A5A0063; Tue, 14 Apr 2020 23:29:38 +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 v3 2/2] dt-bindings: Document the Synopsys ARC HDMI TX bindings Date: Wed, 15 Apr 2020 02:29:29 +0300 Message-Id: <20200414232929.22788-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200414232929.22788-1-Eugeniy.Paltsev@synopsys.com> References: <20200414232929.22788-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. Acked-by: Sam Ravnborg Signed-off-by: Eugeniy Paltsev --- .../display/bridge/snps,arc-dw-hdmi.yaml | 136 ++++++++++++++++++ 1 file changed, 136 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..9b2fdfecd5b3 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/snps,arc-dw-hdmi.yaml @@ -0,0 +1,136 @@ +# 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,arc-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 + + interrupts: + maxItems: 1 + description: Reference to the DWC HDMI TX interrupt + + 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 it is associated with ARC 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 + - interrupts + - ports + +additionalProperties: false + +examples: + - | + hdmi@10000 { + compatible = "snps,arc-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