Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp315811yba; Sat, 30 Mar 2019 23:42:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsl2todUmU+EVHDTfNqkgvWBRPa1xSry6/YVsjVJT+wsNW3E45S+O2Qo0SmboJ3qGhSa08 X-Received: by 2002:a17:902:1a9:: with SMTP id b38mr57726246plb.37.1554014579747; Sat, 30 Mar 2019 23:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554014579; cv=none; d=google.com; s=arc-20160816; b=YlSGLs2/ONku2e0ZdGF4dLK9rolV2dY3djRqM1CHtbrjeEfwOMyKht2XJjq+7khm/s DHJs2t0dEi8jjALBcO4gNG6xPRx9DQ+Z7D3Hraumf/nn47Fju1XO2exkK/dSwWD8UMrU JJIjxyxyaISfuOnu1h3k7Mu5+GDTGZQQ2/FjuHpQAW/NEfq4Mj+ofNNpWm2h7HwDBMKK xcaiAwzd4HmItb8+p0t5A+/b0gHhUFjwldzTlLd8vBplpr5Arvnt649kemWKDTLqC5aZ zslefAxZBvci1KAcovZxOBp/xTcKDhlDK77pyxIxT2e97CoQMbpguYcOACwCmqxELV2l 6MWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=C5MRPTU8wvJqcDxvf+J9TBm5Cwyxby0vJet9oon74Dg=; b=J37t2oeokn8XQOwjT91zSxiTXU8+MCdKzgRUvIb4ASUfrAxA3v7SCrtoFt7Lw/pJ3p Wtlx990M9yZFe+jec/UxIvCt+MiNdH0joYYbxQdc/1KhbEqC4YNDYOG4YshGFXp2Iv68 889Sy+3XdjRq6Em9ZLzo6F7XqXeeFYU2HiCl0uU86dyjDsJrxKq9owkLaPz+i0TCW0El qrqrglkfC+1fegg08e7WBd7tv/fUuCIvZAf3/82DakECmL4UOpMvgJwl/CRNN0iX+hlK dFlJemWuO1BtaEbi09ZUKLvGO/Da3OWGLqPcXsa1776m6jb4uU7owFDWL97pDia02lLD 1CIA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l39si6385787plb.143.2019.03.30.23.42.44; Sat, 30 Mar 2019 23:42:59 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731162AbfCaGlZ (ORCPT + 99 others); Sun, 31 Mar 2019 02:41:25 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37052 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731100AbfCaGlY (ORCPT ); Sun, 31 Mar 2019 02:41:24 -0400 Received: by mail-pf1-f196.google.com with SMTP id 8so2986555pfr.4; Sat, 30 Mar 2019 23:41:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=C5MRPTU8wvJqcDxvf+J9TBm5Cwyxby0vJet9oon74Dg=; b=bIw1Qr9fuZYbb0v6gAyY3fW2J7ZW7iaE+hiHRl8NZjRhJPX18X37+5ZnyM6hkmd346 1veDCcieebD10pFKzJQtg9i7Mnnl08Cl7IdfBrM2IlijQqK5eq8ueXy6eYflJKPYWvJ4 mXxQJoZPk3W7bUdSO057JnVYeQpc2M4D1rywNdrcyjefX46h4NPp7F2BmOccFh3e5QFn TzE3/y+7XVdcRGg5yVEV0k1QlZSBhAMMLrOaA0+rADfmGBUyMW3Ls4d2Mk5JsvIFuFD7 Qr7Qrnrhu+i8ygKAJTIz0QMQfe9CPu2KY7sinFa1X0gcs7wERf64qX4hAXx9XnMxDfja n49A== X-Gm-Message-State: APjAAAXplwZBSO6pMiivf5azY/MqIVDYdWpXCT4XJE2aRMIehKbLbDpm u6WR1pthvl8bVsysPA03PA== X-Received: by 2002:a63:5c43:: with SMTP id n3mr53869947pgm.163.1554014483649; Sat, 30 Mar 2019 23:41:23 -0700 (PDT) Received: from localhost ([210.160.217.68]) by smtp.gmail.com with ESMTPSA id s19sm10034954pfe.74.2019.03.30.23.41.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Mar 2019 23:41:22 -0700 (PDT) Date: Sun, 31 Mar 2019 01:41:21 -0500 From: Rob Herring To: "Cormier, Jonathan" Cc: Liam Girdwood , devicetree@vger.kernel.org, Bob Duke , Mike Williamson , Greg Gluszek , Mark Brown , Jaroslav Kysela , Takashi Iwai , Peter Ujfalusi , Jyri Sarha , Misael Lopez Cruz , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/7] dt-bindings: ASoC: tlv320aic26: Add device tree binding Message-ID: <20190331010229.GA10206@bogus> References: <20190321221549.13765-1-jcormier@criticallink.com> <20190321221549.13765-3-jcormier@criticallink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321221549.13765-3-jcormier@criticallink.com> X-Mutt-References: <20190321221549.13765-3-jcormier@criticallink.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 06:15:44PM -0400, Cormier, Jonathan wrote: > Add support for the TI tlv320aic26 sound codec > > Signed-off-by: Cormier, Jonathan > --- > .../devicetree/bindings/sound/tlv320aic26.txt | 65 +++++++++++++++++++ > 1 file changed, 65 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/tlv320aic26.txt > > diff --git a/Documentation/devicetree/bindings/sound/tlv320aic26.txt b/Documentation/devicetree/bindings/sound/tlv320aic26.txt > new file mode 100644 > index 000000000000..93aa0f76ec0d > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/tlv320aic26.txt > @@ -0,0 +1,65 @@ > +Texas Instruments - tlv320aic26 Codec module > + > +The tlv320aic26 serial control bus communicates through I2C protocols > + > +Required properties: > + > +- compatible - "string" - One of: > + "ti,tlv320aic26" - TLV320AIC26 > +- reg - - SPI chip select > + > +CODEC input pins: > + * MICIN > + * AUX > + > +CODEC output pins: > + * HPL > + * HPR > + > +The pins can be used in referring sound node's audio-routing property. > + > +Example: > + > +tlv320aic26: tlv320aic26@0 { audio-codec@0 > + compatible = "ti,tlv320aic26"; > + reg = <0>; > +}; > + > +&spi0 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&spi0_pins>; > + pinctrl-1 = <&spi0_sleep_pins>; > + > + status = "okay"; Don't show status in examples. > + ti,pindir-d0-out-d1-in = <1>; > + > + tlv320aic26: tlv320aic26@1 { This split is convention, but outside the scope of binding docs, so please just show the complete node. > + compatible = "ti,tlv320aic26"; > + reg = <0x1>; > + status = "okay"; > + > + spi-max-frequency = <2000000>; > + spi-cpha; > + }; > +}; > + > +sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "AM335x_SND"; > + simple-audio-card,format = "dsp_b"; > + /* SND_SOC_DAIFMT_CBM_CFM */ > + simple-audio-card,bitclock-master = <&tlv320aic26_codec>; > + simple-audio-card,frame-master = <&tlv320aic26_codec>; > + /* SND_SOC_DAIFMT_IB_NF */ > + simple-audio-card,bitclock-inversion; > + > + simple-audio-card,cpu { > + sound-dai = <&mcasp1>; > + system-clock-frequency = <24576000>; > + }; > + > + tlv320aic26_codec: simple-audio-card,codec { > + sound-dai = <&tlv320aic26>; > + system-clock-frequency = <24576000>; > + }; > +}; > -- > 2.21.0 >