From patchwork Fri Nov 12 14:23:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12692406 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B358C433EF for ; Fri, 12 Nov 2021 14:25:38 +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 E6A1F60FBF for ; Fri, 12 Nov 2021 14:25:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E6A1F60FBF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dqWup55NNafwsVwC/J+/ejCuu+HQdQaCnnz80G7v3R0=; b=UUXq08tR83vvRo mugBhqyayzByK2OeurNNkZnDIKiSG9nZQucjO3JMvYsbNbPFHOOS02l5i1duRQeudgDu3syxnhv4n vvLQ01on8vNXFZf9SPLVlWOFJCPFhY1y8XlFJfKgfZ4ukZKztl8AZmWvEI45Ks+P01jg/NYfEj2Mz wdYP4eb3nW6lIULWskj/+0euXNXNTLg9BFZukUg1P45Kvsm9wYf0kho+kjtGUpgxrjFH/6g3bxDTl fcw/acQIVOPJKwdjp6V1FsM9sDg1nnomCPT9bSZa6MKMM5tn1N4Sx20TaWDihhXdhx7gU3WMZwYSz hsy9s+KkbKfpiHny2ZDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlXTT-00AkIm-Ki; Fri, 12 Nov 2021 14:24:15 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlXTQ-00AkIK-Ek for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 14:24:13 +0000 Received: by mail-pf1-x42c.google.com with SMTP id g18so8602373pfk.5 for ; Fri, 12 Nov 2021 06:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ilsk+MaRfmtCqUcT3SwAuDne2pJc5N62fUP65s6Y02I=; b=XWDsDubF2gjeTUcY0wJ5xYscXaFEhrGJTeS5cC41iu64kDeHIzKtRtX3pDwleuE88y TgSD6/RmExP6Lmi1zcCAGZnFVOe0qNAt+OP8cEn09U8h55dXSABwYjY71HVVZ2F1BDyt fWuETgJ+H61a8luchtOm/mGC/vr8L7BpjGWKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ilsk+MaRfmtCqUcT3SwAuDne2pJc5N62fUP65s6Y02I=; b=bBPowunH+aGJUbJSpxiAiLjUBWRrA+VD0R7tZCZAEAKqsqhvVYN2jgzh2IsBwT8kvb BZDqF94b10BQQDrI7ZZ6WAf3JkgO9yo2YDusrCK7XNpR4dOqjt1onstSAb22WXqHTOOd ZMlQRZA0/f6+0q7ovLdgpSOAMdTFWYVOV6bGGfsU1YRJoOYz+EwycSKUVhIuNPoZRZ2Y 2WmArMjdhee7uDGgOpCwRCgA49v5QH+RxdB1E7QEq/wQL0F4yUf5yh1csm7+fQkSOpDO VUNSEBJAQxV42T2l+Yxc/YfqD8+8en7svoO7pIZOmL3BiYzGyOoQvrE/Gtags3iqvika zxGg== X-Gm-Message-State: AOAM5325Oh6Pr4F8zgl29Ah8YTosUG2t2yYBXX9pF6KzH8ZtcGR5z+wt QZYLlhqyh3PJ2o6aTfBUeQZZpg== X-Google-Smtp-Source: ABdhPJxp4hPp/X7DFL0yQUq6jyg7zfYLXscjglRLdO0i5i+wDpxfwkrtU85HxJQRA1Jr6XWXofGlZg== X-Received: by 2002:a63:556:: with SMTP id 83mr10222511pgf.222.1636727048728; Fri, 12 Nov 2021 06:24:08 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:828f:77c4:f985:d787]) by smtp.gmail.com with ESMTPSA id l6sm7702271pfc.126.2021.11.12.06.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 06:24:08 -0800 (PST) From: Jagan Teki To: Rob Herring , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH] arm64: dts: rockchip: Fix Bluetooth on ROCK Pi 4 boards Date: Fri, 12 Nov 2021 19:53:59 +0530 Message-Id: <20211112142359.320798-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211112_062412_504918_AA4F5F6D X-CRM114-Status: GOOD ( 12.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 dfad13d2ab24..5bd2b8db3d51 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 @@ &uart0 { 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 6c63e617063c..cf48746a3ad8 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 @@ &uart0 { 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 99169bcd51c0..57ddf55ee693 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 @@ &uart0 { 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>; }; };