From patchwork Tue Dec 6 23:17:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 631736 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA95BC352A1 for ; Tue, 6 Dec 2022 23:17:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbiLFXRy (ORCPT ); Tue, 6 Dec 2022 18:17:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbiLFXRs (ORCPT ); Tue, 6 Dec 2022 18:17:48 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C087410EE; Tue, 6 Dec 2022 15:17:47 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id q190so5681501iod.10; Tue, 06 Dec 2022 15:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FyuIGJKwW6b9EoAfMlQAn9kCBCi3ouQb7vdXBTYMw3o=; b=LcBXMk1/YTashAe75xSu6NRXBnKaJ/Yn55m6xCSmhuzqs1WDRNzTVqt/TOlinrS8tN mmeo5kojF5w/VTp43ZYGWUq3TXP16m8lihv2wKlUbsw1IbkzvcoiK8QvNNorjbjpcg7m UnBUgjj/9KQk/MOEkMVNShEf2Ps19Sf+8FObVm/uIDUNJNzya+QfnJ+ZrOUT+csS8svp OH0y1lQYOARaqTFtGNwzt/TrHwLsyE1vwmad9nlXNEOKzjHQ7QnkR4A6MdJeRBPVvpQL XqD7dCVuebvZ1DcMGe+QLJ7wcc08XqZkiYCdgn883uRz85UVO/6xXcswAXdv8x16ZVwE jDmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FyuIGJKwW6b9EoAfMlQAn9kCBCi3ouQb7vdXBTYMw3o=; b=uhk9t5aZx1e74xbOFAp9rsos4BaAR5cKjbDb1TpqAJm//FUh6B1OOlMQnLJ6U1D8Iq cteDdXr0qJq8HehP2VpHhmPw3j2gyVe/SsZJf2dZEntozQ8I7S18oYQaAIH9Abavd/X7 32CMslQc3o4ezeBj1XBHlVcUI0Pdjni5NaAU0UmSNrNwzAU0J0U4HarT9ME4YrIh77Wl P/zOkKKwYqHr+w+6E0SFNI0ubx32G9p2pVsH6pD5GzHVfRIWhute450nCNlPoGtCXddz ct42BQygl8sqvHDkl+nw5fpuY4qWozlc2MpBgh3wU/e2GdcjDYqEcyTIiEpIOAlXAFT4 AKRw== X-Gm-Message-State: ANoB5pniNjnrBw1Ns2VZWZ7g256u6bzJErz9qmsUMvz3hcaNKWS+lzGQ QlFpXRYxE5puDjoMYt+OSKs= X-Google-Smtp-Source: AA0mqf4KOY/FXYl3ARxU3LWM9AS0eqPw4ryqdFErsBbaz1Mo/nLgrzN7BjrXRBbJ/qKSVCvG9dBYqw== X-Received: by 2002:a02:6662:0:b0:363:69a0:837f with SMTP id l34-20020a026662000000b0036369a0837fmr34941769jaf.57.1670368667178; Tue, 06 Dec 2022 15:17:47 -0800 (PST) Received: from localhost ([2607:fea8:a2df:3d00::32c2]) by smtp.gmail.com with ESMTPSA id m16-20020a92c530000000b002e939413e83sm6514007ili.48.2022.12.06.15.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 15:17:46 -0800 (PST) From: Richard Acayan To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Richard Acayan Subject: [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Date: Tue, 6 Dec 2022 18:17:28 -0500 Message-Id: <20221206231729.164453-1-mailingradian@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There is some configuration in SDM670's QFPROM. Add the compatible for it. Signed-off-by: Richard Acayan Acked-by: Krzysztof Kozlowski --- Changes since v1: - add ack tag Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 2eab2f46cb65..01ec2143a3b5 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -27,6 +27,7 @@ properties: - qcom,sc7180-qfprom - qcom,sc7280-qfprom - qcom,sdm630-qfprom + - qcom,sdm670-qfprom - qcom,sdm845-qfprom - qcom,sm6115-qfprom - const: qcom,qfprom From patchwork Tue Dec 6 23:17:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 631378 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1831C352A1 for ; Tue, 6 Dec 2022 23:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbiLFXSM (ORCPT ); Tue, 6 Dec 2022 18:18:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiLFXSK (ORCPT ); Tue, 6 Dec 2022 18:18:10 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7348327FFD; Tue, 6 Dec 2022 15:18:08 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id p6so1729584iod.13; Tue, 06 Dec 2022 15:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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 :message-id:reply-to; bh=2S48S/ZvuL1KoDCkjWF/hDiUMwnp9MDUvJrls0zCYxc=; b=hpPyK7ANWm0PWMrGjhOIXtL2QxT2LrGN3F74Zy/m9ldIayBOlDoKksjac3C0sXO24q CxCdGAZG63G2KOjUkOQVhQg2i8YvFrJCD46rJ1pVuRbEyykaqLwpTXPqLRq7rA7k4L3g qkJyI0gbYggicDLLLYoJMP/nOChe9XN7yomTCiAOf9lHMFRtFJkeqaar2EKtci4pYoQG tQ3AMcumCnu8SpyDtPpg2zXNTG8S6k7PH8gbNlwNS5c4+KZssKcQj4t1E5V9kqRSBu4X j2YKm6hgfb808V0VYE81mWdsdJjU+N7V5tlk7ipoxry/hT2l+ytHYmG/tGozU4NH/H9K jG6w== 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:message-id:reply-to; bh=2S48S/ZvuL1KoDCkjWF/hDiUMwnp9MDUvJrls0zCYxc=; b=BVpsDImBxDMAeprEgEawU1b6LR8kDqfGWQ8XfAG/Ibk00XcOyLox4jg5wtCR2RWVW+ qlxr12FbShxzO45oaKi3Cataiia7fNYt4I3umJd2wh9i6ajPUYEjA7h4l742Y8xJl+4b TvZWsWRDwcx/ucHZD801WD87QgdV1oKalrg8AK4kIhDLeBLQtTp4V1ryQxiu1fV/QOM2 NTXIb1JzxC9NKlP5fctWhactMVTp7NwbA03HtKeA2nkoe1Ro9iQg3f1vBs5a+YnFcpGa Y2KHlvwAVeqT2klvQLqiECQ9y4DGGx0xNk4khgRj4WPt5mBEUABwMnOHwleYrvPLUiDi IXYw== X-Gm-Message-State: ANoB5pkkHHa8HFEieYB2SzGCH76WXSo3/xilYSJIce7q9RcBfzKQnlR6 qoNifCnHyv90qt6kbSokaDU= X-Google-Smtp-Source: AA0mqf590evn9EVI+BG0q6lMLy/zYK0ACd1BTRHQ6879JK/WqoIKXxKr+m1TGgE6e3VLYCMjkqpfag== X-Received: by 2002:a6b:d117:0:b0:6a3:a0cf:ea32 with SMTP id l23-20020a6bd117000000b006a3a0cfea32mr33878087iob.155.1670368687823; Tue, 06 Dec 2022 15:18:07 -0800 (PST) Received: from localhost ([2607:fea8:a2df:3d00::32c2]) by smtp.gmail.com with ESMTPSA id n10-20020a02a18a000000b0036332a07adcsm7017098jah.173.2022.12.06.15.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 15:18:07 -0800 (PST) From: Richard Acayan To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Richard Acayan Subject: [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Date: Tue, 6 Dec 2022 18:17:30 -0500 Message-Id: <20221206231729.164453-2-mailingradian@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206231729.164453-1-mailingradian@gmail.com> References: <20221206231729.164453-1-mailingradian@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some hardware quirks and capabilities can be determined by reading the fuse-programmable read-only memory. Add the QFPROM node so consumers know if they need to do anything extra to support the hardware. Signed-off-by: Richard Acayan Reviewed-by: Konrad Dybcio Reviewed-by: Bjorn Andersson --- Changes since v1: - offset address by 0x4000 and zero-pad regs arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index f93705bc549f..c78156e03d93 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -731,6 +731,13 @@ gcc: clock-controller@100000 { #power-domain-cells = <1>; }; + qfprom: qfprom@784000 { + compatible = "qcom,sdm670-qfprom", "qcom,qfprom"; + reg = <0 0x00784000 0 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + }; + sdhc_1: mmc@7c4000 { compatible = "qcom,sdm670-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x007c4000 0 0x1000>, From patchwork Tue Dec 6 23:17:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 631735 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17D4BC352A1 for ; Tue, 6 Dec 2022 23:18:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbiLFXSe (ORCPT ); Tue, 6 Dec 2022 18:18:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiLFXSd (ORCPT ); Tue, 6 Dec 2022 18:18:33 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322CBD117; Tue, 6 Dec 2022 15:18:32 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id o189so5126022iof.0; Tue, 06 Dec 2022 15:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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 :message-id:reply-to; bh=Cre6nZSUVoXSGiGw303piLfAyt0eln7OQe/31K4zAAg=; b=XepLHlYR/c1jdAaDsSuKcmUCZ1DfGYZE5u/kVUQwGmFvq87bAaCbBuwDVRDOkQ5weV 0InV3lB2nv0t0HgsTG5w4j3nWwPoRX1MyZMZT1K2QWFWBOLcXAZchJlWa410L9XNKck1 gzhwRHgIhQ4QLE7j7zvqYIlrhlM0z5EihPry5uDv4KiUZiSETZ5XN8m8HaIvOGDqnrfJ Tg3vruFTvAoLx1rk2CXqqzXAupoVYpRIDbpInHOKqxWV0g8f+2q3Lvsj1V2HwYgX9lLK IYMgSAKWK6/qzxOhWZaZpOxa1fwjnO5/CGW/dlaRCTKw7FWAY2CLPWOJCb7duVJYu+vc Subw== 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:message-id:reply-to; bh=Cre6nZSUVoXSGiGw303piLfAyt0eln7OQe/31K4zAAg=; b=g07Lyob2h1qk6UaDAsqGPByBWjaXjhgjm00o4oPuyhBr7WwfTSD37EDxQUFZReQ56D 9EULLSkaPAo0IFwXbqcjuclUSp/fz3MDGLTc6jaW1DQ6PoDbmX/sVunKiVNS8G9wKLxH pSc3ebrkePtGWpI3N3nJJqMPyiylh1bjikX7EwLsqwH3sHAs226uJcq/IQ4pYOUQvsVr wCHoZLRy1gczgdzd8P5UqIhEBrgUIGTMs6htQmc/rIAYN3mP++qkPV9Ak1z4iGjjOrdy AmZy/3xjlZkTqJ6YKr3PPdQx3PCf90GWXPSg2XoCS/tvdfqhK0XU2sb9xeIfDfdlBGKY ukUQ== X-Gm-Message-State: ANoB5pmWG44a5M6xJpzDM4+F2R+GdbHHar1YJr4qwWPs+6Fu+PC38kmQ 89OT4Lsa9hkE9Bzbpc2Fetc= X-Google-Smtp-Source: AA0mqf6qf20kC/mQzJp9+jZEhnO6XuhvTblZf2r9pYJQLyvrlYUduY8BQLG9LLZXhdNZD6aWj8+9QA== X-Received: by 2002:a6b:3102:0:b0:6bf:e923:388b with SMTP id j2-20020a6b3102000000b006bfe923388bmr42439122ioa.105.1670368711655; Tue, 06 Dec 2022 15:18:31 -0800 (PST) Received: from localhost ([2607:fea8:a2df:3d00::32c2]) by smtp.gmail.com with ESMTPSA id x27-20020a0566380cbb00b0038a0eff63d0sm6374271jad.155.2022.12.06.15.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 15:18:31 -0800 (PST) From: Richard Acayan To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Richard Acayan Subject: [PATCH 3/3] arm64: dts: qcom: sdm670: add missing usb hstx nvmem cell Date: Tue, 6 Dec 2022 18:17:32 -0500 Message-Id: <20221206231729.164453-3-mailingradian@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206231729.164453-1-mailingradian@gmail.com> References: <20221206231729.164453-1-mailingradian@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This nvmem cell is present on SDM670 as well as SDM845. Add it in SDM670 so there is proper tuning. Signed-off-by: Richard Acayan --- Changes since v1: - remove "primary" indicator (SDM670 only has one USB controller) arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index c78156e03d93..fcea26ba7fe9 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -736,6 +736,11 @@ qfprom: qfprom@784000 { reg = <0 0x00784000 0 0x1000>; #address-cells = <1>; #size-cells = <1>; + + qusb2_hstx_trim: hstx-trim@1eb { + reg = <0x1eb 0x1>; + bits = <1 4>; + }; }; sdhc_1: mmc@7c4000 { @@ -1418,6 +1423,8 @@ usb_1_hsphy: phy@88e2000 { resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; + nvmem-cells = <&qusb2_hstx_trim>; + status = "disabled"; };