Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp455554rwn; Thu, 8 Sep 2022 04:22:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6jh4Y/HUbvzcvssKX09H8pYv1tA7d1IUXJjfiDN2LRl+QHFlwSho1m7Er6Tu8FcIRuGP6v X-Received: by 2002:a05:6402:551a:b0:446:1526:85ea with SMTP id fi26-20020a056402551a00b00446152685eamr6768274edb.188.1662636124018; Thu, 08 Sep 2022 04:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662636124; cv=none; d=google.com; s=arc-20160816; b=lothh+rbAK+Kqg+OBXbcnZsrb4w36wr7S0GS1/I+kU68mLofIA8vaPOrLwaCrPyJaP 9yrUtGvH1LuMumDrG7hWnGV2K6ZAzkbh8GL7yOkTAj9mvXywW0AREP5gNK0cI8r6+Ex5 kofCoQ8m8IIpIX6ERefHgW53vHx3K+l5aZuXr1Bd5N6xaIaonb3zoOpfelxcf1nmqiTU Jjx5bTRpeIH5Hu9wxaVNsIuQvp9rApOSCnBa0omgZKDF+8N5GgluqgfDThXAi5JEs9jg FCy/ieECyRpFGcxq8kLeMsi0BTWfPfF6X/DvShQofxRT0u0mzuTsKPAt2NZ076GrRqGR Xy5A== 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=iNS4D8S65NtETFVlL5t6U8r/BJqMmTweciJ4EUvTtkU=; b=hg7xl/0u0Wm5d7PkmrqjiXev50xTHsGnwoixRyfc4X/pWDRUfyN4tHJfx6+7yfiT/3 SUtpT50CYKdXjpR4b8Jshusk52OWzZKHLEnmchi34c/vzTPSmxONcCS/ptPdIE0o0j8f PbSSpdxPnz5bwqS8ZtyphxjoxK5407AOHryk2tVg99l2/rUlLghNP0rrLU7nPwaFOnBs UvdGcPFeewaGO/Xie/O/1Lzxem1TrW0Z2lSNgCn9wnVzFJpaqBFL0gigsYkIapeBZsKP YxVdC2o8fITneT410QW/T9xV6Tx4d2r3LI9210L5B/3PSA8iAojJHzQ1wBGNr6Auo2cS 1Gew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Agb4n/Pk"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a05640235cb00b0043999754363si13925419edc.516.2022.09.08.04.21.38; Thu, 08 Sep 2022 04:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Agb4n/Pk"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbiIHLUs (ORCPT + 99 others); Thu, 8 Sep 2022 07:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbiIHLUT (ORCPT ); Thu, 8 Sep 2022 07:20:19 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDC8389E for ; Thu, 8 Sep 2022 04:19:22 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id q7so27189605lfu.5 for ; Thu, 08 Sep 2022 04:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=iNS4D8S65NtETFVlL5t6U8r/BJqMmTweciJ4EUvTtkU=; b=Agb4n/PkJh9KNvgaGgewkPd2pInTS1xvRzqSeJtko+vl6q6Bi/ZF5/0eFTUhkYUbNb GPTiGBvmjQV50ga5vDtJxlaiF9jqaRHlq9gWS3h0tKgxPsNEPM/GXQpjcywZYc8o8+Ly +f9cFHPsCST7fTQIsPAE8MGTqq4WuGMPkkShwUP1z8Up2boqP2iFCyYxtp/xlNCrZzxO yPUUX+MbNB43/GyfKar520l072jW26fqkA5FrKQZs8uAc+i4B4o2fR4Fb1FOwPkxzcsz b9Lce2ZYnEvViv+AsYe1N5cqKgMezKtQKy5dKBFxLLFZQ2zLInkCEQRU17vtPzPOBvSS fG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=iNS4D8S65NtETFVlL5t6U8r/BJqMmTweciJ4EUvTtkU=; b=7I6phiKVMl036gq5/zGx/Vddw29zcFRmGVNo6no4kUiH9MzrhBPY3BsuicUuhk3QXI AdWj4/ACN9iTFtj0lr1o1nV6MGcc7zykAafw0ZzzNg0BlqcYIG6olH9Q/iMvuY6EIWOf /TZ9B9NTxbk6O4nvdUPIZv+bboKb7fxzaTRZuV+Y/74IH6P0if1HFp+ZTXaoV1s3hnX3 j0olTw3cQD+LyylYwFah4TfDhKE0hTOAV9qTs+YKgI8oMima0CBYbppaAWBUmlsb7PUO 20lOUMCOJrZCjgf2j718ufmHhwXtoYyQP1kt7Ah4D/atzeL1ZjOxQ9FsuTd+VTrhdlMY dRyw== X-Gm-Message-State: ACgBeo3cPAozBLg5OsOK3iBB7H2iyAkcpfPDUWiTgkkVf80bqXwb2GVW yGdFizZmGKFrShHR63/XgdXbTQ== X-Received: by 2002:a05:6512:1154:b0:48b:3020:b29 with SMTP id m20-20020a056512115400b0048b30200b29mr2461897lfg.338.1662635959295; Thu, 08 Sep 2022 04:19:19 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id i5-20020a056512318500b0048d1101d0d6sm228678lfe.121.2022.09.08.04.19.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 04:19:18 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 13:19:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 2/5] dt-bindings: net: Add Broadcom BCM4377 family PCIe Bluetooth Content-Language: en-US To: Sven Peter , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Rob Herring , Krzysztof Kozlowski Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hector Martin , Alyssa Rosenzweig , asahi@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220907170935.11757-1-sven@svenpeter.dev> <20220907170935.11757-3-sven@svenpeter.dev> From: Krzysztof Kozlowski In-Reply-To: <20220907170935.11757-3-sven@svenpeter.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 07/09/2022 19:09, Sven Peter wrote: > These chips are combined Wi-Fi/Bluetooth radios which expose a > PCI subfunction for the Bluetooth part. > They are found in Apple machines such as the x86 models with the T2 > chip or the arm64 models with the M1 or M2 chips. > > Signed-off-by: Sven Peter > --- > changes from v1: > - added apple,* pattern to brcm,board-type > - s/PCI/PCIe/ > - fixed 1st reg cell inside the example to not contain the bus number > > .../bindings/net/brcm,bcm4377-bluetooth.yaml | 78 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 79 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4377-bluetooth.yaml > > diff --git a/Documentation/devicetree/bindings/net/brcm,bcm4377-bluetooth.yaml b/Documentation/devicetree/bindings/net/brcm,bcm4377-bluetooth.yaml > new file mode 100644 > index 000000000000..fb851f8e6bcb > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/brcm,bcm4377-bluetooth.yaml > @@ -0,0 +1,78 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/brcm,bcm4377-bluetooth.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Broadcom BCM4377 family PCIe Bluetooth Chips > + > +allOf: > + - $ref: bluetooth-controller.yaml# Put it before properties (so after description). > + > +maintainers: > + - Sven Peter > + > +description: > + This binding describes Broadcom BCM4377 family PCIe-attached bluetooth chips > + usually found in Apple machines. The Wi-Fi part of the chip is described in > + bindings/net/wireless/brcm,bcm4329-fmac.yaml. > + > +properties: > + compatible: > + enum: > + - pci14e4,5fa0 # BCM4377 > + - pci14e4,5f69 # BCM4378 > + - pci14e4,5f71 # BCM4387 > + > + reg: > + description: PCI device identifier. maxItems: X > + > + brcm,board-type: > + $ref: /schemas/types.yaml#/definitions/string > + description: Board type of the Bluetooth chip. This is used to decouple > + the overall system board from the Bluetooth module and used to construct > + firmware and calibration data filenames. > + On Apple platforms, this should be the Apple module-instance codename > + prefixed by "apple,", e.g. "apple,atlantisb". > + pattern: '^apple,.*' > + > + brcm,taurus-cal-blob: > + $ref: /schemas/types.yaml#/definitions/uint8-array > + description: A per-device calibration blob for the Bluetooth radio. This > + should be filled in by the bootloader from platform configuration > + data, if necessary, and will be uploaded to the device. > + This blob is used if the chip stepping of the Bluetooth module does not > + support beamforming. Isn't it: s/beamforming/beam forming/ ? > + > + brcm,taurus-bf-cal-blob: > + $ref: /schemas/types.yaml#/definitions/uint8-array > + description: A per-device calibration blob for the Bluetooth radio. This > + should be filled in by the bootloader from platform configuration > + data, if necessary, and will be uploaded to the device. > + This blob is used if the chip stepping of the Bluetooth module supports > + beamforming. Same here. > + > + local-bd-address: true > + > +required: > + - compatible > + - reg > + - local-bd-address > + - brcm,board-type > + > +additionalProperties: false > + > +examples: > + - | > + pcie { > + #address-cells = <3>; > + #size-cells = <2>; > + > + bluetooth@0,1 { The unit address seems to be different than reg. > + compatible = "pci14e4,5f69"; > + reg = <0x100 0x0 0x0 0x0 0x0>; > + brcm,board-type = "apple,honshu"; > + /* To be filled by the bootloader */ > + local-bd-address = [00 00 00 00 00 00]; > + }; > + }; Best regards, Krzysztof