Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3990395ybg; Fri, 25 Oct 2019 11:45:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN0UDgSTTrwl/GWBMzCHjEBuSTKrWS4c9A3CV/rslV16teFR908Qo09Dz59lmLodE42cC6 X-Received: by 2002:a05:6402:17ec:: with SMTP id t12mr5704670edy.37.1572029156658; Fri, 25 Oct 2019 11:45:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572029156; cv=pass; d=google.com; s=arc-20160816; b=nfi/a/SIxP1sGiL1HoamKT0y7Wd7cFLeoPXajq2rXFBaJIhplMyJru1iidDAi5iiJU TSJKppAl4/yyxSjpB14ww2UFOsEj+9q7IW0d6CSWXD2NIGGCBtDVtmJIpG/P+MQLn9hC D2LbEJpMim+fPkXECJZMnfDxzoy2e4l0ByzwOEnCJ7Qrirc/T3NlAyUtkfKVr4eIWk0F rmvIOd/QiM49hvmnBcW5VtSfhuFB3XSNTsgX37XJM+kTVL9vXrtN6whC4V7y9pLeM4qM E644hqUUCBnLayz36gVYzLPKkptcpeEV/uUQUU7faHhkV4Ian1sPPCKeEXx11+AOgm2l 1LHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:domainkey-signature; bh=3LfvkXpP25PpD+nI8+Onyh93L0MPN93ZWQCuDDun+fs=; b=oImzETG4O14XmASj0YcqjIhNcuAIfuAVTNbCOSpKJ4OtckzwP5sefF3dr+rlxDiwbe P1hDR0uQlwv1B2k8uO0DXoEi2NBdp8A5jAVUjv/QgzkYgPoDURNdNwWLjZG9hBhHot+S maoIMWKBaAO4B57ClwcD3E6HKDDm4COqnIIyvJh/k+XmdB8yskt/SuzrdNybmMnyB1+X 1IGQhEzdSeJhfhpJO+9rsTRwH5WBYJ7V297Whjk3HdfpcWxqeNNjFqwYCeBlOiD3+k4T iipL78/+4++A96A9Y196HmCwVyfcVe7nw1ndjMViYfAY1irGLL0bGhDG13KU9m1+tPTZ smew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zoho.com header.s=zm2019 header.b=E1PHkC1R; arc=pass (i=1 spf=pass spfdomain=zoho.com dkim=pass dkdomain=zoho.com dmarc=pass fromdomain=zoho.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zoho.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si1839307edg.66.2019.10.25.11.45.32; Fri, 25 Oct 2019 11:45:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zoho.com header.s=zm2019 header.b=E1PHkC1R; arc=pass (i=1 spf=pass spfdomain=zoho.com dkim=pass dkdomain=zoho.com dmarc=pass fromdomain=zoho.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zoho.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440028AbfJXRWp (ORCPT + 99 others); Thu, 24 Oct 2019 13:22:45 -0400 Received: from sender4-pp-o94.zoho.com ([136.143.188.94]:25435 "EHLO sender4-pp-o94.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389384AbfJXRWp (ORCPT ); Thu, 24 Oct 2019 13:22:45 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1571937745; cv=none; d=zohomail.com; s=zohoarc; b=TAxmW6D9Tpcr3Dp2qZOOIV9SkkGZrU0lhriADwBCza2gY7RGfdRFK/cWrvCl8U9wbU9gh70HlxVXeV2c3Dt2DZVU8V3tVbTxKKfuOgNxtDRqByCoi2mR6b1Mp8mqzTa6CtBdhXuDehlK7IV20jakxTcd1MzA9ljQ02ua3K28z64= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1571937745; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To; bh=3LfvkXpP25PpD+nI8+Onyh93L0MPN93ZWQCuDDun+fs=; b=kLDn3H3etxwqAqof1OXcEabf9p4gjXIRYe6+085q3Fb4HxVwN2EdLE3dvs00s5qbDJEjpKYvLXdd7OJ179uPtnem54jir8/3ipUonUz7Mx9+pYe69MiSGNlrUbY7JpfGo3yS5DmkMlPWdT61550WbtM+ZCeaX/8wtoDbeBOUivk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=vkCCn3dMizrR3P5FBYgoYpNnoFsq7HNHBN907xOZg1r1Th4vPsr4u0XtMRxO1sviKgh3MqfgtV2p qOYWbw6zC1MfRN0RkWnGCshBeyg42Q2YYTrK7pGHVkghLyAQQJL0 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1571937745; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=2669; bh=3LfvkXpP25PpD+nI8+Onyh93L0MPN93ZWQCuDDun+fs=; b=E1PHkC1RuRsveeWkrTTgIzNBSVwCeDfyaA9/uxGHUBW7Q3p3VF3476DuXKQd7R+M f0ldrqh8Vvf6o7+2Z16kT/ZV9vRVWH5j8awervsV4Mer5zHobfERc0gGvcFt464ZNUc nGqx7qCn1Gb62ntjSk6tnkLgDfuijJh3n+h+xw4U= Received: from zhouyanjie-virtual-machine.localdomain (171.221.113.49 [171.221.113.49]) by mx.zohomail.com with SMTPS id 1571937743688897.6363219460266; Thu, 24 Oct 2019 10:22:23 -0700 (PDT) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, vkoul@kernel.org, paul@crapouillou.net, mark.rutland@arm.com, Zubair.Kakakhel@imgtec.com, dan.j.williams@intel.com Subject: [PATCH 1/2 v2] dt-bindings: dmaengine: Add X1000 bindings. Date: Fri, 25 Oct 2019 01:21:09 +0800 Message-Id: <1571937670-30828-2-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571937670-30828-1-git-send-email-zhouyanjie@zoho.com> References: <1571799903-44561-1-git-send-email-zhouyanjie@zoho.com> <1571937670-30828-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the dmaengine bindings for the X1000 Soc from Ingenic. Signed-off-by: Zhou Yanjie --- .../devicetree/bindings/dma/jz4780-dma.txt | 3 +- include/dt-bindings/dma/x1000-dma.h | 40 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/dma/x1000-dma.h diff --git a/Documentation/devicetree/bindings/dma/jz4780-dma.txt b/Documentation/devicetree/bindings/dma/jz4780-dma.txt index 636fcb2..ec89782 100644 --- a/Documentation/devicetree/bindings/dma/jz4780-dma.txt +++ b/Documentation/devicetree/bindings/dma/jz4780-dma.txt @@ -7,10 +7,11 @@ Required properties: * ingenic,jz4725b-dma * ingenic,jz4770-dma * ingenic,jz4780-dma + * ingenic,x1000-dma - reg: Should contain the DMA channel registers location and length, followed by the DMA controller registers location and length. - interrupts: Should contain the interrupt specifier of the DMA controller. -- clocks: Should contain a clock specifier for the JZ4780 PDMA clock. +- clocks: Should contain a clock specifier for the JZ4780/X1000 PDMA clock. - #dma-cells: Must be <2>. Number of integer cells in the dmas property of DMA clients (see below). diff --git a/include/dt-bindings/dma/x1000-dma.h b/include/dt-bindings/dma/x1000-dma.h new file mode 100644 index 00000000..401e165 --- /dev/null +++ b/include/dt-bindings/dma/x1000-dma.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * This header provides macros for X1000 DMA bindings. + * + * Copyright (c) 2019 Zhou Yanjie + */ + +#ifndef __DT_BINDINGS_DMA_X1000_DMA_H__ +#define __DT_BINDINGS_DMA_X1000_DMA_H__ + +/* + * Request type numbers for the X1000 DMA controller (written to the DRTn + * register for the channel). + */ +#define X1000_DMA_DMIC_RX 0x5 +#define X1000_DMA_I2S0_TX 0x6 +#define X1000_DMA_I2S0_RX 0x7 +#define X1000_DMA_AUTO 0x8 +#define X1000_DMA_UART2_TX 0x10 +#define X1000_DMA_UART2_RX 0x11 +#define X1000_DMA_UART1_TX 0x12 +#define X1000_DMA_UART1_RX 0x13 +#define X1000_DMA_UART0_TX 0x14 +#define X1000_DMA_UART0_RX 0x15 +#define X1000_DMA_SSI0_TX 0x16 +#define X1000_DMA_SSI0_RX 0x17 +#define X1000_DMA_MSC0_TX 0x1a +#define X1000_DMA_MSC0_RX 0x1b +#define X1000_DMA_MSC1_TX 0x1c +#define X1000_DMA_MSC1_RX 0x1d +#define X1000_DMA_PCM0_TX 0x20 +#define X1000_DMA_PCM0_RX 0x21 +#define X1000_DMA_SMB0_TX 0x24 +#define X1000_DMA_SMB0_RX 0x25 +#define X1000_DMA_SMB1_TX 0x26 +#define X1000_DMA_SMB1_RX 0x27 +#define X1000_DMA_SMB2_TX 0x28 +#define X1000_DMA_SMB2_RX 0x29 + +#endif /* __DT_BINDINGS_DMA_X1000_DMA_H__ */ -- 2.7.4