From patchwork Thu Mar 14 11:27:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 160325 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp15385186jad; Thu, 14 Mar 2019 04:28:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKMFgvIXi3wmv+jsetuAcggeldTOBhGg5Bp62iRNvfdr8bCBKYUbZ2w6ZeHo5PwJZlbbmQ X-Received: by 2002:a62:4117:: with SMTP id o23mr48865579pfa.248.1552562903024; Thu, 14 Mar 2019 04:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552562903; cv=none; d=google.com; s=arc-20160816; b=mtFaO0Ru+WdZj2XElc1a1/SZmz+IdDmmls07lKcaKNJlet2e5+OJmnyRGRJJqlOGPB 5MQB3AsJCiaqk8AI4+B9k+gCjn5BSOzvoYjGNnwu3mKissKaqz7QIvjwmJHtQtFCX1Ay EUoUk698HL/pUgIlWDLRou4+/cEUqyia4hhwN+UcxEE1n3Rtgv6gZ6ga5X9fxSTMDP5Y DPz8Q6Y4SU0uT/F52d4Xd4UuYfss2ct09fLwPjUiDkql5aN5TTLl0s6V53bq8YS+VsDV eMqBHzZFBBNp5a+qqiA1ZdkGpS76jkmMcPR7YFtWpPtuwgzln6YIY//5cgT8+n3bRPu1 EKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=bk4hZRhXi9zu2O0VNV6+pnq6Ohlu/iB0ZH7Ry/RadAU=; b=QPxp7N9sj2h5OouAYOG+Mk+/SMlsDSAIAZJlselhLKrG1eAcRo3kPxalLPY3k4lzE3 DaXeV8z3gV2Ic8aCgJYpd1kV+jbzqTenvvWEgfIq66N1WMAOsBmZJrznfwveWg21c+Dx nMgzSZejvKJUH1I7VayPLC9HGfWJUOcc1LOHIYhNj1j6xR20M7XB2R4x8K9WfB2v2XF9 Jg7nuqqB7yCXynHcFuuqbbhQTbrXRvUrzp/xpP9g0HO1QaxBxBzlZ83nayqDhwI9028a lzzE5u+gTMiebSWZD6qzfF39MayW0J9ClS8AxMAF3m3r/HwXt4lPbDaa4W+SBlYZLUIu m3UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id n66si12928816pfb.62.2019.03.14.04.28.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 04:28:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B39306E1E8; Thu, 14 Mar 2019 11:28:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id A222C6E1D5 for ; Thu, 14 Mar 2019 11:28:19 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2EBS9FS128577; Thu, 14 Mar 2019 06:28:09 -0500 Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2EBS93g029155 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2019 06:28:09 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Mar 2019 06:28:08 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Mar 2019 06:28:09 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2EBRru0010136; Thu, 14 Mar 2019 06:28:06 -0500 From: Jyri Sarha To: , Subject: [PATCH v4 5/6] dt-bindings: display: sii902x: Add HDMI audio bindings Date: Thu, 14 Mar 2019 13:27:51 +0200 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552562889; bh=mwqc10crq4UJG09upop48eGHs8wzwa7IwpC9XsOkN5o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TC0x7i0VzEk4KOV1M3e8l13n6a55jJfbgo/a1l3qgWR4wP5g1Hcna4WPReiOiImxK tFWieqYeou2c6OMtraLAiosATqF7NVWy9KXZkcj/AWt7V1OOwlfDyLJwIGhPZMl89F JkU2W2OqVt6CJLBL7D/bZbgnIImOy/6z+e/4YU00= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabrizio.castro@bp.renesas.com, Songjun.Wu@atmel.com, peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, voice.shen@atmel.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The sii902x chip family supports also HDMI audio. Add binding for describing the necessary i2s and mclk wiring for it. Signed-off-by: Jyri Sarha --- .../bindings/display/bridge/sii902x.txt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/sii902x.txt b/Documentation/devicetree/bindings/display/bridge/sii902x.txt index c4c1855ca654..1a37bbe7c597 100644 --- a/Documentation/devicetree/bindings/display/bridge/sii902x.txt +++ b/Documentation/devicetree/bindings/display/bridge/sii902x.txt @@ -9,6 +9,33 @@ Optional properties: about hotplug events. - reset-gpios: OF device-tree gpio specification for RST_N pin. + HDMI audio properties: + - i2s-data-lanes: Array of up to 4 integers with values of 0-3 + Each integer indicates which i2s pin is connected to which + audio fifo. The first integer selects i2s audio pin for the + first audio fifo#0 (HDMI channels 1&2), second for fifo#1 + (HDMI channels 3&4), and so on. There is 4 fifos and 4 i2s + pins (SD0 - SD3). Any i2s pin can be connected to any fifo, + but there can be no gaps. E.g. an i2s pin must be mapped to + fifo#0 and fifo#1 before mapping a channel to fifo#2. + I2S HDMI audio is configured only if this property is found. + - clocks: phandle and clock specifier for each clock listed in + the clock-names property + - clock-names: "mclk" + Describes SII902x MCLK input. MCLK is used to produce + HDMI audio CTS values. This property is required if + "i2s-data-lanes"-property is present. This property follows + Documentation/devicetree/bindings/clock/clock-bindings.txt + consumer binding. + + If HDMI audio is configured the sii902x device becomes an ASoC + codec component, that can be used in configuring full audio + devices with ASoC simple-card or audio-graph-card. See their + binding documents on how to describe how the sii902x device is + connected to the rest of the audio system: + Documentation/devicetree/bindings/sound/simple-card.txt + Documentation/devicetree/bindings/sound/audio-graph-card.txt + Optional subnodes: - video input: this subnode can contain a video input port node to connect the bridge to a display controller output (See this @@ -21,6 +48,12 @@ Example: compatible = "sil,sii9022"; reg = <0x39>; reset-gpios = <&pioA 1 0>; + + #sound-dai-cells = <0>; + i2s-data-lanes = < 0 1 2 >; + clocks = <&mclk>; + clock-names = "mclk"; + ports { #address-cells = <1>; #size-cells = <0>;