Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp956268lqb; Wed, 17 Apr 2024 16:32:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPxVrT3ke7K2H8NgIhzyV0O6iC82FPQVP7TvO1MAkvGUXML7P7zVMBJSbLhyBS+JH1w4h4o2aCOZCJiOLxgb1jaySAasBVStj00/Rcmg== X-Google-Smtp-Source: AGHT+IGCxtr9/ZQsmYbuepshkSCgugExC752/HiDEOwuW6Y6N1se/0h7/3TnSBLsKJjs+bMG/EZ2 X-Received: by 2002:a05:6a00:1942:b0:6ea:b395:ca67 with SMTP id s2-20020a056a00194200b006eab395ca67mr1329670pfk.29.1713396743624; Wed, 17 Apr 2024 16:32:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713396743; cv=pass; d=google.com; s=arc-20160816; b=qh+expyBM7lxxnJl9BqJ6Qi0tOs0/qOATOj9IWj+GDjVeu1JGgUxaVJj5lh0kL8fmm YmBIdvOjs8/E8h6gVYrHFWuXXO6ajyya+8ooyNl55cw+C5rmBiNGJ1puf3WbAga4zHZU HS+4pkbIIdq0OdpqOVNvXfGUsgiu2ERTt4nnEOs0H+SGsrwHXtLtg8/4xZ1C5H5bxLcb 8/2zr0eLXft/h74u9L+kgOKr8eRCqIPk61BO9QHANMPG59fLlGaevH8Blx+agFbdEvnJ GubJHpOTz15I7Em+UHShipGJ3Auc7SaKV/nuF5r2l8Hi728MVEPewumXq1YXBaxXhZ6P rFig== 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=pXeaIqHgrQqvoS7w1DDDiuOy+AYJG35Jgluc3WBXL9E=; fh=hwlpDL8dwWx1LNfmHXXYLVFAblBC7VUEsptyx0TI1K8=; b=vEI6558/GsFAcWhYDQ6CiZogPnnt1JUfli0KNiiX26lnBUJ6zQASSjofU33T3A7W6Q kVtL6dWRmyTeFZy9c+4v5UutY7gBODQIiaiTuvDeXSzEVuC/zV/AToD+xTd0FPSw2p6r zHMyLcSg+jymqOzhNSKWPOqDYFZAn6V9wPA4yNRujPGrzv0ijM/uxxwXFzZ3K9sBmLae iCACYirHVUaTCBX7rKRVUWtvX/mCKla+6bQUguOyVFYSRNquud2C3+uWKwG83jLoFT8a AL+H0V6j4CwHwsXLo80T8Ff1btU2zWUDT9a9HM29ddSYJXfG0r+NQIrhRX5PGpJrunOg 9zHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ISw+Fe0R; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-149310-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s127-20020a632c85000000b005f751c531ecsi224081pgs.761.2024.04.17.16.32.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 16:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149310-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ISw+Fe0R; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-149310-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F27228339D for ; Wed, 17 Apr 2024 23:32:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B85186260; Wed, 17 Apr 2024 23:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ISw+Fe0R" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82C848563E for ; Wed, 17 Apr 2024 23:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713396734; cv=none; b=PNrZdyoaCU2R9slUwk2OSJT3Z362TCpWCTJR8HlxKvUAQLw7J4cFe+sNxS3SK0ET/C8JEQg3Wqy4GjvRsGGy4H00946VzwmUpANZG9o1p+EQIy2ILm+QBC7lLDh8KIOlt7ZE/HKLFX0CvXb0J16B00Ic97G5SyLUkYwB1WsuQto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713396734; c=relaxed/simple; bh=vvp1J1SpydGRs1Ir/XmxNMPAMc5m1dHH0Oe0z/29VuE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=c6W6SCed8+j7ao12Y47UZFyuUMXuZad5m8+AZg2cKnycu4sBCMBcjDkXftAct7n6FzaGvwdIc6CIeS8mLHd3MA6yFdde7nTNQBusfU30WfoMfx1di3xD3+YcSG3iS/yKo94+kxnCde4Za447ygidaYq5yzn7eMQBDK1ABpq/Pb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ISw+Fe0R; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-516d2600569so298718e87.0 for ; Wed, 17 Apr 2024 16:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713396731; x=1714001531; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pXeaIqHgrQqvoS7w1DDDiuOy+AYJG35Jgluc3WBXL9E=; b=ISw+Fe0RApwzUwVDImCY+ouRCwZG7aMMd3HK5CmhhV04pKART+APpuulyB6th+mf59 zdIh+HiPONEYyo6UHKYgYO76ABBwMT4TQ3hQNqSXrCaBuZQ6u+TeULqgYrP0wy7im3xv t/JIsrwLpeH0cxDtCAuntBbMMsiMP+/d4QeuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713396731; x=1714001531; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pXeaIqHgrQqvoS7w1DDDiuOy+AYJG35Jgluc3WBXL9E=; b=LanuIxoXj6YNjKtABHnv+luU0TpGL6LF4qrh7ecHiXEu8JC+Cgi4v8iKEhkYIz0m5K OtWaOIHumvLQ6mloSjyJ9KhocQxE9aOLlStSVr6k6Bw/nUnl4cxF6+Iwmg9SlN/7mGCh kuwX6iPG7xY9x2pebHC0g6Np2rSnGH5s3s7PvoE2b+n5ftj8najqfXjlfdmSBOaM6O2u WfqTP3BHYxgfFVStlW+QY42uu7Q7OhhiSa/LCODmXpsBAoBAQFweaWuZRZ6E6mJw3vl4 IzBXDSPLOzNDERFvOKU/YPxCM3rprNxitQCxibLieIupfWUXOMhCcxQrPC9Kpp4/teNh MC6w== X-Forwarded-Encrypted: i=1; AJvYcCWl5Xg+lKijz22MlsOnC2K5dQLTVi2xMJ38ww+gE3XNCIaaC7hUFGL99wFaOukBHwDZRvWutearyJ5sgLBlG4N0rTmWYrmsnf3Tt4OW X-Gm-Message-State: AOJu0Yz29/n5TR1yNGOcMlVOlFOjt9XAQfDOoFwv2odimxXiJpuCsP9A 90ilb1iVyWrfhZBHcgNuqH17C3ox+8v2HwFXvAs8QtusjjWxB4YBqiA9KfG1P0CmwaGhrdI5X0w 9RZY7yb/cIfQkXjkjCOZDxP/a1uVB/3AOHB48 X-Received: by 2002:ac2:5b4f:0:b0:519:17b6:f20 with SMTP id i15-20020ac25b4f000000b0051917b60f20mr445676lfp.6.1713396730437; Wed, 17 Apr 2024 16:32:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@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: From: Chen-Yu Tsai Date: Wed, 17 Apr 2024 16:31:59 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth To: Sean Wang 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 On Wed, Apr 17, 2024 at 4:04=E2=80=AFPM Sean Wang wr= ote: > > 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 MT7921= S > > specifically to document the reset line. This binding is based on the M= MC > > 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/med= iatek,mt7921s-bluetooth.yaml > > > > diff --git a/Documentation/devicetree/bindings/net/bluetooth/mediatek,m= t7921s-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/med= iatek,mt7921s-bluetooth.yaml > > new file mode 100644 > > index 000000000000..67ff7caad599 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-= bluetooth.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-blue= tooth.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; ea= ch > > + function is its own SDIO function on a shared SDIO interface. The ch= ip > > + has two dedicated reset lines, one for each function core. > > + This binding only covers the Bluetooth SDIO function, with one devic= e > > + 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 t= o 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? I suggest you send a patch on top of this one? I'm not sure if you would model it as a GPIO or interrupt. And there doesn't seem to be any code in the driver expecting it. ChenYu > > +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-subscribe= rs) > > S: Maintained > > +F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921= s-bluetooth.yaml > > F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > > F: drivers/bluetooth/btmtkuart.c > > > > -- > > 2.44.0.683.g7961c838ac-goog > > > >