Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp139032pja; Fri, 22 Nov 2019 04:34:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxldkNJ1YOE1ri3OZPj8g63p+3ueq+QkKFt4wHQrR3KeU1iHWoBNBU1tu6GIM6b9wxY2d4H X-Received: by 2002:a50:ec1a:: with SMTP id g26mr769127edr.84.1574426079704; Fri, 22 Nov 2019 04:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574426079; cv=none; d=google.com; s=arc-20160816; b=WwkRx/ZIcMy5rkvZDVCz4DwmcXgxWcv84w3ZOU4ADjJwyMch6ms1y9r+iTSyytJw7s 07qRtrCsU6LIQoHLv0LlWTHb4lTz3yoD2LcAh/WY/CGSKBm6FblllD2N79Di5RN4nWeS WDYMeZGhpqJMaV6ZxgBchrAAoivF0TL9kfOegRZuWnAvQXoZAIKnvc8DJOiH5c83v31B mfm9dnzqDF5GMJUSo1WGaTvgag3mRM1coETQVUZFRiqGSDSkTmMUYY6haYmX5IOX49do cMs561bFnCMfC7PKjdPYqX1abwzzMpAdTUi9cG0fjcz4YwwljJAhtg5X/MXxtyTkv1/C lBNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=5PFcm8JNMkAHTq+H9OQrehrc1BXtgCDKArQDtWOyfs4=; b=Sz8M3nuWMfeTtOLNmQ+JpZhWonn+rrt9c2a8VmUpJA8iG4q2sOEHxAAlFWl08mXSar MTNHFYIFmrn5aqRI7VFYg4ZRvFJFix856kO289fKL0kr74MNaktS9r7GTetJFWFsTiIQ 1kf9rP7PhsnxoEUg3bFYeyAmlpn+OscfU06j58G6BDCt7hjp7B+z00PNxX3Ne8zLczy3 GaLeoH91Ae9jtL1u+1WPLsCnlDxx/r8p+he2vJMXmty89/ydBTj8m0gK7LIa86+BEPRy n61HEvQRi3w69aYsiMpWEPKD18h1QwpoG1cH89ouIKDQ7SUApZX7KvJvKbOiVEXGgxpI 5znw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 a2si1296245ejb.257.2019.11.22.04.34.15; Fri, 22 Nov 2019 04:34:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbfKVMeK convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Nov 2019 07:34:10 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:44710 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfKVMeJ (ORCPT ); Fri, 22 Nov 2019 07:34:09 -0500 Received: from marcel-macbook.holtmann.net (p4FF9F0D1.dip0.t-ipconnect.de [79.249.240.209]) by mail.holtmann.org (Postfix) with ESMTPSA id B2E17CED1F; Fri, 22 Nov 2019 13:43:14 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: Re: [PATCH v6 3/4] dt-bindings: net: broadcom-bluetooth: Add pcm config From: Marcel Holtmann In-Reply-To: <20191121212923.GA24437@bogus> Date: Fri, 22 Nov 2019 13:34:06 +0100 Cc: Abhishek Pandit-Subedi , Johan Hedberg , linux-bluetooth , Douglas Anderson , devicetree , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ondrej Jirman , Mark Rutland , Chen-Yu Tsai Content-Transfer-Encoding: 8BIT Message-Id: <06AE1B9D-F048-4AF1-9826-E8CAFA44DD58@holtmann.org> References: <20191118192123.82430-1-abhishekpandit@chromium.org> <20191118110335.v6.3.I18b06235e381accea1c73aa2f9db358645d9f201@changeid> <20191121212923.GA24437@bogus> To: Rob Herring X-Mailer: Apple Mail (2.3601.0.10) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Rob, >> Add documentation for pcm parameters. >> >> Signed-off-by: Abhishek Pandit-Subedi >> --- >> >> Changes in v6: None >> Changes in v5: None >> Changes in v4: None >> Changes in v3: None >> Changes in v2: None > > Really? I'm staring at v2 that looks a bit different. > >> .../bindings/net/broadcom-bluetooth.txt | 16 ++++++++++ >> include/dt-bindings/bluetooth/brcm.h | 32 +++++++++++++++++++ >> 2 files changed, 48 insertions(+) >> create mode 100644 include/dt-bindings/bluetooth/brcm.h >> >> diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt b/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt >> index c749dc297624..8561e4684378 100644 >> --- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt >> +++ b/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt >> @@ -29,10 +29,20 @@ Optional properties: >> - "lpo": external low power 32.768 kHz clock >> - vbat-supply: phandle to regulator supply for VBAT >> - vddio-supply: phandle to regulator supply for VDDIO >> + - brcm,bt-sco-routing: PCM, Transport, Codec, I2S >> + - brcm,bt-pcm-interface-rate: 128KBps, 256KBps, 512KBps, 1024KBps, 2048KBps >> + - brcm,bt-pcm-frame-type: short, long >> + - brcm,bt-pcm-sync-mode: slave, master >> + - brcm,bt-pcm-clock-mode: slave, master > > Little of this seems unique to Broadcom. We already have some standard > audio related properties for audio interfaces such as 'format', > 'frame-master' and 'bitclock-master'. Ultimately, this would be tied > into the audio complex of SoCs and need to work with the audio > bindings. We also have HDMI audio bindings. > > Maybe sco-routing is unique to BT and still needed in some form though > if you describe the connection to the SoC audio complex, then maybe > not? I'd assume every BT chip has some audio routing configuration. so we tried to generalize this some time before and failed to get a proper consensus. In general I am with you that we should just expose generic properties from the attached audio codec, but nobody has come up with anything like that. And I think aligning all chip manufacturers will take some time. Maybe in the interim we just use brcm,bt-pcm-int-params = [00 00 ..] as initially proposed. Regards Marcel