Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3651925pxb; Mon, 24 Jan 2022 14:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVa1IkmtsqToJYk/NEh9XmHEoryNOaJ1H+meWt3G5tFHGZ8q844WOjnaCkenUFxhqI8ITT X-Received: by 2002:a17:90b:4d82:: with SMTP id oj2mr412644pjb.170.1643063345914; Mon, 24 Jan 2022 14:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063345; cv=none; d=google.com; s=arc-20160816; b=mgePZ0zP+lPSVEeImhnCUs4s9GmjJ8trCcVrhVjmA1LGAq0SzCrQrT7jXkceDv3WUt gFjizS4G3iQrVE/qPrdAHXNUXfTuofi+cBZeaPhU5n//b93p/dU9FfNJRPA3y8rPp18j N4x8Tol/qQOiir8YFu5F4LGpkv4O0Gg8Kclvu9o1DdtUypxPp8qtUtvJvwyANDFqlCpD 0K8BN6nRps0iPBoVrnYoOd35zxszw/v06XtWV3jGzViG9I+vW+ah3GpQdS1KMRbU6ASG pumFFwRGD5NkGwm+/4ljw8S/oXL27YQW0jgwG+XMpAJWU9cxGo0KiL9LPMWAzpHzZih3 5+Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9qLAWR5eMy6d87Plq+bNx3bigIQF2UNduwUoqR02Gi0=; b=gMvBUf7esYCVlWPMxja8BeSx4OoKUpU8eKCLMGOAi2hKBBK2E1lR1yp0OmqR5nJ59l ZV+Ao7u789vF4Zd62OeyZiG/ZPawlYfpmq7k1Jn5L3XrWDbUlBYQEtQpIs2sYu7+TXwl N9K1yGGvxEdjoRE+ss6WKc4RRlFm/8xbmDL800Ek+KAK0vFdn90TZGwkbFsQ6ZFSw077 taXcHUdiS4eJetnpeSsP8EpAi+nhobcf9hFnnpUWdShZuiJsB92XTpdlPotbtG/Khc5r KuFJV/VfA/82PxnIBPLIsxDzSrVF7Q8RsMiyaHkVQEjDgTXNkqNV8q4/AlbNYXHwPG72 b/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iGsW5KXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb8si556390pjb.85.2022.01.24.14.28.54; Mon, 24 Jan 2022 14:29:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iGsW5KXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1582941AbiAXWQN (ORCPT + 99 others); Mon, 24 Jan 2022 17:16:13 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:39110 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441926AbiAXVZI (ORCPT ); Mon, 24 Jan 2022 16:25:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4C393B8121C; Mon, 24 Jan 2022 21:25:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 776FAC340E4; Mon, 24 Jan 2022 21:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059504; bh=ogVrOynjJInkjAmfKe6hnKYsopbVCDm3RpXJSJ1b72Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iGsW5KXwOI7h5ycHBEcdk5m3XwKoXgzNqh/OUwj2dWw07BtUNXQxbu5BulO56iVH1 ASmUbh/Pq3bjiOnIbzL1ppNcItM+Qk0jc8egeC2xlx9IjmH/FNarg2xaWsmdx51saY WUHxsIEjVrLw0ww3sUZx+MprpMwCWHgGO477tCJ8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jagan Teki , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.16 0637/1039] arm64: dts: rockchip: Fix Bluetooth on ROCK Pi 4 boards Date: Mon, 24 Jan 2022 19:40:26 +0100 Message-Id: <20220124184146.756351667@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jagan Teki [ Upstream commit f471b1b2db0819917c54099ab68349ad6a7e9e19 ] This patch fixes the Bluetooth on ROCK Pi 4 boards. ROCK Pi 4 boards has BCM4345C5 and now it is supported on Mainline Linux, brcm,bcm43438-bt still working but observed the BT Audio issues with latest test. So, use the BCM4345C5 compatible and its associated properties like clock-names as lpo and max-speed. Attach vbat and vddio supply rails as well. Signed-off-by: Jagan Teki Link: https://lore.kernel.org/r/20211112142359.320798-1-jagan@amarulasolutions.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts | 7 +++++-- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts | 7 +++++-- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts index dfad13d2ab249..5bd2b8db3d51a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts @@ -35,13 +35,16 @@ status = "okay"; bluetooth { - compatible = "brcm,bcm43438-bt"; + compatible = "brcm,bcm4345c5"; clocks = <&rk808 1>; - clock-names = "ext_clock"; + clock-names = "lpo"; device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + max-speed = <1500000>; pinctrl-names = "default"; pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts index 6c63e617063c9..cf48746a3ad81 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts @@ -34,13 +34,16 @@ status = "okay"; bluetooth { - compatible = "brcm,bcm43438-bt"; + compatible = "brcm,bcm4345c5"; clocks = <&rk808 1>; - clock-names = "ext_clock"; + clock-names = "lpo"; device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + max-speed = <1500000>; pinctrl-names = "default"; pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; }; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts index 99169bcd51c03..57ddf55ee6930 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts @@ -35,14 +35,17 @@ status = "okay"; bluetooth { - compatible = "brcm,bcm43438-bt"; + compatible = "brcm,bcm4345c5"; clocks = <&rk808 1>; - clock-names = "ext_clock"; + clock-names = "lpo"; device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + max-speed = <1500000>; pinctrl-names = "default"; pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; }; }; -- 2.34.1