Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1648864rdb; Thu, 25 Jan 2024 01:53:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNAO7j7u+Kakpq1U1ctGGT9fhksdX7dFfYZZJ2JyVZheLEHNcuiLbqLMxjMUDt2wjIHxem X-Received: by 2002:a37:e205:0:b0:783:8a13:dbdf with SMTP id g5-20020a37e205000000b007838a13dbdfmr792008qki.135.1706176410118; Thu, 25 Jan 2024 01:53:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706176410; cv=pass; d=google.com; s=arc-20160816; b=yLwPwwA9bj/LHYoysvkHh7j3TZfJcmk5+HwqAcpwU+uPM9Ni7lRpzjr5bcFpUWZzxD sDzqLARIbCtKifly4SUUZYNSjNDF1WybTBQYpdNUtEOT61r4sl/cgET8fgPkD0XTb2Oz 6U5DR0L1rAtOL2kPBYoAr3PA73FQmV1cFewKWFFU2Ym0Hr9E6vnvemS8ZKIF10M5K98G JZZ9Rri8MH44Rr0tRnLafYdbvM7RaWFFLsIlkzdpriF7QFS54i4UKaeZLIXLPdI0HXR6 R1B4CY4KFpM2kd7YNt0Q2i5dzorxW2dTEMmE5AqRbVNcP6/alE4+h95JbMK8FCHyvu0O jzyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Y7JPZ3FlmXtrPMvqbv7p+KV2yBKsdrHhwCB9rIMVdmU=; fh=Dq0KyaWQMV1+xKd1qM9MI32PdsWXz3CFCYPcvTEh9EA=; b=p1uG9X4DYjBxlw1Ic27NSwDQnuBqhe91mS7So70cmshHvJFlGQ7U0fo5Z0X6JFjO4W Gt6kdysgVebS5Xvu4p0upLrtk6wlOOW6wg2j2tBgz5KWPuK4sxeyzguYcZJQRhLth+eV 4BevSdBianwPlat3nvJ0p2SMs5IzmA7lf4OPKKpIEgIHiXTqiuInsNrccLqbdUeU5fuV nIGBVixjFUEC1h/+X40o7s0PnvtDLh3c6HOK6SPqP0ZCMPQZInejKHVIBkQEBOV7C5TX tZ1HYOX/i5iRdtmgAK5HeTdiww4Zkxf1dcN1KI/5Nqw2g3Ht7LrCUro+U9wFc+5ma88c DDig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Xcld3nvy; 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-bluetooth+bounces-1351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t4-20020a05620a450400b00783a937f9a0si6786506qkp.598.2024.01.25.01.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:53:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Xcld3nvy; 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-bluetooth+bounces-1351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1351-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CEC261C231E5 for ; Thu, 25 Jan 2024 09:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 167091CAB8; Thu, 25 Jan 2024 09:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Xcld3nvy" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 2170D1C6BD for ; Thu, 25 Jan 2024 09:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706176378; cv=none; b=nJ+n5Y7RkqCxC5MB/SiqMHsERQdX+y+oGcv3uhSh4HnZdW01O1ToOH99cm05ovS3I7xEb8IwUNlT4r7VewDULVIWfbai6Y3xjJRjACBdzsaGlIk+WPggQSQDwlj+/lnwHfqImuQYis2vsbav5Mxs+KdnfA2YnB4lrqPOBiShLw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706176378; c=relaxed/simple; bh=PefNmkCfcSVC4S0CUVrYlmPMrAYPLQBq6k2kvGzezPs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qBkwH/EChgobI3zF+bChHor8zWS4sQlVmwo0Yj3FqQKdeKvb0kwSAIpUyYdUvBQ7Izcro8ExipaUJQh6Hnw8+SWnxbQfrLljAjbWtmhp3u06BvDeT9q5HKWUPUvsNE61wR0HtSliXK7NOHlwdubDpgqA/9roqsXpVVrdz37A2RU= 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=Xcld3nvy; arc=none smtp.client-ip=209.85.210.171 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-pf1-f171.google.com with SMTP id d2e1a72fcca58-6ddc0c02593so888446b3a.3 for ; Thu, 25 Jan 2024 01:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706176376; x=1706781176; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y7JPZ3FlmXtrPMvqbv7p+KV2yBKsdrHhwCB9rIMVdmU=; b=Xcld3nvy05xIEOxmLcZwG44XywG9RpZIZslznb+iXcOevlHPHtEi0E7WJ/LOdUET5v LdjD5j2iaXLb4YwQG8bEad3h3pqvzkbExz3lo41ewIM5d6fkE70LotfKLhJcJM1dnLFS 5MLmD03kRt6jRX9xrHnUHpjBn26f+rahYwG8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706176376; x=1706781176; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y7JPZ3FlmXtrPMvqbv7p+KV2yBKsdrHhwCB9rIMVdmU=; b=lgFMRfuwd0n1Vi9pYI+ft1U2x22VIVZruSR3JcfT1nG6EqfRzENNLOoB92xPlYHqWF LQYKg06CK45SpX/lhZfX0EHvfHhyuYSAcwEsi/S2E0NAGI3Ntbq0/r/eNZ/Qufpj3kw5 YFgZ15hlSONvEy+qBEARW52zUrpS5IfMdwVOWHa9ZmVwwxM7IhPFcOemAdXedKNZ7Cok h4T+fa+emsARywfHz32CbGaM1BbMJuhtd/e0QwjSvRZGz+uood7XH3Q0BroNQkGoA38Y NdwBij4qbrVTAHSYtz6szBtRP/bFRdP14a/AaT6wMtMRwEq6azN85pw7jtC0tdeTGbSN GnHA== X-Gm-Message-State: AOJu0YxQ+Ceof28WPfTOzvcoEF7iB2jdmJp2QBUwCvidrUauN6560nj1 KNUeiEATzZIF520aMcgnCDpEGUXLkh1eYuBTCakLsnPClhP3bnLsxqnILUAE+g== X-Received: by 2002:a62:c702:0:b0:6db:d17a:e3ca with SMTP id w2-20020a62c702000000b006dbd17ae3camr283889pfg.63.1706176376292; Thu, 25 Jan 2024 01:52:56 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:7fb6:ed02:1c59:9f9c]) by smtp.gmail.com with ESMTPSA id gu15-20020a056a004e4f00b006dd8a4bbbc7sm3228275pfb.101.2024.01.25.01.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:52:55 -0800 (PST) From: Chen-Yu Tsai To: Marcel Holtmann , Luiz Augusto von Dentz , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , 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 Subject: [PATCH 1/2] dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth Date: Thu, 25 Jan 2024 17:52:37 +0800 Message-ID: <20240125095240.2308340-2-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240125095240.2308340-1-wenst@chromium.org> References: <20240125095240.2308340-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The MediaTek MT7921S is a WiFi/Bluetooth combo chip that works over SDIO. While the Bluetooth function is fully discoverable, the chip has a pin that can reset just the Bluetooth side, as opposed to the full chip. This needs to be described in the device tree. Add a device tree binding for MT7921S Bluetooth over SDIO specifically ot document the reset line. Cc: Sean Wang Signed-off-by: Chen-Yu Tsai --- .../bluetooth/mediatek,mt7921s-bluetooth.yaml | 49 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml diff --git a/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml new file mode 100644 index 000000000000..bbe240e7cc40 --- /dev/null +++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7921s-bluetooth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT7921S Bluetooth + +description: + This binding describes the Bluetooth side of the SDIO-attached MT7921S + WiFi+Bluetooth combo chips. These chips are dual-radio chips supporting + WiFi and Bluetooth. Bluetooth works over SDIO just like WiFi. Bluetooth + has its own reset line, separate from WiFi, which can be used to reset + the Bluetooth core. + +maintainers: + - Sean Wang + +properties: + compatible: + enum: + - mediatek,mt7921s-bluetooth + reg: + const: 2 + + reset-gpios: + maxItems: 1 + description: A GPIO line connected to the Bluetooth subsystem reset line. + Typically the W_DISABLE2# pin on M.2 E-key modules. If present this + shall be flagged as active low. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + mmc { + #address-cells = <1>; + #size-cells = <0>; + + bluetooth@2 { + compatible = "mediatek,mt7921s-bluetooth"; + reg = <2>; + reset-gpios = <&pio 8 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index b64a64ca7916..662957146852 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13657,6 +13657,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.43.0.429.g432eaa2c6b-goog