Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp776307rdb; Mon, 29 Jan 2024 19:33:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7SulPmU+rNKUksLvARzw50JJ5M7rmqRX2B4oUlOxHItm21X8WN6RGPtVEKm46Ro0/YTq3 X-Received: by 2002:a2e:9949:0:b0:2cf:4014:8a8d with SMTP id r9-20020a2e9949000000b002cf40148a8dmr4652453ljj.18.1706585582835; Mon, 29 Jan 2024 19:33:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706585582; cv=pass; d=google.com; s=arc-20160816; b=hggr64My0Ds9cfpLw8kj4nYvBwG+6s4vYCHgj96b7V50NsFvPtPVk1Vm3D6RtPqNnj 3DaWvaQElLIntI2H2RUFdBF0lRqer9Mu4H9DkyZkfj5nwVWwTSBk5Wpe3OIVc/Uo4q/k TPVvSRUhYldLvDPd77nD9cNpm/lFczHBPcCg1Xr5BIHausc4xTSHfJIIqHfBnUie2eje 4eGBulOKqCavTiI0N9Dbn9WMaQVm6suFLHlhkFe3AxiOV6glvyOfHqy7JMiZ/NTWVMdc 1OKylsGhMYx+zRpsFlXe/0kxlHLMMu1OAomhbDAG9c1BqbrcY18jcp7/tPhwU5NlnwuE nErw== 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=HVSWuVPedMZ0hCiYeV6t6vWEzmV0Yu6IxhjiX+iJPeQ=; fh=CWL3JuABPxTVzHxuW19uK0wdXG3gNkP/5V/XUBDjsLc=; b=ErikhJhgt4ckx0cC1D3vBtipMCYsfovpzcH+3oJS8PqBDVELtqNlF+jav64gsBx67j 6d2sGfnJAtrucyC2JaK8knL7odoyeGFRD0BzEaUD8zWdxI0Y3ACxI9wleEyOI8/1WwPs xeRVDKMkQwRchUzPoweljgVgN0qnPReJn5N5K/X2XHl034y4SD7lAJrDN/ImPum6hQH6 FdC3wHWoy4TMRnEEwbL4OBe5IcK3ATcHyr233ItJvjl7FfKLxLrsYqYekrADS+oPL2lY WG+QqI7uH6oQoeHCTA0odgtw2s17Ljn6IJxMX1VMhAaKxuu9kyvwUwIlzdx1q7cAtrCQ Gv5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PrBSYoKc; 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-1478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a4-20020a50ff04000000b0055c227bc716si4129993edu.171.2024.01.29.19.33.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 19:33:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PrBSYoKc; 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-1478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1478-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E19001F25325 for ; Tue, 30 Jan 2024 03:32:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46F693770A; Tue, 30 Jan 2024 03:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="PrBSYoKc" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 DA8A0374D2 for ; Tue, 30 Jan 2024 03:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706585544; cv=none; b=WAsV5WYndv0ObqcrUyPsxHqpo8LFAfDW4Uy2a24hbeLdwr2raGJYjvJ1Lr4ooRc2ipO992EbHPxFOEccrR2hj1npwrmDwYRGap82HWr06kALMp3s1b6DsEoLpFsm3JoIJOx0EIf9xw0rMjcaOZQB6ylVnoz7/dg56U2IWCZtzck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706585544; c=relaxed/simple; bh=ELYmV9fmW0xc+1ZcDD0YMB3ZtknbgobJp7j2bqTa+U4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=URUgD49MiqYW13DO99yRegasICZaEOt8JSyXfVn8uUl4Yg/qtL3sEya6/1nthMNyLENN8fh7jZ/bzrzTzCvqXmbZhgNMRwmCiTZtqeLFGLtVCYTxNRhALcKR5+j0BQJ2BV/u73+EglOoI3MkDJ6v4iK1fK26AeJPVi19KTCoXcs= 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=PrBSYoKc; arc=none smtp.client-ip=209.85.208.177 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-lj1-f177.google.com with SMTP id 38308e7fff4ca-2cf3a0b2355so41848481fa.0 for ; Mon, 29 Jan 2024 19:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706585541; x=1707190341; 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=HVSWuVPedMZ0hCiYeV6t6vWEzmV0Yu6IxhjiX+iJPeQ=; b=PrBSYoKcl+2yXGVfHd9QXPj4LHFMHrXqGcqU6sb5a4ihQp+TV2fM+BCIuym/mXjN5B LN6ZnvtahpuPr4J0CqRMglpaMbsZ/bk0ZGCp3IEU2xpJ/hSvjaRdRIN92/ckf6Sp8Mn9 L5Y5YXSl6Y/UhaINzAgNvl9NK5iECJjFqS7PA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706585541; x=1707190341; 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=HVSWuVPedMZ0hCiYeV6t6vWEzmV0Yu6IxhjiX+iJPeQ=; b=NP6OkjAMhvcu0h6UUGMsnBu+1z0EazeBtZRoAEc9Zl1w4WObOrPfLX2qfuAql2yZzK wGpdWSpDtX7lb/WcHOP3MCSmLA0J97C2faJP0woAgOqVhibruvgMUsx8LFI/8dmrTXFl d0KiUOFS/a1GfbEPA6I1g2qgLWtJviME/b8Vt5gRFXx8qGcM+1GTuo/11tlKKItMfvjC 1McQH9wPbkHMMhooHN868215EiJap7ZP+yJYWyhIodBgLCKdX18uv7uOjjZSVHkxw43D o8dehb3UePzz0EBLbKxuHYT+uf2TtGCDjbEGIji63ItZ2vO+NuAIS/E9cijIw7qqzISw BuLg== X-Gm-Message-State: AOJu0Yxr4t+ivvSX649Q4jchE+YtZ//2Xld2wYejeJi2bwXvLfYHUwA0 AVAH4wtESAJAQcwsxfECuwL0nWHVsiU94JBhIgz2AP/XKoNYsUkWN54d8U2JdWMNm7AYOmYKfz/ 2kQFGW7gPBeeWptqjtXvBXTdbYI+1mM0bF5i6 X-Received: by 2002:a2e:8496:0:b0:2cf:34b4:63de with SMTP id b22-20020a2e8496000000b002cf34b463demr4704323ljh.35.1706585540108; Mon, 29 Jan 2024 19:32:20 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240126063500.2684087-1-wenst@chromium.org> <20240126063500.2684087-2-wenst@chromium.org> <74b9f249-fcb4-4338-bf7b-8477de6c935c@linaro.org> <21568334-b21f-429e-81cd-5ce77accaf3c@linaro.org> In-Reply-To: <21568334-b21f-429e-81cd-5ce77accaf3c@linaro.org> From: Chen-Yu Tsai Date: Tue, 30 Jan 2024 11:32:09 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth To: Krzysztof Kozlowski 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 Mon, Jan 29, 2024 at 3:34=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 29/01/2024 04:38, Chen-Yu Tsai wrote: > > >>> +allOf: > >>> + - $ref: bluetooth-controller.yaml# > >>> + > >>> +properties: > >>> + compatible: > >>> + enum: > >>> + - mediatek,mt7921s-bluetooth > >> > >> Can it be also WiFi on separate bus? How many device nodes do you need > >> for this device? > > > > For the "S" variant, WiFi is also on SDIO. For the other two variants, > > "U" and "E", WiFi goes over USB and PCIe respectively. On both those > > variants, Bluetooth can either go over USB or UART. That is what I > > gathered from the pinouts. There are a dozen GPIO pins which don't > > have detailed descriptions though. If you want a comprehensive > > binding of the whole chip and all its variants, I suggest we ask > > MediaTek to provide it instead. My goal with the binding is to document > > existing usage and allow me to upstream new device trees. > > > > For now we only need the Bluetooth node. The WiFi part is perfectly > > detectable, and the driver doesn't seem to need the WiFi reset pin. > > The Bluetooth driver only uses its reset pin to reset a hung controller= . > > Then suffix "bluetooth" seems redundant. I think keeping the suffix makes more sense though. The chip is a two function piece, and this only targets one of the functions. Also, the compatible string is already used in an existing driver [1] and soon-to-be in-tree device tree [2]. ChenYu [1] https://elixir.bootlin.com/linux/latest/source/drivers/bluetooth/btmtks= dio.c#L1414 [2] https://elixir.bootlin.com/linux/v6.8-rc1/source/arch/arm64/boot/dts/me= diatek/mt8183-kukui-jacuzzi-pico6.dts#L86