Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp239516rdb; Fri, 5 Jan 2024 08:16:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsa+sjob4Yu0FcnSg17LfXRzzTeO6i5Kb0UHHwl+iQPKZ6t/nqWpf6fpCAt5dRj+OLVnpu X-Received: by 2002:a05:6358:893:b0:175:2ce6:7328 with SMTP id m19-20020a056358089300b001752ce67328mr2904189rwj.26.1704471387698; Fri, 05 Jan 2024 08:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704471387; cv=none; d=google.com; s=arc-20160816; b=BZo9APx9cF4K8YuBsvsDRtA5d++KbSQoyXdBldkzKkVlaQuPGApcrW6BBWFij2REce SEQVYS8h0DwDxX4dbVLOKjFKeudMrmjIf++eFeaIf8xsFY/MwS8NGMC3pmP1q3Zl2IwV kg98RZV77DVuaVXKvBYsB3fYmuUkSIdRIQgrONnrhcZgsTMe2CAlzK3xpMkgqYYn+juh lvV5dTM5C9EPMNY0KSXxAtnLNpnATM9AEgl/k2/2HbrgF4neT1NIkKVPbHxiKnssMTdZ OMS5e3tqg2udDqVRL144WlwkvuNIkj5yG5uwyKhCO+A/XkQxilXHY5B8pCc0pjrybVwL +atQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=2EkrLPpfX68IA8d/5CPpZuMAmVCLu73Yzxl8t1E6w2M=; fh=Axo/juG94L2E/g4LgObE98QoVKnVnygKXzAdhjykaAA=; b=RDU9pA+6Nr/vH5ActnfkHTcAEXNDe7bD1Zo5xRU/J3AHy1jo7Z9+n5AUcF4RU2FRcU C8YVHFYhLoRikH0isIVcX2dTLwinLqxT1pcSQ2H/ii5RWL4nPuuarteESMJN1wAGC1sF GbMQE1COL/OBg4UO+YYMdue9MY74JVBxqoqs5roORw/v6OpfW1gZyO0LysSTRlGcbKxE pWHbCzhlu5nG/RT6PgnlmGTC/cB74tW7WhUQ9qCvhj7S7xFPgk14Uh5RxdYJpym9GCN5 H5SqxGo5YXis/nJ3UmXKn/mp3pHX8BKUnbC9ckYNKgTU0XRF1GYbOG47gVLdgl8FRipE Lfdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=U0SY9mNR; spf=pass (google.com: domain of linux-kernel+bounces-18053-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t21-20020a639555000000b005cd9600a04fsi1473860pgn.215.2024.01.05.08.16.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 08:16:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18053-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=U0SY9mNR; spf=pass (google.com: domain of linux-kernel+bounces-18053-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 56C4F283921 for ; Fri, 5 Jan 2024 16:16:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61D0B321B7; Fri, 5 Jan 2024 16:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="U0SY9mNR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 1622A2E85F for ; Fri, 5 Jan 2024 16:15:49 +0000 (UTC) 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 Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55719cdc0e1so1425945a12.1 for ; Fri, 05 Jan 2024 08:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1704471348; x=1705076148; 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=2EkrLPpfX68IA8d/5CPpZuMAmVCLu73Yzxl8t1E6w2M=; b=U0SY9mNRzOHLg2oAJuki4XzHlnHxFPPVkogg4Bsg9gAjcixsZ7XWE9nydc3ZOuiHsT Wl9VlAwNnK/OWl7qMZjd+yvuhS2ocl+0uMDZNcEUzlpXGhJqIXLqeyKlO2HHJFxH3Jvz 77AacKA9ADY95/ZLd/pWxo6ykcbUfYNIcs4aoRfNLXlQ6RLfYH0K6QSMP7GHRGac2F3R zfL5LlJoZvzwwzSTDfsW9ZH5UPidQ1miL0/CKzbsLHItD4HBf6+ztuMFZBGpd2HaNXbG ZFGykocPpCUUM4yo+esWqko0/GuA+BGj3SJpgSEbFWRtAXryW6aVv2bC3g/bQRDhfCcp rnOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704471348; x=1705076148; 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=2EkrLPpfX68IA8d/5CPpZuMAmVCLu73Yzxl8t1E6w2M=; b=LBIzj6SNzK69zaZgdmKdlA57IgVxBHvevjCT+2+wK+PtcGr9NvCT4G4bIZ8qJxvahh 9xXwUyvbv7+oioJ8Tlo0DJEAdPb+MOkAyEHt6hlirMpPgDHkayTJYfeZsycaUT+f9hHN 0COCMK4ZXZvfsAfhkpm7y2XM1sZwk7eD9DQf0TkiIdtM/OHi1nsMICnsRiv1gB8u2cJ9 iT52QU4PsXWELl19e9ytpC1mzLu8gqzme27VuKOnNDMNsSC2/eYrYb9ovKjXuvaeLaLz DdCUf6RfasNGQpr7oG6v+MZYVY4xw0/Oz5JnFwSW1MGjOsaV9NSXuaaNSLlp+XyU+9l2 agQQ== X-Gm-Message-State: AOJu0YyD/4FKr06qsrUAY1yTM/kR4p3ldggwpQRxddxHzs8mEVefr5Wu 5cHbSUHo5dz1yVmOCjdf/WOy/OWlTohRhw== X-Received: by 2002:a17:906:261a:b0:a26:d20e:35a7 with SMTP id h26-20020a170906261a00b00a26d20e35a7mr1259647ejc.127.1704471348452; Fri, 05 Jan 2024 08:15:48 -0800 (PST) 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 ft33-20020a170907802100b00a26a5632d8fsm1031726ejc.13.2024.01.05.08.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 08:15:47 -0800 (PST) From: Luca Weiss Date: Fri, 05 Jan 2024 17:15:44 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sm6350: Add Crypto Engine Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240105-sm6350-qce-v1-2-416e5c7319ac@fairphone.com> References: <20240105-sm6350-qce-v1-0-416e5c7319ac@fairphone.com> In-Reply-To: <20240105-sm6350-qce-v1-0-416e5c7319ac@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Thara Gopinath , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 Add crypto engine (CE) and CE BAM related nodes and definitions for this SoC. For reference: [ 2.297419] qcrypto 1dfa000.crypto: Crypto device found, version 5.5.1 Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 8fd6f4d03490..516aadbb16bb 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1212,6 +1212,37 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <16>; + qcom,num-ees = <4>; + iommus = <&apps_smmu 0x432 0x0000>, + <&apps_smmu 0x438 0x0001>, + <&apps_smmu 0x43f 0x0000>, + <&apps_smmu 0x426 0x0011>, + <&apps_smmu 0x436 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm6350-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x432 0x0000>, + <&apps_smmu 0x438 0x0001>, + <&apps_smmu 0x43f 0x0000>, + <&apps_smmu 0x426 0x0011>, + <&apps_smmu 0x436 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm6350-ipa"; -- 2.43.0