From: Stephan Gerhold <stephan@gerhold.net> To: Linus Walleij <linus.walleij@linaro.org> Cc: linux-arm-kernel@lists.infradead.org, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold <stephan@gerhold.net> Subject: [PATCH 8/9] ARM: dts: ux500: samsung-golden: Add Bluetooth Date: Thu, 19 Dec 2019 21:20:51 +0100 [thread overview] Message-ID: <20191219202052.19039-9-stephan@gerhold.net> (raw) In-Reply-To: <20191219202052.19039-1-stephan@gerhold.net> samsung-golden uses a BCM4334 WiFi+BT combo chip. The BT part is connected via UART and supported by the hci_bcm driver in mainline. Add the necessary device tree changes to make it load correctly. It requires (seemingly) device-specific firmware that can be extracted from the stock Android system used on samsung-golden: - /system/bin/bcm4334.hcd -> /lib/firmware/brcm/BCM4334B0.hcd On my device, scanning for other Bluetooth devices works just fine, but for some reason it keeps disconnecting immediately when attempting to connect to an other device. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> --- .../arm/boot/dts/ste-ux500-samsung-golden.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts index d22b2879c46a..313f0ab16866 100644 --- a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts +++ b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts @@ -113,6 +113,19 @@ uart@80120000 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&u0_a_1_default>; pinctrl-1 = <&u0_a_1_sleep>; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + /* GPIO222 (BT_VREG_ON) */ + shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; + /* GPIO199 (BT_WAKE) */ + device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; + /* GPIO97 (BT_HOST_WAKE) */ + host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&bluetooth_default>; + }; }; /* GPF UART */ @@ -396,6 +409,20 @@ golden_cfg1 { }; }; + bluetooth { + bluetooth_default: bluetooth_default { + golden_cfg1 { + pins = "GPIO199_AH23", /* BT_WAKE */ + "GPIO222_AJ9"; /* BT_VREG_ON */ + ste,config = <&gpio_out_lo>; + }; + golden_cfg2 { + pins = "GPIO97_D9"; /* BT_HOST_WAKE */ + ste,config = <&gpio_in_nopull>; + }; + }; + }; + vibrator { vibrator_default: vibrator_default { golden_cfg1 { -- 2.24.1
WARNING: multiple messages have this Message-ID (diff)
From: Stephan Gerhold <stephan@gerhold.net> To: Linus Walleij <linus.walleij@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, Stephan Gerhold <stephan@gerhold.net>, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 8/9] ARM: dts: ux500: samsung-golden: Add Bluetooth Date: Thu, 19 Dec 2019 21:20:51 +0100 [thread overview] Message-ID: <20191219202052.19039-9-stephan@gerhold.net> (raw) In-Reply-To: <20191219202052.19039-1-stephan@gerhold.net> samsung-golden uses a BCM4334 WiFi+BT combo chip. The BT part is connected via UART and supported by the hci_bcm driver in mainline. Add the necessary device tree changes to make it load correctly. It requires (seemingly) device-specific firmware that can be extracted from the stock Android system used on samsung-golden: - /system/bin/bcm4334.hcd -> /lib/firmware/brcm/BCM4334B0.hcd On my device, scanning for other Bluetooth devices works just fine, but for some reason it keeps disconnecting immediately when attempting to connect to an other device. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> --- .../arm/boot/dts/ste-ux500-samsung-golden.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts index d22b2879c46a..313f0ab16866 100644 --- a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts +++ b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts @@ -113,6 +113,19 @@ uart@80120000 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&u0_a_1_default>; pinctrl-1 = <&u0_a_1_sleep>; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + /* GPIO222 (BT_VREG_ON) */ + shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; + /* GPIO199 (BT_WAKE) */ + device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; + /* GPIO97 (BT_HOST_WAKE) */ + host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&bluetooth_default>; + }; }; /* GPF UART */ @@ -396,6 +409,20 @@ golden_cfg1 { }; }; + bluetooth { + bluetooth_default: bluetooth_default { + golden_cfg1 { + pins = "GPIO199_AH23", /* BT_WAKE */ + "GPIO222_AJ9"; /* BT_VREG_ON */ + ste,config = <&gpio_out_lo>; + }; + golden_cfg2 { + pins = "GPIO97_D9"; /* BT_HOST_WAKE */ + ste,config = <&gpio_in_nopull>; + }; + }; + }; + vibrator { vibrator_default: vibrator_default { golden_cfg1 { -- 2.24.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-12-19 20:22 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-19 20:20 [PATCH 0/9] Add device tree for Samsung Galaxy S III mini (GT-I8190) Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 1/9] ARM: dts: ux500: Remove unused ste-href-ab8505.dtsi Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 2/9] ARM: dts: ux500: Add device tree include for AB8505 Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 3/9] dt-bindings: arm: ux500: Document samsung,golden compatible Stephan Gerhold 2019-12-19 20:20 ` [PATCH 3/9] dt-bindings: arm: ux500: Document samsung, golden compatible Stephan Gerhold 2019-12-19 20:20 ` [PATCH 4/9] ARM: dts: ux500: Add device tree for Samsung Galaxy S III mini (GT-I8190) Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 5/9] ARM: dts: ux500: samsung-golden: Add IMU (accelerometer + gyroscope) Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 6/9] ARM: dts: ux500: samsung-golden: Add touch screen Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` [PATCH 7/9] ARM: dts: ux500: samsung-golden: Add WiFi Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold [this message] 2019-12-19 20:20 ` [PATCH 8/9] ARM: dts: ux500: samsung-golden: Add Bluetooth Stephan Gerhold 2019-12-19 20:20 ` [PATCH 9/9] ARM: defconfig: u8500: Enable new drivers for samsung-golden Stephan Gerhold 2019-12-19 20:20 ` Stephan Gerhold 2019-12-25 23:21 ` [PATCH 0/9] Add device tree for Samsung Galaxy S III mini (GT-I8190) Linus Walleij 2019-12-25 23:21 ` Linus Walleij
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191219202052.19039-9-stephan@gerhold.net \ --to=stephan@gerhold.net \ --cc=devicetree@vger.kernel.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=robh+dt@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.