From patchwork Tue Jul 19 23:22:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 72380 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp332022qga; Tue, 19 Jul 2016 16:23:01 -0700 (PDT) X-Received: by 10.66.101.101 with SMTP id ff5mr64285404pab.88.1468970574473; Tue, 19 Jul 2016 16:22:54 -0700 (PDT) Return-Path: Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com. [2607:f8b0:400e:c03::230]) by mx.google.com with ESMTPS id y196si11703333pfg.99.2016.07.19.16.22.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2016 16:22:54 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::230 as permitted sender) client-ip=2607:f8b0:400e:c03::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pa0-x230.google.com with SMTP id ks6so11534838pab.0 for ; Tue, 19 Jul 2016 16:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=3XMpXiVDzzsLih2YZzvkozTEf9jp8f810Pqv+mhFZ5w=; b=juYeOO5cBIT8J9k/0Rnh1Zdx8ni8ceyv+/M0L6eSyZNhAZyz5zAeLtKl4YaHt3dmxS nZPi6dAjwEpS+unRjb5LIHmc45fBfra1P0VUg42ejdgmXRQoD+cXo1zsKmt13vDJM34a 759K+JZskGSZyWbMil2e8uvc8ddlYPDrMeX1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=3XMpXiVDzzsLih2YZzvkozTEf9jp8f810Pqv+mhFZ5w=; b=ZIqSx94nURdSwvHWySrGocxuS0igvsEdAFgII1WA7yv6tdqHvZoCRbmR/uRP0BH+C4 HI7POhdJoqVmGNZx66tfxbgXby59N7AQWh8m8NGBsIHYfe5jV3J2N6TOJ/g/EFcQq76V BX/x53pZH+r1WZx1IaAB9Vuszj4XFxzkNflhdo5WnCa2AvwVVST7XdMuK7PUw6SdutKl GMVgiTm8E+rHL7+8IZBiTkHnQp6qyVJOM/xijsKMBjKuPjk5PjQt7vqzwwAHFl1G4AD4 9wpy+1Ju59VDGYAXzF9MqBdiqfi/EUKKrF+Dl88O5BoWbgQ3d6O4V69ZJQTwoeCZ/EWn 8lTA== X-Gm-Message-State: ALyK8tKgtHX/dS6ne4wMTwUKH+vrHuZ2SbI/xB9sm1kU/Lrkb5PwSjvkHTdkDp1IUWzjMiV9Pm8= X-Received: by 10.66.119.40 with SMTP id kr8mr69393007pab.133.1468970574142; Tue, 19 Jul 2016 16:22:54 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id 81sm7303604pfm.90.2016.07.19.16.22.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 16:22:53 -0700 (PDT) From: John Stultz To: lkml Subject: [RFC][PATCH 06/10 v2] ASoC: add hi6210-i2s DT bindings Date: Tue, 19 Jul 2016 16:22:42 -0700 Message-Id: <1468970566-24498-7-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468970566-24498-1-git-send-email-john.stultz@linaro.org> References: <1468970566-24498-1-git-send-email-john.stultz@linaro.org> Adds DT bindings documentation for the hi6210-i2s driver. Signed-off-by: John Stultz --- .../bindings/sound/hisilicon,hi6210-i2s.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt new file mode 100644 index 0000000..95157ba --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt @@ -0,0 +1,36 @@ +* Hisilicon 6210 i2s controller + +Required properties: + +- compatible: should be one of the following: + - "hisilicon,hi6210-i2s" +- reg: physical base address of the controller and length of memory mapped + region. Should contain the i2s unit, syscon and pmctrl registers, in that + order. +- interrupts: should contain the i2s interrupt. + clocks: a list of phandle + clock-specifier pairs, one for each entry + in clock-names. +- clock-names: should contain following: + - "dacodec" + - "i2s-base" +- dmas: DMA specifiers for tx dma. See the DMA client binding, + Documentation/devicetree/bindings/dma/dma.txt +- dma-names: should be "tx" and "rx" + + +Example for the hi6210 i2s controller: + +i2s0: hi6210_i2s { + compatible = "hisilicon,hi6210-i2s"; + reg = <0x0 0xf7118000 0x0 0x8000>, /* i2s unit */ + <0x0 0xf7030000 0x0 0x400>, /* syscon */ + <0x0 0xf7032000 0x0 0x400>; /* pmctrl */ + interrupts = <0 123 0x4>; /* 155 "DigACodec_intr"-32 */ + pinctrl-names = "default"; + pinctrl-0 = <&bt_pmx_func &bt_cfg_func>; + clocks = <&sys_ctrl HI6220_DACODEC_PCLK>, + <&sys_ctrl HI6220_BBPPLL0_DIV>; + clock-names = "dacodec", "i2s-base"; + dmas = <&dma0 15 &dma0 14>; + dma-names = "rx", "tx"; +};