Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp680743img; Thu, 28 Feb 2019 06:15:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYM2uZ+bE1ONb8Q9WR7yTmFZL3GQkrFp4vz6B2M2JdJjRSkvIYPNi58He0167yyBXV7TZUl X-Received: by 2002:a17:902:8d8e:: with SMTP id v14mr8142252plo.133.1551363319807; Thu, 28 Feb 2019 06:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551363319; cv=none; d=google.com; s=arc-20160816; b=XjfsLihfHbv5kIkvz99nhjfRxQtl76zIGqx6mHPcjItxSYNgBSPsb5em78248dn7Y3 rgMtjCRp4LUDVb2nRsEAoKA8Nsi6pS5iB3dOnpXlUWDueSVLQVWAdojHJuTJ95CX2/AT HNwjlHLQa0TZBnBoVxPDZcpH41iMKiUNa7dJ3K9yAcrS6UEX/6eH3pY1z7TFgBju/3R5 2SY9aTDfFqrw66z03HA8Is525H4MLbmL1MzoRzA5DC63vrowyL667O9nW9aXjWXFpDWI /EIGrM8fpPOCVwn5jW7M1ctg94cmshqE2ryLTGUgrp7doSacRwhQG8D0y9eMXGt8mdoK PW7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=48EVJBMwgTDt/WL+trhR/4QqVfrjJTWNuEIZPeYP28M=; b=bGuRugNTLJbtkGf0oxld2Tq2FsPpncXfclREFwmmf+fKnFotAw0YDWC7e16z4SpvB1 28bLPVkj0ewoQ+WBmmYF/GMnYSEW0dAUY9VfF0FSPEoDcHoVF92F1uCCcntDBsjcL3jl qqrTq21tZ71RXnDJmrZcKnWIJ85YEMryDmJsMVBsCRnQ9Aw9MH5Y2D/6OFQsVuDZJJ78 fNxulwjRQLNlax6btLi8rG6L4phgg/j/MkdA2/vZEACwX+wSZfqpcDDDsfHXRHcBoyIp 7LpNDyrESLaHDNG4AIuPdIuizioFvKZ5CNzn7BzuvR7lv3COiRS1D0wfzIACQWOwpTq7 hpAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h62si18725011pfb.143.2019.02.28.06.15.04; Thu, 28 Feb 2019 06:15:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732416AbfB1OOA (ORCPT + 99 others); Thu, 28 Feb 2019 09:14:00 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:4190 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727773AbfB1ON7 (ORCPT ); Thu, 28 Feb 2019 09:13:59 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 62A53BE6DA68D04EEF05; Thu, 28 Feb 2019 22:13:57 +0800 (CST) Received: from HSH1000045364.huawei.com (10.177.181.43) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Thu, 28 Feb 2019 22:13:49 +0800 From: Pengcheng Li To: , , , , , , CC: , , , , , , , , , Subject: [PATCH 2/3] ASoC: add hikey960-i2s DT bindings Date: Thu, 28 Feb 2019 21:57:41 +0800 Message-ID: <1551362261-99422-1-git-send-email-lipengcheng8@huawei.com> X-Mailer: git-send-email 2.8.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.181.43] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Youlin Wang Adds DT bindings documentation for the hikey960-i2s driver and audio card device. Signed-off-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: Guangke Ji Signed-off-by: Feng Chen Signed-off-by: Kaihua Zhong Signed-off-by: Jun Chen Signed-off-by: John Stultz Signed-off-by: Yiping Xu Signed-off-by: Pengcheng Li --- .../bindings/sound/hisilicon,hi3660-i2s.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi3660-i2s.txt diff --git a/Documentation/devicetree/bindings/sound/hisilicon,hi3660-i2s.txt b/Documentation/devicetree/bindings/sound/hisilicon,hi3660-i2s.txt new file mode 100644 index 0000000..654c234 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/hisilicon,hi3660-i2s.txt @@ -0,0 +1,49 @@ +* Hisilicon 6210 i2s controller + +Required properties: + +- compatible: should be one of the following: + - "hisilicon,hi3660-i2s-1.0" +- 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 hi3660 i2s controller: + + i2s2: hisi_i2s { + compatible = "hisilicon,hi3660-i2s-1.0"; + reg = <0x0 0xe804f800 0x0 0x400>, + <0x0 0xe804e000 0x0 0x400>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s2_pmx_func &i2s2_cfg_func>; + dmas = <&asp_dmac 18 &asp_dmac 19>; + dma-names = "rx", "tx"; + #sound-dai-cells = <0>; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "hikey-hdmi"; + simple-audio-card,format = "i2s"; + + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + + sound_master: simple-audio-card,cpu { + sound-dai = <&i2s2>; + }; + + simple-audio-card,codec { + sound-dai = <&adv7533>; + }; + }; -- 2.8.0