Message ID | 20231004070309.2408745-1-andreas@kemnade.info |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2572360vqb; Wed, 4 Oct 2023 00:03:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF150MA9iMek/gX9o7sL4IhVIFdqcTBSgekaETuydehn3N8U19XVXuR1o/2NBm662fY4tRC X-Received: by 2002:a05:6e02:1d93:b0:349:296c:9b8a with SMTP id h19-20020a056e021d9300b00349296c9b8amr2025496ila.2.1696403018890; Wed, 04 Oct 2023 00:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696403018; cv=none; d=google.com; s=arc-20160816; b=tWEyRGjYipWzbSNtUxEPZnPJplxLChcUDfMi7db+ZXOYfsNS/mUo3uFypR0QzKa90y uVddCmgtEDiu4idqR5R3duZhUgtjH6G9kbrFPYPkUO2gqqhun1Xim+znAXsTYI+hLV4l bkwK1/VJE6kjrhmk3EHfH5MPfOLaW0Gn9PKa1fnbiN/yUtAn4W3LuHsYta66ASPPPZoT LDDWG37mOFTmpiSWxsc0O5MjPtJp3/BcpMt86FIAUY9GPlbGznj2HfDW+ARt7xR/JXNR lOE8DNGgBMfFG9UV6Xk+GRsucnWbsCGfRQfEUBWbC+QAhJJJXEP1tx3E4bEPHyQcY3xF CGrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZUmrFnNA/P2prlsRWz2JDYeHB1gCsYXduEjeJ0wZijM=; fh=zh3d3x9lQGBBeRDxXJ3u5JvMTgGIgna9QtMBbctOflM=; b=zX6hhs8i3zbq1vt99hXREh7zE4JphwJh29PLTyKyHCKIAs4Y1qH5z08eR/lXFLhYQD Cb5yYcUYZY/roL1Qr4SCz/6ZQ21Tpp5bE88LX+TdixySvSY1sy+fqeR0FokKUs83/DVJ Qoy6KBZl2J/URLz1YtfQQ5ytQ2ajVna6F8Vmjf5zU/7FowJesaDGycPklkRKVVN/9TDP 0srXG1FMC2RrrexRdg/smLC6QHjEOE4l02bJvzglIaMZkDeoQ+vEJUlUrsDU8KEPQqyI yNmN3p7LZeCBS0SXQ7egYpp7umixQqiFmKq+bM1T3eVmp+meaAoOAgKMqMF+hcIWh0wT UVRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 141-20020a630293000000b00585a16c1077si3040524pgc.367.2023.10.04.00.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 00:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E18CC80FD3A0; Wed, 4 Oct 2023 00:03:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241475AbjJDHD2 (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Wed, 4 Oct 2023 03:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232647AbjJDHD0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Oct 2023 03:03:26 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF417AF; Wed, 4 Oct 2023 00:03:23 -0700 (PDT) Received: from p200300ccff1732001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff17:3200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <andreas@kemnade.info>) id 1qnvuf-004VBJ-Ti; Wed, 04 Oct 2023 09:03:17 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from <andreas@kemnade.info>) id 1qnvuf-00A6cw-0c; Wed, 04 Oct 2023 09:03:17 +0200 From: Andreas Kemnade <andreas@kemnade.info> To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade <andreas@kemnade.info> Subject: [PATCH v2] ARM: dts: omap4-embt2ws: Add Bluetooth Date: Wed, 4 Oct 2023 09:03:09 +0200 Message-Id: <20231004070309.2408745-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 00:03:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778807491938703683 X-GMAIL-MSGID: 1778807491938703683 |
Series |
[v2] ARM: dts: omap4-embt2ws: Add Bluetooth
|
|
Commit Message
Andreas Kemnade
Oct. 4, 2023, 7:03 a.m. UTC
Since the required clock is now available, add bluetooth.
Note: Firmware (bts file) from device vendor reroutes tx for some time
during initialisation and later put it back, producing timeouts in
bluetooth initialisation but ignoring that command leads to proper
initialisation.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
Depends on: https://lore.kernel.org/linux-omap/20230916100515.1650336-6-andreas@kemnade.info/T/#u
Changes in V2:
- more standard node name, removing unneeded label
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
Comments
On 04/10/2023 09:03, Andreas Kemnade wrote: > Since the required clock is now available, add bluetooth. > > Note: Firmware (bts file) from device vendor reroutes tx for some time > during initialisation and later put it back, producing timeouts in > bluetooth initialisation but ignoring that command leads to proper > initialisation. > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- > Depends on: https://lore.kernel.org/linux-omap/20230916100515.1650336-6-andreas@kemnade.info/T/#u > > Changes in V2: > - more standard node name, removing unneeded label > > arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > index 46a80eacf771..6a790124bcf5 100644 > --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > @@ -447,10 +447,12 @@ &uart2 { > interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH > &omap4_pmx_core OMAP4_UART2_RX>; > > - /* > - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic > - * which does not have a driver > - */ > + bluetooth-gnss { If you changed the bindings, please share a link. If not, this is not currently accepted and dtbs_check should point it out. Best regards, Krzysztof
[...] > > - /* > > - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic > > - * which does not have a driver > > - */ > > + bluetooth-gnss { > > If you changed the bindings, please share a link. If not, this is not > currently accepted and dtbs_check should point it out. > $ make dtbs_check &>dtbs.log $ grep -q omap4-epson-embt2ws.dtb dtbs.log && echo yes yes $ grep bluetooth-gnss dtbs.log $ So no complaints... Regards, Andreas
Hi, On Wed, 4 Oct 2023 09:59:59 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: [...] > > diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > index 46a80eacf771..6a790124bcf5 100644 > > --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > @@ -447,10 +447,12 @@ &uart2 { > > interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH > > &omap4_pmx_core OMAP4_UART2_RX>; > > > > - /* > > - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic > > - * which does not have a driver > > - */ > > + bluetooth-gnss { > > If you changed the bindings, please share a link. If not, this is not > currently accepted and dtbs_check should point it out. > according to dtbs_check: good: - bluetooth-gnss - bluettooth-gnss bad: - bluettooth-gnnss - tiwi (still there in pandaboards) Regards, Andreas
On Wed, 4 Oct 2023 16:53:14 +0200 Andreas Kemnade <andreas@kemnade.info> wrote: > Hi, > > On Wed, 4 Oct 2023 09:59:59 +0200 > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > [...] > > > diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > > index 46a80eacf771..6a790124bcf5 100644 > > > --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > > +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts > > > @@ -447,10 +447,12 @@ &uart2 { > > > interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH > > > &omap4_pmx_core OMAP4_UART2_RX>; > > > > > > - /* > > > - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic > > > - * which does not have a driver > > > - */ > > > + bluetooth-gnss { > > > > If you changed the bindings, please share a link. If not, this is not > > currently accepted and dtbs_check should point it out. > > > > according to dtbs_check: > > good: > - bluetooth-gnss > - bluettooth-gnss > > bad: > - bluettooth-gnnss > - tiwi (still there in pandaboards) > The only authoritative source I find here: Documentation/devicetree/bindings/serial/serial.yaml: patternProperties: "^bluetooth|gnss|gps|mcu$": It allows: everything starting with bluetooth everything containing gnss everything containing gps everything ending with mcu bluetooth-gnss starts with bluetooth, so it is allowed. Do you have anything else forbidding bluetooth-gnss? Regards, Andreas > Regards, > Andreas > >
On 04/10/2023 17:00, Andreas Kemnade wrote: > On Wed, 4 Oct 2023 16:53:14 +0200 > Andreas Kemnade <andreas@kemnade.info> wrote: > >> Hi, >> >> On Wed, 4 Oct 2023 09:59:59 +0200 >> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: >> >> [...] >>>> diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts >>>> index 46a80eacf771..6a790124bcf5 100644 >>>> --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts >>>> +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts >>>> @@ -447,10 +447,12 @@ &uart2 { >>>> interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH >>>> &omap4_pmx_core OMAP4_UART2_RX>; >>>> >>>> - /* >>>> - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic >>>> - * which does not have a driver >>>> - */ >>>> + bluetooth-gnss { >>> >>> If you changed the bindings, please share a link. If not, this is not >>> currently accepted and dtbs_check should point it out. >>> >> >> according to dtbs_check: >> >> good: >> - bluetooth-gnss >> - bluettooth-gnss >> >> bad: >> - bluettooth-gnnss >> - tiwi (still there in pandaboards) >> > The only authoritative source I find here: > Documentation/devicetree/bindings/serial/serial.yaml: > patternProperties: > "^bluetooth|gnss|gps|mcu$": Yes, it's about this one. > > It allows: > everything starting with bluetooth > everything containing gnss > everything containing gps > everything ending with mcu > > bluetooth-gnss starts with bluetooth, so it is allowed. > Do you have anything else forbidding bluetooth-gnss? Heh, the pattern is wrong. This should be originally: "^(bluetooth|gnss|gps|mcu)$": I can fix it and also allow your use case. Best regards, Krzysztof
On 04/10/2023 09:03, Andreas Kemnade wrote: > Since the required clock is now available, add bluetooth. > > Note: Firmware (bts file) from device vendor reroutes tx for some time > during initialisation and later put it back, producing timeouts in > bluetooth initialisation but ignoring that command leads to proper > initialisation. > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
* Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> [231005 08:47]: > On 04/10/2023 09:03, Andreas Kemnade wrote: > > Since the required clock is now available, add bluetooth. > > > > Note: Firmware (bts file) from device vendor reroutes tx for some time > > during initialisation and later put it back, producing timeouts in > > bluetooth initialisation but ignoring that command leads to proper > > initialisation. > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > --- > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Applying into omap-for-v6.7/dt thanks. Tony
* Tony Lindgren <tony@atomide.com> [231007 07:00]: > * Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> [231005 08:47]: > > On 04/10/2023 09:03, Andreas Kemnade wrote: > > > Since the required clock is now available, add bluetooth. > > > > > > Note: Firmware (bts file) from device vendor reroutes tx for some time > > > during initialisation and later put it back, producing timeouts in > > > bluetooth initialisation but ignoring that command leads to proper > > > initialisation. > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > --- > > > > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > Applying into omap-for-v6.7/dt thanks. Looks like this causes the following #clock-cells warning so dropping this patch. Regards, Tony arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts:457.17-462.4: Warning (clocks_property): /ocp/interconnect@48000000/segment@0/target-module@6c000/serial@0/bluetooth-gnss: Missing property '#clock-cells' in node /ocp/interconnect@48000000/segment@0/targe
Hi Tony, On Sat, 7 Oct 2023 10:24:42 +0300 Tony Lindgren <tony@atomide.com> wrote: > * Tony Lindgren <tony@atomide.com> [231007 07:00]: > > * Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> [231005 08:47]: > > > On 04/10/2023 09:03, Andreas Kemnade wrote: > > > > Since the required clock is now available, add bluetooth. > > > > > > > > Note: Firmware (bts file) from device vendor reroutes tx for some time > > > > during initialisation and later put it back, producing timeouts in > > > > bluetooth initialisation but ignoring that command leads to proper > > > > initialisation. > > > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > > --- > > > > > > > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > > Applying into omap-for-v6.7/dt thanks. > > Looks like this causes the following #clock-cells warning so dropping > this patch. > > Regards, > > Tony > > arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts:457462.4: Warning (clocks_property): > /ocp/interconnect@48000000/segment@0/target-module@6c000/serial@0/bluetooth-gnss: > Missing property '#clock-cells' in node /ocp/interconnect@48000000/segment@0/targe > > well, it depends on the wlan dts patch. I think we are better of with having both applied now. It is a better description of the hardware, and that is what the devicetree is about. Having wlan randomly working without undocumented description is IMHO worse than with a clear description. The reason why this did not come to light earlier is because I had tested it on top of a bunch of regression fixes for the twl (which were accepted at that point) and I did miss the fact that I had also a had a local hack amoung them to enable the clock by a simple register write in _probe it twl-core.c. I think as Stephen has little comments about the last version and just not collected anything else than fixes for -rc, I would think it simply will be applied. I think he just has a late start. Regards, Andreas
Hi Tony, On Sat, 7 Oct 2023 10:24:42 +0300 Tony Lindgren <tony@atomide.com> wrote: > * Tony Lindgren <tony@atomide.com> [231007 07:00]: > > * Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> [231005 08:47]: > > > On 04/10/2023 09:03, Andreas Kemnade wrote: > > > > Since the required clock is now available, add bluetooth. > > > > > > > > Note: Firmware (bts file) from device vendor reroutes tx for some time > > > > during initialisation and later put it back, producing timeouts in > > > > bluetooth initialisation but ignoring that command leads to proper > > > > initialisation. > > > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > > --- > > > > > > > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > > Applying into omap-for-v6.7/dt thanks. > > Looks like this causes the following #clock-cells warning so dropping > this patch. > > Regards, > > Tony > > arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts:457.17-462.4: Warning (clocks_property): > /ocp/interconnect@48000000/segment@0/target-module@6c000/serial@0/bluetooth-gnss: > Missing property '#clock-cells' in node /ocp/interconnect@48000000/segment@0/targe > I do not get this warning on top of omap-for-v6.8/dt. So I think the time is really there for this patch. Regards, Andreas
* Andreas Kemnade <andreas@kemnade.info> [231130 17:36]: > On Sat, 7 Oct 2023 10:24:42 +0300 > Tony Lindgren <tony@atomide.com> wrote: > > arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts:457.17-462.4: Warning (clocks_property): > > /ocp/interconnect@48000000/segment@0/target-module@6c000/serial@0/bluetooth-gnss: > > Missing property '#clock-cells' in node /ocp/interconnect@48000000/segment@0/targe > > > > I do not get this warning on top of omap-for-v6.8/dt. So I think the > time is really there for this patch. OK thanks applying into omap-for-v6.8/dt. Tony
diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts index 46a80eacf771..6a790124bcf5 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -447,10 +447,12 @@ &uart2 { interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH &omap4_pmx_core OMAP4_UART2_RX>; - /* - * BT + GPS in WL1283 in WG7500 requiring CLK32KAUDIO of pmic - * which does not have a driver - */ + bluetooth-gnss { + compatible = "ti,wl1283-st"; + enable-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; /* GPIO_25 */ + clocks = <&twl 1>; + clock-names = "ext_clock"; + }; }; &uart3 {