Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6863861ybx; Mon, 11 Nov 2019 16:21:36 -0800 (PST) X-Google-Smtp-Source: APXvYqz/ptt3fSgWIZwjSqhkS4YJXVnalkJybnMrrtFozqAmVqKh7GZBuxcPFctuPdIVBVbMaA2I X-Received: by 2002:aa7:d54e:: with SMTP id u14mr29531157edr.49.1573518096270; Mon, 11 Nov 2019 16:21:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573518096; cv=none; d=google.com; s=arc-20160816; b=DC0EMBXvHcQM3IkyH5xMPslGqBc9Sxr51fEWmMZMZWN/7orf67WRek+42PRfCw733q QYX/5lWfIM4Mms7YrLM8AGxD8kdaHr715E59Pn+97oAFqfpT6rWXmyW/l8Q0uapP4R/0 /zvx/Y2mBWotEvc1guOGVJXSkevsLCApqtvoXStGzCS6QbKAaC34TAItlPKeuOq3nkQ4 Sqv1cYzjDep+1//ApPjcNk3V7Mf8kLwGIoEzJWWv0YIAoOl3QbElzDZ1DMH8QbgmUtLQ utpmRdsJPweAPpSz214+/KzjquoAulQ1xsuTEvUTj0SvjCBJF2TA8CuP9ll/+/o2Xbyz E9ow== 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=i3QVtv45Axk545voSCTdnsYQERVAGrIgwCeqw/o3MX4=; b=rRPuhyHoD774iODE3EvYgwyL6NNNZbbEwWPO0ctE59raNxAuCTh4km7vvKTvBy69J4 FxpNri3KYrQxWgHnyoLvK9oD6hBtFQ5t3fJlvs/sh8BNS0hsH3o6bTC6gS0Ne5EwAGDO sPrVbWWuhdYoAXa8ElfwKWQxnkKHSQd7epSicd9uznyk+K1JwuhoPXDDijVdpgi5E9q0 KT21vtaHXDRDAtf4OdNng/xUM3QDjnV2YKMYnoE+8/LQYuW0I2x9FmcyaxgP4IzYOTB+ JO8jWOQB02FLID3xPTBv1LHkAfLE8rMOmmEidKMbWTZ+Lt1t7tWS1bIvZ/1GwjtnxUsa jCaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LsEHNxuN; 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=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 m12si6219608ejr.306.2019.11.11.16.21.12; Mon, 11 Nov 2019 16:21:36 -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; dkim=pass header.i=@chromium.org header.s=google header.b=LsEHNxuN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727423AbfKLAUJ (ORCPT + 99 others); Mon, 11 Nov 2019 19:20:09 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36953 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727389AbfKLAUI (ORCPT ); Mon, 11 Nov 2019 19:20:08 -0500 Received: by mail-pg1-f196.google.com with SMTP id z24so10592285pgu.4 for ; Mon, 11 Nov 2019 16:20:07 -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=i3QVtv45Axk545voSCTdnsYQERVAGrIgwCeqw/o3MX4=; b=LsEHNxuNOsi4smeIUmloCDxQwN5wRT573S/dAcRBGQmdn1PyWUEE9OCntdlNebllY0 tqwl/eRcJss7RnMsihQjohvTPAUWT6tFej9W29LueU8pO2WEFNtm6j4GfDXuGHLZstU8 wgYDR0ZZNkcghB2cgaOOxCjkKmEDYo8vR2E8Y= 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=i3QVtv45Axk545voSCTdnsYQERVAGrIgwCeqw/o3MX4=; b=O7ykHQQDIhMzkE+DzaGtXrXmNPgsuQ0y9hxz4MUG6i7RXsogW2xmy4srQREZqo24Nk 013uhPVDpbdbP8lb4AU5CedXjvTzWBzHKClYuHvrBjRHEeftGGxL/Vh7ozZnnU3G6DQx OE9F3l+I+R63+kMsb5pN3jBT16+FbP9WrhhtIFSBUuqwYcnjKgQFiTCoIDXDjdWqmXGx 7BgYzNZ2KdkehojZi8n3S+SA8L08Vjoqnym2gtQBzP8ydcenKreNGOkVVa56Ydkefk0P YZbx6OVv7YaBoTT5Les4Wz+DwN+n741Fu6XkMvqUecwod7WiRjAKx9q8s5lXVLL4tKRp i2eg== X-Gm-Message-State: APjAAAUz7v+vGeRBnqtapTvyQ9TjC1nFT76SSh98mzvrGXMutM6gnCWv tU4dQscEYCHlLxXKrnlbW+1LyA== X-Received: by 2002:aa7:9e52:: with SMTP id z18mr32297912pfq.149.1573518007037; Mon, 11 Nov 2019 16:20:07 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id h23sm8430898pgg.58.2019.11.11.16.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 16:20:06 -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 v3 4/4] dt-bindings: net: broadcom-bluetooth: Add pcm config Date: Mon, 11 Nov 2019 16:19:49 -0800 Message-Id: <20191112001949.136377-5-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191112001949.136377-1-abhishekpandit@chromium.org> References: <20191112001949.136377-1-abhishekpandit@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for pcm parameters. Signed-off-by: Abhishek Pandit-Subedi --- 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