From patchwork Mon Mar 20 07:12: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: 72018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1065985wrt; Mon, 20 Mar 2023 00:25:23 -0700 (PDT) X-Google-Smtp-Source: AK7set+ROw8G8FbSSJDyoHFW7PiycIKtF2gYbRqe/kdF55IRiQ3/t6BgQZefzNoX2PVbtmOpmtxR X-Received: by 2002:a05:6a00:418c:b0:624:bf7e:9d8c with SMTP id ca12-20020a056a00418c00b00624bf7e9d8cmr15863472pfb.1.1679297123482; Mon, 20 Mar 2023 00:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679297123; cv=none; d=google.com; s=arc-20160816; b=sPN+4lou2xqwRDLBDZvM9rP590sB2JmflsdzK/ovNpNLcoNo8E31m8NNjDVKHjJZXo cpfFN0Or3JjK0FuXV0fX6VMJhLF1PCTfG72/D5i7jTUFx72Gv+gllGAxmeplJYUpUlVJ zk92CdsOcsH7b55oA8i7KB6LC2RdbXz3Da50wNXXRZC+aHdyIeUtV+4RJqzTBcsiRiEZ zALLjL6WXW+/IT44OLAfC4fYD3PfgDFi5C7haZShyhpfdnQSwbH3ybj26yr2NhKA/sFO ec5Hw5+sot/oPe4W38wgNZrvXJtgGSHTMUx8KVCVUcQJH0Uklmu3tLvrYqHIg0luJVX3 xD7w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xPJTzAUBl9aQkaatQh9jv7wmEMUxBwZiAFZub+QkGFU=; b=nwr5CJyyAIxP2GAOTjrkK/QnPpyxjp09paQVtjtAfB5UrDEevJ6QuN2eaX72rsrLOR slwSe1CmArhwn3fMVJYLU8ZyWK5Xw+dFHA3EalMLxJzIg8dsED3ZV22KbxiJHSQEP0C+ G5RLh1X54VBeAP0RaLnX9FslE6GuYVigdYdEIE0BoxLbFJiI82mP1g904na/tlZGJTLE J6R0+4UUVU7YX0znZAbD7Mrpof3OZh7AAJKI//54x97uOCiCUL9jNopwtw033vUWmylo 8DN+J9wr3r8TQ6UoIYg90ojJxm3bHGXIItvJJBnNtwHAFZraxNgt0O14M/qNmXmDO3GF 8CFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wesqcDIp; 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 s134-20020a632c8c000000b004e0d688fb83si9556321pgs.824.2023.03.20.00.25.09; Mon, 20 Mar 2023 00:25:23 -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=wesqcDIp; 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 S230045AbjCTHMf (ORCPT + 99 others); Mon, 20 Mar 2023 03:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbjCTHMc (ORCPT ); Mon, 20 Mar 2023 03:12:32 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEC6E21957 for ; Mon, 20 Mar 2023 00:12:23 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id j3-20020a17090adc8300b0023d09aea4a6so15413920pjv.5 for ; Mon, 20 Mar 2023 00:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679296343; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xPJTzAUBl9aQkaatQh9jv7wmEMUxBwZiAFZub+QkGFU=; b=wesqcDIp6CGIDZkttFy2CU6UGJ47kp56J2X9DNeu+p4pf5NQMe4OUzMv79j8IeI4+y 4gPEP3f1Cxg1ImguOlmI3/Hb4pD6ZJJXREwkgmYZeuTQlQ67Tx/qQ9e3jzr0sDllh7yy aupO6L7PjeMqeyHHJ9P52Lgg0t4MA5Agm6W63CD1A1StYW4HrzDPbqPXrsBCx8rcvboZ zr1LLvEHFmA5apuWqDJeAGdoDpG7f7JkrnbJ/lLDBuCWJOcvanZku3Z+31zE6dhrotbV 7DpwaUpunZDeiyhtvGa3pfWyC8qUcTXMNVG7PtjOf7Gdje6lfV+2exWifqkedTmw/Kkn bCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679296343; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xPJTzAUBl9aQkaatQh9jv7wmEMUxBwZiAFZub+QkGFU=; b=w5GBrZTSo8eWgZJAz0qEoiv5dgvMOqq0/wSzhuphSsV08Fwy6+9hZXX//g2E3u6JKp ZDp9WtfdwGFkd7OyVDRFU/uDm64/cK2v97lubujfqhOpoCmcjiCkykgyB1FT0HxRhhiE ie9BSmbNtc/YYzGVLO/TjZyqwNubc9jDyHYJj3YaTGtRHHUhkC9IDzNeja9Q8L1G7nAm zOOuLTfzeSVpd3trDhrgSTvI4AodZon5EsZxjVNiFdWoKGXHaeIDkLwVwST/fwNihCMZ S9NgbbZvoHtYPt4qbjIJPVTgXDPk3lFG6SLwEUrAFx05dsBq4hgJz3hGDEtD0mWu65T6 8rpQ== X-Gm-Message-State: AO0yUKUHg2DHL+TrPQByxSf6Kie9IDQrPGVCir8/goJsBYozODBdo01S kdDwY3JlTNfOrF+uY7GFwN4F/Q== X-Received: by 2002:a17:90b:1bc4:b0:23b:bd09:7f0b with SMTP id oa4-20020a17090b1bc400b0023bbd097f0bmr18084040pjb.30.1679296343242; Mon, 20 Mar 2023 00:12:23 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:7331:922d:c0be:85c4:f0ae]) by smtp.gmail.com with ESMTPSA id m3-20020a63fd43000000b004facdf070d6sm5619477pgj.39.2023.03.20.00.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 00:12:22 -0700 (PDT) From: Bhupesh Sharma To: dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, vkoul@kernel.org, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org Subject: [PATCH 1/2] dt-bindings: dma: Add support for SM6115 and QCS2290 SoCs Date: Mon, 20 Mar 2023 12:42:10 +0530 Message-Id: <20230320071211.3005769-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1760870660558301248?= X-GMAIL-MSGID: =?utf-8?q?1760870660558301248?= Add new compatible for BAM DMA engine version v1.7.4 which is found on Qualcomm SM6115 and QCS2290 SoCs. 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 --- Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index f1ddcf672261..4c8536df98fe 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -20,8 +20,10 @@ properties: - qcom,bam-v1.3.0 # MSM8974, APQ8074 and APQ8084 - qcom,bam-v1.4.0 - # MSM8916 and SDM845 + # MSM8916, SDM845, SM8150 and SM8250 - qcom,bam-v1.7.0 + # SM6115 and QRB2290 + - qcom,bam-v1.7.4 clocks: maxItems: 1 From patchwork Mon Mar 20 07:12: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: 72015 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1063732wrt; Mon, 20 Mar 2023 00:18:38 -0700 (PDT) X-Google-Smtp-Source: AK7set9ymIgHJB2TMTmm8xTAJzFGyF8kEzNZHMH+Qa58sKGqPxaeXoPTq8Ea1E4yc1eUt33DQiHF X-Received: by 2002:a17:90a:9306:b0:234:b170:1f27 with SMTP id p6-20020a17090a930600b00234b1701f27mr13810883pjo.0.1679296717741; Mon, 20 Mar 2023 00:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679296717; cv=none; d=google.com; s=arc-20160816; b=gsMNyuJGoL4zAJmA5nbOA69RWk4UL0toDnbRjezWKOrLOGZoCiFCOM8g+/AhVVhNvY 9KzxFBVLjXRFBAFTEUtS9WYwjE/0QiSb8rC/ZOPgFW6SjuULqLVIovxyNrpFpSmya+A4 +iLZkE+wXjVt+mgy1q9UohTe71D57JMSORismXK/DbOfJ3fOsBKgfH8SnlSUu+e8ULe8 6ME0F6goIMMthGWf4avxbXBlZwfjurP+Cpapdr894G/KrkmML4zu07LqD2Sl5KBZPQKh GQcyDPUyd11M3oexl3wB4QZjiF/etrNAH7g6yTI3m19VhXuEAHyrULU8XmfYqtJKLhN+ YRVw== 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=liNNhxqvRDMursBLDB2MIwbIPJeovqlNRny383xdhTI=; b=RyfgcFzJEx+5aG7Y6HJJ0MWxDh3sTmpRlBUhihG94ba//dTcAjL/sdnPHpQaAsmsTe 38f02/gUxcxFLqZYUUo8vqnGYZyJuOjM26MFF/8T62ZtqHRME2ne8+mauwxmvv4gsT7D AM8dFgBpn0LwFYlqg9ZVu6Q6rRJeEs7acgi42m2k8IwqE7h/Z4f/6rKRlljuPRIZ4/97 Hl+B7K7UeJRISX2SALtFNyEYuekL2lYvcPmrGKiPV6iCcb5THJ7udrSMuDTFgnjaC9eR EQGruiWBdO/IkgzJvlv/7rOd361MYRXGyA9NxPYfC+INGrhEFj52y4EI8S623kJb0G89 UvfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BylZS6xZ; 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 y9-20020a17090a644900b0023d21d8cd42si14505170pjm.27.2023.03.20.00.18.22; Mon, 20 Mar 2023 00:18:37 -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=BylZS6xZ; 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 S230138AbjCTHMl (ORCPT + 99 others); Mon, 20 Mar 2023 03:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbjCTHMh (ORCPT ); Mon, 20 Mar 2023 03:12:37 -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 362782195E for ; Mon, 20 Mar 2023 00:12:28 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id u5so11457087plq.7 for ; Mon, 20 Mar 2023 00:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679296347; 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=liNNhxqvRDMursBLDB2MIwbIPJeovqlNRny383xdhTI=; b=BylZS6xZ3b0Zlrl7YQq86fUUU4kXq9w0KrIWam69wNxiznczxs8DlTjfLG6Bq2J7PL eYvthylHCplJ5QATwymsNS5gN9CpHggP584ljCnpJbZDJNJdKgorg3rN1IGaOcrgLO/i t+w6nYkOqaqzBR5w2R8RxBJ+rfxa7wwAXj9yNUJkLMb0kSulm8gDAi1oK5orWl5R5wtD Amcg6EZge1/y/VKIxyCnBlYgezFQWJO6J5EK5RRgggdp7DBItBftvsfSro/SKFUUpe6o DpqkBi4RkQC607k7yLGNEyLXqPC8AzwkHPHQvsA+yiLsQMoQF06ukG8lByZcZJPFlncT WIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679296347; 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=liNNhxqvRDMursBLDB2MIwbIPJeovqlNRny383xdhTI=; b=YWIquvtC+8kPX9jIvNNEWvPOTmOKsFcBl5p0yweZadrIKk1TKYhc6C4U56hoPCwvHY IJGqs5mSq8TVifWN+C7vWH0FGAp9OHAJaBZdlXY4q6fqLAo3aAxB4BHle2OmcpL3FKAA jJ9cnfw0+utHN5rmBPjyYYhWupscABwkiXcxZVRPdtfNYru//x2Bjm8WJby2RthqPA9j r2YR6fEX7JXx/RESxWDR/HTRWURN77aZ6m9Fo7bK4H2yVcI6/MssjD+kvhzGnXeLeOSv 0zMbdb91YUQMRaU3lWaHyV8Hf1YsY1wt3HX88HFNuaOrbxcv8ghZR3LIiaXc2ucIknP0 MeDw== X-Gm-Message-State: AO0yUKUnFzCD/9KaMML6D9bXOlDJd+ogxsBInqY54NnuSJAQH1lDUJIG SFkXryi9Y9HEEaPBl27hBJpOLA== X-Received: by 2002:a05:6a20:ca4e:b0:d3:c6f6:ac8c with SMTP id hg14-20020a056a20ca4e00b000d3c6f6ac8cmr13025826pzb.36.1679296347663; Mon, 20 Mar 2023 00:12:27 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:7331:922d:c0be:85c4:f0ae]) by smtp.gmail.com with ESMTPSA id m3-20020a63fd43000000b004facdf070d6sm5619477pgj.39.2023.03.20.00.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 00:12:27 -0700 (PDT) From: Bhupesh Sharma To: dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, vkoul@kernel.org, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org Subject: [PATCH 2/2] dmaengine: qcom: bam_dma: Add support for BAM engine v1.7.4 Date: Mon, 20 Mar 2023 12:42:11 +0530 Message-Id: <20230320071211.3005769-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230320071211.3005769-1-bhupesh.sharma@linaro.org> References: <20230320071211.3005769-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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?1760870235103565605?= X-GMAIL-MSGID: =?utf-8?q?1760870235103565605?= Qualcomm SoCs SM6115 and QRB2290 support BAM engine version v1.7.4. Add the support for the same in driver. Since the reg info of this version is similar to version v1.7.0, so reuse the same. Signed-off-by: Bhupesh Sharma --- drivers/dma/qcom/bam_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c index 1e47d27e1f81..153d189de7d2 100644 --- a/drivers/dma/qcom/bam_dma.c +++ b/drivers/dma/qcom/bam_dma.c @@ -1228,6 +1228,7 @@ static const struct of_device_id bam_of_match[] = { { .compatible = "qcom,bam-v1.3.0", .data = &bam_v1_3_reg_info }, { .compatible = "qcom,bam-v1.4.0", .data = &bam_v1_4_reg_info }, { .compatible = "qcom,bam-v1.7.0", .data = &bam_v1_7_reg_info }, + { .compatible = "qcom,bam-v1.7.4", .data = &bam_v1_7_reg_info }, {} };