From patchwork Mon May 27 13:47:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 165215 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp7193088ili; Mon, 27 May 2019 06:48:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0sXXsFeS7cnOm+RoCkhubWcTjYW+f5XMAx/ddBNO1Rnot4jTvF9hslNVQ1hTJ2nkJLmFp X-Received: by 2002:a17:90a:a00a:: with SMTP id q10mr31152412pjp.102.1558964900749; Mon, 27 May 2019 06:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558964900; cv=none; d=google.com; s=arc-20160816; b=xtAeUME3r0oJrex44Bd750Djctuwh2CV8iXrD1Yr05aQZiB4o8xPOr6c5QcESeHMnt 2FCao6eSJHHf2T2CgyJZ3Vcleyd97zVJ7AnzuMfq7BC9ukAROUzntnbfX276GsoiTDry uI9KvhMymUKmDrc/EdP7jWarfbS7V21lJYpVb0cINnPFTWse4eqgD+DkWJYKp+8G5yll UnrFRcCAfVI1P43WqR/IhovDHAdAVW0/7n4E/aJGSZlict69cDWzmZqfkg4bYBENw5jm KJRqzEGTKhbQ00izjQoDpEbaeHcnWyUOCnZ++aeAh6lyHFiFbx3ut42EDC0/VKUuoXNY U5JA== 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=vl1YkIPeddY4zE8ntWTyaoOhb55p/k02lsRgMxvQH7E=; b=Q3QRUyTdLEFrSK7BIp15WUh9khjOrD6ab8lKE90fNhYL5lOyxTVzYVRcbtzbohzS1X Smbn4jGX+biLd1JthTFKmKw3nNaX1gO8XCXgkNSQzd9bwwPYoJ9YIidvEyLXbRyHkhxH L/xNmZ/zbdBZMu3od9b/eebicaa9r1S6y6MMXyDqQT+cF6zgIsgm+05DY+2WlNSmBaFr IeFbmAfu9FgaNCPOvgZpiD9dOH79ZU5edUZDjuKxhwycc1XQeJow6E4SZe32olr+/WN3 nHSHGfCQiUBFp10ez8FsoaAgQjQRe4VR4+7E8smq9DhWNLndYdcQ5+UPDTtjwXBezIv1 sIIg== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id w5si17068854pga.550.2019.05.27.06.48.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 06:48:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 906CD89216; Mon, 27 May 2019 13:48:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D20C89216 for ; Mon, 27 May 2019 13:48:18 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4RDmBow053952; Mon, 27 May 2019 08:48:11 -0500 Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4RDmBnm026368 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 May 2019 08:48:11 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 27 May 2019 08:48:11 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) 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; Mon, 27 May 2019 08:48:11 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4RDlviI065947; Mon, 27 May 2019 08:48:09 -0500 From: Jyri Sarha To: , , Subject: [PATCH v8 5/6] dt-bindings: display: sii902x: Add HDMI audio bindings Date: Mon, 27 May 2019 16:47:56 +0300 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=1558964891; bh=tXdIuQWjAhHLfchDCp84KHyZg8p1JChPL/Ztp9I9tiA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LFu9LiSht6nSP8iT+FEf/C0tJVePpm8+Kz/8V3ApTVfhrbQ8Tz2vFJpi57Rum8IBT nOaRxDmDUG/vTSbTHqT883j5ZCkFUX5JNifROWf3YlSMRS867hvGEumvvu0v7qZOjF XSb25qYGuMAA0mle7nMAKqJUJsxT98nqSOEmvfB0= 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: peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.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 Reviewed-by: Rob Herring --- .../bindings/display/bridge/sii902x.txt | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/sii902x.txt b/Documentation/devicetree/bindings/display/bridge/sii902x.txt index c4c1855ca654..2df44b7d3821 100644 --- a/Documentation/devicetree/bindings/display/bridge/sii902x.txt +++ b/Documentation/devicetree/bindings/display/bridge/sii902x.txt @@ -9,6 +9,40 @@ 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. + 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 +55,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>;