From patchwork Wed Mar 10 05:24:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396672 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93107jai; Tue, 9 Mar 2021 21:26:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXuS02lV6XAKP1Joa/W899LiHZ9GkE7ac/hAYg6Zb0Y2oUfOcmb/PdHRy1noAP3iKKWWlq X-Received: by 2002:a17:906:110d:: with SMTP id h13mr1699698eja.357.1615353979512; Tue, 09 Mar 2021 21:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353979; cv=none; d=google.com; s=arc-20160816; b=nlA5uN8ow+K2ZQKSSJcqy2kv5m9np4dYgF6GHGgCBjkJK0W48hdL7kI9zFJ5u3u/8F Jx5nZnzUjhM+Sb7I/eU1RpYImbQYZJg0xZnZEEdNl5pOoI60nJqK/HH7aedSizzYJlbC VAANseCbvCKc8oD7kYvf2kn8AOgy5GQx/y0GkrLw86ycYJeimAuAvia86YN0MeK7Avb/ rc8ZNbThjYbzXI/0yL9JRteBTBrIMn16glpuoWHPnpGrU62eUHqPLyrfrBqE0BnEs11s 2/C9lY3r1Y1Xbk7IrffLIoE8+/+VaiYL7al/MvvvFAHwSLWb6XxhCto65wg1ztKAreac ouZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GVkcidVr+dQRgdeYwXPMC77EhnCPIwmcpaqf5tpCWzk=; b=N/QWTXWm2BMXqNw8YqhnmmfmZKJmhvet4S4dL48ORR7UKtfJz7iYl6kSD98+91ytFu r58H0cYA74RxzNp8f/YUmJBXjEBK68Lq+6dUmyDyDFSKmcMHYaGxPZ+UJhIkP+m1Cd09 trkOaANh4H+g3g52e3adAiMtYzBHTtLXuwfE6ppPoEinp+4zeNiv2b7zOk1kj/8G8SZG 8jVTZ4DQYwAqpJT/33/DkvG6uDPnaNv92vBK/bUYxxEWOHGaB/8XDIswC9XAaa7NddIU N9+XMXpgf7AX0dvU7I684780YRx3GjuRhgo6vLulgFTOCBTP0wLg3H81pe135wesTd+Y vnlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LqDaiMgD; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.19; Tue, 09 Mar 2021 21:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LqDaiMgD; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbhCJFZq (ORCPT + 3 others); Wed, 10 Mar 2021 00:25:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232236AbhCJFZn (ORCPT ); Wed, 10 Mar 2021 00:25:43 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9308AC061762 for ; Tue, 9 Mar 2021 21:25:43 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so6841491pjv.1 for ; Tue, 09 Mar 2021 21:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GVkcidVr+dQRgdeYwXPMC77EhnCPIwmcpaqf5tpCWzk=; b=LqDaiMgDgkwNzNyIeZZmwTTGVXbbH5JaioyrYI/naE53D3WpY6nmbab8SzY4dq4uPp b5IQlKv3apOMbwrUxEFs6G3m1MrYfvz00XcuWlnHyTaLlcLqfUKW80aZ3/Kn8gzyU9cr 7GnbIi5Kp2E4QFnPdpJCF1LcVyEWsuTFcAQGr3S/BkkqH8KTbX0ScYLe14JcsfmE+4JU 3g34fxCIiQiW+AinOXiDvsm6LpBIT9RTcIDCRL5W0wjw2KNl8f6B4cczyhKLu7mjT/4N MLGps+LYImgxbX0xraB2bKiQ7hJ4Ygp7Kal9HjC3cZJTxnTLj/oj6rKQOkarmNV+PFzz n/0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GVkcidVr+dQRgdeYwXPMC77EhnCPIwmcpaqf5tpCWzk=; b=eiZibIAEOJECDZoI8bFs64JtwISgVqWAfRPMXRaYzNMbSOl7fWQSwzLgwqpyz/BMNK 9eRAnOpKiFCJCZ1K/iDzQhzp48rPbKMUuXxxGT2ExyB/9ET2QchGtxj72Rnde+n5TSBB IA6IOjT4UrhstqFDnPtuI1Tf5MEw96GzSy2V993EWActlbPCXRUk4moWhXMc1ILZvgD8 p03K56FArNJg3tmmRRkyUtOyWZs/BNCA6CxKw7JPPI9BY4TPh1cZjn37LFobopWXFBtB h5GbzzHW5Bn5DKs5oUugAdsJgBZG/TvaDhvQCBR6LFfwPvd++yItaYXz1S50f+4OIsPY 8BLg== X-Gm-Message-State: AOAM533CIXmMf45HLs4+jkau7EfYLKIjBEkVi39733Rc4xPdCzGhekRA Vhs6VHBvWaPAuus9mutG4dPVkw== X-Received: by 2002:a17:90b:2304:: with SMTP id mt4mr1777287pjb.179.1615353943198; Tue, 09 Mar 2021 21:25:43 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:42 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 3/8] arm64/dts: qcom: sdm845: Use RPMH_CE_CLK macro directly Date: Wed, 10 Mar 2021 10:54:58 +0530 Message-Id: <20210310052503.3618486-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org In commit 3e482859f1ef ("dts: qcom: sdm845: Add dt entries to support crypto engine."), we decided to use the value indicated by constant RPMH_CE_CLK rather than using it directly. Now that the same RPMH clock value will also be used for other SoCs (in addition to sdm845), let's use the constant RPMH_CE_CLK to make sure that this dtsi is compatible with the other qcom ones. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 454f794af547..54ba95dcb35a 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2304,7 +2304,7 @@ cryptobam: dma@1dc4000 { compatible = "qcom,bam-v1.7.0"; reg = <0 0x01dc4000 0 0x24000>; interrupts = ; - clocks = <&rpmhcc 15>; + clocks = <&rpmhcc RPMH_CE_CLK>; clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; @@ -2320,7 +2320,7 @@ crypto: crypto@1dfa000 { reg = <0 0x01dfa000 0 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AHB_CLK>, - <&rpmhcc 15>; + <&rpmhcc RPMH_CE_CLK>; clock-names = "iface", "bus", "core"; dmas = <&cryptobam 6>, <&cryptobam 7>; dma-names = "rx", "tx";