Received: by 10.223.185.116 with SMTP id b49csp1110925wrg; Fri, 23 Feb 2018 12:07:15 -0800 (PST) X-Google-Smtp-Source: AH8x224ksK2/t5Lfc75Pm9EIz/Ff9AR5Iq8BzaCQu1jUYbJHqtpvYQIzCC6IrBs9SCucKSnuvld8 X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr2765282plk.180.1519416434911; Fri, 23 Feb 2018 12:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519416434; cv=none; d=google.com; s=arc-20160816; b=C03WOjo+iKJp1cdlFQaM7At6gbVw4yRpUABOSk3kRTXiR6iN+Y/1d3mEwU3IqfZqJ4 VprHKtb8zbNecGJ0KibzvnoeS0fJpMRjyKEJuDlTcdfIXWxj25K2BTIHxqEmNpM8f+14 2F8bBtMVyaikpDop3tuJ9Az8gNBWy1FzYDnpXto50cb5vkYv9LlEA6KPLBVnqngiFH7S h7il2VeZShBnM8Bp/wNlpF1JDSKz+Dml0t8XQOAjMuYVxvq/OtFQgNPrTmgwNPwLilCo GlU8+KvCXWNoCO3TvexB941T5Nm95sDBgRu3urocgWZyWQghokgspP7sYi4z31vjpSPv 5xrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ch6avfJy9HQBmjFo9MzyQMFPmfBqywm9KuKJi8UcUm4=; b=ydLaDh67qWxW2l9/2WkmWozUOb8J0cFkQ5E4II7709Tb15tKgX732F6DDniUcvBg48 yvcvBNrRp6T3h6+5V9LZ2Y4Oun8X1q5w4hBsEdVnffc3m/8K8lZFLwO8FkdL6rTtzR/n BswwC07t/vy1Yq1gVymoTJT9mKqhT41d7WTDttoBQHbceh3RYWtNrK9HLD53bnjZAL5U H5QVbtKM6b0ztGpOCrvln/wUVVd6zy4Rq/qD19YiI5fJQwKR0bJJQwt6hyj2UdvsAdiK MZqozZEUUo+ocNzbl8BKjt5bE3DzeXLYF6vDNtRF9q21IOVrq8myxR2xberMkHpkTSA7 VtAQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si2218268pln.655.2018.02.23.12.07.00; Fri, 23 Feb 2018 12:07:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933352AbeBWUDL (ORCPT + 99 others); Fri, 23 Feb 2018 15:03:11 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38248 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754917AbeBWUDH (ORCPT ); Fri, 23 Feb 2018 15:03:07 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id CA9DB27602F From: Sebastian Reichel To: Sebastian Reichel , Liam Girdwood , Mark Brown , Rob Herring , Tony Lindgren , Lee Jones Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCHv5 1/5] dt-bindings: mfd: motorola-cpcap: document audio-codec Date: Fri, 23 Feb 2018 21:02:50 +0100 Message-Id: <20180223200254.25685-2-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> References: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the DT binding for the audio-codec sub-module found inside the Motorola CPCAP PMIC. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/mfd/motorola-cpcap.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/motorola-cpcap.txt b/Documentation/devicetree/bindings/mfd/motorola-cpcap.txt index 15bc885f9df4..82c3a7140660 100644 --- a/Documentation/devicetree/bindings/mfd/motorola-cpcap.txt +++ b/Documentation/devicetree/bindings/mfd/motorola-cpcap.txt @@ -12,6 +12,30 @@ Required properties: - spi-max-frequency : Typically set to 3000000 - spi-cs-high : SPI chip select direction +Optional subnodes: + +The sub-functions of CPCAP get their own node with their own compatible values, +which are described in the following files: + +- Documentation/devicetree/bindings/power/supply/cpcap-battery.txt +- Documentation/devicetree/bindings/power/supply/cpcap-charger.txt +- Documentation/devicetree/bindings/regulator/cpcap-regulator.txt +- Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt +- Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt +- Documentation/devicetree/bindings/rtc/cpcap-rtc.txt +- Documentation/devicetree/bindings/leds/leds-cpcap.txt +- Documentation/devicetree/bindings/iio/adc/cpcap-adc.txt + +The only exception is the audio codec. Instead of a compatible value its +node must be named "audio-codec". + +Required properties for the audio-codec subnode: + +- #sound-dai-cells = <1>; + +The audio-codec provides two DAIs. The first one is connected to the +Stereo HiFi DAC and the second one is connected to the Voice DAC. + Example: &mcspi1 { @@ -26,6 +50,24 @@ Example: #size-cells = <0>; spi-max-frequency = <3000000>; spi-cs-high; + + audio-codec { + #sound-dai-cells = <1>; + + /* HiFi */ + port@0 { + endpoint { + remote-endpoint = <&cpu_dai1>; + }; + }; + + /* Voice */ + port@1 { + endpoint { + remote-endpoint = <&cpu_dai2>; + }; + }; + }; }; }; -- 2.16.1