From patchwork Wed Jan 29 23:20:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 11357027 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 36D7492A for ; Wed, 29 Jan 2020 23:20:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14A56207FF for ; Wed, 29 Jan 2020 23:20:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=onstation.org header.i=@onstation.org header.b="PHBbhLjF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgA2XUl (ORCPT ); Wed, 29 Jan 2020 18:20:41 -0500 Received: from onstation.org ([52.200.56.107]:33836 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbgA2XUl (ORCPT ); Wed, 29 Jan 2020 18:20:41 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 6FAC73F0A4; Wed, 29 Jan 2020 23:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1580340040; bh=xhEqO9D9gJzGJNJNQBriXn442xN0cKXRCxa1IMwgTcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PHBbhLjF3F7GceQZaJXW7pWkfnS1sKXsU3el/cbnoc9DfNU5CDItQ7s846xJMx5No uPeG2aXE017VQzCStVY3cZYaqZn4calhWlR//MZCF5UuicxlpAkb6XUR/dQFTftIS8 /Xt1Ds2YleqcM5CjctAZauqyzc0NaZo2UzTSyDMY= From: Brian Masney To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, jonathan@marek.ca Subject: [PATCH 1/3] ARM: qcom_defconfig: add Broadcom bluetooth options Date: Wed, 29 Jan 2020 18:20:29 -0500 Message-Id: <20200129232031.34538-2-masneyb@onstation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200129232031.34538-1-masneyb@onstation.org> References: <20200129232031.34538-1-masneyb@onstation.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add Broadcom bluetooth options and serial bus in order to support Bluetooth on the Nexus 5 phone. Signed-off-by: Brian Masney --- arch/arm/configs/qcom_defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index cdc75ef7d529..a00765b7225f 100644 --- a/arch/arm/configs/qcom_defconfig +++ b/arch/arm/configs/qcom_defconfig @@ -50,6 +50,9 @@ CONFIG_IP_PNP_DHCP=y # CONFIG_INET_XFRM_MODE_TUNNEL is not set # CONFIG_INET_XFRM_MODE_BEET is not set # CONFIG_IPV6 is not set +CONFIG_BT=m +CONFIG_BT_HCIUART=m +CONFIG_BT_HCIUART_BCM=y CONFIG_CFG80211=m CONFIG_MAC80211=m CONFIG_RFKILL=y @@ -111,6 +114,7 @@ CONFIG_SERIO_LIBPS2=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_MSM=y CONFIG_SERIAL_MSM_CONSOLE=y +CONFIG_SERIAL_DEV_BUS=y CONFIG_HW_RANDOM=y CONFIG_I2C=y CONFIG_I2C_CHARDEV=y From patchwork Wed Jan 29 23:20:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 11357031 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 E169B188B for ; Wed, 29 Jan 2020 23:20:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5CB92173E for ; Wed, 29 Jan 2020 23:20:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=onstation.org header.i=@onstation.org header.b="pXEtHP+t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726959AbgA2XUm (ORCPT ); Wed, 29 Jan 2020 18:20:42 -0500 Received: from onstation.org ([52.200.56.107]:33840 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbgA2XUl (ORCPT ); Wed, 29 Jan 2020 18:20:41 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id B200644628; Wed, 29 Jan 2020 23:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1580340040; bh=6eTuSRirkEXnr3v3SyyQ4ce5AROJdQAO8ufiw5pA55g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pXEtHP+ts8GPlaO0fqHRi1ZaNxwpS8mlUZBJuNhCHweIt/Yp2KsR6p1QHV3a4rQ+p /5BokFi6Nwpm3v0/h2iUvCEfqZbOEFy2KmmubsqWeobYcTCHPS3z6yUDTo0EOIZxN/ 0L7KZINuMkCK8MUG485T8G7a+MenWg5bDOYrwViU= From: Brian Masney To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, jonathan@marek.ca Subject: [PATCH 2/3] ARM: dts: qcom: msm8974: add blsp2_uart10 Date: Wed, 29 Jan 2020 18:20:30 -0500 Message-Id: <20200129232031.34538-3-masneyb@onstation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200129232031.34538-1-masneyb@onstation.org> References: <20200129232031.34538-1-masneyb@onstation.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jonathan Marek Add blsp2_uart10 node in order to support bluetooth on the Nexus 5 phone. Signed-off-by: Jonathan Marek [masneyb@onstation.org: use constants in interrupts property; patch extracted from much larger out of tree patch.] Signed-off-by: Brian Masney --- arch/arm/boot/dts/qcom-msm8974.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 4b161b809dd5..f8e093179c3f 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -715,6 +715,15 @@ blsp1_uart2: serial@f991e000 { status = "disabled"; }; + blsp2_uart10: serial@f9960000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0xf9960000 0x1000>; + interrupts = ; + clocks = <&gcc GCC_BLSP2_UART4_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + sdhci@f9824900 { compatible = "qcom,msm8974-sdhci", "qcom,sdhci-msm-v4"; reg = <0xf9824900 0x11c>, <0xf9824000 0x800>; From patchwork Wed Jan 29 23:20:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 11357033 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 7564292A for ; Wed, 29 Jan 2020 23:20:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 542C520CC7 for ; Wed, 29 Jan 2020 23:20:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=onstation.org header.i=@onstation.org header.b="ZCtomq9Y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbgA2XUm (ORCPT ); Wed, 29 Jan 2020 18:20:42 -0500 Received: from onstation.org ([52.200.56.107]:33854 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726945AbgA2XUm (ORCPT ); Wed, 29 Jan 2020 18:20:42 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 0144944629; Wed, 29 Jan 2020 23:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1580340041; bh=Sx/KO7XyX/pIJYp26UdESo4GO2ech2ruspU1aP6GoDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZCtomq9YUJ0AW9MnZ+nevOqgTcaoQ3FF2DPwSuELFWrT2Ch6Ch6p7eSy62bUkz0SH F3SQ3/L0o8SC554f8YxsdoFbeHa0At1+obhiybXQwLnNtS6xXRjhlElM9UMlF1zPtU G1vodqhw8uID8PxOYrxd1dCqG2TfV3jxQZuzGzqs= From: Brian Masney To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, jonathan@marek.ca Subject: [PATCH 3/3] ARM: dts: qcom: msm8974-hammerhead: add support for bluetooth Date: Wed, 29 Jan 2020 18:20:31 -0500 Message-Id: <20200129232031.34538-4-masneyb@onstation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200129232031.34538-1-masneyb@onstation.org> References: <20200129232031.34538-1-masneyb@onstation.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jonathan Marek Add support for the bluetooth found on the Nexus 5 phone. Signed-off-by: Jonathan Marek [masneyb@onstation.org: formatting cleanups; remove sleep clock; patch extracted from much larger out of tree patch.] Signed-off-by: Brian Masney --- .../qcom-msm8974-lge-nexus5-hammerhead.dts | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index 3487daf98e81..32b474bfeec3 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -12,6 +12,7 @@ / { aliases { serial0 = &blsp1_uart1; + serial1 = &blsp2_uart10; }; chosen { @@ -355,6 +356,57 @@ te { bias-disable; }; }; + + bt_pin: bt { + hostwake { + pins = "gpio42"; + function = "gpio"; + }; + + devwake { + pins = "gpio62"; + function = "gpio"; + }; + + shutdown { + pins = "gpio41"; + function = "gpio"; + }; + }; + + blsp2_uart10_pin_a: blsp2-uart10-pin-active { + tx { + pins = "gpio53"; + function = "blsp_uart10"; + + drive-strength = <2>; + bias-disable; + }; + + rx { + pins = "gpio54"; + function = "blsp_uart10"; + + drive-strength = <2>; + bias-pull-up; + }; + + cts { + pins = "gpio55"; + function = "blsp_uart10"; + + drive-strength = <2>; + bias-pull-up; + }; + + rts { + pins = "gpio56"; + function = "blsp_uart10"; + + drive-strength = <2>; + bias-disable; + }; + }; }; sdhci@f9824900 { @@ -418,6 +470,25 @@ volume-down { }; }; + serial@f9960000 { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&blsp2_uart10_pin_a>; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <3000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_pin>; + + host-wakeup-gpios = <&msmgpio 42 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&msmgpio 62 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&msmgpio 41 GPIO_ACTIVE_HIGH>; + }; + }; + i2c@f9967000 { status = "ok"; pinctrl-names = "default";