From patchwork Tue Mar 28 09:28:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087380vqo; Tue, 28 Mar 2023 02:44:54 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrPk/Ahy0hB4fOkTcIK36ajl6TNHA3IlfDLyXyDQywosw3zhCFcfr8g6lX+cPvgnAkBbDu X-Received: by 2002:a17:907:9841:b0:8aa:1f89:122e with SMTP id jj1-20020a170907984100b008aa1f89122emr16047127ejc.39.1679996694361; Tue, 28 Mar 2023 02:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996694; cv=none; d=google.com; s=arc-20160816; b=JZ4dGEnQ5pTuGjMNd1692cmJV563umEDykPkx/hwep+Qbszk3zd9yE0minxT1CjUgk Ew1/KBqyTXvdjXJSmYDqkBwuA82BQAhBFwN8YDLDviZ/orOoklnHIkaGBZSDP500UHUR pDijgdljhQD3HMMSearuuVYplmJC7rkSea5t+1PV56ABq3Es0XRkuTSTfVYeFe2QaJ0E ihi5USWZ17qJTZU3SCSVMxKMHwl+GyJ7UA4JXm6y0QpGFFdctfq10EIMeSjFXA/Z2YF2 XrPB6LkgPjziw1j4sU98N71mpiSPgUC7ZQ65LRaruQ8cZMB+OaB8Az/NTo9KDxBpM1Xn wtQw== 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=RRg6AHw8FlLkFxgD49xfA0rjSl034q4z5dcNy8BgsSSYOCdvV3YXYK1O/ujUNkG1fA J5eUAr2WkmsnLiwlYEbTBQVPM14B1AtsKcTUvQ1XkLdAw/76TaO9YO8svNZtyl4VHOsG 0gnoV1evUxOhp8NSXZ0EvYwBcpZZVWze0nYszEsMbsBxikyushjjI3XUtDmQgNmFtHSm BE8u2CMkgoBRBEVhD5v8KxCgarhi3jNtQlQHNPTYPh0KLciB2Bps2OVbf5JCI99An5Fc c2L8S3vru3wLkB9yieV36fJ2RQUpqO2qhXPQcCowP2WpFnWONX2paYUJLsDH5h91nphR i3qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U1IK8yQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a1709064cc600b00934a633a6c1si18709132ejt.228.2023.03.28.02.44.31; Tue, 28 Mar 2023 02:44:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U1IK8yQ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232721AbjC1Jaq (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbjC1J2t (ORCPT ); Tue, 28 Mar 2023 05:28:49 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763BC6196 for ; Tue, 28 Mar 2023 02:28:30 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso11870808pjb.2 for ; Tue, 28 Mar 2023 02:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995710; 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=U1IK8yQ2NW98GIn4MvYVjixBktX9jcju6v5HILaODZWe9oY70JJoOpFtFeFoN+yRvO mbAK9Q63jpslAhukHz/54xnuX9D1eIiQwC50cBoYp3dnB4Gb26k7mUH3pIWrICRICh1A 7kQrAxDJpKYMLRKleSJ+UmYLwlshtosBD+c1Y4jeK3RLr/LqLcOj1JW430rP1jV/SuMj Eomw5JsHz2LlGP1+l8Z//Prlop0ztbNCHdthVmu7siXOJMhQOyTVkUerPKVTS2FUS6SY StlywhVEE5Fi2O30YUNVLgyMUK2a2Laz33rHemsMEVRfN54AnUMCWxARveA0G3YPVBaJ JODQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995710; 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=pFAoJSnqZBUAk78e10vKTSNnptEZWrjNuAnNY+7Acq75hQoIIdobp5p6f3NaTtfphG DsVn/F4OXIr5Gk4W9bOz5Tn012MCuClsDQqG7w87L0CSGGJT1FrzluMN1NJZe/skmlpL GvXfg0dZDc8385Y0MOKOBISkQMqMib3jnqNt7vpH81mTCqYZY52gzsyl4FPe9UR/Dg+u gSNFYRq49nD6PxulS/J00thbpkZPVNAH2JCOV8q5YrQcktQq2mS8QJ0J1X8J4rozhklM cTDo0moVhgXzqonoH3gbP6GquhI6ZF53brysMojjmX9+Y7pMPGtctad84npG+I+tDeYy dBWQ== X-Gm-Message-State: AO0yUKXjEgPWNhUsxKztOFdeByeA86b0wDaGNlshl+y6Wk7g4n73nukC 6SSGr80SetJXcqedHIx4rQGnSQ== X-Received: by 2002:a05:6a21:3381:b0:db:5e69:c97d with SMTP id yy1-20020a056a21338100b000db5e69c97dmr15054161pzb.25.1679995709885; Tue, 28 Mar 2023 02:28:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:29 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 1/9] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Tue, 28 Mar 2023 14:58:07 +0530 Message-Id: <20230328092815.292665-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761604213442021383?= X-GMAIL-MSGID: =?utf-8?q?1761604213442021383?= Add new compatible for BAM DMA engine version v1.7.4 which is found on Qualcomm SM6115 and QCM2290 SoCs. Since its very similar to v1.7.0 used on SM8150 like SoCs, mark the comptible scheme accordingly. While at it, also update qcom,bam-dma bindings to add comments which describe the BAM DMA versions used in SM8150 and SM8250 SoCs. This provides an easy reference for identifying the actual BAM DMA version available on Qualcomm SoCs. Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/dma/qcom,bam-dma.yaml | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index f1ddcf672261..624208d20a34 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -15,13 +15,21 @@ allOf: properties: compatible: - enum: - # APQ8064, IPQ8064 and MSM8960 - - qcom,bam-v1.3.0 - # MSM8974, APQ8074 and APQ8084 - - qcom,bam-v1.4.0 - # MSM8916 and SDM845 - - qcom,bam-v1.7.0 + oneOf: + - items: + - enum: + # APQ8064, IPQ8064 and MSM8960 + - qcom,bam-v1.3.0 + # MSM8974, APQ8074 and APQ8084 + - qcom,bam-v1.4.0 + # MSM8916 + - qcom,bam-v1.7.0 + + - items: + - enum: + # SDM845, SM6115, SM8150, SM8250 and QCM2290 + - qcom,bam-v1.7.4 + - const: qcom,bam-v1.7.0 clocks: maxItems: 1 From patchwork Tue Mar 28 09:28:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2085908vqo; Tue, 28 Mar 2023 02:41:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YIuwEqkW+/XA3qRKgFgIJzvLtlf/gjLE0iiFoopUfG2y+q+cqtHZKI/xkQt3hGVQ7l9P+T X-Received: by 2002:a17:90b:1d01:b0:23f:dd27:169b with SMTP id on1-20020a17090b1d0100b0023fdd27169bmr16492614pjb.2.1679996459815; Tue, 28 Mar 2023 02:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996459; cv=none; d=google.com; s=arc-20160816; b=ZGhdGTk+vwcI0z1Qx7+t+lzHoqoQJby1t6IfRgXhp1OgglPla1nHvttU9lqqTul6/7 2RbRzEU0Y+jBawKMFE2NKKxLFaTvdJbXRIARktLeNrOMpannTa/ayxoabuej3VHKR8IC 7U+ieoGXCL6H45u6H1zGJ1wemdzVgOQu4zJ+bIvjBwHQys9GVNLLsmvzllRT8KJRoHgM CnPs+sJvx1t8aHhUedj6uAZlLCdre6wUEsHwpgcJedL1MsOdMQ//3cfa6NPGfiMhmNND DE3Z01SU4qqsXnHRltskGae1Az1p3d1ExIAd+w/db2YpQQZAreH0MUDYNQwcjcOuDzTu dIaA== 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=SZLAm+aiitUj2x9IQ6nPQPLy7XqdkoMTmWg0WYMB7PA/frkxalqo9DrXT8rFrH9Dnf +lyBKgyji/oHxYHikzbKtzvIX7W/EnxWS3vaVHNgYZuG9yzLaEwqDQEudBagLMJduoP9 Gw8n6XgsSSavZ/4jXRXquwi4jZUlim4LPgaO0546yYmTumFkJBO58Mmf1nSl8h8Tdygo U+aEy47erP0WDtO8EFjSKRYey2F2tMKQAuR4Qjs8Ge7dfXPOvDmOWvV2IBqfm4l4Tsy3 AojvxUX7NTZXgQnFMTRPp9HZ3KF/tnrA7kCEGFnB22URpI/G7q+YARweuDUbnPxsAEs8 XlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLDzLsHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a17090a868100b0023fb878c669si8156991pjn.6.2023.03.28.02.40.47; Tue, 28 Mar 2023 02:40:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLDzLsHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232723AbjC1Jau (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232532AbjC1J2t (ORCPT ); Tue, 28 Mar 2023 05:28:49 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17CF86590 for ; Tue, 28 Mar 2023 02:28:35 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id x37so6814964pga.1 for ; Tue, 28 Mar 2023 02:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995714; 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=TLDzLsHpth8IUGtp3w8bjw8rLsSWIxS8ABFxLrfGTYx0r+LNV2lWq3Fc5RoKn9h+9K M2xGXjBXY74DTbX9FAQC+vVrV23FZd8lUp9rJnS/6Bw4y0H4h08J9TkxH464A2r2yjD7 M8Io1MUbk/JQRJiR3osXoJTbREMOXA7Nlgtp4cEkO99jT1l/psUYQL5rSm0sM4azhUhg C/Hr/ya9ZTamCOqwKgHcEmP4zX3sKvnZEkw/0TGL54k6JcnreNLQ8Q6NqDMaggzrtHsm 49jMmjt5yb+uCMSWPQsscFssXWWa9AqhNbgCSVrAjva0uNJjoCUhUeZUZzjAaatiWb/J HiYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995714; 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=x3kaLdKfy0ZHZD7eIemeOaAme1tubHwBnh9tDhbzBSNz7FRAET57xTDD9a9hNBeh14 8M6sdIpS4gPxETrWhtLAcunU3N6MjSD3RiQgp8SbQifN07URr0kulY86HQQTwRlsMrh3 TPNHXB7Vwsv69ha+Kyr9ZgiPlzVMv2eIlNnFe4W7wLq9yQxgQP10bkaflMnuD+gG4Grt siqlQU9W4zpF/RaqCaD8/6j1oeZNvec9eD+pmFTEawt8b3V1zgYb88SFIzGvAQGb3kfL dM1hKXrrsapHbuYspjS0h9AldYkrsZRwJNFA6RPI0Do2EWsQE+b/bAZD7WgBK83re7Aa et7A== X-Gm-Message-State: AAQBX9du9D0HAtsE90icZNvIPrgYELReBZSiIBoKsX5h+P2FKQLNvn29 Vr0DbhbmzL2abInt2c4C2kvpgQ== X-Received: by 2002:a62:7b95:0:b0:625:ce06:e58 with SMTP id w143-20020a627b95000000b00625ce060e58mr14520157pfc.17.1679995714543; Tue, 28 Mar 2023 02:28:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:34 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 2/9] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Tue, 28 Mar 2023 14:58:08 +0530 Message-Id: <20230328092815.292665-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603967865654905?= X-GMAIL-MSGID: =?utf-8?q?1761603967865654905?= Since SM8450 BAM DMA engine supports five iommu entries, increase the maxItems in the iommu property section, without which 'dtbs_check' reports the following error: arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: dma-controller@1dc4000: iommus: is too long Signed-off-by: Bhupesh Sharma Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index 624208d20a34..5469c9c2a1df 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -46,7 +46,7 @@ properties: iommus: minItems: 1 - maxItems: 4 + maxItems: 5 num-channels: $ref: /schemas/types.yaml#/definitions/uint32 From patchwork Tue Mar 28 09:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2083661vqo; Tue, 28 Mar 2023 02:35:46 -0700 (PDT) X-Google-Smtp-Source: AKy350asxzL3GCWjfh8uud5oXSA1ZqIfA/VcYMrGQQyK8gKBQKtlHn05Z0N9HiSbWHEGvPdtQ5WS X-Received: by 2002:a17:906:3701:b0:886:221b:44e5 with SMTP id d1-20020a170906370100b00886221b44e5mr14020846ejc.62.1679996146226; Tue, 28 Mar 2023 02:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996146; cv=none; d=google.com; s=arc-20160816; b=Y3WkJaHUeaZyMhYX9GAxQI0ZM1oH4WNH8P/GeSHL1A+WBpJNDTmYAakcdnBC+luuZr ae8wzObau1ZbAxoQuSZRcxeluPaMxLCHELEF/2qNoYJ9DAEqf+OPoiR7hVWjHbSwu5a7 2VOfi6JANZM1UE7OORaZvNLQ9TXujRjubUUHz3Zx7CUYQqDjqD2LVaTlKVhjaEJJS71E wabVIBO2EAPGWT8wl1vDXL/0QfWvhEgiE7SWGZTTTl8zzl1xy+bEEKXifuK+pGffGO/a LcukdWP4zXaRE/uzYVjmgiIvR5HYYpm5+rrOWECpRmOpZ4AAwtfa4CKHF56BziOIICz0 mt5Q== 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=p1ZVPBWs2g6u4+x76U1vmloIXR0C0QLyHtmnSLo3briZb+Niu+YkkDwNGdclHH2TLv sQP5JHteoKxP15zx7QrpRGipxykujyJbfKacwfVm34MVhW37ZKwyKX5k23o+D/+sjfQ2 TypKuCNyK2zQGrMSCGkHpHnh6HzXXXmA+y7r/R5FTuDWZ9h2FHYnoLLkUnrGosPOyNB2 bGFneJSde954ozNBcDdnvQwUKHJT84TLyltCBe1Bk1p77YzfV4yPiUJ/UDKLZyVByLXx 3J6idhjkvYeiK4YhHgmvuuQWn/ZXBCtx7APdcDGYhLDaAOHLBC17U/95uX1cxGpgNpzn 7OmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=apzKnvIi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020aa7d714000000b00501e59e6198si18025552edq.613.2023.03.28.02.35.21; Tue, 28 Mar 2023 02:35:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=apzKnvIi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232624AbjC1J3A (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232518AbjC1J2v (ORCPT ); Tue, 28 Mar 2023 05:28:51 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A605FEE for ; Tue, 28 Mar 2023 02:28:39 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so11851903pjl.4 for ; Tue, 28 Mar 2023 02:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995719; 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=apzKnvIitSI/0WTFCPr0IhmcMljZeuRif+xWlXzw//hp7biuZMW+mEyGg8x0t72cer /T8HMiCeyZ0338n7h8aiKrGSX5fCGUNfA9xc/PLkwcziR9YOnbc1iqWaIZJ972AVMNGS 4vSDNsV3xIDCKYwtWwdNc9hZP/PuMySyy/OqdLHtcXwbgjoknFlmy4x3VkcLZyFMHbqf PIkN55HNJcemfSj3WkfFdGHhiaUNUw/NTzim0J25RpQkeK3HCUg921fR5QMjVCgB7JUp W3Uqf+ERgD5Tld4AxO33d5J/CYAcw/+Bnj8sY6KGmtmXFsR5cAgu8Nxzy/BOKFXyi6uS 23WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995719; 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=2FVwtDhW0ZnS3AQhbwxbaPrw4izKKSQPECgygelP4A8rp0Z+FgofMgQKeU2V2tCbuW lDmN0jKvvt+deRe/im91cAMhFz6q5RcGtR59QAGF4ytTwqWO8Hxh6Dr9tPOk7zpmwyPI PM+jRswxWEOLJBtcHmnIq4CELrQtJHQD+Jlz1hF3qyuB3lLepkinysqwpeYhsgdY15sk +DrRtwk1FtvepfuSASiLaknlwPVUDinKUGffpNUzIDB3LYuKiRad3wK+D/wlT3zmOG0D un8F14KZbryUf5yYTRC+hFADdj1LFknuJPJTpKdt/Fn7Fq4WUZ008EDSg+wdHpEg3XET Ummg== X-Gm-Message-State: AO0yUKWlI2spL156Ow6mVo5Vu3Y82paeinMmKlJMrfeqdRUTs3ntUKwq DQ7hVndCb/HInBcpwo6Y8VJiKQ== X-Received: by 2002:a05:6a20:2a29:b0:db:9131:dd7c with SMTP id e41-20020a056a202a2900b000db9131dd7cmr12890996pzh.39.1679995719309; Tue, 28 Mar 2023 02:28:39 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:39 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 3/9] dt-bindings: qcom-qce: Fix compatibles combinations for SM8150 and IPQ4019 SoCs Date: Tue, 28 Mar 2023 14:58:09 +0530 Message-Id: <20230328092815.292665-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603639314026053?= X-GMAIL-MSGID: =?utf-8?q?1761603639314026053?= Currently the compatible list available in 'qce' dt-bindings does not support SM8150 and IPQ4019 SoCs directly, leading to following 'dtbs_check' error: arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dtb: crypto@1dfa000: compatible: 'oneOf' conditional failed, one must be fixed: ['qcom,sm8150-qce', 'qcom,qce'] is too long ['qcom,sm8150-qce', 'qcom,qce'] is too short Fix the same. Signed-off-by: Bhupesh Sharma --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index e375bd981300..90ddf98a6df9 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -24,6 +24,12 @@ properties: deprecated: true description: Kept only for ABI backward compatibility + - items: + - enum: + - qcom,ipq4019-qce + - qcom,sm8150-qce + - const: qcom,qce + - items: - enum: - qcom,ipq6018-qce From patchwork Tue Mar 28 09:28:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2085272vqo; Tue, 28 Mar 2023 02:39:25 -0700 (PDT) X-Google-Smtp-Source: AKy350YyOMQFNFu5cgS/x1TLpKXuLdOm5BBJZmJX1TeygU8uGa9+OP4yoXTcMt3/QJBmyaF4cguy X-Received: by 2002:a17:90a:301:b0:23f:81c0:eadd with SMTP id 1-20020a17090a030100b0023f81c0eaddmr16632059pje.47.1679996365374; Tue, 28 Mar 2023 02:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996365; cv=none; d=google.com; s=arc-20160816; b=WK613bSFFByv3I2aN+Ypc161AooJ8nJgc11j/A4O/BD7wSAo1MBol+atxh3FDWNn4T qSGF1OJTDqtAEsYEQxJz7OAmSTf1RzRAyQoUTaxpKE5K1IRvkd5zSvfvoHSS+coq6T0x lN562WGP/p7Q3N+C5dY2B+72v0dw84fygYBLE99v8vovE1O8QIDXgsCX8Rgmk/s/anCl 1/23k2DWkYobLcZjdgcR8jgYeJ1qkx3DIZT24sXdDit9073a0D2lq06ml8ORWibSzgJ8 dwxzUtFzA5q0Kif1CLT7G6HxR54ISBnYvG84Y4Rcg9lmqlWftyG25aiN6DBHaZz8joHG lMmw== 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=XhX2DU0VbT3zQuxaFMGWf/COeMpzxyTIQ0ONv1oPo62m/Hi8ZTAXvEamJZt7OcjqSo H/c7IoGr60Dl1nMyyhuHTDh4NWpFsGR6C/wRf4kbbIS/QAebw41Z/rHThyNeLZwv5j+B y0OiZw8qZ5hE4P6gn+q7B9ZYuL5xCUlHjfG3GJUH4EnsnU8ozYGhqvz16pASwuULanz/ 3Mxyp6wf4c1NQGJS3PsPALdVxV/1Xyi14hM+tdxUjUH0+/g+WGK3dyWvaldkuj0I7SUP 0wmWY9Nbog7JP21vXcQ9W/Q4YDfuh+318cVwJQWHhYVEMWFm3WzA1PI21Yb9WyMz9hXV kDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMNK1KG4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020a170902ba9700b0019f27fe9d45si27733698pls.463.2023.03.28.02.39.12; Tue, 28 Mar 2023 02:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMNK1KG4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232702AbjC1J3E (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232582AbjC1J2v (ORCPT ); Tue, 28 Mar 2023 05:28:51 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD37A6A60 for ; Tue, 28 Mar 2023 02:28:44 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id l9-20020a17090a3f0900b0023d32684e7fso1048064pjc.1 for ; Tue, 28 Mar 2023 02:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995724; 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=FMNK1KG4hh3KF9LIjVy7UAnMYaTqYiBxl3yPjMAwaFIxgq+BSbQuUoc4YNkrVBUHc3 eKCBExtnmGd4mwTqA27tY38LVbDT9M0LwoAHcjKgPgK7XI6eLvdIDTs1XVfaeFGcre0X LvDmSocBlcWYzp0oyAg4P/RfeZbKcXuXi5GYa/Erk8XXlWO2a65qLnIg9n2MJ7CBwpex fHRy55HVNK5ciFi3/RsShHMMt6j3odoU/9jy0xky47G2WoFNZSVRMijrTLObAiFn1GYM cUFKmiPnP2lB1p9wB7CW4hw7WYogeBiOWUl3zTx41FUC7pyz54Xxab6QTrlVz/E7khZ+ 5l9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995724; 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=zbVx6qXnHJpTY2/IXsN5gZ9J0jGhLvwC0/IGb8ohHF27a/NC7s7pmi+yVwNumvaBJ0 FqJlMLi/KSsF1LAQialUYATr2dqWM2BBoZEWQlyHpVNLjimwud/hOwnL6JZn+h6/b+A8 dQb7T+/4Xi0XRNKZB8pQJoNJns5JchcztvrYgpETtLDqb93PhaZMoqEoe+Dpy7xtJ/ea XDMBbWnh+/plTt/ZJDtr1qOCf3xNfYWrWPEZJMNpTK6izgCpx/kgRB4Y1aqvN004Bzwt omfWPsSuX6cPrJmUgvtBoHywzPJMKOYtXeKi7K5ghz7F7UibLdA/Nb0cCY+3IuQv5b2K YGdQ== X-Gm-Message-State: AO0yUKXEwYVxKW9JKwrB1WHJlHLcbm04wR72Xnf4hqn/rXiNEfwLNic5 aWSAw9nvl6uGSr+/O7h2XlOrSvYz+34hgS1AZ0w= X-Received: by 2002:a05:6a20:1e4d:b0:da:6652:b1f1 with SMTP id cy13-20020a056a201e4d00b000da6652b1f1mr12553746pzb.35.1679995723952; Tue, 28 Mar 2023 02:28:43 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:43 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 4/9] dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290 Date: Tue, 28 Mar 2023 14:58:10 +0530 Message-Id: <20230328092815.292665-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603869108867944?= X-GMAIL-MSGID: =?utf-8?q?1761603869108867944?= Crypto Engine block on Qualcomm SoCs SM6115 and QCM2290 do not require clocks strictly, so add compatibles for these SoCs, indicating that they are similar to the flavour found on SM8150. Signed-off-by: Bhupesh Sharma Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 90ddf98a6df9..82ea97568008 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -41,6 +41,8 @@ properties: - items: - enum: + - qcom,qcm2290-qce + - qcom,sm6115-qce - qcom,sm8250-qce - qcom,sm8350-qce - qcom,sm8450-qce From patchwork Tue Mar 28 09:28:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087210vqo; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aPD3lJUeeIEq3V5OLr9hCpMgBljngKzlTgmZ0d/4NDhvKCIavOZLJdx44OMn6N8Obsfm3H X-Received: by 2002:aa7:da12:0:b0:4ff:7116:189e with SMTP id r18-20020aa7da12000000b004ff7116189emr18594175eds.31.1679996671614; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996671; cv=none; d=google.com; s=arc-20160816; b=pLIgi62wMHQEQpqSdzEAYFDLNwnJjDY1AsDxG30p0R1o37WrELEv6cp+vIAcQiUt4m VPB/73WBUNhFSbdDCO4Yc9cHTnPSkeVby1WPklT3hZl06WEyys15EVtcGkTpCHk1AGxO SPvY3kSqR+fUcZSWWP36szWizKqJuKiPV6dLf2GXC/3DU4ua/vxM7BB0TFSEPf7EFva+ 3py3dUH5yknGb/fiNvXRcpseXbTnI0gwlAm2n/v1Gwzpjkdw5QREO04NdN/JJkza/FJ+ rwGZ6lnow9h8IVbNIbnMVVdmaL04NnwDq0MD8R9tFLWfi8/YrJWLvDcccUDnRNV3N+a8 96qA== 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=hRiii3VTMRKRG9NJ3tWAhJVXIfpCRCutmn49vntfYF2g9hmBL+/WVkLkxp5U+xLSNO pPxwJ3lB015vXtMqlSaD40HZBSfRZYY0aT/Vs4UkCvm1vOTA+eyMnhyQmZmIkO69z/+o kQU7MbiUscBuvq5nA1rr6gMvW+cemNl8gGn/tsBmZhIkHFW9IS9VDjSKnIoNYi/GA4FC qmyPBw4RgfeBQN1os009iNTTu2A1Q0RSk4I+984YBIy5Sxpbn5bVwCj0YlaKiqXhI9BV Xe2QkWBW55XZecukjIvtwYdECa+ayVVQnSrnF7N/ftoQPOlUDCooiFro7KTJm0Rg+Pze Jk/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bna4dcnj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020aa7cb91000000b00501e283279fsi18060347edt.205.2023.03.28.02.44.08; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bna4dcnj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232573AbjC1J3H (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbjC1J2x (ORCPT ); Tue, 28 Mar 2023 05:28:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A790659B for ; Tue, 28 Mar 2023 02:28:49 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso11847752pjb.3 for ; Tue, 28 Mar 2023 02:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995729; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=Bna4dcnjysLL0bcaRAvM3Xbv7qkf/tbSF5JvaQh9JBonwOssho353RcyEQ+7+PBdCq liHUSu4DF9wUclqe8xIfeWPCOGWXhpwY7LzGclJE42HafSOmoUimcuMeH3jTK/uzdKUb zYR0cilGv/LCMiXvuIj2EDH7FjYlAVgyOmFVze7ZgjMqLcWQkzRpjNT6JcQ1mZvBcm7B Ea6lv2xhn9NPMR/rITkdK3tuTqgumz6m3WzF0925IYIYckBWRNOOdtRUw0whHiGjLL0o CZ4EoGNlqL+FJI3DCOsVVvhzqfI7fg/BBZ7UCugL15IwQ2hUBb22ldBCRiZUGgaQ0DUs xClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995729; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=Qcg85Zzy/rNytsVxPDbWrr9OgdYYgaLsWt+6zcunD/3jtPTBeiHVEZUMJFtYDZcXgD OObn2XTEri2Vs8okven7O1fp1FoZaVR4MJFcxuao4t95DXyXJVNFxl2EeMAkivUah/cK FLvHtg/3IXOvypzj5ILk1iQGBpwR86kft9PjKZIhjXWRTvaPTBPOf3Kr2/skxG/eV8wy 8rw2XwRKBhP6Z9rxh3PV23DWSbKc1/CAcL2y0tM4NzsdMIAQLBLtcY/09OBi91gLXcTA 7RRPKdPqaq9fg32Y3r8WehmL3kRHBflZC0/SVrAs6BxWtmJ4VNwF2oqLSNKYwT3uS7oB IStg== X-Gm-Message-State: AO0yUKV6wC+LrE6PC94J+uHRSa9PA+A/o/i0TG2Kt3Lj6Q5yMmBS0lCo cx42fytZuKdQ3Su0zDV34iHemw== X-Received: by 2002:a05:6a20:671f:b0:d8:f312:b3b with SMTP id q31-20020a056a20671f00b000d8f3120b3bmr12843229pzh.3.1679995728630; Tue, 28 Mar 2023 02:28:48 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:48 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 5/9] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:11 +0530 Message-Id: <20230328092815.292665-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761604190273248645?= X-GMAIL-MSGID: =?utf-8?q?1761604190273248645?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm6115.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 2a51c938bbcb..ebac026b4cc7 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -650,6 +650,28 @@ usb_hsphy: phy@1613000 { status = "disabled"; }; + cryptobam: dma-controller@1b04000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01b04000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + + crypto: crypto@1b3a000 { + compatible = "qcom,sm6115-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01b3a000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; From patchwork Tue Mar 28 09:28:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2085671vqo; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bKW5KvQXWq05mwncrf8tRJNbbT/uT2TJzNjn4ZTOMkKaCBoS/soprZQg9UMsesLn/1XNqB X-Received: by 2002:a17:90b:1b09:b0:23f:b609:e707 with SMTP id nu9-20020a17090b1b0900b0023fb609e707mr17515328pjb.2.1679996421250; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996421; cv=none; d=google.com; s=arc-20160816; b=P+gGX1DVhiAed5JqHynptaj6DeLOGNkL0fhCvwiYUrFYoUmlsrqqpMKgPYUtTwSSMb sNkd04Wpp3zfDf7cNpT4lO/QiEgevcae15CODQUx9i1MnuezNqQde6kmfV+fov8unylD 3uBW62uOmKA8lErIyANs4hHPG+kLTtjkpNLjwUV4TtGqOWMFgTtwdi9Fmp34yvNxePmK xpwxZGe5K/luy2xFgIAHwcCXSK7c/66JvWqb6/4Uco5J4V7dp9N9xOBX9P0/QV/O5/OG TxQdyqraDPQT/qbz017Z2vfQ9DUfyRdj37Gp+zcOt4KPd6vnOyQDy5Zh1RY6wjRh5LIP xZaQ== 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=c/ffwj5+a3Zj4Widm7sCnz1N2Q4ATRj7llM5SDOv7xuvdvxP3PBtehgX4FQLO9YhBx W+CBKP/XbVMu9CVhWlF1n5dii8tDSumkuLdaCEI+qCrb1w902XYpeZ/nhsq7pB36qjgN XwcZUg/Gn9eRHkjyTB9t1nmdNbuiU11SI/ssLgaeH+qs0dlDbXH0ZSMGrw++Uq0WQiyE ik0EZl3Igh7A7rIk8tQ76qr5TMswHNFda0Keuh+xrWbxKh/pKksBTuU2Nyw4MPl0gQxU L5HvnWvkTIxC7DwTD14teKgFKK6p0Aecbv65fGddPNMq6gIyed4DNmFR8haJh+7JPG+z 4qDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XEybTPAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a17090a868100b0023fb878c669si8156991pjn.6.2023.03.28.02.40.08; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XEybTPAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232524AbjC1J3b (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbjC1J3C (ORCPT ); Tue, 28 Mar 2023 05:29:02 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B4486582 for ; Tue, 28 Mar 2023 02:28:54 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id h14so6799984pgj.7 for ; Tue, 28 Mar 2023 02:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995733; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=XEybTPAhej0C8WKdXNNHULqyYs87J4fUSAh7ZMvT3KBg8nUEaJz6vABo0+euB8ml0s 0SmXYf8/1JBB8RM/YXSCUnGgAJqs78jE2i4xZ4ICgMITQULqUzzSusE5zYtkTPhgXU+r HejKKwYa/jhcKcqZiHQLEUtg+iLRlKkWY0ZGKk/nxxgXqZFOkcpx1OX5wsDihAfUrPJA IAuC75ylJB4cpuZo9RDmcOtENl+PQyh0rDzmfu3L/4sgMB34IPHlPIwqBKt3QfECE/F4 HwRw4AeqgLV6hgojSWkgeNhbYyt6tgnkYRIsRPa+EyIgjElezK+rL4XarMnMVDLFj4Fb iu5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995733; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=OPR+11quPz7P0olzek6dbzTFR0IEfyFJGd7ZQJLltc5RtHnqbKFQN2zf68wZR00yec Ykw2rpAjwjpETECxr2yOyPcgzfT109yK22SYDMwLjV6WmdYS1DTIZE6TVw95SrgvveZf 6QZuIa2gJMlyVNp69xHZyVfcnPf8Q0tbWxZfUex13Q5TfjiO51tE5T57mIy12+WZoH14 zR2+vmzgufXqw0M7BgETGGy/7Jos7JCcMGD46601kSmHKkT19ZvPgDqSSsOTW71x3OYd mpNwvzLxZoMcnZcwS9cSPtYy20vNiVmLHJfPUMg7SS3Mw6X7Phlh4Yy7AIH9nL2OjeOi /9Pg== X-Gm-Message-State: AAQBX9e0FPeMYp/TLc5z+IVSmE9A9KbtqAJBpgqykiLvzv/jwEKMypVO uY0EGLSPGeaT1WJHY2a56Me08Q== X-Received: by 2002:aa7:9472:0:b0:627:fe8f:716f with SMTP id t18-20020aa79472000000b00627fe8f716fmr14978973pfq.12.1679995733444; Tue, 28 Mar 2023 02:28:53 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:53 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 6/9] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:12 +0530 Message-Id: <20230328092815.292665-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603927516895470?= X-GMAIL-MSGID: =?utf-8?q?1761603927516895470?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..c104d0b12dc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2081,6 +2081,28 @@ 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; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; From patchwork Tue Mar 28 09:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087410vqo; Tue, 28 Mar 2023 02:44:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aL+0cuBz0Kp8FIbQxA+0oQso7X1PD8SSh54UGMgoraWTNS5J1DiQfo2nSmBkNI6MTZds/r X-Received: by 2002:a17:906:7241:b0:935:1565:d661 with SMTP id n1-20020a170906724100b009351565d661mr14689571ejk.66.1679996698700; Tue, 28 Mar 2023 02:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996698; cv=none; d=google.com; s=arc-20160816; b=fRO1iONKq2sWEGC4FHZd97UJzWYOgBRKbEjjJh59Il7mL/R3Raafmw8GiKnWXWL40N 1Bfy6oraZoa9nJoqSmtPeppx+YFSx/ZduFuRwCZ6zePdsgi6TSFIjhYF43T5ZblgpNGH 0BRTKaV9B0J1di/2ocnQP82O6fHy/ZejrCoLJoYvx/TeUBEr5a8gBWi9SJqI3Y3P92k5 qXIGngtnULAX+WT7QfhGbnCE34lasKjz+drlPWcjn87hqqpyOFIZTPXIE5SPgNvFSG/Z XnQqn4XQ1jWt4dzB8hoXtlUOciqGTz/Z2n/WzE49aRai9myUvgj7jv1LBLTVQmtETd7W 41eQ== 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=GyBPBQaKm/5jEJ73opxh3un93Buj/EGoGHLucj/C0IAAQENlqCO8xPIFV9lo1Ljp3Z ODeTen66JOd2bU8byzyfXFio9ppWYpI+Fsdl4iiRl5Wwmb//p9fBU0yfnNFihoNQLxXP fbTKj1S+DXPZO+77E2YHBBBUuaBXn6bTi1Z83Jx0+TGWUM2R5YMQuB59UPk/tYcuwjKt G9yNtZJrjuwwGHWxfAL6FQnvBpBs246Qw3T0ppUjCukuIrGoKHZipp7zQG9yjl9T52DH Mf6aWLv+RmSBFjSiKd4+23Z2+EH79Os9vnFXsjoE9X0G6N6owDMWgGKnpYSqlVc/RRD5 +MjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPbTuwt7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a170906151a00b00931bd1631f9si27232794ejd.423.2023.03.28.02.44.35; Tue, 28 Mar 2023 02:44:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPbTuwt7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232748AbjC1JaH (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232734AbjC1J30 (ORCPT ); Tue, 28 Mar 2023 05:29:26 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125786A58 for ; Tue, 28 Mar 2023 02:28:59 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id w4so11047982plg.9 for ; Tue, 28 Mar 2023 02:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995738; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=XPbTuwt7+oxjeDsq+cRYBV4Z5FEpQJ18mBBU4NWVPh4b7rC11O2uV7anDgBQefJs0n SxIZwyi1heaQWUTSUwVs/F+Jr9J4j3n4eQGMD1J5zVHzaFF9vmgs2Z0wPIhKXSMUxPug cB8EeS27ckBAKjfY1qabS5Np59eWrT7MuOI34z/BVRJ/KFZ5388LOUuYVMkURQIUVjIJ DR0hiNc8HHzdLj9dgDGfXcKgHVe7DRy4Wl4PVb7SB1+wwatcZ4AKhWjj2PLj2MU/gavl kO2euXIyx3tZrhdGdPN7FhbEZhCpb/ViY3YsE2G9MEyX036ZDikf37EnqIhFDIxRrSp6 +oOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995738; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=t34zOI8sdmL6lTROdz8/Rg7YNcImsuiGamGzVLSRIGkRVXMcF7K6NiBTVCSFAotIbM 2izAz0gf0UM+iktmKIClnDE8QBhJYIjjW8VnpzgXMqJY7TKcQGXKxZO0crOvO+xF0fxM Tn0QfNTFpnLz2oICKiBYVrd7+tpsyuvN9+T4lgxXpwgQ7qjbBnjtUBjpUB644EnM3bPF jbNqloW6AlkAS1aPupARW7yJ/nhBDMbRanDjhx+OCpD318I5zoL11FhbFeTzBpqey75V oKaHCizGeQo2eDMQdfcnrrZf5Z3O03q/YsB2SvveoVve5vs/EYsNtQ+H4vYNq3HJzwjs aLoA== X-Gm-Message-State: AO0yUKVd1psM+Lbfiu+sfka3GlHJ6tlxM86QKXtr1qWmUPel04AbwEF7 J8WovTakZKgM8ksyAO1uMVeBsA== X-Received: by 2002:a05:6a20:811a:b0:d6:8c70:85ce with SMTP id g26-20020a056a20811a00b000d68c7085cemr12536739pza.54.1679995738069; Tue, 28 Mar 2023 02:28:58 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:57 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 7/9] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:13 +0530 Message-Id: <20230328092815.292665-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761604218636040445?= X-GMAIL-MSGID: =?utf-8?q?1761604218636040445?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7b78761f2041..2f6b8d4a2d41 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,28 @@ 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; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Tue Mar 28 09:28:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087126vqo; Tue, 28 Mar 2023 02:44:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aG+x6m8dfASxMHp4tAIpRMk1tOhSgC+PJT7iIsd4ZXOoO5vTZSHad+ER5ueUV5/zQUqOpV X-Received: by 2002:a17:90b:4b89:b0:23f:84b9:d7a9 with SMTP id lr9-20020a17090b4b8900b0023f84b9d7a9mr14753190pjb.18.1679996654727; Tue, 28 Mar 2023 02:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996654; cv=none; d=google.com; s=arc-20160816; b=V5ODpsl8KnZVDas2c/08UprRvyv86lcu5fj8MBbN5uCBGpt7MHsVqubs4L/a1sHBJx 57iCmxpnRJzFJamSItersubbZg3PKebTBRSD/cyAd+fHo4RVfB//flN2xwzfYrCgT1PO HeNfF18QIuF0qjs6RrvxNEDYQZVkdRy4NifrpFDUnN+6F6/UywG57uadbdXnzKjXASde OTqoE6snenLGWovMQ0Z2U/5VhYMg0Ln2nRhHKKEuQIMxUaFAI1f7w2GjOaJZsmkxLP6O w3WFOnc7kKQc01aodxZ6FH2VVUS3/zokWtDbU3MQV54vLlGhKlmV/7CBrhSlo66n0i3s 9mnA== 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=aE+up7HpikKIwzHYZpGj0EqDYAblzKr6VPzYKNrhYPUcq/f3CrYy4wFznzJtUCoSOD R8QIWXv4B5epYa4/CP/dydo/1F+H0l8en9JC+XCO+7uA8kqGtEI3Kj6JPNQ11p+4W6LK INLJryPPZAGEtYTta40e0LgT1M7KKGmVWXcf4lZ6TB3JUmSoonexFntzI9syRYpWFZK8 omC/7n6jgC2/W4QuOKLFtlmo/sc8jGUICcuFk9ooRkFt0PQwPaqvIsazPiUjbTipjWzQ 7OhDuTxaE4Q/UX/s/EQmfUkY4yY1b45yhFGEmKXDaZHpsK7dy5BO3CXMZQZxJZvO6TCt BmqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=spfH8d3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a17090a868100b0023fb878c669si8156991pjn.6.2023.03.28.02.44.01; Tue, 28 Mar 2023 02:44:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=spfH8d3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232832AbjC1JaW (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbjC1J32 (ORCPT ); Tue, 28 Mar 2023 05:29:28 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E10D6A72 for ; Tue, 28 Mar 2023 02:29:03 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id iw3so11067246plb.6 for ; Tue, 28 Mar 2023 02:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995743; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=spfH8d3eP8L76VQ3aGrjxh0xAXDyNstLt4YDaU29ERkOYABQ67u2Z3Zxf3yp0AUQI1 7aK+QNMTZIY4HGmqjAWTrARyhCwlmpdDM6fBnuhYXfDXQLVcFzcrc8UTQd0UQt++Q8Ub XG7Mbdc9KvnTxMrvWHxg6nP4Hncjr9RN1unM43SN2WFlIiPNkTuXpujZoiSH5mezWuPo C6loxzvwNyPs+xK6FewX9DVddhamPp+W5YgXnT0qYv+SkLVqHxvLEpTmnGz7e9IMEnxM HAXDi8J/4pTnCZ0EfmcZqEs/hA+cFT7in+c6IWdc68qebKovq4hQXJZxTkE+eIbUAjo2 kl3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995743; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=bG1kpHBjrevJ1Hl0BL3g/5OSwgt8XhMVE+0q1NagzSAPXk+tISkVnuze+tSOO/Pca0 zfrDfq9KEZBRatncnH8pG1iUH9miNrgKet/qtKgcIkk8WH9lGGwEih4IItgcz9uSWPuX X7IMMaE1g0zEeneEI7PLeCpMJg8h9lPffigHp+4DGpeeuhNrfFUw8+yxcy8gZdQx5tMQ sczbSWdCjUAu9VgglTF1Wa9m6fQYt3CyBoANRphzNUxdTZXDzT4Iul+2PcEZvuZlUxYf BsaEyKlRo8WT8HP6IqUQUd23kbXTvjfO1EbUAEj6bKj8sHb11GEK3itAXND/gpbHd45l 8DFg== X-Gm-Message-State: AO0yUKUH+SwJBBLuwfAf4c1voupPkoGjemIG9yYV+IK2U0S4r6fMbJ7S blxufWuJZMU3lfFfpO6zsbyj9w== X-Received: by 2002:a05:6a20:9146:b0:db:c5c:e0a3 with SMTP id x6-20020a056a20914600b000db0c5ce0a3mr17872712pzc.10.1679995742712; Tue, 28 Mar 2023 02:29:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:29:02 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 8/9] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:14 +0530 Message-Id: <20230328092815.292665-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761604172612032256?= X-GMAIL-MSGID: =?utf-8?q?1761604172612032256?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 7fbc288eca58..090ee07d1800 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1730,6 +1730,28 @@ 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; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8350-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa"; From patchwork Tue Mar 28 09:28:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2084699vqo; Tue, 28 Mar 2023 02:38:11 -0700 (PDT) X-Google-Smtp-Source: AK7set+T5BbKOWNTja6w39JNffVCEDKCkGVFXC7yoaSZ6xWiCLIMv8PRLQo9K+cUnbyu5uIMJ1WH X-Received: by 2002:a05:6a20:17aa:b0:d8:b2a8:f383 with SMTP id bl42-20020a056a2017aa00b000d8b2a8f383mr12013958pzb.53.1679996291460; Tue, 28 Mar 2023 02:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996291; cv=none; d=google.com; s=arc-20160816; b=WVLQxyMvFH0bY+UCMcap07DhVupLQOtf0v0Dj0vC1t0eG9pbdJ2WaRnxQr55oHfI8l sfWhWtfsDXMxNtXP+ATShiB39Dqzal7unuYC/MBokxuhl+o71a4HFGebDpiMxtfB/T0c UMVXdJT/KhR1YALMrEUItO1K2Y7ljn6cwRgsphY2xVBg6u+jBQLK+v2QC2vx2p37xsMe k17AUWTNzCMp1eIrFcwFVGCODRWwJ4Zb70p4r0XbAkf4XEtUBZI/PrByFAOkdH/MnjV3 KnK6anDJfHbcppIaiaNLUOgzVmq2e79/tK9x4xKtzLFuTwkK6EkoGKvypvHSldXYpT+/ c2vQ== 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=jH/Q4/UYDupvuA0HQhlOrPjt7V6UPo04HHYag9wI69trqkUAsBW+wVNMi01V7D3KHU FyrcSRYxrxXqs8WuU0PGGZkWWPFyAolbBb2ob6K37lJJMZ4rpMzZXnZeDiqYdtBX2VoC 3LZym0wTfg8qL21oVh0dPiVk2dWR1wXq5XR6mChcmhM5p5AHxdvgfy7bM0kAE6uXAcdu 91bQ4ZrNWQMHDDG+COPg3FcjdVdkiP6kcjF1dQgMw5/G84B8Xh7VTgGrKjvIwNdIjfA0 c9OkPs23fEN2PUuLOqsH4v9M1Wl43oalg2AzQ4hvaVutPUPX3LSUypWs1xorvdjH1i9q oeAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=StsbH33A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a056a0007c500b006267e3376ccsi26867282pfu.171.2023.03.28.02.37.58; Tue, 28 Mar 2023 02:38:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=StsbH33A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232922AbjC1Ja7 (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232744AbjC1JaH (ORCPT ); Tue, 28 Mar 2023 05:30:07 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5BD728A for ; Tue, 28 Mar 2023 02:29:13 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y2so7514551pfw.9 for ; Tue, 28 Mar 2023 02:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995747; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=StsbH33A0Z//LD07mPIP8zFLStHzWcZyoorzQYE4OzFziUz5oL9ZOpoedu+0PiAAiH EjAadapaZFYB1gfC+2mOoTix9LKyhg8E4Clrdwi6CjVjg6dr3rAJzxP0j5wZtdeujy9z OwJO5gR0n4dgsfLmI2sA+ySKVv3XQYoxUPTcc98HsN/4CLCqI9t65qqMsVkHmQ16syvS aBmgFUmDUSIdtsJZWE518O5gniNkVzkyi88XnxuslaQgiIZsPcG7AbFP/h3fIrz+KZ24 y/OcGXDUSX9y4efG5dLn6z9pxEygzfgFGqAs5PJsaQ7Cb9BcT6roucQ2yPLj6hz36pBL PyqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995747; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=kyQ01ObDK8B39s7XIhBijr2+H1SRtN3GhLBiIYdouizzh6Cho09yE3H+/Hh1bPEYhJ YJwNRw7h73Nc2HKvYHdWPyvW8wTNg2zN9ae9pMJilr18q+dT8iBRKSOMsx93nkjEu1aL ZhdqSsr7Gpx3ztflfcnBjPqGpI2F5eyl7oSl/EPP7HzI00JQQQMYG4MBPEs43K9xdLg7 gp0SXcqJfz772yz7oP0ZNyIhEBV+BUNLsry5+AqG/dxtPHwgeAuoYTB1UWOhgwzCjzDf ZI4a1QxtMQTNpaAdTLZBSZr0HtMOFcO9CmNpVHv0/OqdGXwLM8aoDgfH087M9SJLvvJc PdtQ== X-Gm-Message-State: AAQBX9dgGW3Bbk3IAZdkp+6VsMKFS5DTrOmlclwhoZpbm2/A4h+xd6My 7N6eALjAj0BKMi+U8hjIBqiA/Q== X-Received: by 2002:aa7:99d2:0:b0:626:7c43:7cb8 with SMTP id v18-20020aa799d2000000b006267c437cb8mr14611382pfi.20.1679995747407; Tue, 28 Mar 2023 02:29:07 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:29:07 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v3 9/9] arm64: dts: qcom: sm8450: add crypto nodes Date: Tue, 28 Mar 2023 14:58:15 +0530 Message-Id: <20230328092815.292665-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603791382428650?= X-GMAIL-MSGID: =?utf-8?q?1761603791382428650?= From: Neil Armstrong Add crypto engine (CE) and CE BAM related nodes and definitions for the SM8450 SoC. Signed-off-by: Neil Armstrong [Bhupesh: Corrected the compatible list] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 31877f18dce2..d7a28cac4f47 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4146,6 +4146,34 @@ 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 0x28000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + }; + + crypto: crypto@1de0000 { + compatible = "qcom,sm8450-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + sdhc_2: mmc@8804000 { compatible = "qcom,sm8450-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>;