Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6911587rwb; Mon, 5 Dec 2022 20:59:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf53W6mYwPCn1cbUBWOJ/Z4Req2ra4N5XwcvpErNWZswjMKeincV45klar7GSc+ipjD/3+tT X-Received: by 2002:a17:902:b705:b0:189:e711:16c with SMTP id d5-20020a170902b70500b00189e711016cmr3393228pls.67.1670302763059; Mon, 05 Dec 2022 20:59:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670302763; cv=none; d=google.com; s=arc-20160816; b=bEba75CO1soobTJqFNX+Lopv1bTXdzsjoMY/HbfOD2oNBjtkpBV87nLORi6isj9fWC EvmBvwlp28SksJnQqYDxFf/PF4kUTl4jYEncVdTXvlFuMjFIMs4OjM4Kf8n97c3UfqOJ XdCJc+Yd1QlgdcGvO3B0r0wku8kOuoecWIRbWUTxRUCxAeEluYZegi20q9Bu3nEqSoAv yp5RXTmcfnsG4EwJZn835vS/aYuzOQ9Ab1zE/KCenIFn0xEsgyYp7ecqSu4C/3DXdBot pWTaAupjkeyB27qOcl7vteCOHyZFhN/ZF6Uq4PoAUc18syo5XBMf6WH/dAsmO0+k8OzL mXxQ== 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=DHn66Lw1d4cx434I/RfQKwlFZn1prlnYd32a7jBzc2s=; b=CC+X+EZtDXLXyxhTy9kaYl1Srvhh7Y2XGZPM33WO+6pm1MFjipQqOm2L7f5PKph5TV PJHq+M3j4GPVZ8I5/WFePmA62+sb1GE1WPebsDwwHLxj86Bj2HhHOBYj3UR3hgyAVA3r yKKO2b3bvkH2PbUswcuzxjHG0TGYctq2HVHg3urVCegP2OurqILYEn7D9M5xfzeRoMB/ J3qLwnHGiCJQOgG2pufwYb5Kl9Of8hqMkQuS6DGbEGNscYCCGd2tt/04sLP6N9AoNImW mL6B5JiTZ2yr54Ym7ed71A4cz55uFeh0uTZXYIdUtXWDkPEIeMxYsyJb6csJQE9Bf/xL boUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nbZrq4wU; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a056a000b8f00b0056e3c566bfasi16877022pfj.201.2022.12.05.20.59.12; Mon, 05 Dec 2022 20:59:23 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=nbZrq4wU; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233668AbiLFEgl (ORCPT + 79 others); Mon, 5 Dec 2022 23:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233178AbiLFEgQ (ORCPT ); Mon, 5 Dec 2022 23:36:16 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB4AF1B9F8; Mon, 5 Dec 2022 20:36:13 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2B64a4cD084411; Mon, 5 Dec 2022 22:36:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1670301364; bh=DHn66Lw1d4cx434I/RfQKwlFZn1prlnYd32a7jBzc2s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nbZrq4wUf3xlthZ0fVr1GUYJ0MIYQgxkS/rwXY6jhMgxDrqnPz9mxivVgq5wO9wus FQZbF0wHVBfjOoBIlVU41Vh7l7zHiikKj4Cfpt+yA7VJF4T2y0rYm4aEXm8b7vn8rj 1rwmlJvFV5iw++cArwieDfcearmqq2RabS7HaTB4= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2B64a4F8034696 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Dec 2022 22:36:04 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 5 Dec 2022 22:36:04 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 5 Dec 2022 22:36:04 -0600 Received: from uda0132425.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2B64Zx2Z097382; Mon, 5 Dec 2022 22:36:02 -0600 From: Vignesh Raghavendra To: Peter Ujfalusi , Vinod Koul , Rob Herring , Krzysztof Kozlowski CC: , , , Vignesh Raghavendra Subject: [PATCH 1/5] dt-bindings: dma: ti: k3-bcdma: Add bindings for BCDMA CSI RX Date: Tue, 6 Dec 2022 10:05:50 +0530 Message-ID: <20221206043554.1521522-2-vigneshr@ti.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206043554.1521522-1-vigneshr@ti.com> References: <20221206043554.1521522-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 AM62A SoC has a dedicated BCDMA that serves Camera Serial Interface (CSI) IP. Add new compatible for the same. Unlike system BCDMA, this instance only has RX DMA channels and lack TX or block copy channel. Thus make those properties optional. Additionally CSI RX has independent power domain, add the binding for the same. Signed-off-by: Vignesh Raghavendra --- .../devicetree/bindings/dma/ti/k3-bcdma.yaml | 87 ++++++++++++++----- 1 file changed, 63 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml index 08627d91e607..d7b5adbb9b2e 100644 --- a/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml +++ b/Documentation/devicetree/bindings/dma/ti/k3-bcdma.yaml @@ -32,9 +32,66 @@ allOf: - $ref: /schemas/dma/dma-controller.yaml# - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# + - if: + properties: + compatible: + contains: + const: ti,am62a-dmss-bcdma-csirx + then: + properties: + ti,sci-rm-range-bchan: false + ti,sci-rm-range-tchan: false + + reg: + maxItems: 3 + + reg-names: + items: + - const: gcfg + - const: rchanrt + - const: ringrt + + required: + - compatible + - "#dma-cells" + - reg + - reg-names + - msi-parent + - ti,sci + - ti,sci-dev-id + - ti,sci-rm-range-rchan + - power-domains + + else: + properties: + reg: + maxItems: 5 + + reg-names: + items: + - const: gcfg + - const: bchanrt + - const: rchanrt + - const: tchanrt + - const: ringrt + + required: + - compatible + - "#dma-cells" + - reg + - reg-names + - msi-parent + - ti,sci + - ti,sci-dev-id + - ti,sci-rm-range-bchan + - ti,sci-rm-range-tchan + - ti,sci-rm-range-rchan + properties: compatible: - const: ti,am64-dmss-bcdma + enum: + - ti,am64-dmss-bcdma + - ti,am62a-dmss-bcdma-csirx "#dma-cells": const: 3 @@ -65,19 +122,13 @@ properties: cell 3: ASEL value for the channel - reg: - maxItems: 5 - - reg-names: - items: - - const: gcfg - - const: bchanrt - - const: rchanrt - - const: tchanrt - - const: ringrt - msi-parent: true + power-domains: + description: + Power domain if available + maxItems: 1 + ti,asel: $ref: /schemas/types.yaml#/definitions/uint32 description: ASEL value for non slave channels @@ -115,18 +166,6 @@ properties: items: maximum: 0x3f -required: - - compatible - - "#dma-cells" - - reg - - reg-names - - msi-parent - - ti,sci - - ti,sci-dev-id - - ti,sci-rm-range-bchan - - ti,sci-rm-range-tchan - - ti,sci-rm-range-rchan - unevaluatedProperties: false examples: -- 2.38.1