Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp935438rwb; Mon, 26 Sep 2022 07:41:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xP6Yw4JkV+Qm0WJw1kQ2Gg4GhFvlYzok72AzQXiy7Ta+dkSCtW8y3kO1t56MfWNZadSpL X-Received: by 2002:a17:903:1112:b0:178:a030:5f72 with SMTP id n18-20020a170903111200b00178a0305f72mr22502866plh.12.1664203265696; Mon, 26 Sep 2022 07:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664203265; cv=none; d=google.com; s=arc-20160816; b=hvFWViGcmOgNfMhtT43tHDjhlQU+2wp80cU9yPoLOZiZ8SJYx3LlziIygyOJYSEWwW unP5PqksnhhuyOUhRJkDe8qh4PoP0InnCW8VbFVSeUW3Dcs9biIypsP4fXNnmIpOEjy0 hD0dJ6PiWnOVW2yZ8yIwEuFCNG/EnKLv4lPEqUGbVBc2KMp8cRWbLhKvoFyzU29pKK6U WuWru/bz41CcLLC0JUxez44l2N/n4+zXPoWaoVK4ZEj687zEaaEBkUSb4awZquRFAuVT lKXDSX9ApFphh9yHJ8N9u0ASqIdnqd4LQavqy6R3x8JQRanxjTsHz8LpnAyae13Yk7/M veXg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iorYNtrLY89hA3M2uo9zu8tdCvtrF7NjwvF7WRrO/5U=; b=CIQUWWy8vuQhYK/RnogZgxko3+xBxXTgjF7VMSgo0XX3kNxI1pHO5a7Uc8jyaaqxx7 TMAJU1p8m6fdOmVFYOKRcu44IFHRjqvHL24WzujGDRqTddd1RYZomAFLpYU/mRxwNOeu nxLZ52R8s1XVs8n3XJQ4QM8r5ywF+TiNChRjQeifVSU7SASawph0UfwKcKPvLyGDGfm5 XZpTXkApSSBay0VvfG8f6uC1Js4iyAd5YQivPjSFRZlvItKrosPvcHOJY5hzAsvcskZ7 MSn11U6VqQysRW/DBXZJ0lX3yzwUEP9XOMaThS3n2C4ivyTmxFlCE+edWz2Qjf3Aa1PK 6W9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nabam-net.20210112.gappssmtp.com header.s=20210112 header.b=xYYLm7cO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a170902d4cc00b00176939b5cd9si13940761plg.578.2022.09.26.07.39.21; Mon, 26 Sep 2022 07:41:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nabam-net.20210112.gappssmtp.com header.s=20210112 header.b=xYYLm7cO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234569AbiIZOgP (ORCPT + 99 others); Mon, 26 Sep 2022 10:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234914AbiIZOf2 (ORCPT ); Mon, 26 Sep 2022 10:35:28 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15AF66A48B for ; Mon, 26 Sep 2022 05:54:05 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id j24so7329658lja.4 for ; Mon, 26 Sep 2022 05:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nabam-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=iorYNtrLY89hA3M2uo9zu8tdCvtrF7NjwvF7WRrO/5U=; b=xYYLm7cOGYF2Vyoz2KFZEOJkJtBx7Mx4jZdHDj2GC5WchtiPipydI7B2UvI5zXbOEN 4DDNHjDfB+yMD6Tas5eZXn/Of2DdF/Ns4MdH6R0oQ4gnGeTfQ04ieE4meBgsCCa8AOg0 risAwjwrUpUUlI81j9m21RtaFHMLUgiNMa30fU1tJNU7uzxGi9DR/tb9s7nAgKJ+HuY8 qU7dpSVj9dsq/DCWSgaf1aX4ziMiI8MWZSLzVUQyPM3U34QYPp8g4KHkkIg52ZWCepj9 sUSZVcAaxPPoFUWV9Xqs2FLoKTpl1kCAeZYIVMAqZgTKX8bIVQ/RkFD8f9vobSO0v7+A NVcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=iorYNtrLY89hA3M2uo9zu8tdCvtrF7NjwvF7WRrO/5U=; b=WI4sY/cTw7nbpUClmmkwRd2H8fLuoVtAJel9OpOYHJXgIWnp3k8vPut2tpIIU6ldXX 7NAcdyl0UnIp1LXj6J/TYUrLPe6iSyGWHl1e/z/HcmJXug9XiKLdSIXK2QRBHDUJJyUO lIKyl21iRGk5HfAn/YYTGnjGo4lwSnuYES8DzR9F43PHFAovOexiA4kgcq1/G3z0go2t SdXTpTxfqBt9OmByZTVtE3aDDsiACXc+/u1S/u1FRwV9RhX2bqh+5ndT5YCp/QprfyjQ HvASg6MnmX6+9AhL+eVZ+McprD5/igoCIUgPvMYc3G3FWUMriiU/lQQBkV6HmfItSmew 0IrA== X-Gm-Message-State: ACrzQf0bBjgQnI1bnCWSnTp+OpY5nLmSN5Df1eR1blpLisvaHm2IFvdA cIemNNRxEFNBWYgoYRHbuwYzoA== X-Received: by 2002:a2e:a30f:0:b0:26d:9162:9451 with SMTP id l15-20020a2ea30f000000b0026d91629451mr2755347lje.164.1664196843171; Mon, 26 Sep 2022 05:54:03 -0700 (PDT) Received: from 16-inch.lan (c-7f0d225c.016-470-73746f7.bbcust.telenor.se. [92.34.13.127]) by smtp.googlemail.com with ESMTPSA id d25-20020ac25459000000b0048af4dc964asm2530772lfn.73.2022.09.26.05.54.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Sep 2022 05:54:02 -0700 (PDT) From: Lev Popov To: Lev Popov Cc: Dan Johansen , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Peter Geis , Nicolas Frattaroli , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] arm64: dts: rockchip: fix quartz64-a bluetooth configuration Date: Mon, 26 Sep 2022 14:53:48 +0200 Message-Id: <20220926125350.64783-1-leo@nabam.net> X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For "Quartz64 Model A" add missing RTS line to the UART interface used by bluetooth and swap bluetooth host-wakeup and device-wakeup gpio pins to match the boards physical layout. This changes are necessary to make bluetooth provided by the wireless module work. Also set max-speed on the bluetooth device as it's not automatically detected. Fixes: b33a22a1e7c4248608e533fc4fa524258b3fae84 (arm64: dts: rockchip: add basic dts for Pine64 Quartz64-A) Signed-off-by: Lev Popov --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index a05460b92415..25a8c781f4e7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -740,7 +740,7 @@ &uart0 { &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; + pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; status = "okay"; uart-has-rtscts; @@ -748,13 +748,14 @@ bluetooth { compatible = "brcm,bcm43438-bt"; clocks = <&rk817 1>; clock-names = "lpo"; - device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; - host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; vbat-supply = <&vcc_sys>; vddio-supply = <&vcca1v8_pmu>; + max-speed = <3000000>; }; }; -- 2.37.3