Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1989684ybb; Sat, 4 Apr 2020 18:28:03 -0700 (PDT) X-Google-Smtp-Source: APiQypIH7+sbcYoZGKOBWt1WUVDMtHY9UmjfDk2Ur/SgDwZqfQ9Vp73VCegA+ugH5Uj/YmsgjXaz X-Received: by 2002:aca:ec16:: with SMTP id k22mr8310853oih.177.1586050083805; Sat, 04 Apr 2020 18:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586050083; cv=none; d=google.com; s=arc-20160816; b=Lrc4BbCMeDv1zJs7z4iSGR+z8opoA2hq/Z0AOK3iq4KXxVoTMn0/MQhRECjQKbAUBB kb6eKcLWCXMpkvW0s7nLjaK4XG7L1EgRddegusLCRrroW4pBRD7Tqhadg1chvPbrT+SN MtfSiK/AmOBA9H2jCXykPHU6TFpBj6CV+dgo9bbes2HBLFn47QToNUYIQt2ybrFtGsTd 1yDjLHRa6ZTioTptr0ArTUhdNQwTPCk60bJhAanZ/hTsUcOSiSQHvzVrXnct+RLiXbxN ZldesV850O52vIN2gtR6938TMoYnZ93lwxj722DllX3Nm7+2wPF5wom60JjZ3hsLM3bA 27aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature; bh=NkfxaedLLWCL3Ia/QIn6Lh9/03kANmH0eC/GZ3hJQ1k=; b=UcRysD5ZnE2ydtdWMcKLWuDJ1/gCmOopLEESMJ6bkwb4KfXXDlRJmjb2ufTNJay82w /H6jvF2ksFa2kY3lMYmnPIYWT8daCtS7nbz4Iz30FiTzksQCw6+ZppLdtiKueVJwHRJP 6ymNy2BIeUBE1FcAiQ7xaKofIAxyBbnZ2yv/ony5QdRKr2z6jc4mx2T5nPgZLj8OeC0q mWKLcEweqBT9YKmWf65xxpWaCClPzjMaEmookFkGfJJQhwHSdO7bVxyhjtBxf2Fh5gud w1CsTROBw8Q+7olGbjU+rDyHbWFdnUai8lDWLAAMTixV6hE2iMKIjs6ne4h3IHTZE67H Qj1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=jBy0NQYW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VvwCdv7b; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si6595028otn.132.2020.04.04.18.27.30; Sat, 04 Apr 2020 18:28:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=jBy0NQYW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VvwCdv7b; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbgDEB0B (ORCPT + 99 others); Sat, 4 Apr 2020 21:26:01 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:36015 "EHLO wnew1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgDEB0B (ORCPT ); Sat, 4 Apr 2020 21:26:01 -0400 X-Greylist: delayed 548 seconds by postgrey-1.27 at vger.kernel.org; Sat, 04 Apr 2020 21:26:00 EDT Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 15D276C9; Sat, 4 Apr 2020 21:16:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 04 Apr 2020 21:16:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=N kfxaedLLWCL3Ia/QIn6Lh9/03kANmH0eC/GZ3hJQ1k=; b=jBy0NQYWm+B6ulYyG 8LrCjYc70G34Zo4Z48krapj+fmkLISnqvcJWUdYZQymfaQwZq9OD26SV+dObTpCd DgbCJYZWwueEGmg2UFf5ZqEX8o4JPx/ydxT0ltKhG15dt9fRRUA8AAl2TsVMm92r k31cuUM5jxTKHfL17ukyVQdN/8UY7PsDAHqArrLf7pCt/NhRcuJnRsbHosGAVQJe T0p/IffrTlh3w1cki9rnqQtv9Si28sFSETmASyaoSG/aXLtBtamVZMi9w0fcpbAy ios+Y8LV0Rj1oG6xab5mH9x9d0PFNlGlaGAkaWG9XXj6/N9bMoHW4wSc7GW84AsC Ks8Kg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=NkfxaedLLWCL3Ia/QIn6Lh9/03kANmH0eC/GZ3hJQ 1k=; b=VvwCdv7bESg4csbRT5bavXpJ9Eill1wTIqI/OYnN3MgcXw4rfEwuo0Uj8 qIE9NE3q4hr5vx02rO0fo7ffMGUw36ACpKbJEjSb4LT+iiqQyTizcC+TDfg77Dev Faj0CEHWRwXkb/4uV7A13HA+GweKh8YIHL0e01HlQ2leQei2xoAWKH9PxaeP6HPo o4n124WZwwayDmRMAErQUYZIDoYJu8E6cBlj+b+Pf8nq0pwbzoXLdKaBzDK/rNXX Aq3cwWyU7uls0QtjixEXlCK5pYalJYWH5goJNdCftrw0brO10CMLwnSWW5AYf3II 0R7NIqoWy26HquJR9PSwplCl4CCcA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdelgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucffohhmrghinhepuggvvhhitggvthhrvg gvrdhorhhgpdhkvghrnhgvlhdrohhrghenucfkphepjeefrdelfedrkeegrddvtdeknecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsth grihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: from [172.16.1.131] (c-73-93-84-208.hsd1.ca.comcast.net [73.93.84.208]) by mail.messagingengine.com (Postfix) with ESMTPA id 8F20A3280060; Sat, 4 Apr 2020 21:16:44 -0400 (EDT) Subject: Re: [PATCH 1/3] dt-bindings: net: bluetooth: Add rtl8723bs-bluetooth To: alistair23@gmail.com Cc: devicetree@vger.kernel.org, johan.hedberg@gmail.com, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, mripard@kernel.org, netdev@vger.kernel.org, wens@csie.org, max.chou@realtek.com, hdegoede@redhat.com References: <20200404204850.405050-1-alistair@alistair23.me> <20200404224205.1643238-1-martin.blumenstingl@googlemail.com> From: Alistair Francis Message-ID: Date: Sat, 4 Apr 2020 18:16:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200404224205.1643238-1-martin.blumenstingl@googlemail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 4/04/2020 3:42 pm, Martin Blumenstingl wrote: > Hi Alistair, > > +Cc Max Chou, he may be interested in this also > > [...] >> @@ -0,0 +1,56 @@ >> +# SPDX-License-Identifier: GPL-2.0 >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/net/realtek,rtl8723bs-bt.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: RTL8723BS/RTL8723CS Bluetooth Device Tree Bindings > I suggest you also add RTL8822C here (as well as to the compatible enum > and the description below). commit 848fc6164158d6 ("Bluetooth: hci_h5: > btrtl: Add support for RTL8822C") adde support for that chip but didn't > add the dt-binding documentation. > > [...] >> + device-wake-gpios: >> + description: >> + GPIO specifier, used to wakeup the BT module (active high) >> + >> + enable-gpios: >> + description: >> + GPIO specifier, used to enable the BT module (active high) >> + >> + host-wake-gpios: >> + desciption: >> + GPIO specifier, used to wakeup the host processor (active high) > regarding all GPIOs here: it entirely depends on the board whether these > are active HIGH or LOW. even though the actual Bluetooth part may > require a specific polarity there can be (for example) a transistor on > the board which could be used to invert the polarity (from the SoC's > view). > > also "make dt_binding_check" reports: > properties:host-wake-gpios: 'maxItems' is a required property > I assume that it'll be the same for the other properties > >> +firmware-postfix: firmware postfix to be used for firmware config > there's no other dt-binding that uses "firmware-postfix" yet. However, > there are a few that use "firmware-name". My opinion hasn't changed > since Vasily has posted this series initially: I would not add that > property for now because there seems to be a "standard" config blob > (which works for "all" boards), see Hans' analysis result of the ACPI > config blobs for RTL8723BS: [0]. > Getting that "standard" config blob into linux-firmware would be > awesome (I assume licensing is not an issue here, Hans can probably give > more details here). I'm not sure about the licenses of "board specific" > config blobs and whether these can be added to linux-firmware. > > also indentation seems wrong here > >> +reset-gpios: GPIO specifier, used to reset the BT module (active high) > indentation seems wrong here too > > also please note that there is currently no support for this property > inside the hci_h5 driver and you don't seem to add support for it within > this series either. so please double check that the reset GPIO is really > wired up on your sopine board. > >> +required: >> + - compatible >> + >> +examples: >> + - | >> + &uart1 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; >> + status = "okay"; > AFAIK the "status" property should be omitted from examples > > also please add a "uart-has-rtscts" propery, see > Documentation/devicetree/bindings/serial/serial.yaml > Also please update patch #3. > > > Martin > > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/rtl_bt/rtl8723bs_config-OBDA8723.bin?id=e6b9001e91110c654573b8f8e2db6155d10d3b57