Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp980250ybg; Sat, 26 Oct 2019 10:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqysx/Mftu/Ay/X1Z8/7WmCsnkzN9CU7BYJnHINJ4XxeVCOxaVaUMia0iEG5BhHNBYUd7SRD X-Received: by 2002:a17:907:213c:: with SMTP id qo28mr9449416ejb.43.1572111620684; Sat, 26 Oct 2019 10:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572111620; cv=none; d=google.com; s=arc-20160816; b=MfUa3MoKxd1Nj17THyL9mKyOmCtFgCILPm2vCr+5ZxpP3Jo+i3/kJ3XuHwUWqK5Cao xjbkJvxQetuu/6atXIE78roBcDkNOGYUXUZSC66smkVV4E0vZZMCWiTa9l5Li22bvX2H 3n+QCS8oEurZ8417U9cq2n83AUn9cTVr8gy83cgJWFh/uuzIBWNIWgMWZRMRmrywHT65 nkF0pk/tHICrPwxlg144pyMPl1YehQbMaTsEnShnGBa2/9dkP6PkMfdOAPDfxf+boZG0 OODL3qVk6cxgbhxRstoWA9rV12ivYXo4v6Hx19MRxqao63Im10EmuIfXjpIaiVmY0nQS mGMA== 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=WJj+XYLe3cMZIZoQ9vr6L71XNxTz/FYk/4q0duDThfY=; b=MJON9XXlausDK0wZGPWQAHnkF3UUhDn9OQFv2JZn9z436aSAtfAhTF+Uzc0xGp2XeP MONko0ECNDAF8dUD+V7iNHcBzfg6Shg4DumIkAswTgnKS1/fq+jsfHv6hN/kWcDLezyK K53nbO2CX+QO8I22E+hMG8tM4Um01AyHu1GKKJNdpRJxLqqah2ozz6/WBAp5Gf3VHsdS LB1R0stAMQ+Zyp8IyUSwTMPKp9XUpG8N2c/mgQivFTOpnH6Y3y/3FoODlNvbSDZWs2vb qfgVaHxZCVCnqVNONpsZB1+pYoyATEzCIxE2Zr7nKrfeVivVhdFqH3w1J5B7OBNXoNC1 qpyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lmhZG5Wm; 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 v5si4181354ede.126.2019.10.26.10.39.34; Sat, 26 Oct 2019 10:40:20 -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=lmhZG5Wm; 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 S1726262AbfJZRja (ORCPT + 99 others); Sat, 26 Oct 2019 13:39:30 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:38590 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbfJZRja (ORCPT ); Sat, 26 Oct 2019 13:39:30 -0400 Received: by mail-qk1-f193.google.com with SMTP id p4so4770161qkf.5 for ; Sat, 26 Oct 2019 10:39:29 -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=WJj+XYLe3cMZIZoQ9vr6L71XNxTz/FYk/4q0duDThfY=; b=lmhZG5WmjZSGyG/n8DvvWPUtaIUQTSAcqfXm1lhQkFBllCnZ0iPY0qO+FfncxWVG1O iGaup108mV3brmcMFcKNNZG1pEu5uY5d31Q7MY//EU1hh+eyZ1YJmsNnwtuZu+TxM3uk uhzDUa/57Q+1Od0c9tEFXNNNfwOEFVHqPLRBg= 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=WJj+XYLe3cMZIZoQ9vr6L71XNxTz/FYk/4q0duDThfY=; b=ILSTi3q1ANDcs7BvLIxYZNxQIV9kdMx8kS5cTmPQs9aODerhOr6tlnRvhjaE88aJm9 LGSBeJzSnhZ9S0WCYiJ2kpQ99tMXY5ajZTH1NluBnvk7wmiNgv52U6A5VNPo5YQ5lh6W AFX5tEwaqP9NewMhwWjiK9ejVId3qdkMtpfaAjNsQ18lzXce4/xfoACGhK4qnn1pTYTW FelZ+xY7oiiW90SPu5qiRKaBthFQ6cIB2IrUS/EZ7SfREz9Ywv+ARnC62E/WUXQsuqGy SoscM6ZgVAOyYsYiXKtAMRNpeF1jwT3FTtNxlJ6UOxoReGQFYKsJur6WilaeW4yrXfwO UPQA== X-Gm-Message-State: APjAAAUO74syJu6nSHjSyqVNRgjbqc/NcfNAHFIRPLimRPxUJjZg0UXq THgXJxZLTml3JS77xBgDMu6rs/HdZ3omT5OYpH9fwQ== X-Received: by 2002:a37:4dd1:: with SMTP id a200mr8422942qkb.419.1572111568786; Sat, 26 Oct 2019 10:39:28 -0700 (PDT) MIME-Version: 1.0 References: <20191025215428.31607-1-abhishekpandit@chromium.org> <20191025215428.31607-4-abhishekpandit@chromium.org> In-Reply-To: From: Abhishek Pandit-Subedi Date: Sat, 26 Oct 2019 10:39:18 -0700 Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: rockchip: Add brcm bluetooth module on uart0 To: Doug Anderson 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 Yes, these shouldn't be for all of Veyron, only Minnie, Mickey and Speedy -- my mistake. I'll send an updated patch with your suggestions. Thanks Abhishek On Fri, Oct 25, 2019 at 3:50 PM Doug Anderson wrote: > > 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