Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1308597rdb; Tue, 30 Jan 2024 14:44:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8OhuMCNKPjv67g8oJuw2nSzp9/MkFHPWRPbK7rMRXGwfHwtiQ3upLnD4fK1esPmhtPT+p X-Received: by 2002:a05:620a:1a04:b0:783:f9e1:daed with SMTP id bk4-20020a05620a1a0400b00783f9e1daedmr6596759qkb.27.1706654659556; Tue, 30 Jan 2024 14:44:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706654659; cv=pass; d=google.com; s=arc-20160816; b=TX9VKZhy/O2iL6g2IchglXuN1/NKEB7tsZSb8Ne4HXHbDDrLXRAaROQPABclekoQpB MZKz8uIvsTl39EE3LU+unGrmNFHpGosxQZLRi1AolgHqHenhGUAmRuhNSC3FAAVSWxq/ nZcU4nSzvQTdjCA4hyKCZtwoskfXH5SYcqvOhcFF/9bNT7lN1FjaDwWyj+wVPxapXnyI HZgizBA3iKHYXyRZOYguY4q7sEK7AkzHaHYvloGfwFSzsWFYWqX1fEB6ua9m1CQ4QzoZ FdiCTHvYNNJOL9Xh1SSh2U8ZF1S54VGaIVRmJJgm2GR7BKFu3zWEcpqEMxrQotdkDljU CxjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kMR8an0JRWHZA1P1/uHnoRp0s3WrOGW2c1tblhIF0S0=; fh=/4y9vvq3sfCOBH0DLzaa4ARwyho2mQCbdN5MHYOA+aI=; b=J5rxlGfQ9WkElDJZXF5T6d2MsjgZmf0EBUQwIvH2l6TQbFveKZVJK87UB3GOUqQ5Wl FiIpsPeN6p49/w9Kdc4H0SazzvjSZtaFLexCBga9DbHzP0hO+jIvYuEygdiMe3e5pkUc 16B27BNvvhFugYKMFlcG5Ae9WYMWhDMWPjsFHoOgwkCPHrR4JhKJWQuJV15AY8fLWmQn h2mTlf5JM44sekQ4doFEMt37+a6w0ESXZpKt/P4JDcpXzVzicpERI7HMw4laEAyXu1W3 a3lMiklE3+JcZTo6JMD42BTTYXXdjqWNXB6sZjyk1kU6C7MsDLZBHPTfuLzgQEOzMzo5 9KBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tZqJ1j+i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vu17-20020a05620a561100b0078401ba2c2esi4530772qkn.128.2024.01.30.14.44.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 14:44:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1498-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=@kernel.org header.s=k20201202 header.b=tZqJ1j+i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1498-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 527CD1C21923 for ; Tue, 30 Jan 2024 22:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D02BA7D412; Tue, 30 Jan 2024 22:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tZqJ1j+i" 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 276797EF1F; Tue, 30 Jan 2024 22:38:58 +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=1706654339; cv=none; b=fsbcTHi0Q5/ODbspcAcI1bCxo2/VcDXImeVJOs5VItjiFV5KItoqcwSEwKQHPpkCyGGoLjztXvLuRQlvQpNm2OG5r1w6IUAXLc5eQ958oFFzMOEaaqQ1y+xjRnlPbbg/Sw123svXpY7X/ysaIbsZe5RBtl9Te6yi2LhRUwsvaqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706654339; c=relaxed/simple; bh=8Eyya2MZJxron5ZGyDFt7s2SHtvsfbEMHuSW8clUuFQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=g6lopm4OsJ/232PuZJrEbFHP2l77y39OYuiPKFAPghIalCv1IfrTtzlvgm3ZrlWmOzbupBiUcf824n4pWq00BPnhOKH5uTEg+xqFAlZNtbmFprZ0FFPk9Mji6Cu/WR8mELHHim2pI0zOX8tHLqP+quLNYtcq5IsYUj3F503Yi9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tZqJ1j+i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FEABC433C7; Tue, 30 Jan 2024 22:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706654338; bh=8Eyya2MZJxron5ZGyDFt7s2SHtvsfbEMHuSW8clUuFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tZqJ1j+iT4U1BpRQSHn+TKtGmW+du+QKRF7/9gbYMjf0dVK8rzdEq+m7boXXeg4Js 1tao+CN71PidDU27iAQ+oPFCDReDWW5k6mRlBSTavzIGXIA7pnH+2fdTRC29sj9hwV g2qGfiAa6yyczzBrgTDjeHPKnpH91ym6Jvko3bLlmh8UMMIM92e8IVQ283ucErsHKf Q7XXGlQC2kx65ZuvP0utNzdN25wV+d1E7iPZwKFCMhRTEOozPUn3phiYp/2CPZ4gNP XwTQYHZIs0nBW2aRyTIPdu1ErbFAFBnXExyt/gRbq/wbBwQj712kC/Kqz0hBe/jiN3 ZBVqPY2N/sVsA== Date: Tue, 30 Jan 2024 16:38:56 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Chen-Yu Tsai , Marcel Holtmann , Luiz Augusto von Dentz , 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 Subject: Re: [PATCH v2 1/2] dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth Message-ID: <20240130223856.GA2538998-robh@kernel.org> 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> <78241d63-3b9d-4c04-9ea5-11b45eac6f00@linaro.org> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <78241d63-3b9d-4c04-9ea5-11b45eac6f00@linaro.org> On Tue, Jan 30, 2024 at 05:25:38PM +0100, Krzysztof Kozlowski wrote: > On 30/01/2024 08:47, Chen-Yu Tsai wrote: > > On Tue, Jan 30, 2024 at 3:37 PM Krzysztof Kozlowski > > wrote: > >> > >> On 30/01/2024 04:32, Chen-Yu Tsai wrote: > >>> On Mon, Jan 29, 2024 at 3:34 PM 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 > >> > >> That's why I asked and you said there is only one interface: SDIO. > > > > There's only one interface, SDIO, but two SDIO functions. The two > > functions, if both were to be described in the device tree, would > > be two separate nodes. We just don't have any use for the WiFi one > > right now. Does that make sense to keep the suffix? > > Number of functions does not really matter. Number of interfaces on the > bus would matter. Why would you have two separate nodes for the same > SDIO interface? Or do you want to say there are two interfaces? Right, one device at 2 addresses on a bus should be a node with 2 "reg" entries, not 2 nodes with 1 "reg" address each. Rob