Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp240750iol; Thu, 9 Jun 2022 03:01:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvEzq2Jta/2eEnuHjBSGYkGesz2XjMFD7eXYQP49dmFeTBcqJiI/XRrISIQNTo/moC8mXu X-Received: by 2002:a05:6402:2892:b0:42d:c871:78f4 with SMTP id eg18-20020a056402289200b0042dc87178f4mr44990896edb.192.1654768877036; Thu, 09 Jun 2022 03:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654768877; cv=none; d=google.com; s=arc-20160816; b=YJivEx3FRnQa6oj3rZsVeTi30tu5KcQe3DbAb91j98GDOadz1BBWT+SXk8L9tJoJ0y PVv7ir0I7AQq8EmmqqN6NsTmDew6HjJe3lKH4RbesznHQ7QcDKxAShDpVGrQQXkKWUFV g2Y6aeC0V6IY/7eP6wNyLQCVdn3+ckUQjoJCyypw/OnPZhhO4WkbQLp6KFdJCfGowEQm tjpW+As9cnPUi3PVtjXcNFpDcGjo6zF3QeqeJBKW3+7XJL/DB8pcKjfmc4y3vjltASH/ v1To1r7p83RwihQLzfWoEL+uUrQfrfCwR7wSv6MLgp40XZYNU0v4gcSj3K1UjWAiNJqf 8CaA== 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 :message-id:date:subject:cc:to:dkim-signature:from; bh=EHEuZTnae7JIoJINVmYOdraD9EvP6HM8Di56khNR+uQ=; b=b2FgjkAyLHc4609PvdKUn1cKRm8C1JiyZhQAt+c6ZleNjkQy7hHUAivObenr9P2v19 hqOtjZJL+eral8+N9J6ExmvmFR3/KLHzIh80JLChckimNc0w8dGOQESFVt8vNszT/Vr+ mBwQjSyG2d4RYZKtDW/zTtG8DB5257ODKUNXdviZFF86/rSNIYPc5W3TWJVJMa3oWYei jUzMTYEmjvraQaUlJx+9VJ7NJBUP1RBSXdS2shCH/Nj/B5zKyrBeQUihRBUSetGM/2Hq Qzl7ptAe6a1EOV6MHYZDBUKLljkUGjDPsMa+5aLKGpHxITQ7G4vzn4QL8/eeJ9WH8u7Y ocAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shiftphones.com header.s=2018 header.b=r94IREh6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shiftphones.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a05640226cd00b0042fadee7b8esi21412668edd.322.2022.06.09.03.00.50; Thu, 09 Jun 2022 03:01:17 -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=@shiftphones.com header.s=2018 header.b=r94IREh6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shiftphones.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240547AbiFIJyi (ORCPT + 99 others); Thu, 9 Jun 2022 05:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242416AbiFIJye (ORCPT ); Thu, 9 Jun 2022 05:54:34 -0400 Received: from mail.shift-gmbh.com (mail.shift-gmbh.com [IPv6:2a01:4f8:a0:5496::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8399A195974; Thu, 9 Jun 2022 02:54:29 -0700 (PDT) From: Alexander Martinz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shiftphones.com; s=2018; t=1654768466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EHEuZTnae7JIoJINVmYOdraD9EvP6HM8Di56khNR+uQ=; b=r94IREh6bcly39S5nnsnaC5t+otHkGUEXkMrZ9yFu0zBDWm6TtlStPI0XD1Bc0Thiz4VhD XPbChYw5Y5VVPHQ0PF5ysE6ugU3fiCwUC8jD+sp6wHGear7yTJxH9USFXF6AoqKM9/oY8L clMD62V4sKmSRhQcPZNBvbMud5+MhvuYLPQWwDflx2Rjw0uyzNczWKSgS9vmpHDfYs8PYQ ZcatI4/USt/HRHZl6fGhTMhqtigmjgmGD7jey4HknDfruQwI0hx4P44QGEpidKmWr8D7iL lKJrXA7xhFEGBxbAfuE9ZH+AqnR976qYgMio72jXzlLg89tmRp7Wdb3PxFC4Rg== To: ~postmarketos/upstreaming@lists.sr.ht Cc: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dylan Van Assche , Alexander Martinz Subject: [PATCH 1/2] arch: arm64: qcom: sdm845-shift-axolotl: fix Bluetooth firmware loading Date: Thu, 9 Jun 2022 11:54:11 +0200 Message-Id: <20220609095412.211060-1-amartinz@shiftphones.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=amartinz@shiftphones.com smtp.mailfrom=amartinz@shiftphones.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Dylan Van Assche Add hsuart0 alias, firmware name and prevent garbage data on Bluetooth UART lines on the SHIFT 6mq based on the Qualcomm SDM845 chip. I discovered that these were missing by comparing the DTS with similar devices such as the Oneplus 6/6T and Dragonboard 845c. Signed-of-by: Dylan Van Assche Tested-by: Alexander Martinz --- .../boot/dts/qcom/sdm845-shift-axolotl.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 103cc40816fd..fa72f23ef0c2 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -20,6 +20,7 @@ / { aliases { display0 = &framebuffer0; + hsuart0 = &uart6; serial0 = &uart9; }; @@ -529,6 +530,32 @@ volume_down_resin: resin { }; }; +/* + * Prevent garbage data on bluetooth UART lines + */ +&qup_uart6_default { + pinmux { + pins = "gpio45", "gpio46", "gpio47", "gpio48"; + function = "qup6"; + }; + + cts { + pins = "gpio45"; + bias-pull-down; + }; + + rts-tx { + pins = "gpio46", "gpio47"; + drive-strength = <2>; + bias-disable; + }; + + rx { + pins = "gpio48"; + bias-pull-up; + }; +}; + &qup_uart9_default { pinconf-rx { pins = "gpio5"; @@ -667,6 +694,12 @@ &uart6 { bluetooth { compatible = "qcom,wcn3990-bt"; + /* + * This path is relative to the qca/ + * subdir under lib/firmware. + */ + firmware-name = "axolotl/crnv21.bin"; + vddio-supply = <&vreg_s4a_1p8>; vddxo-supply = <&vreg_l7a_1p8>; vddrf-supply = <&vreg_l17a_1p3>; -- 2.36.1