From patchwork Fri Jun 30 08:22:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 698033 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 4C865EB64DA for ; Fri, 30 Jun 2023 08:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232502AbjF3IW7 (ORCPT ); Fri, 30 Jun 2023 04:22:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232487AbjF3IWw (ORCPT ); Fri, 30 Jun 2023 04:22:52 -0400 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5101997 for ; Fri, 30 Jun 2023 01:22:50 -0700 (PDT) Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-541f4ee6f89so1041288eaf.2 for ; Fri, 30 Jun 2023 01:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688113370; x=1690705370; 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=YrjvdZSqXKi+MzhLUYpp9EjIDqVatd4GVNSMEpyYnzM=; b=PdGrOZqUNMIVKYpcRnI1Ytu67Raaza2ub+psac8z5niLZHd2m5wyzOmmcbo/pO3O6h qV8w16EUvJlFRvNNukwqIOlqbR69Ge2v8dZHWpzc+DN+i+difQSy6iE12cqKfpXpW7dn RzMOVfC2fyibUvZM9Roq3f+TTTk8j9Fa/q7sF5wNwi7Ba+ghmfw0urFR7w1Ck5XJhSC7 cgMfB3MkBOXiVzDUG87AmxeVa22EukJv82RP5pv8VPQrzdze4oYHoNXJDiV9eG8XoDMV TiGYn3dU51siFrNvOnHeAHG5ovbHZFuO+zLNJ76RqUGt7ZuD2r3GY9IY4gYhkrIWIiNF M65A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688113370; x=1690705370; 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=YrjvdZSqXKi+MzhLUYpp9EjIDqVatd4GVNSMEpyYnzM=; b=APGMisru13DAxjr3o1iz+Ry9lje0V587Uq7Fb8QKDflfSlmVlGJgOz4E/rfn6wHSCb dv1s6I17O7EJNjHDcIAkcf9xEpDVDNoVWUi4Y/Yeck0nvYnEG0yH5LnlLWob5v/7+iR2 Ut2jnpO+jB56YaDnvqwLxaV5bUMMV9kANN/Lp8XNvgJNt3Z0EFCP15zCYgsHvypn49oW tYzSC3ZaXzojUF7fI+JZQzelVq0HowRrQVZ3IjNeV7vl3tzfH5xvUsnpmD+eYh+Sd/wF RtYT7ep6lryqekqm0DA1CTDLEGbb2ej+fcTvempnnC/TcVkSN6cLNeq5uQ3v2QmDho3A 9YJw== X-Gm-Message-State: AC+VfDzvxpSgPvh5p29lwcoq+IVK3FCDzQ5QWxNysuJBKcPOnzc0b1HO NtC9W7CgX9gIaKpOOy6IpeTX4A== X-Google-Smtp-Source: ACHHUZ7fv25b4NqzS5nc52ICPAzmMdZpfzr3JEQ4jnDQJ4zoGPvq4G3o8jHq+fcAkq8br6tNfjMUmA== X-Received: by 2002:a05:6808:138c:b0:3a1:e128:ccfc with SMTP id c12-20020a056808138c00b003a1e128ccfcmr2248034oiw.36.1688113370162; Fri, 30 Jun 2023 01:22:50 -0700 (PDT) Received: from localhost.localdomain ([223.233.68.54]) by smtp.gmail.com with ESMTPSA id a16-20020aa780d0000000b00666e2dac482sm9462967pfn.124.2023.06.30.01.22.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 01:22:49 -0700 (PDT) From: Bhupesh Sharma To: devicetree@vger.kernel.org, dmaengine@vger.kernel.org Cc: vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, konrad.dybcio@linaro.org, conor+dt@kernel.org, robh+dt@kernel.org, Rob Herring , Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v9 1/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Fri, 30 Jun 2023 13:52:29 +0530 Message-Id: <20230630082230.2264698-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230630082230.2264698-1-bhupesh.sharma@linaro.org> References: <20230630082230.2264698-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Acked-by: Rob Herring Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/dma/qcom,bam-dma.yaml | 20 ++++++++++++------- 1 file changed, 13 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..c663b6102f50 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -15,13 +15,19 @@ 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: + - enum: + # APQ8064, IPQ8064 and MSM8960 + - qcom,bam-v1.3.0 + # MSM8974, APQ8074 and APQ8084 + - qcom,bam-v1.4.0 + # MSM8916, SDM630 + - 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 Fri Jun 30 08:22:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 698336 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 9E2B5EB64DA for ; Fri, 30 Jun 2023 08:23:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232490AbjF3IXD (ORCPT ); Fri, 30 Jun 2023 04:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232501AbjF3IW6 (ORCPT ); Fri, 30 Jun 2023 04:22:58 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B2F93598 for ; Fri, 30 Jun 2023 01:22:56 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-666e5f0d60bso1028430b3a.3 for ; Fri, 30 Jun 2023 01:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688113375; x=1690705375; 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=aB/NARlS5Ir2yzVRaT0fYnfX6oqtCT4qz1PmDL02FdU=; b=k1xTiUS8cd+tudGaoFNEjYyn20oxUcTr40P1+dDR6fSuTqYDuDgapbkNAapa2OMGEK YUTO/kla71gAiyt0HID5SqziWZrYztcyPkt8nOwMWIjfdjO+We2UqiByXJl9fzh/BMsU 6fJVEbpcFS7Xw4aQUkTmCmq+fvLna6iUc+uyDrGNg1m7FoUPUXAD8kRmGi6xCcJs8hfs mMSxQL9QFPklzqxfxAtm/5GmXEGLqRQ7gtTeQXbuBBtmiMuYY46Sp3yApCRmeYnx48Le 37xrvxj2h5squB9QuyBKgrtUALCf6fZxyChQGfB0N27D8xWMtR0TceQtn5RAvoiofWTf ErCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688113375; x=1690705375; 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=aB/NARlS5Ir2yzVRaT0fYnfX6oqtCT4qz1PmDL02FdU=; b=NHdv4Y6G1vzt3GDmeeB6zYwCQAqbGvf8aMJfzlsFDnO5v6HHwIXi8Nx62e+pvQ+nDi aVpHnSGTqMDZikFhNXFRJ293xdRz9MVEvYzVQYXnSaTrHlFDRLjWhaJ53VcR3fN/1UQa 4MUbleMEYU8jcHp3+tqoGYXiYmEkqPMZRvGgH7CPQfF45htDc9cNKmJ4J/jZ9qJ8paVh wTJlBW0SixJ5fPpzgzp3fLv0Jk9YUH8qvBVrD82nZx8RJ79VF2HcZrPWzpG3KonzIbnX Bnb3Y5ogrwl/tXFZyMhWa1TvvDls+d78IBawYdBTgrd8QyA9rplnsBG46B48Mp1tsOK8 QspA== X-Gm-Message-State: AC+VfDxLnlg8120s7yBUkyzW/XIMwCPF46F7ua0k/m4Z+3lGVk2GO+// tWGXQQji2+OYw5pkV2Yayn9TFy2pFmvI8PTOFTQ= X-Google-Smtp-Source: ACHHUZ42fhIYo4LeKf9iiBZSi2OLijZ04X55oE1u2vKp61P7Nv7KzUbbp06RSmmgrScmmb10J29DeA== X-Received: by 2002:a05:6a20:12c4:b0:127:462b:c41c with SMTP id v4-20020a056a2012c400b00127462bc41cmr2026373pzg.37.1688113375346; Fri, 30 Jun 2023 01:22:55 -0700 (PDT) Received: from localhost.localdomain ([223.233.68.54]) by smtp.gmail.com with ESMTPSA id a16-20020aa780d0000000b00666e2dac482sm9462967pfn.124.2023.06.30.01.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 01:22:55 -0700 (PDT) From: Bhupesh Sharma To: devicetree@vger.kernel.org, dmaengine@vger.kernel.org Cc: vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, konrad.dybcio@linaro.org, conor+dt@kernel.org, robh+dt@kernel.org, Krzysztof Kozlowski , Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v9 2/2] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Fri, 30 Jun 2023 13:52:30 +0530 Message-Id: <20230630082230.2264698-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230630082230.2264698-1-bhupesh.sharma@linaro.org> References: <20230630082230.2264698-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Since SM8250 BAM DMA engine supports six iommu entries, increase the maxItems in the iommu property section, without which 'dtbs_check' would throw errors. Acked-by: Krzysztof Kozlowski Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- 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 c663b6102f50..6433f2892ae4 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -44,7 +44,7 @@ properties: iommus: minItems: 1 - maxItems: 4 + maxItems: 6 num-channels: $ref: /schemas/types.yaml#/definitions/uint32