From patchwork Fri Mar 22 08:06:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 160874 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp519274jan; Fri, 22 Mar 2019 01:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUNdZhHDRTvYoCwXoSBXxeKQv4SnwrRjN6ZdJ0CkNfkuNv8SRSOHEWu/MtUyJ/u4pmtwfB X-Received: by 2002:a17:902:234b:: with SMTP id n11mr8230360plg.89.1553242010628; Fri, 22 Mar 2019 01:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553242010; cv=none; d=google.com; s=arc-20160816; b=01IRr3ucKsYWT7KTbJ9KeJV+Do4orgNVU7AzqwWrZVjIc7n+4xsUaYO2xRg9Ji1Xfe vCUO7Q/naU22RAAhusJ5eTMk799ixa1xatpS6bxUEdMnPBoQCSfiU2DaCg25OodBULT1 voaVVmEgjWZmY2n4cwtUaf5jzT97uJ5MG4UmB1hCOjOHC6isOvEsWasPGWT6/iUOa/2x 3zQHAhLWtEkv8AQDOqJtcmZK4rnWrq5UyCEqAEUh2Tq2gZUeiV8QhM2cU0RUu6drce15 cWXJ6/5K7YoAsAQDER318uRhYPeKMsvf+dV6AKNZbSk/xikCbIXbXRKCEru847fTH1PZ VJIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FQO/dIwu801nLGui2ggKqQWGoH29i5ukfqwyG9hwtn8=; b=bYRqzokEm6mqZ0NdRoAKrDSE3u07vS6+9cF1ThICZQtXxFVVKZMq/UXe3CyZH8z9c9 3KcfgsMwkcqtvb+S/O5uRVhA+6miVorp6DgawPaz9Pv66WmQDqClpOvv4RnW9AOcjRh7 PCIkI9bJN5WfouCmcR0/1wuEUMibHBQo47Jiofw62TZQF34ZFLsMHwSYbIXtcOERdBfp yJfR3sG0H33uS6M3OjQVJf224PKrEaS8reXdU7HBdstsUYjTSYzWI0mzt3GTUSxwwmir 5lAJOXWlckeutgwsKJPsmcMNytSbfVH+t3n9wUAshvO7gTyG33a6kjl4Ob2Apu1IbvfP 7nxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eLLHuEsZ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si6805977plb.410.2019.03.22.01.06.50; Fri, 22 Mar 2019 01:06:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eLLHuEsZ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbfCVIGu (ORCPT + 7 others); Fri, 22 Mar 2019 04:06:50 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45020 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727457AbfCVIGt (ORCPT ); Fri, 22 Mar 2019 04:06:49 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2M86Yf0048478; Fri, 22 Mar 2019 03:06:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553241994; bh=FQO/dIwu801nLGui2ggKqQWGoH29i5ukfqwyG9hwtn8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eLLHuEsZiOyrcHwhyooCNqNwXxI8ae2LSOpRC6M1jGYP5H9hWgBY/W/LClch6odKe byTkutFLl5Jw7SXn6aVDb4e4gOvHO23Z5iSDwuc6uRbspf44GbkSDA/JfXQb5tAKV2 LIMUBh5QG2mnH5W+DKlUcgWU2EJ9D8RhZT0Vs3FY= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2M86YmT024421 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Mar 2019 03:06:34 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 22 Mar 2019 03:06:32 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Fri, 22 Mar 2019 03:06:32 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2M86Gbc003094; Fri, 22 Mar 2019 03:06:30 -0500 From: Jyri Sarha To: , , CC: , , , , , , , , Subject: [PATCH v5 5/6] dt-bindings: display: sii902x: Add HDMI audio bindings Date: Fri, 22 Mar 2019 10:06:14 +0200 Message-ID: <1013f1f5383bafff4ca345ac223719a9815405b2.1553241734.git.jsarha@ti.com> 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/display/bridge/sii902x.txt b/Documentation/devicetree/bindings/display/bridge/sii902x.txt index c4c1855ca654..e78d069da439 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: + - sil,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>;