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: 1759 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 37AE23F07B for ; Fri, 12 Nov 2021 15:24:12 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id 4-20020a170902c20400b0014381f710d5sf3595657pll.11 for ; Fri, 12 Nov 2021 06:24:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636727050; cv=pass; d=google.com; s=arc-20160816; b=u/KjyFRk0Uzj0mhQwlote4t9T75idFNTkq79o0lo9F2A7Hhnnp435urltpME89A5P4 FiUdydAuZFEUlMnfN+ZLlQv0uPdxmXzjlqOxEi22zv0qLNWSjBTdmwC/pzUC1juPCrx6 AFRgMmBueiG7eq8qUuONSHmBadZtdSQ6NFpTzUplARLe6JN5v9GAdArp8hienKIgehjV zCNVMRZRp7ZjJJINyUmLvEgJ+Ntzbuij8OuzpAWuQdQkU0sZg1IN4L/DVQGlplJKEYlL ZSPuEw3F2tLTl5rE2+dZTM1niJi8hWP1wXCT3XElCY0Dyc0kFMXCZqfH2yAmXUaOSDvh A8AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=e9qWUGgLaXu/lOm/i9IqIhTM36bDKRZkpOWZRq3I91A=; b=zClM8A4WXsDPeL7WG95zfIhwM9LRI8TvMRWEti8v1ruAEIhIfkEGuvdMm0zB1cfxkf zucoiV1T4TmaHaFsRSE/p+Fx4RLPlNUi3/YvClNlYc7sXSTuEKtKmQix26yeACe1fAZS 43+WiQbPaY6NdMGaXhxu76bDOVyDSuTM0h1XvvkWRNalj6VklYPxuoOvoeMa/Nv0qIB9 MBSBzl7i8uzhvToOq0Gq/Bg6MPVAIuKRTswMy4MoziXA7cQ3ATFAqBj4Q4EK8Jx3BRm1 Vvq3ELJI4r/A9CnG6eTgJDI41EElweByK2e24rvzNQoZD0qi6F5khrXiQmO62fAYXthP yf3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XWDsDubF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=e9qWUGgLaXu/lOm/i9IqIhTM36bDKRZkpOWZRq3I91A=; b=ntvfjUMFPpBAFO4AQ6Cj/ReVXi36YqiIawteZhKG3GKM/ZHEaa6RG/UHpi2XIhxJMe jlVrqdrzmSv3Z51orCAReTpMG0yYhZfmRQBw2nRI33nPvGbcmZduskqTxUJvYbr4SbHP gSuBDVmGpnGPC7W5iBxtDm5RUzQS3BHeiQrm8= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=e9qWUGgLaXu/lOm/i9IqIhTM36bDKRZkpOWZRq3I91A=; b=MsQFMGj220N1Qf/NQT6lYreEUKhOKXWExAhY/9d51I5qot1blq4LdQrQDzv+iE9gzX nPWluquq4RGzJ97SZbfjjc0eq6uCrIudI7LQ6G+3Q5FPsYYpXO85iwDO5otJoIOZp9Qj Cue/VCEz1RqPvmzaiB/fZYAw4S1wtl21sYOnngRCPy8QemVIhJy6wOg3xU8vdVxEDcBh luMYRhNE3o5dM9yzOLEc7weoKHJ3T6wLjF+NAIvQAs4jJl3oKA7bRnNyabGHNMNwT5s9 jTR0T9BNFtk7L7Rda5tYqBCg0cXBUMCJpdVOQ8CuSK43BwLCehRAt7Fj0vk4VJdvQA0K zohA== X-Gm-Message-State: AOAM530KNYTBU6Gc4aH57qOkI4g7SSOhPXTMrGZ2jPfKjPBz/b2cKg6r 2MiT3UJ2+LR7Bew9G98NVAQMJcLV X-Google-Smtp-Source: ABdhPJzXOVAhF5MO1IOdnOGCfm7UV/2ASZvwSHggdi7fwmwjeZUxDx2uOSr+V8rzVrWfXNNs5ebeUw== X-Received: by 2002:a17:902:bd06:b0:143:aa76:faf0 with SMTP id p6-20020a170902bd0600b00143aa76faf0mr3117530pls.88.1636727050442; Fri, 12 Nov 2021 06:24:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d4cc:: with SMTP id o12ls4309564plg.11.gmail; Fri, 12 Nov 2021 06:24:09 -0800 (PST) X-Received: by 2002:a17:90b:4b04:: with SMTP id lx4mr18388002pjb.11.1636727049624; Fri, 12 Nov 2021 06:24:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636727049; cv=none; d=google.com; s=arc-20160816; b=yz02Vyri26nIEYk5DNymO3THIeDNil7SdVxfPcGL8soxLLIaTjbd5+JJT9GCmg87Zg Vfrz1a9H1Db5lPjFKxtiy+MAqQHAjic5hFmc6ZrhEY+8pW1WzLZCCOCL8aPEiD78pnom xQ1c3H90hst/rmR55CAk+S/+A6QHUbpsGMqOJK+8RUYehNrT4RJe9tUXFPZPZNJRqi/2 UhqDXItxKaMxT890FmlZQYU/OHV9JQb6Ei8GXIrXRVo/YP0FZDc6Bo/oHaaZaYaMTE+k E+aDiSwgvjwphwM5MOElcih67ncJCSlmT6B3U+/jehPJIY0ptVojIYU/zX5xMxwN4X4V zV/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=ilsk+MaRfmtCqUcT3SwAuDne2pJc5N62fUP65s6Y02I=; b=z+xljYPCoaQOBQaEFY87dI/0R7uNsibAnEmmQfcgLmiL8zj9M+egQuDuZGm2XfRR/o Q/a/vXj+cwJA5jscEiSnq2LIazIOQjBFl57v4pxg6C71drAT8WXv+acOPGTiK/Q+5IHw /aBA+Hsu4waZmLhBC8iM6cFQPUvn9ZtPDMN4Gn1Plp3rfodZqw2DRhoJrgCAo3174lbk CvdG3EMzwFfW0CSvSpWHC3XSu35btkeFBQWR3LxaS5qzTZxj3aoZWkywjUDn7OPoD8e6 1hgQzH+GV7n+kXNv1Ma0SrXOTSWFFv0gw9h737Xa0UbIUninCJCzdyJ7PGPNL2mqgeOD NYoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XWDsDubF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n14sor2629808pgv.35.2021.11.12.06.24.09 for (Google Transport Security); Fri, 12 Nov 2021 06:24:09 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XWDsDubF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; }; };