Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3245111lfo; Sun, 22 May 2022 23:43:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6mtN0+UxBaV7weBmtje7+gkBl4QvI4RsZERwVDkfc+3c7Unyvpm+Pf+pTIkj4vGbhbNn6 X-Received: by 2002:a17:90b:1c10:b0:1df:f814:6beb with SMTP id oc16-20020a17090b1c1000b001dff8146bebmr17334661pjb.0.1653288220799; Sun, 22 May 2022 23:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288220; cv=none; d=google.com; s=arc-20160816; b=plwteK89FrZoKjpwvZXmLpZnjbvN+h9L2ra/uVAy8vkRxpBalGe5JpALbRiFP8PL95 xx7a9NkFtOQWo6mQl7VLPVOTy1o+NY2SsGd/FzY8m4vbNYiLJ9ADkQpi+Y1AS02zD72M au9PS04yXpnUx1QK9mLbnbyl4FuBZrTMPMjknsqKgW1HgCqz5dyR0qduO7SXgMSCzOZu hh6ryticV1g4Ou7HhqDXNfI+K8//5BCfEvkbxKIlCYJZ2rfHLfLHwb0fBLXdb6JjzxZv OP3mzofVfkZ5OHmy1DduGiJz5vgvHSQvQEL1Zcvv27Rovi2LzmzOI43qIgWvf58alT11 Lg0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Et+7DOTTQH1JqVpXKSqRPgxVrV1oOzeHvnh2fubRt1A=; b=oyUlBuCvKhqkdrdK89P+I2gVzU9zaAB7ULp3EUxb2EymyY1S8ySTy0R89b+e1AGTz7 af5/9NHcPoLrEyLE76/jaOueqW19a7TNDJxsqi4FgBQ9fSJipCY6sUHDEFYNtc0x+plQ qpjltgjHQ6nQe3yDEnGGluMgqNTwUFamad8y4DxY/il7VpVHxPMYxmV+Bx5sBbe+fTtb yN4/0WeB1EQBwYoF0q92o/U6Ej9f5AZUUMTRT2vZf5hieJQtO7132IkPzj9pLTT8+inK ElcnctI3RW9VFChIJeJ9rVU+UwYD2cCbig1dN4KRGIVnYyFV5k8MvnIX0ZmpDuGlu8AZ 3Fkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k7F8Fidf; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l72-20020a63914b000000b003f641a6fe83si7637676pge.277.2022.05.22.23.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:43:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k7F8Fidf; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA69211F; Sun, 22 May 2022 23:15:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241087AbiEVIOJ (ORCPT + 99 others); Sun, 22 May 2022 04:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240093AbiEVIOI (ORCPT ); Sun, 22 May 2022 04:14:08 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011A32A267 for ; Sun, 22 May 2022 01:14:05 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id u30so20799415lfm.9 for ; Sun, 22 May 2022 01:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Et+7DOTTQH1JqVpXKSqRPgxVrV1oOzeHvnh2fubRt1A=; b=k7F8Fidfxb4gmUhFCDJVU0LHLtsVdZsyeamFnEqSX+/iUh9u/66KhhnLYfQkaVuM9B aUT5IqNMGTJ/4Ewd0Vfqc7W05jnqVT27dax0L/Fxh8ZF271LiGTSyOptKN9UK6LQKBJW fYp1vuJzrnTbDPpeEPeHa+2Y7apTU2k6uF/gfoAAdrPLdsWeMpG8LuGhciDFaJ3I8q7F kO5mbYKP3eZiE9xwPOo5ueHOk5GyBlewRHeGDqbU+U/LOfkis6wsyF4hEN66W+QTHnUa yaevaJ1FRUuoWRSfbL1pN5GPlq6ZPB295vwB7buySPS8wf2XTY4ucyU9kQwWTlYixKQ6 xoHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Et+7DOTTQH1JqVpXKSqRPgxVrV1oOzeHvnh2fubRt1A=; b=5ExxtTjBEGZSGdlaR6xOY2g8VbtHbymfXmztxYkKr7HcwD7HcwPRgJgpRvaSDCgw+4 HmOO32Gts9kOfB32lCMJT8pmGMWKMctzGxqagsEOZIvnpRZ0kWWxJs6PNVNIlKr8KDTd HOQHHoQ1/bf4yPiD+arXOWTA01Q09s30cPJceTr9y+bsJX2qS9veWSj/hkDGGXtREdac l+SRpgxGk/hdNL/ZlAYRxLjmjOMdz5E8XmtmJYTb+Pi/3Mr9qs0GirOjUDSvY72dLS3s BblQIRKnnlnETEs2QpbzBZfR0a8xyPQjsyhKeyKaoSCEp+zdsRazz9P+ahjRoOaTzy+O c9MA== X-Gm-Message-State: AOAM530pq6qjXg2xRn1s8nClp8e9OGIK6JY4H12iGOH8s7Cu49e8ccQl Yetv3b5rtlB1pEVbfy6ld+TKcg== X-Received: by 2002:a19:640d:0:b0:472:75e:7373 with SMTP id y13-20020a19640d000000b00472075e7373mr12289744lfb.46.1653207244246; Sun, 22 May 2022 01:14:04 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id m25-20020ac24299000000b0047255d2117csm1362254lfh.171.2022.05.22.01.14.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 May 2022 01:14:03 -0700 (PDT) Message-ID: <996ac5f2-3cf3-e67a-144b-4fdac9bbc20d@linaro.org> Date: Sun, 22 May 2022 10:14:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Content-Language: en-US To: Hakan Jansson Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Linus Walleij , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 20/05/2022 17:07, Hakan Jansson wrote: > Some devices (e.g. CYW5557x) require autobaud mode to enable FW loading. Which devices support this? You probably need allOf:if:then. > Autobaud mode can also be required on some boards where the controller > device is using a non-standard baud rate when first powered on. > > This patch adds a property, "brcm,uses-autobaud-mode", to enable autobaud > mode selection. Don't use "This patch": https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > Signed-off-by: Hakan Jansson > --- > V1 -> V2: Modify property description > > .../devicetree/bindings/net/broadcom-bluetooth.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml > index 5aac094fd217..a29f059c21cc 100644 > --- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml > +++ b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml > @@ -92,6 +92,15 @@ properties: > pcm-sync-mode: slave, master > pcm-clock-mode: slave, master > > + brcm,uses-autobaud-mode: Based on description, I understand the host triggers using autobaud. However here you word it as "uses", so it is independent of host, it looks like property of a device. The commit msg describes it even different - "require autobaud". This leads to second issue - it looks like there is some hardware property (requiring to use autobaud) which should be described by bindings. But instead you describe desired operational feature. > + type: boolean > + description: > No need for '>'. > + Setting this property will make the host (driver) assert the controller > + chip's BT_UART_CTS_N prior to asserting BT_REG_ON. This will make the > + controller start up in autobaud mode. The controller will then detect the > + baud rate of the first incoming (HCI Reset) command from the host and > + subsequently use that baud rate. > + > interrupts: > items: > - description: Handle to the line HOST_WAKE used to wake Best regards, Krzysztof