From patchwork Fri Apr 26 13:23: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: 162915 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp748045jan; Fri, 26 Apr 2019 06:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7XXb5Qk3mAJidY73jP0EP0zSM47lupujd2ZIb036kNcHMea6eADQgYpIjG7gMeWKbd13/ X-Received: by 2002:a63:5061:: with SMTP id q33mr41748284pgl.218.1556285027815; Fri, 26 Apr 2019 06:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556285027; cv=none; d=google.com; s=arc-20160816; b=P2JDitVye+SkXpGl1Y7pbHinLisbyOF4JL3IpPF4c6t6UrJRHuK2mRUsgQw71S50w0 qZve8e3yweU/Ch69CswP2++vwI8iIM0ZVlG1Lhn/13POL15/E+1AX4NwPPxUOeJ6w0h7 rrcmykwDJfneyaVGISZmUe2XXubhbmCX2RCXDKjR/lZSG+nPzVoi3oNkmUKWlf8k3aHg UkSEwrIloSqx1Ed+hPiOnYMsoP9UZQAoJS6X4gFxzo0ddI768rZ9hF+e3ChhIZrCRuoP FcBGjIvegYJ5IEPFnhTmlHoJzBfX7WoOd5ZyMm344KfojMew7DSpikFfcc9vtaODVuUp Rgnw== 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=alsF4xxWQR3wG1Btk6++M4uWnIODB3fdn0h4SwoaCXY=; b=vclBGq0maLpJl78Ft7KRP4Ly4WGx7GYg6rtC5ot2h1m3wP+UkIEuxZhHTPdAsAggZ0 XLG4X3vhkA290zSjTUEu8iv6Cac1L7UlOwEHo0mLAOFfsPGiV44sOOVZHGs4zXwsUWQ0 VGB297RtTIVV1kJbOC8TH43Vr1J4QjDqoJcJRCNg70u6htgl7tgnCgUqFjWx+O1Iq6mk anOCdSTdklUGCLo/HviTwZmP4ec+f8+ACtltWMlL8098VeKZqjDQI82G1hHx/S/l0N3G 4GJpiKCGQ+1iQe7U25nvdOPfkxA5xRXT/BS0h9yWY263G0lP43nxKH6g4A6flGc/AqQY JMlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ierf6o7P; 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 o4si23183021pgp.160.2019.04.26.06.23.47; Fri, 26 Apr 2019 06:23:47 -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=Ierf6o7P; 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 S1726253AbfDZNXr (ORCPT + 7 others); Fri, 26 Apr 2019 09:23:47 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39806 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbfDZNXq (ORCPT ); Fri, 26 Apr 2019 09:23:46 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QDNW9b026081; Fri, 26 Apr 2019 08:23:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556285012; bh=alsF4xxWQR3wG1Btk6++M4uWnIODB3fdn0h4SwoaCXY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ierf6o7Px7o/ajzEmidrJBmRZyOsIk/ZIHCikP/kg4ZSruPONWmpt08xBR3I3dBE2 7yiUjYaG8JAyY7zjBi0sAZ7+6a8mSWUOwFipSsCUmkDr6NVeQ4cBqXEtEHU0WFiGWf 5ppJ0GSJfj3npUmPo/oJKAs/xlgLWUWEn/M363Pc= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QDNWGD110719 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 08:23:32 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 26 Apr 2019 08:23:32 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 26 Apr 2019 08:23:32 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3QDNFsP024078; Fri, 26 Apr 2019 08:23:29 -0500 From: Jyri Sarha To: , , CC: , , , , , , , , Subject: [PATCH v7 5/6] dt-bindings: display: sii902x: Add HDMI audio bindings Date: Fri, 26 Apr 2019 16:23:14 +0300 Message-ID: <5314a5fa9b7d488de77e31842644a92cfed329f3.1556284767.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 | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/display/bridge/sii902x.txt b/Documentation/devicetree/bindings/display/bridge/sii902x.txt index c4c1855ca654..b5168a0e3a2b 100644 --- a/Documentation/devicetree/bindings/display/bridge/sii902x.txt +++ b/Documentation/devicetree/bindings/display/bridge/sii902x.txt @@ -9,6 +9,41 @@ Optional properties: about hotplug events. - reset-gpios: OF device-tree gpio specification for RST_N pin. + HDMI audio properties: + - #sound-dai-cells: <0> or <1>. <0> if only i2s or spdif pin + is wired, <1> if the both are wired. HDMI audio is + configured only if this property is found. + - 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. Default + value is <0>, describing SD0 pin beiging routed to hdmi audio + fifo #0. + - 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 + "#sound-dai-cells"-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 I2S + and/or spdif audio codec component (e.g a digital audio sink), + that can be used in configuring a full audio devices with + simple-card or audio-graph-card binding. See their binding + documents on how to describe the way 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 + Note: In case of the audio-graph-card binding the used port + index should be 3 or higher to avoid conflict with video ports + (see bellow). + 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 +56,12 @@ Example: compatible = "sil,sii9022"; reg = <0x39>; reset-gpios = <&pioA 1 0>; + + #sound-dai-cells = <0>; + sil,i2s-data-lanes = < 0 1 2 >; + clocks = <&mclk>; + clock-names = "mclk"; + ports { #address-cells = <1>; #size-cells = <0>;