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: 114614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10198910vqr; Fri, 30 Jun 2023 01:37:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGNxQwQVmDuu9U8QVdYOZJA9Vdi/fsocb82/J55Ow+h/+L9h98iZ4m5mRMMNyYBTxcD8ES X-Received: by 2002:a92:c20e:0:b0:345:a5ab:3d5 with SMTP id j14-20020a92c20e000000b00345a5ab03d5mr1906473ilo.3.1688114274101; Fri, 30 Jun 2023 01:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688114274; cv=none; d=google.com; s=arc-20160816; b=C7pWj+Fvhvjbqn27FFtOQl9S//5CSTNfMAPqGfMmqG039xyHcFngEWH5s/RdzqFnjE kyUKBNg4AzEDbU6KW1ngQG0aUSB3L7AmyP1zzh6yQErvwAJVZpznuUp4i5bSbBK7l7Cr 4XpsEdgnIxoC24AljULwksFH7mamdu1TwFd179OgoX3jnqlDuKuilyGBGOeZbiTudPYI X0ofsuapprRaTUXeqfgLm4yXXqaR5+kGpEjxnDr27ABOl1i+BDXDdJo0IguQRnvUR5OW BqKmkQoHwodecdskYhIbnv2kxpaIAmYP7ySzvsc4Fl6lSJB/dO7N/7HeH1Dk0gBDqhP/ c5Lg== 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=YrjvdZSqXKi+MzhLUYpp9EjIDqVatd4GVNSMEpyYnzM=; fh=O7LG7difDkbS6BVQ+5B/7ZWsEr2ppxjZ1zGki8/bP9c=; b=eSTkFOr/zISTxTpp7SZ71k/MfpauEcbD6E7SO3XrX9WYj1IMmP8nhonmIxLtojNCaL JRfePpz/CBTLHtrdE+zbSsq+ciHa1Li8JyMXXOx7g9oaH9g7MrPK+jj6JHKAJTqXQ0E/ kWCbJ+ZWxlmqun9gdVZKfRxbVMvHUlGeGPll+a8+lPoQ8NtmGp+w9Ejv0MNPVLDtE5dR kIrCDvAoEpiU4vD19K9TPJ6sJ+nW1pm+++wp3Em8hD3PljpZ5rfRUOIZbFxXwf1bADa+ ZCWTxUF+dvjzl7v+dZasoUFZ5xj1PA/fEMu55/oMDQgS+eyYqaU+lY82Zsms5FwltpjW bdFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdGrOZqU; 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 b13-20020a63d80d000000b0054fe7b18671si12372673pgh.809.2023.06.30.01.37.39; Fri, 30 Jun 2023 01:37: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=PdGrOZqU; 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 S232491AbjF3IXE (ORCPT + 99 others); Fri, 30 Jun 2023 04:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232486AbjF3IWw (ORCPT ); Fri, 30 Jun 2023 04:22:52 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC47130 for ; Fri, 30 Jun 2023 01:22:50 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3a37909a64eso954109b6e.1 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=WXcJQYHWmu+zQ0xz2pcuYFXWOUUx6WWqGZdAjM64d75HqoXBkGvwZGL5gaRqeGod5j CPPad/5VfR8qO1FO9BVNWe0JEdm2h9p0tOaBt7tDVxINbfKa7L2IfKw/+7S+PRTE4GxZ Trc1XOg0mv9ZTTugWKep/vGsuRsORWrBmb1fvV+GQFXqD5eR1/i7hCyhtHlLut/SsVQV /ZjOa8JRZzDsn7h48as3oeMDHKTfCAeo+X0MCB5uBOaefJltUwh1Qeq57zx2UXJZWZGr qK2qtPiiN6cMspAB1qXNrZ+9WhMYKM7o1ekQsvauEjdvK3CaBraKa8aY2bVE1FRsNRvr gMuA== X-Gm-Message-State: AC+VfDwNeVutORCScqrwX6kuqyU/K6fvIknnc158NUvUD/2ZIVHHIzus oJEe7W1gTyATjROYzRspmkX8jrhPn0mE5MtacxQ= 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 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1770116112965326156?= X-GMAIL-MSGID: =?utf-8?q?1770116112965326156?= 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: 114613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10196042vqr; Fri, 30 Jun 2023 01:31:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJYHwsEYsRqMhCFUTM/KntpuduF7fdsN5MGwpVFPkJbqte4x5lvck3GoWKv9Ja3pZC71FU X-Received: by 2002:a17:902:e5c5:b0:1b8:17e8:547e with SMTP id u5-20020a170902e5c500b001b817e8547emr1617903plf.1.1688113880374; Fri, 30 Jun 2023 01:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688113880; cv=none; d=google.com; s=arc-20160816; b=RJfsfxeXyW33kJzvIsHToM4kN6VokUbSLnd0+FfPn94ZSD12M+wJONO/AithA/OXJZ Ze4vw0tv7+JWzD1AFvmqT9w+j7O5NC6f0CTV1oeNBNdSfYP0512mNtM8eqhha7Ei8t3U KDYl54AZNVHePtnKvBwvBfpIbySKbWyQJxzDi5KHtdC/Q57d0F4URfSVKbHeH8auvb8S pBx8yerrnSnxEnEn3mtEyHXwaDJRuUQGuNqcz5WwTgs/NLiQ+lF9r0Ym3L1ru9Dilm3A RdnCEruzOloJqv7QiouW03KxUFxOnpEjHCpC9Ytljt9ebON9L+sQOVnQuO6ExMk62Ris tymw== 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=aB/NARlS5Ir2yzVRaT0fYnfX6oqtCT4qz1PmDL02FdU=; fh=ARPo0Ar+zNtfRFRhFemxisKq8x/vnAlf2dYZocNvRl0=; b=fyPLpfG2JEfGlDt/ozlkgXOD9pp24nBX40m+uxyKRswslUtC97RmOZoJu25CXbNn1P I2xgBJ5jsui+jUq+uxhpv1HcmsZucGLOoLcL8d8B2CsY3A4bUz9B8Y/mNnljV8XBngIK Rspof1OrTrMbxDTBUHiLXWiP1XP7ie5l3JXhYJEi9Tla5ReM4pEecUK697BDN9tq+8Rg HuH5+Ui9bHkvDrP/b2EUr7SmxqZHvH8oC9ZF7BN0zrMJLcZFHW2KWqVZsxtO/cp3jD+A JV0z01eD5C/tXBsYR3K9lGGb744MSiDNW/eJ0WjsHOL+61wnyeiukss8XYZYqK4TlpLk abGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k1xTiUS8; 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 c13-20020a170902d48d00b001a1bbc5bea5si12726948plg.537.2023.06.30.01.31.04; Fri, 30 Jun 2023 01:31:20 -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=k1xTiUS8; 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 S232470AbjF3IXM (ORCPT + 99 others); Fri, 30 Jun 2023 04:23:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbjF3IW6 (ORCPT ); Fri, 30 Jun 2023 04:22:58 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C48535A0 for ; Fri, 30 Jun 2023 01:22:56 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-666e6ecb52dso1028458b3a.2 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=OyH9cN9tLDwh5PkRU79DaFdT5qVFto/XfSnhRrgqSdNUr+DbnATrxqOPXHeUKJlgTR 0wGQQTMRtHlINX5X+1AxDLsx5mA0QSxqgyKtH4ca5PayykXSbj0RhFM22tiAFhTSOjyH jsadG8cASUZ9I4XykhD52Q/TIlsk44BjsY2DMm9/8GNOHOafFfnXmNiqz+1t9W4CUZGb 8ySfhPo7BBrGdVQRJk90NF6+REaJve3Uy91D3raF5lg1v2FmvfLH5AcpRvit3Gptkbkk bQ33aH7llA9ivRXeq4bb2yXqyY+hNJ5grECPouWGcplIknGoPh+Kjc1qDpIb2MIGK0dN bFCw== X-Gm-Message-State: AC+VfDwUQ5iOmAWbVTWQdUASlhvvKWdxaR8LmK0Xa/wKzNyaw573XON0 +bsgyotRbgHX1jkCfkaPk/QlkA== 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 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1770115700063961384?= X-GMAIL-MSGID: =?utf-8?q?1770115700063961384?= 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