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: 780114 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 --- 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>;