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: 13591374 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 008F931A60 for ; Wed, 13 Mar 2024 12:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334415; cv=none; b=ejEA6kFks1ofa/d5KHK10TP25Sd3hvNDlc+F/fInBwqMttd1eyZ4vNl0FnSdkKqFS27WLgcj81mF7jZWgg7vWLT5752HjbJwYavWNvisM/ptyz0+85OFNwPsgYKgBAAaYu91bXAVmGoEnbcX26jzYvttSVhHfIgUxGcwyW+BGLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334415; c=relaxed/simple; bh=BOImlwNyoJ5AEVgrpwnc7YVwBPYRKZZ8fF2h/ivvZzI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=flIGJsJpP/F/1Cr8yB5aaTewDav5/6yJtUg4CbMieUdvbGTnsNDW7PUqbz2+rx1Es4fDpFpdxDvADpbFVV1yDc9LGH4OYpO4oK2JpuDE8BahPW7OOrMiVM3XFqZ3kH02NtFxDQin1LpojTtSYwBrUBK9mbwCETBQKfvPzx2sy9s= 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.42 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-f42.google.com with SMTP id a640c23a62f3a-a44ad785a44so669218366b.3 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=fcxpz1kzOQrUDEZuUVodHNDbv18Um5EjHNpaWIooJM/428DqkLlUQaa384MZd7TS34 BXAJ06ez0ZCm0QIhMNxkVaeGmiGDUcEBmSXmbq2jSoiy/ovSGs8ekhFWcjNQavd9rqN3 ks5oMyyrQquuNnm0Lv02q+KG/3KnUf1DDvzI4zYnn66lZedwTt3lBUvx/sPB9QdXFa2l ic3vdiiLqvms+2lm69Ae9EOX7a6MmETcFVyazh5x023M8LmW7MQIUCbUkanrhtoP+H3z s08EJp6FmvMZ0UOtuPnfTqN/+olGkC8rsBGTepKREX3SWo/Rjg9NjEEeZHPF1mG12tsu jJbw== X-Forwarded-Encrypted: i=1; AJvYcCU9Ifc5cPNa15CPGyTD7u6iL1mthqDWK66IxPBRO0CRs6aMI1taoPcbN69G5ZL9i4SwTw5baXvbrbYjLUAAeQXfLEAcKgexPAoIpcQh X-Gm-Message-State: AOJu0YyMtqv2aA2jf95xiv4EvqjUlJ5e12NGucQ4Qk6obK2NidvMn8wo UKRl3qy0OUoQ/v4/My7J/K1ZZnGNqUfHngj3j/uvmu4A60mW11UdAZfHalUX9OI= 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-crypto@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: 13591375 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 355783E487 for ; Wed, 13 Mar 2024 12:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334416; cv=none; b=D9DPsdln/EP6gwa/KDm7FM+moeG89fhXCWsHb0mMiNZBU+3fizzs7TKimp3ZpDYuuQZbWx9uEC0mZJ2qi7Xda12MyM88BszYL3Qh/kw3u+obR+EYOyU+cvk43A5veFort0xvT98fw6Hlfk71cft6HWHZSp1oVUVOaYgNywCX0QM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334416; c=relaxed/simple; bh=t9ETQhsMi3JCo6L9lAIlwLKX3YACOoMJvy5t+4f3Db8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bYiLvkZqsFYwnSht6ehGT61yXCQhbsEZGCQ3ZiqGgLToxVFvjDjzHEq28Guiy9a+PCBcW4/8C5+fbe8BITcaQMZnsFa7RYJha5xy++NDPGR5atvNLsH7a0xIRXTGLTDK7HJc4buY6485JHpfKRjTN658BJj/bJ66l5+j2g1B38M= 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.218.41 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-ej1-f41.google.com with SMTP id a640c23a62f3a-a3122b70439so844602066b.3 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=d90slVm1heYJ9JdCgUKrUkhdk0lqCtKnWVEacTjABe3esNRZtg1w8d/erMNhpKe9mi tKSSTG68UAyp63e91vj6vVQ3cB/CR4LR2QxTx0wBIIEelY3CEH467NCTCH7LeHdP8zAC SGyc0a0XdRi7r6+R0CXUOSwXqZroCeR0qmaphh3JojFh6H0YqYao4QUQutHdPHTfn13e kA0Q0rSBYdvQLGR5VYU60J4wIRcZe4rpZ5eb1KOMAWozmNGvJFjQYqPkTWFQjy3NRHr0 XKHkjvE2rqzA5pvdh1inWr0IPAVDFZUy/Y0/LYAbJiehFbL5y/UzIx1u5v1PmcDJqMje mTQg== X-Forwarded-Encrypted: i=1; AJvYcCVnl5s9Jriw95IaubMsnoGc9YtXRvpscoGTrJNRg6WC9o4llxl9Man9U3zkgKfF/W2wDSlOz95vEMoNJaUIJ11N7B91NTprbhYs1Jtr X-Gm-Message-State: AOJu0YwNT4BSADCTAcsKxc+2cycM9ro/juAnjQwyiqP2FYykmBWMvXlF rqTcYgYGHlDdi9ctA80nhkFqJMp0dpTFtnLFpWaXHp+a+7EMpBA4Kk6Cx0Wm2G8= 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-crypto@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>;