From patchwork Fri Mar 31 22:05:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 96531 Delivered-To: patches@linaro.org Received: by 10.140.89.233 with SMTP id v96csp923626qgd; Fri, 31 Mar 2017 15:06:07 -0700 (PDT) X-Received: by 10.84.176.129 with SMTP id v1mr5568271plb.192.1490997967432; Fri, 31 Mar 2017 15:06:07 -0700 (PDT) Return-Path: Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com. [2607:f8b0:400e:c05::22a]) by mx.google.com with ESMTPS id e5si6233591pga.100.2017.03.31.15.06.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 15:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22a as permitted sender) client-ip=2607:f8b0:400e:c05::22a; 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:c05::22a as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x22a.google.com with SMTP id 81so82714185pgh.2 for ; Fri, 31 Mar 2017 15:06:07 -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:in-reply-to:references; bh=FwGWahHvZB3Y/JjkO+8ps3vs6RYxprMuXlbhUHv5mJc=; b=Kg6wan7Xhj9RyZOKsr6i6hAUE4w+iBDVhOEQN7DXVqYFlYJ+7ACKXzCylk8sJ7+hZg yfJOpd6G5xDjC0RsZbubat07J2aptIjb2rPU6FxqRM0nvDfwzxA54fvJFNWrU07A0tZW d+wf2fSlkepDxfTBq0vP+GCic2TklV/1t5tS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FwGWahHvZB3Y/JjkO+8ps3vs6RYxprMuXlbhUHv5mJc=; b=FjA+23SZYTUDS/PX8Wdp1Sl42d3cI5CIdy4anU7TM/poT35uq8NXOdrGCAk/ogj56L lRYitGsljlCMsU8nIh3nImCHJEJdnJqYc1ZDDEmzOTj3xAym8GrjsbDAGo74EalVUyfk ywVIhc3Oi6N8BXGFYFmCbKgQJvd71hwGIEl2nnz3l24qxPW0fh0B4JVg0KF9Futimkqk xvM/JBTfkoR4mbBAwx7iE+ZImFzmlkj9MzpPJoBw5b5leAm8sew/3Mz7e67wrbW/Z+Bx 6y1w0tXTM2OLmnEGSNPZm8wBRJotJ1ag3HZGoC0uK/Ui+aDWstIFuQc/AX8/RqX4RyTu nCWw== X-Gm-Message-State: AFeK/H2m+H+avWlQH7D+0mtJyQu3TA23bMZVuPfjTjvlBPciMjP9avi4Klah0E8CtWGlPn0YAHY= X-Received: by 10.98.36.81 with SMTP id r78mr4671996pfj.178.1490997967137; Fri, 31 Mar 2017 15:06:07 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id 11sm12317990pgf.28.2017.03.31.15.06.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Mar 2017 15:06:05 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Zhangfei Gao , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Wei Xu , Rob Herring , Andy Green , Dave Long , Guodong Xu Subject: [PATCH 1/3 v4] ASoC: add hi6210-i2s DT bindings Date: Fri, 31 Mar 2017 15:05:59 -0700 Message-Id: <1490997961-31937-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490997961-31937-1-git-send-email-john.stultz@linaro.org> References: <1490997961-31937-1-git-send-email-john.stultz@linaro.org> 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 v4: * Add #sound-dai-cells entry to make it clear multiple dais are possible --- .../bindings/sound/hisilicon,hi6210-i2s.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 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..680bb035 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt @@ -0,0 +1,34 @@ +* 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 +- #sound-dai-cells: Should be set to 1 (for multi-dai) + +Example for the hi6210 i2s controller: + +i2s0: i2s@f7118000{ + 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>; + #sound-dai-cells = <1>; +};