Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp390565iol; Thu, 9 Jun 2022 06:03:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA22Jmh2RTfoSmwj7FYPkkNiUkx7wbypM+jeN/jqCleDovKunFk8q0zKdEzorEBpfzgrBI X-Received: by 2002:a63:5155:0:b0:400:14af:a1e6 with SMTP id r21-20020a635155000000b0040014afa1e6mr3163868pgl.71.1654779791590; Thu, 09 Jun 2022 06:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654779791; cv=none; d=google.com; s=arc-20160816; b=oj0gDgRFqYlVe1Iqvz0Mhs4iG22rD4xa0+y/8R9smtkYmLenDfSTM6Wd2bB92Qouj3 IEcia1rIxiBL60RYMwOhEw+Rf17Kf3Ag/+0triTvquQwAP260syxBJ5l0qq61bMx7CDh 1aSgDj9D1B9bRFtDYgdNsiLTqziihPUScwSjotdix76kHVRrRs2OsNFFMahDeUGYofCR mih77XJo0VAGC7HEZTpiEmKyIx2rGeWAsXneqfNaQe+BQ0n0ZLvGpJN1vC5Mn6TbJjlY BupAdtU6Pkn1iH7mOl1uca53nXqpDSaJ2s7MiKipfbj3o+4lN1RYvQSBcy4/k+GTjrqX NQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=h8cWqvPg9zbI1Q43jZ22k5KFlen0dxXXQmLtqMTzZJM=; b=oXR7w4ou+iE6FJqMuK93GrE1kEwGZ7ACAoWOsVlTdDWjB7ocK3VRd6HD/ChBFrZznp Ql29Pf6LrH6s2FcPaHaYhV5zO9F81GSJ8Q9vLllhBFvdw3ThCuRgiYYDmNSNrxG9PY2J 3ny2UINqRUrUIcstIIEezl+Ej05E9UqsAuFTQc34PbNZ+11Ay+/sHgsCwhlW+OscC4vo ObApa7KRJA4TvvZ4pQ8IpCJHetoiYJNauQnjoJJrkmrhS1KqsrJW+TZtthga0Tb1ykJb hHPK7YcO92fgPqwYdiIpMkInLJCCCB4J3thgIUQMsumufNHpmu+eIMt1tUoVB9EEhsvr 7yRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W3iSqn+U; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u76-20020a62794f000000b0051bd440b069si24885951pfc.14.2022.06.09.06.02.52; Thu, 09 Jun 2022 06:03:11 -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=@linaro.org header.s=google header.b=W3iSqn+U; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238891AbiFIMrs (ORCPT + 99 others); Thu, 9 Jun 2022 08:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239620AbiFIMrq (ORCPT ); Thu, 9 Jun 2022 08:47:46 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D45359FD3 for ; Thu, 9 Jun 2022 05:47:43 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id p8so16993684qtx.9 for ; Thu, 09 Jun 2022 05:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h8cWqvPg9zbI1Q43jZ22k5KFlen0dxXXQmLtqMTzZJM=; b=W3iSqn+U6DYPLx0Gt6muJSyYUB8gxNK8sU1bPvLeuDq+RHwCPr02xyazKxVG5njrL+ TEHtdxgOlEiy8lGZeAdkKfkVGnIbRVz3/NJIM0RiZgRRVFD0hipcqJPQyE4MOCSiKkTG CwMrD5Bumyr+5pxKhAK/uAMPADY1s1UyiD4wiXxn/kGf4/XdAmdLG4dVpQQIUJd6cMB8 f3N0AcjzAaO1vMMs0BoTpvhaqFN9zHX9LLYboRY18/BkgPNskeisffwebtUATlmNBFgT WW/qXdf0o8SAXjb6NPZNoRB/X7aK+YNgvI7QYmq3GhO+k1RMvr1YJRBs6DKtv0yvq4ud 9hSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h8cWqvPg9zbI1Q43jZ22k5KFlen0dxXXQmLtqMTzZJM=; b=hnJ5bcQLUP9iDbCscKtnTexhdGgL9Bp+f6rGVWe9IczaZRZ2lTlRXfJCbPqIn02GEs 4V7zju9olVFYDEMvdLBhmEJ6fAcdtmJyqXvh6mlbMc5NhrsLeQ142Veymj/PFRFd4CrX uRsOMO2oF5VPnoXUODwE2fJ7lNmiNufDypVJ7mseRFYjL0nvuA7KWNNk2Xns6dzX37sp K8NfhTLDB5jGovD7ZJqpQ7BIa4tD2el/O863Wkiw5WugMZ0PzvpxMCuM9CXVdztrQrY4 Bx5IoQqZXulYJmI9jQlv3Xo7GaorC9iCpk/027ozJlUL3uHg5peuul4eD/5Dfs6qS3Up FbWQ== X-Gm-Message-State: AOAM530DV9IJciIhVQ1SEof3mwDp5XdSGSBx4EnGOIouD7Tqb9Ibzdwa /wLwY0UdDxHGx6EjM4AfJwvoCEBubgzn2lHIzqyBJg== X-Received: by 2002:ac8:598f:0:b0:305:8f8:2069 with SMTP id e15-20020ac8598f000000b0030508f82069mr4867390qte.370.1654778863045; Thu, 09 Jun 2022 05:47:43 -0700 (PDT) MIME-Version: 1.0 References: <20220609095412.211060-1-amartinz@shiftphones.com> In-Reply-To: <20220609095412.211060-1-amartinz@shiftphones.com> From: Dmitry Baryshkov Date: Thu, 9 Jun 2022 15:47:31 +0300 Message-ID: Subject: Re: [PATCH 1/2] arch: arm64: qcom: sdm845-shift-axolotl: fix Bluetooth firmware loading To: Alexander Martinz Cc: ~postmarketos/upstreaming@lists.sr.ht, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On Thu, 9 Jun 2022 at 12:54, Alexander Martinz wrote: > > From: Dylan Van Assche > > Add hsuart0 alias, firmware name and prevent garbage data on Bluetooth UART lines hsuart aliases are not standard. Please use serialN alias instead. > 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"; > + }; This chunk should probably go into sdm845.dtsi. I'd suggest either adding a separate qup_uart6_4pin or just making qup_uart6_default the 4-pin UART. > + > + cts { > + pins = "gpio45"; Then the label and 'pins' can go into the dtsi, while keeping just the bias and drive-strength in the platform dtsi. > + 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"; Do you know what is the difference between axolotl's bin and the regular one? > + > vddio-supply = <&vreg_s4a_1p8>; > vddxo-supply = <&vreg_l7a_1p8>; > vddrf-supply = <&vreg_l17a_1p3>; -- With best wishes Dmitry