Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1142559ybc; Tue, 12 Nov 2019 15:12:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxPM49w8COsK8WXlE/nxo+mGPApgH94fziXVAY//nugi8vFMnG7BmpCw2CwCyCGfZ5F66J1 X-Received: by 2002:a17:906:a995:: with SMTP id jr21mr29489881ejb.77.1573600322040; Tue, 12 Nov 2019 15:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573600322; cv=none; d=google.com; s=arc-20160816; b=IWzY+ULmUb/QxvTfMcCqUq+HfN3F9YFfD751ffNvk2po1IV4MXwtF7NMjp9ZgxFDkk 5oAaN8kIeqPOVmB3S2wbalCFPHoW4gd4m3qbkZdgzZeyaLM/84MyXbfxPmRlmYVo36i0 98/JcfsGFOFVGi008tDhCqKt2Ksl7CL2mzRkxpKwWUpF0jDKzsxRvA7SjtwHecgvbkTg BjfBfkeuYJJNmcnWygSkMfUvZ8G5+5OLr5zGgtVhgG0Fjh/D7ArdxJslLraC60GKaLMy YStpHi1V4hvydIlqrVSUYLvsY1gIiOkHyfnlX0M8oIBBg4LqEQb6kJMScPQcBXUldSH+ 22Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZbIDTwp4tu6O0c9hAtlHVKFNN3DvpyKyTnrVQEjbRfE=; b=faEnfFG3fftKPr5VJih6f8FuVgR/Q2Vcqznydv0iRus3bYibg+dxns9xUPlHSsg8Ud 1a3Dht6qghVIHVGzJBAF003EYUA08ApXgvrFLmuZwXYxdi/xapaPx4gxf8IqXxxwulbP V05TI86yYmsq0SuESXwr4irYUXA1dfOF7Za+ZeVIlZQIp0TA+mEl5zbf8gCGdkprGibK 2K25ckiIhFgZUyI1BztYOyOVkEKS5AYGith0qbHp1ukoF1xf82n/bXFzS/aY7ZZ9IrXq QKvYIIJrw7vQdhSsN12VvvsJB51HaU5Rb9pfaso/ZrOoIo4h9Q1pKm0xD2A2GCQwWBXE oTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=il1oX2YP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q22si2322ejx.69.2019.11.12.15.11.36; Tue, 12 Nov 2019 15:12:02 -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; dkim=pass header.i=@chromium.org header.s=google header.b=il1oX2YP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbfKLXKR (ORCPT + 99 others); Tue, 12 Nov 2019 18:10:17 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40641 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727276AbfKLXKQ (ORCPT ); Tue, 12 Nov 2019 18:10:16 -0500 Received: by mail-pf1-f193.google.com with SMTP id r4so171584pfl.7 for ; Tue, 12 Nov 2019 15:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZbIDTwp4tu6O0c9hAtlHVKFNN3DvpyKyTnrVQEjbRfE=; b=il1oX2YPsQrYMYIPzDIlTQIh1b0A2P3+Rmp3gsKmtutrIWhcWhHRaEQez9k38Ayfsx 0gbgSYFgYoiEG2l/1WeVvkysdhKbYgNph0ZBrVPBLm8xqhuHZK/ZBOyaMP5lZ1+IzWCq KKTy9UiqaLlDIl2kVkhacl2qrBxf9XKs0PslM= 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:mime-version:content-transfer-encoding; bh=ZbIDTwp4tu6O0c9hAtlHVKFNN3DvpyKyTnrVQEjbRfE=; b=pNh0r3zx/FZbrwv729P7BNbyP+ghLWAAsbB+df92NENNsrvacPheZ6NOLvZcOuG5dd vzSP2HbrhjoYmAzn98Z91GEYZFDBrc13XdKRv5ou8CNjB5gWLznkPOLK0NiL7dMqL4eP 5ckMMzTMSa80KlMWaCVYg2RR92xRJi9QdGedVxqpobyM1hQ/RC4EexaKizR+6lCxZGvL /D2R0uQUeWIzd1gLKnO04D7MHDfLzYnglZBmFgiObHWkcCWgvzkNnAmLLZnTJeyx4kDu dfg7RuXlp1tzwbwZWPMYLZWg0u4RHMY7+zvhIPgY3oNvMpgKeqEh8dYdNtlUGVXt4PJu ELpA== X-Gm-Message-State: APjAAAViRBKva8e1uy0/eGZWh/DJWhkjLI0UjMHCyo1+LyE5B6oSp3vf TDf1F+Y3p43EpO1h2GwB1b9/qw== X-Received: by 2002:a63:1e4e:: with SMTP id p14mr17554pgm.127.1573600215428; Tue, 12 Nov 2019 15:10:15 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id w27sm67694pgc.20.2019.11.12.15.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 15:10:14 -0800 (PST) From: Abhishek Pandit-Subedi To: Marcel Holtmann , Johan Hedberg , Rob Herring Cc: linux-bluetooth@vger.kernel.org, dianders@chromium.org, Abhishek Pandit-Subedi , devicetree@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ondrej Jirman , Mark Rutland , Chen-Yu Tsai Subject: [PATCH v4 4/4] dt-bindings: net: broadcom-bluetooth: Add pcm config Date: Tue, 12 Nov 2019 15:09:44 -0800 Message-Id: <20191112230944.48716-5-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191112230944.48716-1-abhishekpandit@chromium.org> References: <20191112230944.48716-1-abhishekpandit@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Add documentation for pcm parameters. Signed-off-by: Abhishek Pandit-Subedi --- Changes in v4: - Fix incorrect function name in hci_bcm Changes in v3: - Change disallow baudrate setting to return -EBUSY if called before ready. bcm_proto is no longer modified and is back to being const. - Changed btbcm_set_pcm_params to btbcm_set_pcm_int_params - Changed brcm,sco-routing to brcm,bt-sco-routing Changes in v2: - Use match data to disallow baudrate setting - Parse pcm parameters by name instead of as a byte string - Fix prefix for dt-bindings commit .../devicetree/bindings/net/broadcom-bluetooth.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt b/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt index c749dc297624..42fb2fa8143d 100644 --- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt +++ b/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt @@ -29,6 +29,11 @@ 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: 0-3 (PCM, Transport, Codec, I2S) + - brcm,pcm-interface-rate: 0-4 (128KBps, 256KBps, 512KBps, 1024KBps, 2048KBps) + - brcm,pcm-frame-type: 0-1 (short, long) + - brcm,pcm-sync-mode: 0-1 (slave, master) + - brcm,pcm-clock-mode: 0-1 (slave, master) Example: @@ -40,5 +45,11 @@ Example: bluetooth { compatible = "brcm,bcm43438-bt"; max-speed = <921600>; + + brcm,bt-sco-routing = [01]; + brcm,pcm-interface-rate = [02]; + brcm,pcm-frame-type = [00]; + brcm,pcm-sync-mode = [01]; + brcm,pcm-clock-mode = [01]; }; }; -- 2.24.0.rc1.363.gb1bccd3e3d-goog