From patchwork Tue Jun 27 08:28:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 698624 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 7F597C001DE for ; Tue, 27 Jun 2023 08:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbjF0I2V (ORCPT ); Tue, 27 Jun 2023 04:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbjF0I2N (ORCPT ); Tue, 27 Jun 2023 04:28:13 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4C9D19BA for ; Tue, 27 Jun 2023 01:28:07 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-991e69499d1so157225966b.2 for ; Tue, 27 Jun 2023 01:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687854486; x=1690446486; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=m5S8b9e8wV8xKSwJr6FIOGYxZbEUIfMfKiefXhXE2fI=; b=WvS4ixi7RLF9rs8ir6CIdtvBRGxXJkwk9dQyHDgQkJKLtSWcLoLSXjySELrY9z/kAi gS5y+YYHTG38DZ2+ZzUlDVrdm9dJ8/cQ1gjFDtguUio2eM/J+3LAr82eMqnU0Xeu7MV9 2VIm96wr6fKE44OvL/K2YZm2TZphKBp8XEfzt7JnV+wEoPIm3V0WttneYB10aStr4JZ5 JoHYr+enBDX3UjZV+qS/8MEfnBESnJCKgLeojtjBZsr/91x5gkPaEJMQwpCfKgkfsnIj 1KjKt6RLusvZPnx95fM/VsGfrsx7Ut29u7EIoMlZxUoptutJTHoCO8+Vdo/b89QVbqFa Az0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687854486; x=1690446486; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m5S8b9e8wV8xKSwJr6FIOGYxZbEUIfMfKiefXhXE2fI=; b=WrYoIiVeTuNHIcmB9kgGId8NooQ/w9iHVdGqRDzBK7+JZmWWb2wyUo/xTcywF/M4hc D0COOiRcNmAU5aYyduKB2uDJ5TzJxAtqoiPNdtEGjiyd1Oc71f0XdNm65ORWcxVe1/xW bgxCiE0ThTFbJ3jVDcRcrTp4UOafEU/sb/PLmwWDISUCl5swNRLbLqcqkanWheAt7jDk UiuS29aph5hX+hBHhfbXBUFx8Fs60G4x2AmTQ/Zw2IiPwI2nSNfGOdkt+HdyA2k7MeGH BnSeddCyiYVHEVthqkvKtOQr9CLoYk62uIDwbBanRS+K27iWPY0LJYDJQqhVOo8ykpnb 5Z7Q== X-Gm-Message-State: AC+VfDwaRXIzXCbc5E3FDvbs0kLBCeCh0oUvnLk1LFIW+ZjLk2xMOWTO s9Pny1yL4J4D9tPvQxipv3JZZg== X-Google-Smtp-Source: ACHHUZ47LEa3Ui0Hkcok9eFLfT/UA+Fa2+OJf8EMfROejOK13tBI/LP+tNrmfvjx6Q+gBgR/IdOSUw== X-Received: by 2002:a17:907:724c:b0:991:f427:2fdf with SMTP id ds12-20020a170907724c00b00991f4272fdfmr2659833ejc.76.1687854486214; Tue, 27 Jun 2023 01:28:06 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b009894b476310sm4253038ejb.163.2023.06.27.01.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 01:28:05 -0700 (PDT) From: Luca Weiss Date: Tue, 27 Jun 2023 10:28:01 +0200 Subject: [PATCH v5 1/5] dt-bindings: ufs: qcom: Add reg-names property for ICE MIME-Version: 1.0 Message-Id: <20221209-dt-binding-ufs-v5-1-c9a58c0a53f5@fairphone.com> References: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> In-Reply-To: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Iskren Chernev , Manivannan Sadhasivam , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The code in ufs-qcom-ice.c needs the ICE reg to be named "ice". Add this in the bindings so the existing dts can validate successfully. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index bdfa86a0cc98..4cc3f8f03b33 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -79,6 +79,11 @@ properties: minItems: 1 maxItems: 2 + reg-names: + items: + - const: std + - const: ice + required-opps: maxItems: 1 @@ -134,6 +139,8 @@ allOf: reg: minItems: 1 maxItems: 1 + reg-names: + maxItems: 1 - if: properties: @@ -162,6 +169,10 @@ allOf: reg: minItems: 2 maxItems: 2 + reg-names: + minItems: 2 + required: + - reg-names - if: properties: @@ -190,6 +201,8 @@ allOf: reg: minItems: 1 maxItems: 1 + reg-names: + maxItems: 1 # TODO: define clock bindings for qcom,msm8994-ufshc From patchwork Tue Jun 27 08:28:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 697136 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 4CBE9EB64D9 for ; Tue, 27 Jun 2023 08:28:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231817AbjF0I2S (ORCPT ); Tue, 27 Jun 2023 04:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjF0I2O (ORCPT ); Tue, 27 Jun 2023 04:28:14 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865791BCE for ; Tue, 27 Jun 2023 01:28:08 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9923833737eso15034066b.3 for ; Tue, 27 Jun 2023 01:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687854487; x=1690446487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=M8oO/PwgsW79kOUbldrma34w+xKKDHQ32lW8yb4A9TU=; b=tuSWv5qj+E4F7o1mPxrHTHT51NE6/boot+MilRskVeObQCQNvZkbclT0djz2ll24+n 1nrIaZXTM5xfGkSHV0nJbXjMkdQBAgJPhCbifm8Z4OVTLvW6sxowvNozNLrASk0ZMiKo OoRic72CuKwbTtx7A2yPe1Q2KSQZxR4+qmp+hVXWV/pd22hpGk9w15IQNq9PtBUU67zr VE5Dr4eAdybN5mQuuiIEJ8R4MYojI6ZL4RoxZ5mY51Yly56JaySt62jnT9GwYZ4XLf0v yHLZ4iYAtOVmjzvylcslEj9m7ViDJwrINtuun3UEC4h1Hwq70m6B2eV+7JhE6uRCB008 DW5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687854487; x=1690446487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M8oO/PwgsW79kOUbldrma34w+xKKDHQ32lW8yb4A9TU=; b=L6rzVKtrho68Z8FaY6yqMKLH15RPAHbBl3Kag0nGDcSgc3To/BuPehNZfzE54KU6um 9dSSqsomHc9pilc7+uGrFV2cZwB/mkda8gkfhAx2mOCS1sjb5ueF7cG2vvJ0U9fB6jNM /kvOSEzQdA6CsP8vplUjKif/3Lda4LjAuUPzKHuuzBLXgFAmrDvoVARFe7Jpum8CJ5oS JU3/321tXx3dmmMOSmcXuTMG1TFwW3ElJSdW3jRU3DP4B/7UYnQikrDaqfGv9D9g529s PwviJI8WBHmD1Cz0YAEb/+YI5UhAZiE9KQEQ23VUs7k4C8P9zCCWbby4E0J/gG+sF7eV QVLA== X-Gm-Message-State: AC+VfDztubRdUpABTuTSDiIctXoM55XOr8Vc8GZaXi+gvC0PBatJtQUW mjhhKdlv0tnix6n1AQuOnbJ5xg== X-Google-Smtp-Source: ACHHUZ4dEU9Y2foautCqr2edkyJqPEnEjYbloscPJxXHL3t5qjrDh0P71tm7rX9O3LQwP82Lf8oJfw== X-Received: by 2002:a17:907:e8b:b0:988:9b29:564f with SMTP id ho11-20020a1709070e8b00b009889b29564fmr24910564ejc.40.1687854487070; Tue, 27 Jun 2023 01:28:07 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b009894b476310sm4253038ejb.163.2023.06.27.01.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 01:28:06 -0700 (PDT) From: Luca Weiss Date: Tue, 27 Jun 2023 10:28:02 +0200 Subject: [PATCH v5 2/5] dt-bindings: ufs: qcom: Add sm6115 binding MIME-Version: 1.0 Message-Id: <20221209-dt-binding-ufs-v5-2-c9a58c0a53f5@fairphone.com> References: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> In-Reply-To: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Iskren Chernev , Manivannan Sadhasivam , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski , Bhupesh Sharma , Eric Biggers , Iskren Chernev X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Iskren Chernev Add SM6115 UFS to DT schema. Signed-off-by: Iskren Chernev Reviewed-by: Krzysztof Kozlowski Reviewed-by: Bhupesh Sharma Reviewed-by: Eric Biggers Reviewed-by: Iskren Chernev Signed-off-by: Luca Weiss --- .../devicetree/bindings/ufs/qcom,ufs.yaml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 4cc3f8f03b33..2b0831622cf0 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -29,6 +29,7 @@ properties: - qcom,sa8775p-ufshc - qcom,sc8280xp-ufshc - qcom,sdm845-ufshc + - qcom,sm6115-ufshc - qcom,sm6350-ufshc - qcom,sm8150-ufshc - qcom,sm8250-ufshc @@ -204,6 +205,35 @@ allOf: reg-names: maxItems: 1 + - if: + properties: + compatible: + contains: + enum: + - qcom,sm6115-ufshc + then: + properties: + clocks: + minItems: 8 + maxItems: 8 + clock-names: + items: + - const: core_clk + - const: bus_aggr_clk + - const: iface_clk + - const: core_clk_unipro + - const: ref_clk + - const: tx_lane0_sync_clk + - const: rx_lane0_sync_clk + - const: ice_core_clk + reg: + minItems: 2 + maxItems: 2 + reg-names: + minItems: 2 + required: + - reg-names + # TODO: define clock bindings for qcom,msm8994-ufshc - if: From patchwork Tue Jun 27 08:28:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 697135 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 F2EFDEB64DD for ; Tue, 27 Jun 2023 08:28:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231924AbjF0I2Y (ORCPT ); Tue, 27 Jun 2023 04:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231866AbjF0I2O (ORCPT ); Tue, 27 Jun 2023 04:28:14 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5173F1FCC for ; Tue, 27 Jun 2023 01:28:09 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-98934f000a5so509986566b.2 for ; Tue, 27 Jun 2023 01:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687854487; x=1690446487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rGkxfIlXXVd4eOlKO+oLehocpXpo7RbZWzh/FcRwcEo=; b=2DA7uk4iV3rbHvYZGgoczn2keAP9zVhJYF2QD5gQPX8K+/VM5cEK78o05sJYyjQk1K 23vWVWL5G3q91jRzW+wFECchvifQwZ9KDSj1qq1oC/vaMVZlLgFNbltt0VoqQyWWbUUa 8Qk2019+ctFBNlIUwlskD3hdtgjDaePwEjKShDFArE2M2f3Olzke67jA6kFo/qpjABwj BRbvf4Irq2wIw6TZRqLTLOvCcC9MrDXLiUV3Aih1M21g/+jQhqY5ZAIPSx1LErTXxMxr orW7WOGmQnPrgdpqFhxnvlc4PEOFl+WwjXHfTpFYPD9/Z6jTkHlAz+w6Kba597dsUyeC Tb4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687854487; x=1690446487; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rGkxfIlXXVd4eOlKO+oLehocpXpo7RbZWzh/FcRwcEo=; b=EMQ4DjTkvrcCqrfQcSNuRFCsB7WicZl7mzMYlsKyJfXKHBz6STrDacvxcmpVEgVxng eThszHI3oTOYUXhXazGzevaMmo9xy0eG1PXdOWrZsAzAwuZMQ9IcdBinPFykrHeCcAQ1 DPvXc+dEz/4RWkgxYDKgyrQdzS4qqiknOClFBuqOb7VT1aEgFynLWDvay9Pd2EuoX2ee a1kIPRwlOJXHjZqtMNgDgnm8MrZFRoWOxBZJRArZ9f5bjrtRO/tsr1MMBtjabs8QJBzC PCGJTIyCmpyBxiR8KDNSPxFlMORZU/SrPUTU6Mbw3J2XkBmEPfmFCFzZm6sIFtYsciky M/7g== X-Gm-Message-State: AC+VfDytKtYlx8YlVzuuwQKSbxIG+OzObOC/SMwltLBhJw5J8yoYINil NjKDo1v5/PSdC0AKWOBfff4MTOoXRIdsop+BmXgh7A== X-Google-Smtp-Source: ACHHUZ5o29H62hyx8EnN8GKeHWPpEAgm3+WVyEm9aHFVWmoQn3ipXBi17KXb4i8YtY364/aodDnhyg== X-Received: by 2002:a17:907:25cc:b0:989:450:e57b with SMTP id ae12-20020a17090725cc00b009890450e57bmr18027423ejc.7.1687854487780; Tue, 27 Jun 2023 01:28:07 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b009894b476310sm4253038ejb.163.2023.06.27.01.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 01:28:07 -0700 (PDT) From: Luca Weiss Date: Tue, 27 Jun 2023 10:28:03 +0200 Subject: [PATCH v5 3/5] dt-bindings: ufs: qcom: Add ICE to sm8450 example MIME-Version: 1.0 Message-Id: <20221209-dt-binding-ufs-v5-3-c9a58c0a53f5@fairphone.com> References: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> In-Reply-To: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Iskren Chernev , Manivannan Sadhasivam , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org SM8450 actually supports ICE (Inline Crypto Engine) so adjust the example to match. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 2b0831622cf0..462ead5a1cec 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -317,5 +317,6 @@ examples: <0 0>, <0 0>, <0 0>; + qcom,ice = <&ice>; }; }; From patchwork Tue Jun 27 08:28:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 698623 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 82C91EB64D9 for ; Tue, 27 Jun 2023 08:28:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231934AbjF0I2l (ORCPT ); Tue, 27 Jun 2023 04:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbjF0I2P (ORCPT ); Tue, 27 Jun 2023 04:28:15 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35792126 for ; Tue, 27 Jun 2023 01:28:09 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-991fee3a6b1so121742366b.0 for ; Tue, 27 Jun 2023 01:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687854488; x=1690446488; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=e68mLZVtnTJQrnAirC4XJAQKjHLzmQfv7r7QLDCXj30=; b=1vILM9GRpovAD8dYLESV9CWkwiH+8uo1Pou7xVOyT5XOFN+mRdPGH0/8rvIqFGsdpF XUT/Y5ub9mfmqag7qrwKQ3KRdY7NOPWkMXh8k8R5A06ATLySs/MAsgA81PwFBC20NYuQ rwlYHfaseUmZaVoK6f67FFNTxABT5019oDEVx+rFJnLiWe52nYMMlH3HxFOtKaAUfiO8 nh3F/RxJ11jz1T54vrAquVC3V5tATbWyRetC8pRE9CcOgw9MWGNmKbk1oL3gWaRkItei 0h2ycXdQDwjp46xYKACJxVMBDDvw7viO0+5y1j6XcbcoOFb2fNKpHT3Gi7oGNs/lgJUg KHdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687854488; x=1690446488; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e68mLZVtnTJQrnAirC4XJAQKjHLzmQfv7r7QLDCXj30=; b=VgZLYeNFRUGToc7KYPmNuLL5QwCJWdvgKLUrZN/9ZAbP8q3CT9xofg2TjJuUMb2SG6 F6Qe5wBbzO4IgtyYxbeliW4LO06R3jiK9PAAP6HLRnlVp+KaovsAX+Nz7UMf2hjsFK0x dxR54mBOsU2/G+VLS+/6Flswb27HLYcIgDIfoHrvnPmLO1xsZ1elFm8nDc+4mvfV3Nwo WoJW5gWW/1pUdP3p0tPBDQoZXTvrWpgXGegsIWwQMuTFdrFzw1ZHWzKu6V4ifK5bvwnv w4Lw7lDKpZHpMdVquvOBOldcoi2klsNVyfVOozykUIe67yPdGGsvobgfNxpikIdbLORX mhng== X-Gm-Message-State: AC+VfDyvYrv1/Bc61Qa196En91dsWwbClwK6jSmb6MOyfsExfbDlLNyP sBj+LWN6k5wqFhpFJNHFcNJhQA== X-Google-Smtp-Source: ACHHUZ5kpx1oG1MMd3I8ttPTZYgcrZqpBLoAuNLyKlQ9Z9T4RYvBJqarex0cG0DSVtmq2MTtDqOhEw== X-Received: by 2002:a17:906:da84:b0:988:f307:aea7 with SMTP id xh4-20020a170906da8400b00988f307aea7mr21687857ejb.7.1687854488417; Tue, 27 Jun 2023 01:28:08 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b009894b476310sm4253038ejb.163.2023.06.27.01.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 01:28:08 -0700 (PDT) From: Luca Weiss Date: Tue, 27 Jun 2023 10:28:04 +0200 Subject: [PATCH v5 4/5] dt-bindings: crypto: ice: Document sm8450 inline crypto engine MIME-Version: 1.0 Message-Id: <20221209-dt-binding-ufs-v5-4-c9a58c0a53f5@fairphone.com> References: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> In-Reply-To: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Iskren Chernev , Manivannan Sadhasivam , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Document the compatible used for the inline crypto engine found on SM8450. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml index 92e1d76e29ee..7da9aa82d837 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml @@ -13,6 +13,7 @@ properties: compatible: items: - enum: + - qcom,sm8450-inline-crypto-engine - qcom,sm8550-inline-crypto-engine - const: qcom,inline-crypto-engine From patchwork Tue Jun 27 08:28:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 697134 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 8002BC001B0 for ; Tue, 27 Jun 2023 08:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjF0I3B (ORCPT ); Tue, 27 Jun 2023 04:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbjF0I2Q (ORCPT ); Tue, 27 Jun 2023 04:28:16 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1AC26A4 for ; Tue, 27 Jun 2023 01:28:10 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-98d25cbbb43so643256666b.1 for ; Tue, 27 Jun 2023 01:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1687854489; x=1690446489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=j8uhdc0vGRhVZn7i76kQPqxuDPzGvhRMJMMuHesHRx0=; b=jA3lP92ZFZ2gqMx6lDW6O07ihkd3l3XzaGJxuC/g2wtwdnfKVTbxH8xMCmMBhFkAfn XhRWbXQmZW9VfqvKgM9V/ufYcXvvOcE0Pr7oqA1TBEw8ivcUkqoOPWNrFgbJc/kxkxw3 fyqQIMK2YqEJvvN/YHps3MSQuC08HiFJ5o7pDNwEVCWtwE1efv8ygroRZZlTrho0NP// 9EER9mVtiNQMkxuGU1pLiLj8pD8fcA4HObgafIcVSDg0PCVhE1Kfqz0au+iBg6dl2wRa cyN6klB5VHWvtkGIH/be8fHAYD9RHnPxEtksmQEkAZHUzs2YDxBi4nBDRKY6ZhLbl8E4 Asag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687854489; x=1690446489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j8uhdc0vGRhVZn7i76kQPqxuDPzGvhRMJMMuHesHRx0=; b=LqPOm1XP0Cyu0n9uv8xfVZBF531bc5SbC6CJIVI/ELy9GjkCsxUfNLLqpjITiNZ3WS fZ7ZP80x02hDYZC2JFbJ3HfBbtYDJcDEjvIkg+mk4ZyUliH+NP/p83wjUFOPc2iQdcQD WSRhrTDmBwqgIuyuUEFwgISMdvkjT0DwSVY7Q27mgsH7EpEo9EC1vu/GzL/jo59xlSOZ lgpxzXhFPx/9XBFaY7ArJEDve4DriSRYaqI6YEdtuUeAmS0yC/piscHS3OQ7VmmKF/Fp N+MeKs7TLSG+N4nSlSK29XMYGhcdKA8GDr1rA0wr4jbeRmH84D/W41h5LzMNQF93foet rb1Q== X-Gm-Message-State: AC+VfDwAleue5R7zzgHFdn5X2jHYmwUq4EHZWwMwLEnp50HWbxfqVzwX nhq8T1oO89Odz9yb7Hf+jNgTXA== X-Google-Smtp-Source: ACHHUZ4b8ooGad04xAZNZR46c7dDBigN6joEZVBjCg51B/ahsXcmBhiabKcqs0pCUO20Iz0Jg4YNQA== X-Received: by 2002:a17:907:5c8:b0:974:7713:293f with SMTP id wg8-20020a17090705c800b009747713293fmr29242940ejb.41.1687854489185; Tue, 27 Jun 2023 01:28:09 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kt19-20020a170906aad300b009894b476310sm4253038ejb.163.2023.06.27.01.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 01:28:08 -0700 (PDT) From: Luca Weiss Date: Tue, 27 Jun 2023 10:28:05 +0200 Subject: [PATCH v5 5/5] arm64: dts: qcom: sm8450: Use standalone ICE node for UFS MIME-Version: 1.0 Message-Id: <20221209-dt-binding-ufs-v5-5-c9a58c0a53f5@fairphone.com> References: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> In-Reply-To: <20221209-dt-binding-ufs-v5-0-c9a58c0a53f5@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Iskren Chernev , Manivannan Sadhasivam , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org With the ICE driver now merged let's convert the ufs node to use the new style. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 5cd7296c7660..79627117a776 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4120,9 +4120,7 @@ system-cache-controller@19200000 { ufs_mem_hc: ufshc@1d84000 { compatible = "qcom,sm8450-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; - reg = <0 0x01d84000 0 0x3000>, - <0 0x01d88000 0 0x8000>; - reg-names = "std", "ice"; + reg = <0 0x01d84000 0 0x3000>; interrupts = ; phys = <&ufs_mem_phy_lanes>; phy-names = "ufsphy"; @@ -4147,8 +4145,7 @@ ufs_mem_hc: ufshc@1d84000 { "ref_clk", "tx_lane0_sync_clk", "rx_lane0_sync_clk", - "rx_lane1_sync_clk", - "ice_core_clk"; + "rx_lane1_sync_clk"; clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, @@ -4157,8 +4154,7 @@ ufs_mem_hc: ufshc@1d84000 { <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, - <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>, - <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; freq-table-hz = <75000000 300000000>, <0 0>, @@ -4167,8 +4163,9 @@ ufs_mem_hc: ufshc@1d84000 { <75000000 300000000>, <0 0>, <0 0>, - <0 0>, - <75000000 300000000>; + <0 0>; + qcom,ice = <&ice>; + status = "disabled"; }; @@ -4198,6 +4195,13 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + ice: crypto@1d88000 { + compatible = "qcom,sm8450-inline-crypto-engine", + "qcom,inline-crypto-engine"; + reg = <0 0x01d88000 0 0x8000>; + clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + }; + cryptobam: dma-controller@1dc4000 { compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; reg = <0 0x01dc4000 0 0x28000>;