From patchwork Fri Oct 25 21:54:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Pandit-Subedi X-Patchwork-Id: 11213099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B31241747 for ; Fri, 25 Oct 2019 21:55:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B9BE21D81 for ; Fri, 25 Oct 2019 21:55:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Vqpnj/Sc"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="W91zWNO0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B9BE21D81 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b1YqSv+3ECUIV8eJb3x4+snNG72+LtpGR7BCinILm0Y=; b=Vqpnj/ScltFXhL 7zysjopgtcq3YVEQQo2M0zc4sVhAmK6v7JYfGr74V4g2WHEx7yav92UcVzxJrJ3ob7s+0XCRtbier f9ZGZr69YOcKyZbSRUuEbeIRJwjzJlgww1mq/AGwKM4m472UPzVOJKEXtGuRnSljYusPyizWp7Vzz 6egUsk+/MvGmoNOW15ODqhMd24d97F5laAIRISga8BUzrKjuw08wWHxT8C5o3fgtmJKJhEoQ6QE9x 9Z5eT6xIoPulDsOYtVgRPpAs5DcQMZijCmURZinJZAQhGRvLs7XifXfwGlncxTHugDp222qRVHq4n 1hb4Ua5dd+buIOvN9Aww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iO7Ye-00044t-BI; Fri, 25 Oct 2019 21:55:44 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iO7YN-0003s0-3h for linux-rockchip@lists.infradead.org; Fri, 25 Oct 2019 21:55:30 +0000 Received: by mail-pl1-x642.google.com with SMTP id d22so1978399pll.7 for ; Fri, 25 Oct 2019 14:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K331SMUfGTuS8ssrt07hRRxTGZ3R118eP6RXl//v6II=; b=W91zWNO0MDSC1dSM2VGEKxLvXO0mToeYff7TkuRAsvGaadnLdl7Y+QZ16oulP7Phsn 8Gm3ofi3Mz9bM551jBJMnJKjqu55+dvZ3oc0ncqhsilhHKnU6rJfmptOwqboZAJ5Xg7e mF+MNIu6oVNi+YuJcPMckBLbLAl2P0oH7vzWU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K331SMUfGTuS8ssrt07hRRxTGZ3R118eP6RXl//v6II=; b=KH9mD8zCZudHrnz9XzpbaUpZqROwA8/EyMD8qK0ywhy/3wuAZ+9iax09mw3P1mv8ri BZuosY1VXVBNCt2om3zqPuhmm4g304yTHiABSdCsc7HNP4J95hypN6bRMNhsX1pY45/v x1B0noqAA/0EQTU4HscGS8841aKW5t7s4VRiYVC9zGpX+L8Y59J2HvSK9m4iubM76Zg7 NaB3SUx+EvhyTqi1TMSeZ826JlogzRbyktFXhnER/1yh0GVHQ3PCDYSbCMT+3AWnG/qZ T/iSC7KoyhBpPzsqDFhdQetovvJ2/Q0NOZqEp/it1b8mq+zAkGaU7f6c9ZFIaDnHyPWC PL/g== X-Gm-Message-State: APjAAAWCfnFknKlsU3hJ3zbwVaY349+wUIU8lJC8dzLh8JDL2mmlnXn/ N/ijvoLTQIcOk4OkdhxktSIIUQ== X-Google-Smtp-Source: APXvYqziGJoT8eB5mWgoF5H55wPj/L28gCK25N9WuVU5NVdJh4xWElDTVc5K92fYMgo4YDhheRExMQ== X-Received: by 2002:a17:902:9689:: with SMTP id n9mr6365578plp.222.1572040526517; Fri, 25 Oct 2019 14:55:26 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id y80sm3815110pfc.30.2019.10.25.14.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 14:55:26 -0700 (PDT) From: Abhishek Pandit-Subedi To: Johan Hedberg , Marcel Holtmann Subject: [PATCH 3/3] ARM: dts: rockchip: Add brcm bluetooth module on uart0 Date: Fri, 25 Oct 2019 14:54:28 -0700 Message-Id: <20191025215428.31607-4-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.24.0.rc0.303.g954a862665-goog In-Reply-To: <20191025215428.31607-1-abhishekpandit@chromium.org> References: <20191025215428.31607-1-abhishekpandit@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191025_145527_186531_DA448D26 X-CRM114-Status: GOOD ( 13.20 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, Rob Herring , Abhishek Pandit-Subedi , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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 @@ -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"; + host-wakeup-gpios = <&gpio4 RK_PD7 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_LOW>; + device-wakeup-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; + }; }; &uart1 {