Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp296645ybg; Tue, 22 Oct 2019 21:02:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6L4OsCDn0TiLmEuGB3bty3bNYe8twK1AopC6FZnGGIoBQP36hx7yZU0IGkCKXzL0j0Dtk X-Received: by 2002:a05:6402:1547:: with SMTP id p7mr24053789edx.28.1571803323067; Tue, 22 Oct 2019 21:02:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571803323; cv=pass; d=google.com; s=arc-20160816; b=RFt+2JkXziesmimHjxIJjaQGU6WyQ2TcZkpVto9+VjNeWBEXVyM9zbdp+P+l7M+D43 M5tYWe9XcgIFjaeZB0YZm6WiPgI1jDU9hrKl3jF3ZltyewNOL/mRHlXyDdAjn9z4MAQO aUGzgTzGjKJBNEnIYBWQde4pHNkx6bFPNjxM0/fP1x3FQ+4cXACsxru6WGplWgik4St/ iGSQW0OkgYW+ArawNXTF1PIMGRys5DKE5S+k/tLj/pTZ5PhhbZrtZDBbMo44pjl7kDyL Ij/v3B9R8paDUbIIYAzUcoyIyzC0fcGp/eOLn/dStQhsWu1uYkByw5LKiMHvgetnCBbU sJ/Q== 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=+ZC+Ztn4Z88CANaZD4GP5wciSkS3J6M/3/Mvs4l0lQU=; b=ypU03I0vjpgvVbV608saa0ILYJh2mMHV7QIZ5yFjqxHwacVLDFmzY5L3jdO125kt+I 1YXiQET+F/tNNILdKpqUIdwFuv+icEyDcqmNc7DAjsZwK2mzk+aGXnpJWiD19U2GhfC0 X+hpRlWdI9oUzpw93+1soRq7k3hsWfBl9bTsd8Wx0SkpRV/Ci/Vw1mJ3bUAWeZgeUxG+ vFTlqftatDBNAFDMu9FJP1JkpENJ6YAec+x94maosxjW0vQjNTcYesQwvAiwDtwCDmlN ctcLlPZSY80p2RfmCi7uTfAuXDTLK/ClhKNaazTlVZKYR0vqE6esvQkgOafpYDHdJ6VL RdSA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zoho.com header.s=zm2019 header.b=WimihvXB; 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 j12si11697389ejx.282.2019.10.22.21.01.38; Tue, 22 Oct 2019 21:02:03 -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=WimihvXB; 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 S2389570AbfJWDFy (ORCPT + 99 others); Tue, 22 Oct 2019 23:05:54 -0400 Received: from sender4-pp-o94.zoho.com ([136.143.188.94]:25421 "EHLO sender4-pp-o94.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389529AbfJWDFy (ORCPT ); Tue, 22 Oct 2019 23:05:54 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1571799938; cv=none; d=zohomail.com; s=zohoarc; b=alDZSa/zwVG35lZ9NVMD8gMTfszk2u2d7oJPcmh1zY3+CF65WHrDxjPseiXXSugUtM5tSyM1QbBmV3UzOfiUGdIR+5eEYJjFcAittPFz3UPCpMW/0CvAVZbLs1jSUPPc0avUXhdwAwIm/LjRXdP0ZhtumDgrQdUEYQRZ6ZPWLuI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1571799938; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To; bh=+ZC+Ztn4Z88CANaZD4GP5wciSkS3J6M/3/Mvs4l0lQU=; b=c5BKo9mAqAHVqLt2QsGeEXrcZh2gUHRpW3yQAUSUlujOFielwA/n5Y8avbhG7S4t+qHQP0dlfTUcEl/MVwR5x6wjmemXnKpGJcfDmwcUh16OMQ510T21Pzrfk+qO5K2GusGniNoSD18RPyP979DD6K4cH3/pdFuRqvDUNpQvWHI= 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=hyNBCoiEGawmaV2oRxT66jQbV6DsG7UCLnSv2Na85CdDtvCtY+RaT3uN4Wf6zQuIAi2NywGr0mxb nr8pD5VMGe4pFc3Mo/FTlDD6MgdVX87+06ls+QsiKeDcmWLfptlZ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1571799938; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=2663; bh=+ZC+Ztn4Z88CANaZD4GP5wciSkS3J6M/3/Mvs4l0lQU=; b=WimihvXB59/+jlhasElTxyEYdebY4G4f6YEba+mf4x25aHEEV80QqvfIad/KAZK+ TkxD+bu8rR8fB1UuM3t9aG9Uhcwc6l9plUqO4QAOnbBTnzjwn5ZyrZm1s/oJD3zYUOl Nhn0xZBryou9SLg56HuW0dokFl1lft870LM/2el8= Received: from zhouyanjie-virtual-machine.lan (182.148.156.27 [182.148.156.27]) by mx.zohomail.com with SMTPS id 1571799937274540.3617094666886; Tue, 22 Oct 2019 20:05:37 -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] dt-bindings: DMA: Add X1000 bindings. Date: Wed, 23 Oct 2019 11:05:02 +0800 Message-Id: <1571799903-44561-2-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571799903-44561-1-git-send-email-zhouyanjie@zoho.com> References: <1571799903-44561-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 DMA 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