Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp289953lqb; Sat, 16 Mar 2024 04:34:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC+8RQjxZGrH7Ao2OTwHWcu5ozPOvm6xI59fgUEMoFZwvVg/kP2/cUWi6I3b1CHpIvL9wnaL43XKM6Xf+be4YkvZCCKGPZFDYg1KwHlg== X-Google-Smtp-Source: AGHT+IF5gmIOKiJoaGxNOVCl+oy58DJ++O/XYFSqJfbx9rWpgy85kvxWnFnRhpxM/MggoNzrtjAp X-Received: by 2002:a17:907:2d9e:b0:a46:420f:8ecb with SMTP id gt30-20020a1709072d9e00b00a46420f8ecbmr6345135ejc.62.1710588870714; Sat, 16 Mar 2024 04:34:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710588870; cv=pass; d=google.com; s=arc-20160816; b=AXEyvMGIdU4Us2x01tSdiyD+jy8om0G1TGleP1mEHVEFu5OXGgheqC75HDroliWtQ9 qVEknA0eL34qcOFBQwDcNHLVXWYXD9nwGOLV6OJlr9viGR1GOtDMhQZEG1u6E1Xn/tBh 8Bm93cBVSTqDUvYMtBhF0fQNe6wL3Kws0oPVekKitogOTGX55KNeo1CGdzQWjNhutdEf 0/DjSTkAoEKUrpXGZAJs9p5nmJg+YH31M6IUKYCUcze5L9T2aUZkKyO0gizl+Dup3uS1 Mw9qUQfNvZtX791wVdI246epCYF4P37SzfL/4EOp+Iq3bv5TVn3psvnnOWvJVoQDAC5J +gvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=HzA1CStft5WUPRvH1xAQ9th83WDGFqyEZl4blA146+M=; fh=HswpDLPM/4FtWurS/t4Xcm42jr8GjwccTPnN61sN7fQ=; b=hZn8Q9eZnvU9selzxL+RKk8RfGahJXmPqR2BbNTrSww23ktp9sAplcAs92IGyOs67p 3Bxkst3c+46MJYDiMBFPE/mXHGjho5mBnpPLkdD9bKudvcYjR8Rb+Z74gJd+MQ/0RJmG AApdaYWWiwsqjiThv+7uaRjeQsP6QUd0sSzDB8UuUIVABVo6uigVa3aOmkfSqDmxdJ7J 07tNe6SJEJc41egIPpSchHDyaVHbJ8lmL7iGbzuuumdmo1ffmVJXZJAhXonG07zCXFA9 Y1itXTjOF57Jfr08ZvjMSArxgy0+QTHsVg4JGE5bmEBGJlRXll5FPItNGa5mHm4z/4YX +rWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9s8jeD1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i15-20020a170906250f00b00a46ad25817asi44517ejb.286.2024.03.16.04.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 04:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9s8jeD1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3A6391F21A7E for ; Sat, 16 Mar 2024 11:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CDF418AF8; Sat, 16 Mar 2024 11:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n9s8jeD1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52F7F1429B; Sat, 16 Mar 2024 11:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710588852; cv=none; b=UjXcMar63eXKDwryhe9htwVFZCLQLjCCL7Vt3WVXIUKKtor9msqNDXCpGLwVa+Z3TK5zzvS0REGdBMOrRt9/ABvS1JlX6kaNE8zsps8frsS1OMV2QblYRgVAViv089DNU1PJrTE+X5KiDN+V2aQGEF8QuT7tFO+ygXWN7CEM59c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710588852; c=relaxed/simple; bh=K9Bfz33mqZSL+LnFPLofVRuX+BnBX7o3BY7bNa6bqYw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=omBgPMiVO9i8WWroDIcDu+7+01MLPu4gbZtR7LU3dRmUbS65JQlV0qdrme1Iy1oMKjd5XFNvBY9eRwYnWXCtc2ZIqZx+uJR1k5RYUa5tfN4tFbUoaK83AazqLoGYbB/KZVNrzIy5V+1K9UCQ9MisuxIuqN2IE7dIJQBI6ltto24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n9s8jeD1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id DBF46C43394; Sat, 16 Mar 2024 11:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710588851; bh=K9Bfz33mqZSL+LnFPLofVRuX+BnBX7o3BY7bNa6bqYw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=n9s8jeD1U2Koja0dUd8IcDaKTKV0Ax/i49PX6NlDTyWTks6vOuI1FVnxplqm2ODG5 z4lnDsJwRrOB0kRXkV5xdgwH3/fgS0qdostdOPaHVj0vdadOQBkDDYY/hPKUpSGTUc 4BypBhKpO+VRwYQR8+oNW2mL+JY7iqjwZbCqH7WtikjUY8CFVc6G2cQdl182Oz37ed /+ZF4qJyUr4YzE5mSGx6/3tMHCP1IS7jDJM3X6Fwww8rxRJd0ySmDwl8RrI1qatZKO sTsDpDYqWmf9FbbbtyE/nzRZmflTc0iltuZHd+i8RU+bxVjchWXBsyI/SOb3W64Mxy bINq6miwBWW9Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAAE7C54E60; Sat, 16 Mar 2024 11:34:11 +0000 (UTC) From: Keguang Zhang via B4 Relay Date: Sat, 16 Mar 2024 19:33:53 +0800 Subject: [PATCH v6 1/2] dt-bindings: dma: Add Loongson-1 DMA Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240316-loongson1-dma-v6-1-90de2c3cc928@gmail.com> References: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> In-Reply-To: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> To: Keguang Zhang , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710588849; l=2188; i=keguang.zhang@gmail.com; s=20231129; h=from:subject:message-id; bh=zE5CW4nW1JlxiVUlqwg3Ou+NzTgOjpf36TPsPJRMfcc=; b=6IHnL5oJofud1sZyiuybqQC/60Ow/y2P3LA6puHgIMw1fu2XcfQm9jX28FIMNmWzIjpRuQ6Xa Y4b9qZglbJkAQoK/4sQca6gkTSLSVZ7XIHHyHCvZeOoll6xTbEPODgL X-Developer-Key: i=keguang.zhang@gmail.com; a=ed25519; pk=FMKGj/JgKll/MgClpNZ3frIIogsh5e5r8CeW2mr+WLs= X-Endpoint-Received: by B4 Relay for keguang.zhang@gmail.com/20231129 with auth_id=102 X-Original-From: Keguang Zhang Reply-To: From: Keguang Zhang Add devicetree binding document for Loongson-1 DMA. Signed-off-by: Keguang Zhang --- V5 -> V6: Change the compatible to the fallback Some minor fixes V4 -> V5: A newly added patch --- .../devicetree/bindings/dma/loongson,ls1x-dma.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/loongson,ls1x-dma.yaml b/Documentation/devicetree/bindings/dma/loongson,ls1x-dma.yaml new file mode 100644 index 000000000000..06358df725c6 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/loongson,ls1x-dma.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/loongson,ls1x-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-1 DMA Controller + +maintainers: + - Keguang Zhang + +description: + Loongson-1 DMA controller provides 3 independent channels for + peripherals such as NAND and AC97. + +properties: + compatible: + oneOf: + - const: loongson,ls1b-dma + - items: + - enum: + - loongson,ls1c-dma + - const: loongson,ls1b-dma + + reg: + maxItems: 1 + + interrupts: + description: Each channel has a dedicated interrupt line. + minItems: 1 + maxItems: 3 + + interrupt-names: + minItems: 1 + items: + - pattern: ch0 + - pattern: ch1 + - pattern: ch2 + + '#dma-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - interrupt-names + - '#dma-cells' + +additionalProperties: false + +examples: + - | + #include + dma-controller@1fd01160 { + compatible = "loongson,ls1b-dma"; + reg = <0x1fd01160 0x4>; + + interrupt-parent = <&intc0>; + interrupts = <13 IRQ_TYPE_EDGE_RISING>, + <14 IRQ_TYPE_EDGE_RISING>, + <15 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ch0", "ch1", "ch2"; + + #dma-cells = <1>; + }; -- 2.40.1