From patchwork Tue Oct 25 00:42:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 79109 Delivered-To: patches@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2857341qge; Mon, 24 Oct 2016 17:42:36 -0700 (PDT) X-Received: by 10.98.194.150 with SMTP id w22mr33425416pfk.24.1477356156463; Mon, 24 Oct 2016 17:42:36 -0700 (PDT) Return-Path: Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com. [2607:f8b0:400e:c00::235]) by mx.google.com with ESMTPS id m8si18034384pfa.203.2016.10.24.17.42.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2016 17:42:36 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::235 as permitted sender) client-ip=2607:f8b0:400e:c00::235; 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:c00::235 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x235.google.com with SMTP id e6so107747778pfk.3 for ; Mon, 24 Oct 2016 17:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4qjOh3BbIEBXCoEnQGWTfJ2fyDYD3b+laEHTGtZ/z2I=; b=JI66JVpS6CW7CZBOv5x6W+VRaS23BkBAn3GrTFnzAVBljVAL5VtKk7xmZSxQ4brQqG g9pzJIDcONe/kUDdQln6CQeR2qgquYAq6bUHjQu9WBDzDapFLbzvwEnhyDDwJE2n3IeR 6C8e6SZe8XzaGbIbeFcOZS/YseZoY8nHxBbE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4qjOh3BbIEBXCoEnQGWTfJ2fyDYD3b+laEHTGtZ/z2I=; b=Fr3Sv3cANIPNAzgN2BAlPZ9pcfCmuQrokHrHvup37rXCZK2+Pkf8UQUP0jeVAk6naQ A9Zzzk2L4vVARPJ+naERuvduhZjLv7/hRM4x9Ag6GcWbvLlEyWZKd0s2JrblhHPsdFFv 1doT9OoaytqehAZMp38degcX2WUBtawMqIVae57TdoMkunxvNQCNYtuUQlL+JKeDJ6NV eVok4+pmbu21+c/KqmuCIJRT0d8qjcGZqMFUEVsGpAk2bASgv7azmeljtpSaz7F9KFOm w6JFKvrk5r5XpxMVfBlPb5+i3/w3s2kUZC/u8n8ELSiypBhAELFKSZwp9BlzA/JWEtKx BG5w== X-Gm-Message-State: ABUngvfi576DgkkEOueLGw5NzahyIeOOc5ydQe4vGyiGypB4FI3XfJRfA9aRf/cJZvEifYlNC30= X-Received: by 10.98.147.218 with SMTP id r87mr34067262pfk.108.1477356156041; Mon, 24 Oct 2016 17:42:36 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id wc6sm28027297pab.47.2016.10.24.17.42.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 17:42:35 -0700 (PDT) From: John Stultz To: lkml Cc: Zhangfei Gao , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Wei Xu , Rob Herring , Andy Green , Dave Long , Guodong Xu , John Stultz Subject: [RESEND][PATCH 1/2 v3] ASoC: add hi6210-i2s DT bindings Date: Mon, 24 Oct 2016 17:42:33 -0700 Message-Id: <1477356154-23687-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 Adds DT bindings documentation for the hi6210-i2s driver. Cc: Zhangfei Gao Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Herring Cc: Andy Green Cc: Dave Long Cc: Guodong Xu Signed-off-by: John Stultz --- v3: * Simplified and reworked dt binding --- .../bindings/sound/hisilicon,hi6210-i2s.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt -- 2.7.4 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..4be451c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt @@ -0,0 +1,32 @@ +* Hisilicon 6210 i2s controller + +Required properties: + +- compatible: should be one of the following: + - "hisilicon,hi6210-i2s" +- reg: physical base address of the i2s controller unit and length of + memory mapped region. +- 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" +- hisilicon,sysctrl-syscon: phandle to sysctrl syscon + +Example for the hi6210 i2s controller: + +i2s0: hi6210_i2s { + compatible = "hisilicon,hi6210-i2s"; + reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */ + interrupts = ; /* 155 "DigACodec_intr"-32 */ + 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"; + hisilicon,sysctrl-syscon = <&sys_ctrl>; +};