From patchwork Tue Oct 1 08:35:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13817644 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 8E55419ABD1 for ; Tue, 1 Oct 2024 08:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727771755; cv=none; b=EMeT/KypP7RwS96QajO+xmAjDo15kWPcN1MHxTCSDxSsxfMY1pLk9Rh1fCiq6srATWKTsvgVwoiOSFA1S43YnvskzqYl4QvoxFvUpOadGl5okIxQr6FyMdk4mpb+UMfNKDvl3KqfQNXWNPDdW2R+XCE/tWcgXbYfZJOL+EDd6ss= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727771755; c=relaxed/simple; bh=dLvkJEUL6VtVGQkABtezfzHLczpEx2U41WqDsA5yxdo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qbWpngzpK3SU+fJFO9YfIhQ9kD3lmUs3RSs6UXVvKebAevUJTh2BlLoYGFD+eVXhx+Y9fKR+7lib9niD/rWD+6Pf9uoYKc8T7/iPkQxGY/ecWbsPjJSZov4/rCUI4vTnPdUz9sDhvgi091X5plv13V1LNnsdxxLc637HnbL/2Ok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=EPi4l5I1; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="EPi4l5I1" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42cba8340beso36956955e9.1 for ; Tue, 01 Oct 2024 01:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1727771752; x=1728376552; 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=NAe7W/LhRmgxZ94rVeyNAaOD54tr0dyFQ/AJp3q7NfE=; b=EPi4l5I1wQduAnMuwhpsnYMYj6qjFjb+s3x3ox5j+jJeTX+Q7ZDorGMZz+QKxyCXBl u3EjKuBSemB5y9/lEBl6e3/kjMqWTMaFpXgp7MRRnuS6UDDrlT+QXW19yxER5+sbURGr kUnX61UM9IJK5IiIkoZkhnRDHnnZmRtlNFKBNtzFzUEnTHcNM32F6cR5ZSd4/GlpWdrk qUOJMMZ6m+c4QlisJOpSrNNeWf/YUjvktLcCjyVyn8KDFRdaJwXnwr+a0a+2NakTnHiZ fUO1QbDSc+MM9KXSGlq+9RW51hWlN2J+PszR1WHeWOSs0DwGhfsji0R2Z9cIvtZGbAqp 3IrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727771752; x=1728376552; 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=NAe7W/LhRmgxZ94rVeyNAaOD54tr0dyFQ/AJp3q7NfE=; b=C+cMjgKe6fAP1zO7M7yujMUF4gZIFRDoyuPHaW2SdVNzQ0xwMF58/yx9DUM3wrCYon l0D6lJlxmCZSLJer3zz1gBYWXMBJNmpZEAfLTDk3ujgLbOUIcCNHn47VKKTlVOznVoAw YQXP4c/c4tsshlvQm/ubcKqXVyThRKscdhWOnVWl5jLNRZSZQB3wUhibbSZ5qx/pogkK jOrKhUb8vcGZ/xYBTp6vOL+S1WBgzwAH41LlYoiZ+fEjfdW6arSMTIW3hlM5CzCgqA6+ bdfG4ONbjb9aMUxAf4oIKPXNb5QzGX4ECE3+ZJZ+GQjwm+ULawEZpoZ6A3IzCMwbCYML qWdg== X-Gm-Message-State: AOJu0YzNPEda4UtdshibBjGvJVcCRd2VmqOwqZE8qwBPK0HsHoku3aVR 3Z/YCsZnJEvcpsni0CB+qYyPteGtSrE7d41V69oc7KBdsWS5NBS5Bwojl0rajA8= X-Google-Smtp-Source: AGHT+IGTc5PdLgxOcB4mgMUK+uyG0gMxgfSEKwlPwrDMROsOXPTseEgNxu923yzUO5AkovZ84qGJWw== X-Received: by 2002:a05:600c:3c91:b0:42c:b7ae:4c97 with SMTP id 5b1f17b1804b1-42f7137bd74mr12815675e9.11.1727771751811; Tue, 01 Oct 2024 01:35:51 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb1d:dc:7e00:b926:7e5e:6e5b:896]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd565e881sm11231406f8f.44.2024.10.01.01.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 01:35:51 -0700 (PDT) From: Bartosz Golaszewski Date: Tue, 01 Oct 2024 10:35:30 +0200 Subject: [PATCH v7 1/2] arm64: dts: qcom: sm8650: extend the register range for UFS ICE Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241001-wrapped-keys-dts-v7-1-a668519b7ffe@linaro.org> References: <20241001-wrapped-keys-dts-v7-0-a668519b7ffe@linaro.org> In-Reply-To: <20241001-wrapped-keys-dts-v7-0-a668519b7ffe@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Om Prakash Singh , Neil Armstrong , Gaurav Kashyap X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; i=bartosz.golaszewski@linaro.org; h=from:subject:message-id; bh=G/MbeLTD1yijbokrC0s2c0EyRGDKayzx4cP1dLSlqkU=; b=owEBbQKS/ZANAwAKARGnLqAUcddyAcsmYgBm+7RlISNdxOU5w3B+q5g3zeZQr1mZX75d2d2Op bBQBCW2pLaJAjMEAAEKAB0WIQQWnetsC8PEYBPSx58Rpy6gFHHXcgUCZvu0ZQAKCRARpy6gFHHX csEJEACUwVzRK8WCaNE9HY4J2E0pCltqZsaCUTrts+1+CZhrJgLX5wMBNeV0Mb9Xce67tca2rzI CDpl2Aw2Y9CxhFGeBWwisMEqtZ9Kpgw9bEEcN0eGnOeoBSQR+3V9VlDwrZPJtOVjBG6KJWid1Eg zH9CQ4fgImpWgssYm733WZIuCMaMaMeGg9BV0P3miBPBhI9DQTh4sYWP6wvxMFODGQLAM18pLmJ HV9kb5vTBoTnbfrteI0ZblL0zU0IvkNpyLsvTX4Rc03lqhddxA1mm/Uu5SSJ+4QddrJD4Zbr7cs JpEVHLR2XtwsZ830GooQXt9kdJ4ZxrA3L09epj3Dtg+XQEgh38d/eKkuwlaCMlw4+X5k8XYWYP/ HXTh5lJXANSm+2UcWAVQLHkRvkBcLIgffMJ6DHVi4MMqgWeOPga/zUo8OvPiep4Zq/ufiTlsG2Z evuSqnvZlD361vZUwt4i0PyiA79DkQThQe3NtPWh1ji8PA53+I3bfAtFK0MhA+nh/xSZVOJBELn aqRykXCj1JLgRNUIhLK49GBYhw0DLbLIGE3UDBoEi3X2HdQBXxhHhFOFAn4lajaLOsuJGggDsxY rKzmGFt6G35RHHlgLrQ9uDX8mAN7YTXtfZBL2GB7+o0wEY44BtKM/sqp8yb2cEfMDSX4TWEE3L6 KsW4xgmanaMZTrg== X-Developer-Key: i=bartosz.golaszewski@linaro.org; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 From: Bartosz Golaszewski The Inline Crypto Engine (ICE) for UFS/EMMC supports the Hardware Key Manager (HWKM) to securely manage storage keys. Enable using this hardware on sm8650. This requires us to increase the register range: HWKM is an additional piece of hardware sitting alongside ICE, and extends the old ICE's register space. Reviewed-by: Om Prakash Singh Tested-by: Neil Armstrong Signed-off-by: Gaurav Kashyap Co-developed-by: Gaurav Kashyap Signed-off-by: Bartosz Golaszewski Reviewed-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 01ac3769ffa6..5986a33ddd8b 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2595,7 +2595,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, ice: crypto@1d88000 { compatible = "qcom,sm8650-inline-crypto-engine", "qcom,inline-crypto-engine"; - reg = <0 0x01d88000 0 0x8000>; + reg = <0 0x01d88000 0 0x18000>; clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; };