From patchwork Thu Mar 23 23:37:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 666298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03D7EC77B61 for ; Thu, 23 Mar 2023 23:37:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229847AbjCWXhu (ORCPT ); Thu, 23 Mar 2023 19:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbjCWXht (ORCPT ); Thu, 23 Mar 2023 19:37:49 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B642CC6C for ; Thu, 23 Mar 2023 16:37:43 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id y20so64096lfj.2 for ; Thu, 23 Mar 2023 16:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679614661; x=1682206661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+68XLJlMQiAJbakqRYHZICNWbFaukDSRyNz+AoqyBhw=; b=jwmACRoXnboV8q9fE1FsAs64uaJ8smLtrZqQzpO/wvqpYjZXxbWBt0OJ4DsnwkBl4Y FQTf7+HtVg89pt8FphOn9g4qXRFO2H5SD5Xah7haJ+rtINEKDr1WlZ2+pwbWTtXSiviK osxRuXfifA7VE0PSjbI7O2cb9exD/OSccJGM9Mh/1p/kxx5Ao867U8+dz7brsDv2mmGu RuAb//MM5UQXWFUIy5x92PnHujdKhuaHhB3mCn2Hj+pRp1aOMSliX539/xskdLkSp77O ob14kW445A4/ifPfG1ashvyOD6+595A6MDYaFXsvq1dpHJUrXElJGsEeI63h9aQHynvo TuGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679614661; x=1682206661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+68XLJlMQiAJbakqRYHZICNWbFaukDSRyNz+AoqyBhw=; b=eFIfesK5I+5VtflMFZN1GDT3aqn47b/ZgrakbnCgi0CyTDBOZjqPd5TebzFda4t4uk ACzswoMIBHimqN5570hgNgxwItb1rZ4vqz3kiq+kDNuN4EjbN+j5AXVkGUf4AYixd3rz 0/htXLdXpOeAKHCopxWhD/7bDw3AncHaVwGbMqnKP5R5QalV/gnnq3pTOsBUDxZa0Ol3 AoHufL0RnpbOm9BI/hAiOLd5ZD+sDpbRgE6HM0IGGrel1vIiaYpcDD05TqlGmrQJBYvC LNXn9whaLQzCQ+aKIK4aKbf61k2iw2l5A0EP3RW5oYslmhRL+CTZC+89AIHlbILkpPmx gSsQ== X-Gm-Message-State: AAQBX9epLRqxfj3bqmMsTJTxub945sxEVL6hR5Cn+BXdH76uveZ3Ch8a Qw3XqdY7s6jyptQ7iLAbMqgUSQ== X-Google-Smtp-Source: AKy350YXac/3/X8FMo8O7mW1GeLbcm/v9GdqyH6QFB6ytxYCPNSFRDArkX8Zfsx9jQ61znnXi5zAZg== X-Received: by 2002:ac2:4184:0:b0:4e9:d613:503e with SMTP id z4-20020ac24184000000b004e9d613503emr88592lfh.6.1679614661484; Thu, 23 Mar 2023 16:37:41 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id w9-20020ac254a9000000b004e845b49d81sm3105264lfk.140.2023.03.23.16.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 16:37:40 -0700 (PDT) From: Vladimir Zapolskiy To: Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Cc: Bhupesh Sharma , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: qcom: msm8996: update QCE compatible according to a new scheme Date: Fri, 24 Mar 2023 01:37:32 +0200 Message-Id: <20230323233735.2131020-3-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230323233735.2131020-1-vladimir.zapolskiy@linaro.org> References: <20230323233735.2131020-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Change the old deprecated compatible name of QCE IP on MSM8996 to new ones based on SoC name. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 4661a556772e..2ee28f9b6229 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -784,7 +784,7 @@ cryptobam: dma-controller@644000 { }; crypto: crypto@67a000 { - compatible = "qcom,crypto-v5.4"; + compatible = "qcom,msm8996-qce", "qcom,ipq4019-qce", "qcom,qce"; reg = <0x0067a000 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AXI_CLK>, From patchwork Thu Mar 23 23:37:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 666297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DC96C7619A for ; Thu, 23 Mar 2023 23:37:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbjCWXhx (ORCPT ); Thu, 23 Mar 2023 19:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjCWXhw (ORCPT ); Thu, 23 Mar 2023 19:37:52 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB452E0DE for ; Thu, 23 Mar 2023 16:37:45 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id y15so40685lfa.7 for ; Thu, 23 Mar 2023 16:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679614664; x=1682206664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jVIns/0vdM7AwgpqxnEx6iUpxqqxllZdFf87dpNAnJU=; b=abBKd4ZDlEc5hYjhxUul+uzqGFPqvc3EP4UFC3cp0x0DSsIaB6aw9fWew717zqcXxH vKLA/fQ46ZdcfwePS6xl1Vb4knN4G5Vsq0RhBPS9uUelXktp63OEHLHWstYD1fHpdaDX X1ZufydXn2IwG4GVbESHJChXfuqDkWTk+MzMFaQFt+Lp3sa+klfqPKOadNA/ENKXzdlI Q3rLosO5ORObCV2JhiMLw/Cr5ZPjoZpYoMzAGDMVZaBZuK3ytJ2gY+WL7UdmZeHCGRUa YQv/8DM/yQ5lZmY+SFwGC2dj/U3IeHjWG91gG3BTOWfWCIHEcwv58dQMB5kKH8SborDr ZOVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679614664; x=1682206664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jVIns/0vdM7AwgpqxnEx6iUpxqqxllZdFf87dpNAnJU=; b=Ino4+yKD+MJtj7iUiHlG/TUy0wGMQUNMgmUf1bFL2Z9faedN4QewIbysSDF5rNGZPJ 4u4DwJY5BWbSIrtCm79kikGgUJzWZ4pTvrLQATO66gGTE8Z67RYipzhP+6EsEaYWFx2M 5wq/RRj6CXUFdE4OldGHW3nuXtymkmFrMsJJpbwAJXaMXbgF1rifKo/L/5FjOQMaASUS 0xpGWZX5nKkb75gJuEyWR6f45K7pKjlxv0ngWM+RleOhR9JrdFMhdc+97mzpXQjJCEGV uadd7FlPC0+gD90Tj5YyG/2hTMitxo4Ixr1IIG+rNqin1aXIj3RZRszZoMm7tR/V7Zf5 Xn/Q== X-Gm-Message-State: AAQBX9fHHB2xChe/7HThbT9xwpEHWfryvfWjGD/e+xKLnIo/kDnJV4sF +GuoedqBX5VhpiJivdAS/Y5Xpg== X-Google-Smtp-Source: AKy350YdL+5thge7GM/3A38JSAtVXWh3DVzg8a9F2x1ccun6FvWXQlHh+n8DLDNb8Ta6HFY2ZsLEmA== X-Received: by 2002:ac2:4184:0:b0:4e9:d613:503e with SMTP id z4-20020ac24184000000b004e9d613503emr88625lfh.6.1679614663880; Thu, 23 Mar 2023 16:37:43 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id w9-20020ac254a9000000b004e845b49d81sm3105264lfk.140.2023.03.23.16.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 16:37:43 -0700 (PDT) From: Vladimir Zapolskiy To: Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Cc: Bhupesh Sharma , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: qcom: sm8250: add description of Qualcomm Crypto Engine IP Date: Fri, 24 Mar 2023 01:37:34 +0200 Message-Id: <20230323233735.2131020-5-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230323233735.2131020-1-vladimir.zapolskiy@linaro.org> References: <20230323233735.2131020-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add description of QCE and its corresponding BAM DMA IPs on SM8250 SoC. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7b78761f2041..363818da792a 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,30 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x0 0x01dc4000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x586 0x11>, + <&apps_smmu 0x596 0x11>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01dfa000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + iommus = <&apps_smmu 0x586 0x11>, + <&apps_smmu 0x596 0x11>; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>;