From patchwork Wed Mar 13 12:53:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13591378 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB8E82BB09 for ; Wed, 13 Mar 2024 12:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334417; cv=none; b=Kb6y9LdmzmiCQRyDaspiBrmNsaRdjpTqevrn4rA94oKPPG5DZCztiQcRPbc2oQS7SYWTyM5YL47Ut/M7p9g4KJidiKeiL5bv/w1xQFt9W93fiSCOCcS4yd1hr3FDpYzLnxtjdonsGqh+JJSZSsp6pg77WbRXV0nNiQktWwoBVDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334417; c=relaxed/simple; bh=BOImlwNyoJ5AEVgrpwnc7YVwBPYRKZZ8fF2h/ivvZzI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rvBlOphdGEX5ZOkVLKHF6eab4Tk6QJKa+xmUF8O6gpLfG7/WUtWb1zYwCwNwClUI+XSghM7leIrv5LFB221vhN4P5yJ10Ub8aMGX+cTDrAG9hAwyaynJEQq+5ca7wScggywqzFxZAuiPJmo4Q8Y70RkIDM27GXedDgnQFD5Tsd0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=hjylV/G4; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="hjylV/G4" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a28a6cef709so774844766b.1 for ; Wed, 13 Mar 2024 05:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1710334412; x=1710939212; darn=vger.kernel.org; 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=6DpoAK2MGeShZaBJVW2zOw7CLQNlS0yCUw71mzlZTGE=; b=hjylV/G4OIdXDDBvC2h5l+/VhcxC8yAx7YqiMMxGKnoVWDym08k+EPFznaKFwvt7Rz RgwOwTbF/pkCEKQIs8AYBgEmYN1VJtI/bzPmzuQAMqRmTS0FYk3CG6JsvFrzAHzn7hLL jC68wyOu2rvPWDxeku0ExiuIAZghyB+r3dFOMLFOBzyzi9cBVdV0/8bYsZRqhfhdAcwW eqJ86eCaz/af/b/TkRVQgPpvLgC+C/8wV9ZSGdrWx3XGwPZj09+uIcQ5SQZoEcDklhMN 9LOFbAep1yoZFsCnmzpLszyCggfQxzJPJL8xCFaoD0cPnHH7ZQju+8hCAgXMg/nNz7OO X7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710334412; x=1710939212; 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=6DpoAK2MGeShZaBJVW2zOw7CLQNlS0yCUw71mzlZTGE=; b=C8OmsYZEwkJ1CExgDfE6IglCAQEFpnKmid+wIWAhguLPyo6X9PMkxIc7LFSf2qYge8 S+W4jfeAgNHjrpRSBRea1LMFX+KzPDtc3I7iSTcB4eMnl4oG1cIRsaj5iuCDaf9hTWec OYGORKfZQiS19keedZoNDNb/m5+hsPdKqMBKDrQ4rx8EkbH+EdZqaV9RSS/P73o1/tsG v7Wx3Rs6h7YF7l+FxxAC1a24e9pGboobN1OdJKaFxl5aKS54wM55Uy6uab9FwjtLk6RV Gq+WkZDe/5gvF4jFde8OCxeubY0eR2sBa+d5EzOZpQPvM/qIfU40iczmUoklXJStXY0W U5lA== X-Forwarded-Encrypted: i=1; AJvYcCVeO1ZndGImMO1C1/+q0jWRiWpV0mrKKlMN+Zv5U8PPt6sFz7eQcEgmNtS/zj+nUPIPWcACvN+Hy98R4mA60cBs+55G3JpCMki4rhkX4g== X-Gm-Message-State: AOJu0YwrJC0mLq3MwoTrr8f7u0ZEZrnU3XF7HTbOc9e0HvkRf045sWEi ifLoFuiGGb8c7Di+t4ojNMeZHLiE2MzXqAHsbUTyyGw/TziMiS5c/yFZi/7X+Dk= X-Google-Smtp-Source: AGHT+IH/ps6t/lLUvOvsCHVMhjD0YxuS/qxxMdP+Nb8up7OIPs1mUG4mhDYnh4qFngYrG9bTsOwtLQ== X-Received: by 2002:a17:906:c147:b0:a46:1d4b:d81 with SMTP id dp7-20020a170906c14700b00a461d4b0d81mr7264249ejc.62.1710334412318; Wed, 13 Mar 2024 05:53:32 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id jw22-20020a170906e95600b00a4623030893sm3249098ejb.126.2024.03.13.05.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 05:53:31 -0700 (PDT) From: Luca Weiss Date: Wed, 13 Mar 2024 13:53:14 +0100 Subject: [PATCH 1/2] dt-bindings: crypto: ice: Document sc7280 inline crypto engine Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240313-sc7280-ice-v1-1-3fa089fb7a27@fairphone.com> References: <20240313-sc7280-ice-v1-0-3fa089fb7a27@fairphone.com> In-Reply-To: <20240313-sc7280-ice-v1-0-3fa089fb7a27@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Document the compatible used for the inline crypto engine found on SC7280. Signed-off-by: Luca Weiss Acked-by: Krzysztof Kozlowski --- 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 09e43157cc71..a43527fb2ceb 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml @@ -14,6 +14,7 @@ properties: items: - enum: - qcom,sa8775p-inline-crypto-engine + - qcom,sc7280-inline-crypto-engine - qcom,sm8450-inline-crypto-engine - qcom,sm8550-inline-crypto-engine - qcom,sm8650-inline-crypto-engine From patchwork Wed Mar 13 12:53:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13591377 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3017227453 for ; Wed, 13 Mar 2024 12:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334417; cv=none; b=e9hAJ9I5+AIV+E9ln6XN7uEU4V4JcQTg12WLTDbqQNxvQ/MWn906s6aB/lamwVbZmfg0jzCzIyRmjJZ7STT/Xn+C7vkgqLI86fbmPHGeMBw6Gm7Fd1CEMn8+pRFQnS8cYV3dSIvl2RTJlp9YDzBXqQKGKGPaPolgpQN1ZbKGJC8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334417; c=relaxed/simple; bh=t9ETQhsMi3JCo6L9lAIlwLKX3YACOoMJvy5t+4f3Db8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XR5ViBC9MAjZI+sKssj6n3h1Tmk91dcNV6rq76tMiD69FGw4vfaU9OQ+biSV5qARLNfCzbxN5RmPwiQedcGT1Aof88Qgh+So7IJi+R9mhbSJ0uPcVnQZfcY/2OqaHwzKg0dX39MOSdPRZ6JWvpmLrdbV+QcbyCmjiOtuZ0Ery1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=YoTCUFbT; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="YoTCUFbT" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5687e7662a5so1603508a12.0 for ; Wed, 13 Mar 2024 05:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1710334413; x=1710939213; darn=vger.kernel.org; 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=bxb/4unMwiiw34slo/Lxt3H8AqpbzUye2nUxDtdgTWI=; b=YoTCUFbTX79y4w2cya5MbDUdpBP5YG6Ec9fKbJK24RprL5dC/dG67c9GrNNw0/VhKA 2Lg4GwvGSFt1ORNwHCGkO6M1Pm/Jc1L0kVUe49xlIazzitv1p+Sm2sJsYC4Rf+nS9Wvi MxB7mwGZXsLQPjwH3RJ4+loKY1hlUsXwoskwBhZ6KpGEtPdWb+NMtKBwC61RFZdLOuoD uqwn5ffC9C+1nY8Ns06j/vPkLL5d5LNLIzOHV3ksrIRMXTf7EaL3x+xOkHmJTt5LqyRe IxwZF6sB3ci+NbCwM9jYYofP46fO/tga0AKcMrvu/fns0cAuKrXPIHYOzex9WX59+8Qt i+eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710334413; x=1710939213; 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=bxb/4unMwiiw34slo/Lxt3H8AqpbzUye2nUxDtdgTWI=; b=YVQy7FaX1vSpZs+8VZPNioiH+sm/r7KbgEA302ymf4DYvYBh4q7mu5JytQN/dfQpsH iMkETKpBycnjz9o1v/fcSmj18s8goFS/VR+2mEwJM0osit+k9+hXlvfIzvQhAkhYFlsk G4y4AWAWxkAgO0zrz2LuAk0NutRwWxNIqC/I2Gw6n/ESQKT9ZMOpPy8gqOF0vNM9eGpH 4i8pDXCGU4y28wEMfliJv7Qlvl0FW6b/Jop0Y5xvQgR6tD0yQT0g24Hilee2rlA0+kPl QSHOPjeens11cRKxhFttUaOstqwL29g/ij1rrksEYCDofKkSimn4kASRshUn4QOPmaKT j9pQ== X-Forwarded-Encrypted: i=1; AJvYcCWnb0wE+itDLOXcc1YFL5ReXAAYid/7jkSXMqyRpSlorykIC04xCiJuuerL3UXyE5a6aJ/rEroviB56uoXN1FJQEJhARP4RuRp8V6qEGg== X-Gm-Message-State: AOJu0YxZbQC78WfAE/BH6mozO6+9r7PGhrHlFmv/H5ubSPPw/HkLqVax xFtseK4g9sc0tLBvSJxkaCYnQHMoJRcdhydjNyDfRgf1sBB8BDqVCMoxO5q9Wkw= X-Google-Smtp-Source: AGHT+IGZBy38RA1kd28N7FqIYB5/MHvNN1GPfLWolHWY4kG6L/symPCXVuU4L002dy3ms9tGKZ3beA== X-Received: by 2002:a17:907:cbc4:b0:a46:4e73:9c67 with SMTP id vk4-20020a170907cbc400b00a464e739c67mr2151230ejc.68.1710334413569; Wed, 13 Mar 2024 05:53:33 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id jw22-20020a170906e95600b00a4623030893sm3249098ejb.126.2024.03.13.05.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 05:53:32 -0700 (PDT) From: Luca Weiss Date: Wed, 13 Mar 2024 13:53:15 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sc7280: Add inline crypto engine Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240313-sc7280-ice-v1-2-3fa089fb7a27@fairphone.com> References: <20240313-sc7280-ice-v1-0-3fa089fb7a27@fairphone.com> In-Reply-To: <20240313-sc7280-ice-v1-0-3fa089fb7a27@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Add the ICE found on sc7280 and link it to the UFS node. For reference: [ 0.261424] qcom-ice 1d88000.crypto: Found QC Inline Crypto Engine (ICE) v3.2.0 Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 83b5b76ba179..3ea5f9cf040e 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2314,6 +2314,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, <0 0>, <0 0>, <0 0>; + qcom,ice = <&ice>; + status = "disabled"; }; @@ -2336,6 +2338,13 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; }; + ice: crypto@1d88000 { + compatible = "qcom,sc7280-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 = <0x0 0x01dc4000 0x0 0x28000>;