Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp18576ybg; Fri, 25 Oct 2019 15:52:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5Aewf38mFRu5eweBQOOKt8rN8tTYwqTtU2ERLmTbXbkhX0DZUSuwkLH1Uq3fHMwI3HODZ X-Received: by 2002:a50:91c4:: with SMTP id h4mr6812692eda.36.1572043973452; Fri, 25 Oct 2019 15:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572043973; cv=none; d=google.com; s=arc-20160816; b=DfjmBis4KSgXjvugK910Pb5Z1/SMQRMbzOuUt9plHBe2+LtavqFJ2MuECapP+jHlnf VNXYResrEkA0046bGwf8FAXk73zNFw6iNDaPzay7BSgPeIrSCQCHMxngdqzhdfra2BlY kwTETUkDMGx0OdZ7oThfDHS/EA/Z/n1FvF8YCNN8TIJqzlL6nyqDnxFxyaMmGwJOAGpe z/OzUYOMu26Kl3FS5nfG4GfCWmUskmaeCCrtC2gd3eQ6m1TfCxlcmlgR6C3wglPEjdI3 A+y7X3z67IM0zdttlo8GJQdmX4NpbmQZH9FCJmKRhfnMrscsveKHoAxTxHu6y5pd/t5v HIyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tKLlAY4Xw7xSeIaP4a35tzIajquRX72GBLi2rGXctCA=; b=xXlZC4JUS1CWtPBQyVCeZVWcJ1HQoaH/SHxJfeIAIQAUmv/0c168t2rQR2O8yl8bI3 vs6rSLgITJfnJg6YUKWPZ1bbk1/SfjXSIxAQ/6tTefPo9zsEJr8id7km8dJsUAM1kVHx g3buHhti9Y2lE7dHhkyKionIyhUp8Cds5VrGXoVg8fVkC51mxU1UccTXUmJ8V2WdalzL 2lZIIRRWbemth9nbT+oCy3yw18N1TdO/UICGHBdCg+twLLibzhhD15qIF4b4KtraEM55 4aw4aRuSRWoZbJdlf1l3BijkDnhLOXFLKgVtEUM8rqfbCUFgI5rwFyIeGGfz/LTYPIPS mDBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NMVL0nKx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b47si2305042edb.286.2019.10.25.15.52.14; Fri, 25 Oct 2019 15:52:53 -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=@chromium.org header.s=google header.b=NMVL0nKx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726332AbfJYWuf (ORCPT + 99 others); Fri, 25 Oct 2019 18:50:35 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:37970 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbfJYWue (ORCPT ); Fri, 25 Oct 2019 18:50:34 -0400 Received: by mail-il1-f193.google.com with SMTP id y5so3193175ilb.5 for ; Fri, 25 Oct 2019 15:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tKLlAY4Xw7xSeIaP4a35tzIajquRX72GBLi2rGXctCA=; b=NMVL0nKxTd83P4SmTdQ4y6M3dnl6xh2afGk90De61SMHV1pSozOqiNjC43vJR7j3Bp UoXkubWBdfT9AhAfBJcTwA2vdWaZqH2mHy9WbJahWI9acAnfjWQU3JTQQoD+Ib7VYXkl rWqfJx9yBDt8jEwMGmsJ9PSt962tlyDtUiXH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tKLlAY4Xw7xSeIaP4a35tzIajquRX72GBLi2rGXctCA=; b=gFRTj5gNlmD9xVe1bk5b/RXULVIPgmHRXBzG7IhnNhhwQooowYheqnDt80PXytrafP cKN6JGVrEzjvyxKM9uy4mP8Z4XoMcZEY7edMz6fIdlLcosLxMbc2m6r5l74YTctZsPSz i8U2OljLj81iGzUSEQwYApknPI46sAqcdUsO2u1Y+h48waTXwYy/lbNyZV5YFMpQ44SG R+5mzKuKSy1lGUdcYRVeaeRlnVpZLTbaBQkfR+fljANOzqJnQpLJfwYBzD/mQoBayXx2 X+KvvktqWJgvta9Aonj5amASy7VQhg7i88PoAnkPtH4QJmkUlSxqsale7YthYNWKya9D kwug== X-Gm-Message-State: APjAAAUd5rraLjEtJWFCE5+1YzgPO6YLLp1c0D0ONSo8yHWnlRPlVvHf OBejFlpSoWIctJ9GoH2YW+G1ykUHTLc= X-Received: by 2002:a92:de4e:: with SMTP id e14mr7135114ilr.178.1572043831071; Fri, 25 Oct 2019 15:50:31 -0700 (PDT) Received: from mail-il1-f171.google.com (mail-il1-f171.google.com. [209.85.166.171]) by smtp.gmail.com with ESMTPSA id h82sm540618ild.1.2019.10.25.15.50.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Oct 2019 15:50:30 -0700 (PDT) Received: by mail-il1-f171.google.com with SMTP id m16so3162310iln.13 for ; Fri, 25 Oct 2019 15:50:29 -0700 (PDT) X-Received: by 2002:a05:6e02:792:: with SMTP id q18mr6756233ils.58.1572043829241; Fri, 25 Oct 2019 15:50:29 -0700 (PDT) MIME-Version: 1.0 References: <20191025215428.31607-1-abhishekpandit@chromium.org> <20191025215428.31607-4-abhishekpandit@chromium.org> In-Reply-To: <20191025215428.31607-4-abhishekpandit@chromium.org> From: Doug Anderson Date: Fri, 25 Oct 2019 15:50:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: rockchip: Add brcm bluetooth module on uart0 To: Abhishek Pandit-Subedi Cc: Johan Hedberg , Marcel Holtmann , linux-bluetooth@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Heiko Stuebner , LKML , "open list:ARM/Rockchip SoC..." , Rob Herring , Mark Rutland , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Fri, Oct 25, 2019 at 2:55 PM Abhishek Pandit-Subedi wrote: > > This enables the Broadcom uart bluetooth driver on uart0 and gives it > ownership of its gpios. In order to use this, you must enable the > following kconfig options: > - CONFIG_BT_HCIUART_BCM > - CONFIG_SERIAL_DEV > > Signed-off-by: Abhishek Pandit-Subedi > --- > > arch/arm/boot/dts/rk3288-veyron.dtsi | 31 +++++++--------------------- > 1 file changed, 7 insertions(+), 24 deletions(-) > > diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi > index 7525e3dd1fc1..8c9f91ba6f57 100644 > --- a/arch/arm/boot/dts/rk3288-veyron.dtsi > +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi You are changing this for _all_ veryon, not just those veyron devices using Broadcom. I don't think you want to change the marvell-based boards. ...presumably you'll want to make you change only affect minnie, speedy, and mickey. > @@ -23,30 +23,6 @@ > reg = <0x0 0x0 0x0 0x80000000>; > }; > > - bt_activity: bt-activity { > - compatible = "gpio-keys"; > - pinctrl-names = "default"; > - pinctrl-0 = <&bt_host_wake>; > - > - /* > - * HACK: until we have an LPM driver, we'll use an > - * ugly GPIO key to allow Bluetooth to wake from S3. > - * This is expected to only be used by BT modules that > - * use UART for comms. For BT modules that talk over > - * SDIO we should use a wakeup mechanism related to SDIO. > - * > - * Use KEY_RESERVED here since that will work as a wakeup but > - * doesn't get reported to higher levels (so doesn't confuse > - * Chrome). > - */ > - bt-wake { > - label = "BT Wakeup"; > - gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>; > - linux,code = ; > - wakeup-source; > - }; > - > - }; > > power_button: power-button { > compatible = "gpio-keys"; > @@ -434,6 +410,13 @@ > /* Pins don't include flow control by default; add that in */ > pinctrl-names = "default"; > pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; > + > + bluetooth { > + compatible = "brcm,bcm43540-bt"; You probably need some pinctrl entries here to make sure that things are properly configured, like: pinctrl-names = "default"; pinctrl-0 = <&bt_host_wake>, <&bt_dev_wake>, <&bt_enable>; This would require defining bt_dev_wake and bt_enable and removing the hacky output-only versions they have now. > + host-wakeup-gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>; > + shutdown-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_LOW>; Right now gpio4 RK_PD5 is controlled by the "sdio_pwrseq". Should you remove it from there? Looks like it was a no-op for marvell which makes it a little easier. > + device-wakeup-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; You probably need to stop driving this in the pinctrl hogs for Broadcom boards... -Doug