From patchwork Tue Aug 4 11:18:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 503545 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5C830140295 for ; Tue, 4 Aug 2015 21:19:39 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933087AbbHDLSb (ORCPT ); Tue, 4 Aug 2015 07:18:31 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:39857 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbbHDLS1 (ORCPT ); Tue, 4 Aug 2015 07:18:27 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id E1263608FE2 Received: by dusk.luon.net (Postfix, from userid 1000) id 8A4CF27F66; Tue, 4 Aug 2015 13:18:19 +0200 (CEST) From: Sjoerd Simons To: linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, Heiko Stuebner , Kumar Gala , linux-kernel@vger.kernel.org, Ian Campbell , Rob Herring , Pawel Moll , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/4] ASoC: dt-bindings: add rockchip tranceiver bindings Date: Tue, 4 Aug 2015 13:18:16 +0200 Message-Id: <1438687099-14282-2-git-send-email-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1438687099-14282-1-git-send-email-sjoerd.simons@collabora.co.uk> References: <1438687099-14282-1-git-send-email-sjoerd.simons@collabora.co.uk> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree bindings for the spdif tranceiver found on found on rk3066, rk3188 and rk3288 SoCs Signed-off-by: Sjoerd Simons --- Changes in v2: None .../devicetree/bindings/sound/rockchip-spdif.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/rockchip-spdif.txt diff --git a/Documentation/devicetree/bindings/sound/rockchip-spdif.txt b/Documentation/devicetree/bindings/sound/rockchip-spdif.txt new file mode 100644 index 0000000..2da8a09 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rockchip-spdif.txt @@ -0,0 +1,41 @@ +* Rockchip SPDIF transceiver + +The S/PDIF audio block is a stereo transceiver that allows the +processor to receive and transmit digital audio via an coaxial cable or +a fibre cable. + +Required properties: + +- compatible: should be one of the following: + - "rockchip,rk3066-spdif": for rk3066 + - "rockchip,rk3188-spdif", "rockchip,rk3066-spdif": for rk3188 + - "rockchip,rk3288-spdif", "rockchip,rk3066-spdif": for rk3288 +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: should contain the SPDIF interrupt. +- #address-cells: should be 1. +- #size-cells: should be 0. +- dmas: DMA specifiers for tx dma. See the DMA client binding, + Documentation/devicetree/bindings/dma/dma.txt +- dma-names: should be "tx" +- clocks: a list of phandle + clock-specifier pairs, one for each entry + in clock-names. +- clock-names: should contain following: + - "spdif_hclk": clock for SPPIF controller + - "spdif_clk" : clock for SPDIF bus + +Example for the rk3188 SPDIF controller: + +spdif: spdif@0x1011e000 { + compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif"; + reg = <0x1011e000 0x2000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&dmac1_s 8>; + dma-names = "tx"; + clock-names = "spdif_hclk", "spdif_clk"; + clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF>; + status = "disabled"; + #sound-dai-cells = <0>; +};