Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp944183lqb; Wed, 17 Apr 2024 16:04:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC/UiTTxaCikp2XdXGduotgaoIgJ8KfdR1J4M400hb4DNuIoH9RJ1AdDu46yOmf1jZVTuMlC9xHVd6Q2grliu9X9lpPEoApUoc9RoXaQ== X-Google-Smtp-Source: AGHT+IGtWYWL2uHOAQEQ7riHKz6/2MomzIuDNHD3Y/oF74nPanQZHUT9xpfT5Lc8PeZsZHpQkUsK X-Received: by 2002:a17:902:eb87:b0:1e3:dfdc:6972 with SMTP id q7-20020a170902eb8700b001e3dfdc6972mr1185092plg.9.1713395075269; Wed, 17 Apr 2024 16:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713395075; cv=pass; d=google.com; s=arc-20160816; b=kZN/jfsBIfpvFcFCVVr/IvgzuDQ264F2pz+4vbs0pO4iTHWHbAfQgAm7po9CHxp6zf da/CF9zRRg6KgjV+LpLUMx40T4Mnby5OFYa32NhgQ96FWNNbUcPWeDi0oh0Nh93gk7uE GYDbSFLOSUnipeph2rNfe81++rmf0df7kxTqTqnjObdWxDPjK65twfLDwM+BCSQljlcG 0I0hSYWO5wDItxbMpYeD0+ZZmOTNtKeJNtQFBpb39vxHUYZkJolPGYDhs4DBfRyI0OuY 6WDg0oz03JbttNYQUi6ZwtZMITbtL9dma7t2IAljw7GuBN7U6vQf+obqAZgjIF0SbrF7 RBrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Y+Tv9auK/7vAekxstLA6CiyrsM0cHn+PlMvvzgxYpEI=; fh=X2yJf4VRrNjl77dbVDgVeSuKbWoZcb3NmDMoanAF1+4=; b=X6SfDyCUV7ogfDIStd9sm0g3Yv3uBGm9GdWK2YaWgCg2+xPc3IDUQL8reEysQX7vNf 21pWfJg0yArS724NYA2997EC5vP8vGrs9xO+Bp7B533uayPVvVdcsBc/syJ+cbpcAdJE GIRnNtcU8s89UfzjIV+PLr/61d/qvNjzLfBtuRHIIStxwJQ25LkLI+2xdWxmNupLeQ+a uHVqmcn7zJ8WUSTm6VRej18MaZWnRM7uMhg8SUOpGikCMmTUdm4NeQGZ7qgWl5XEECgO 6V52IoT4QsYU0F96hb53e7+DicgwDgnx1DwJnOACYQTz3IuXMvbhDFn3IIiuJlOQImVx w/yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUvqalSF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v20-20020a170902d09400b001e49bedee33si211674plv.157.2024.04.17.16.04.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 16:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUvqalSF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1CBCFB220EE for ; Wed, 17 Apr 2024 23:04:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42A7485C7D; Wed, 17 Apr 2024 23:04:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KUvqalSF" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 923048563C; Wed, 17 Apr 2024 23:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713395056; cv=none; b=CIEk5DIi5cNIISgQOhlWR9zQbL33RPV79Q1VvYzNvc+Dw4azw2ETqAc8977YBQzEkHqxhXtin2JIS7fmQWkJbBhNs15kZNpohkIr9QpDKJ/5cm/3ggDPxEDx24Ovu3ou7UbNOMF+2dhFRG26GDp8ld9cRg+/SO3FSuL48FBEhP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713395056; c=relaxed/simple; bh=DleZPmzIjopdcwuK5ScXde4KztmrAG+BSDTdahj4F34=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fWReTn63Aby50qvM/MrrZG/30m9jSOlGJcZyCymy/YGJVPw2Gg9+flcTZyp4E39LNl6D6JnWaJY2ZNVSb842PLmb9bCLl9IFaEAz/SvQnXfeeZE/WwRKw+md1dfJGJdu7Tr9+wMQyIbncGyrSXIxN4X1dlUJlLU2ltNMLDFumVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KUvqalSF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30C76C32786; Wed, 17 Apr 2024 23:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713395056; bh=DleZPmzIjopdcwuK5ScXde4KztmrAG+BSDTdahj4F34=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KUvqalSFcV7qWl7RPj4p2dAkP/ZOE6htLrjxrb2m0xtesPjAe9AGjsdAf/e8gdlh9 2n+mYf8ezjDn8uv/EPeEQBJv07PBMJdceCeuoRZSpYO9oRHNdk9YD+jF5WMgdKkaVK M1ckHynpWJhOrhmQ2gZL22DrtoGLRrt3e5sDPXG/8trJnobsdOl8ybkWTfdeiC6iMI U0u1isSfwpqkWSpy/4+KGRsQv2SA4nYmIKChisqswmIqB00MPbzA/8Jl/vlXmOw8qp qa6z+ljwKUoQf7Y0efhRhv0mP1YBFpxmW/8BmeiIIPhafgKyF9NiiyJV1pdoq4Cw4/ l1KZ78OyuGztA== Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-516d8764656so47041e87.1; Wed, 17 Apr 2024 16:04:16 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWYYLY8L62q81DIGuL+i/gKUl07G61vBS1DvGn/O2faXG5pLdYeQJdiJfjg4gnQXKcPw0LuAKhNXrPZ8Vby/RABHc0cvZuKtZn2EnnbMszvE8eePvIDIfTkPfm9DcbhqOgDPwxg7c8R3Vnuh6ST1Fl/1/a5GOpDxU22fG8yDlAiQO0ZN8gXksM9345o7Bmku9nsXT2KO2nohKlmcs98/T0xjQ== X-Gm-Message-State: AOJu0Ywar3TTneXVE8e4BaLrPVBXv3cuRwgR+i4CnsJhunMPABFLdjYE P7jndSvl6aNvwv1bRAHKGN3QX2NVsolg8MZax5idm7W8vb15w2NtsU/ELcCJJEGCnVU5Zej4vsK n/593K9i13mMnvm7r6sPo0nwOUHM= X-Received: by 2002:ac2:51bc:0:b0:519:592d:adcd with SMTP id f28-20020ac251bc000000b00519592dadcdmr335876lfk.3.1713395054395; Wed, 17 Apr 2024 16:04:14 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240412073046.1192744-1-wenst@chromium.org> <20240412073046.1192744-2-wenst@chromium.org> In-Reply-To: <20240412073046.1192744-2-wenst@chromium.org> From: Sean Wang Date: Wed, 17 Apr 2024 16:04:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth To: Chen-Yu Tsai Cc: Marcel Holtmann , Luiz Augusto von Dentz , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Chen-Yu, On Fri, Apr 12, 2024 at 12:31=E2=80=AFAM Chen-Yu Tsai = wrote: > > The MediaTek MT7921S is a WiFi/Bluetooth combo chip that works over > SDIO. WiFi and Bluetooth are separate SDIO functions within the chip. > While the Bluetooth SDIO function is fully discoverable, the chip has > a pin that can reset just the Bluetooth core, as opposed to the full > chip. This should be described in the device tree. > > Add a device tree binding for the Bluetooth SDIO function of the MT7921S > specifically to document the reset line. This binding is based on the MMC > controller binding, which specifies one device node per SDIO function. > > Cc: Sean Wang > Signed-off-by: Chen-Yu Tsai > --- > Changes since v2: > - Expand description and commit message to clearly state that WiFi and > Bluetooth are separate SDIO functions, and that each function should > be a separate device node, as specified by the MMC binding. > - Change 'additionalProperties' to 'unevaluatedProperties' > - Add missing separating new line > - s/ot/to/ > > Angelo's reviewed-by was not picked up due to the above changes. > > Changes since v1: > - Reworded descriptions > - Moved binding maintainer section before description > - Added missing reference to bluetooth-controller.yaml > - Added missing GPIO header to example > --- > .../bluetooth/mediatek,mt7921s-bluetooth.yaml | 55 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/bluetooth/media= tek,mt7921s-bluetooth.yaml > > diff --git a/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7= 921s-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/media= tek,mt7921s-bluetooth.yaml > new file mode 100644 > index 000000000000..67ff7caad599 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bl= uetooth.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7921s-blueto= oth.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT7921S Bluetooth > + > +maintainers: > + - Sean Wang > + > +description: > + MT7921S is an SDIO-attached dual-radio WiFi+Bluetooth Combo chip; each > + function is its own SDIO function on a shared SDIO interface. The chip > + has two dedicated reset lines, one for each function core. > + This binding only covers the Bluetooth SDIO function, with one device > + node describing only this SDIO function. > + > +allOf: > + - $ref: bluetooth-controller.yaml# > + > +properties: > + compatible: > + enum: > + - mediatek,mt7921s-bluetooth > + > + reg: > + const: 2 > + > + reset-gpios: > + maxItems: 1 > + description: > + An active-low reset line for the Bluetooth core; on typical M.2 > + key E modules this is the W_DISABLE2# pin. > + Thanks for adding the new setup for the MT7921S devices. They look good to = me. Sometimes, the MT7921S might be set up to wake up the host when it's asleep using a sideband signal. This might need an extra pin called "wakeup" to make it happen. Can you help add this pin to the settings in the same update, or should I do it later? > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + mmc { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + bluetooth@2 { > + compatible =3D "mediatek,mt7921s-bluetooth"; > + reg =3D <2>; > + reset-gpios =3D <&pio 8 GPIO_ACTIVE_LOW>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 88981d9f3958..218bc2a21207 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -13818,6 +13818,7 @@ M: Sean Wang > L: linux-bluetooth@vger.kernel.org > L: linux-mediatek@lists.infradead.org (moderated for non-subscribers= ) > S: Maintained > +F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-= bluetooth.yaml > F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > F: drivers/bluetooth/btmtkuart.c > > -- > 2.44.0.683.g7961c838ac-goog > >