Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp177788ybb; Tue, 31 Mar 2020 20:23:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLDVhGD+vk8VPl2TmQ+HeZXwLLreRF9/rAQp0kg1VbYM/O5ND6FSy5LbcVepcQgBgrOxChx X-Received: by 2002:aca:4082:: with SMTP id n124mr1366679oia.112.1585711432110; Tue, 31 Mar 2020 20:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585711432; cv=none; d=google.com; s=arc-20160816; b=lT+4mdDQfC1J4EfCvRJJ/xbIHHP4aO3IdBminkKuexSH5fhPT1GIePTQP3w1DMLdNc xYWOX8R2uQ9HuSb/WkXE19oDUQ4iHHSYjysQ2z8ZAWx/c7ArF3FH7Ppsr6iMUHsqJQjD P1OF1zqP+J2EXHJN6I+dDfpX8lDmYIdbE0FD/USlCieKiKvvn9E/qiOmaGMV39JSMzSA hNjaHwmCT3AbM9Z5UZdC68AzB3KtRyVqaCgTqT+jE5wiR53VUNJJ5PUUKpdWQfldQq+Q AmXuJXbcxKF2Pbfyx8508ArR5yZt5AhBta5BIL2y/ikNWL3Jn4JkZfRPUHVYwJtgqcvr w57g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=6cmk4VhYcoiSK0648BJFDTb8WGo1i4aniwWtusevAaQ=; b=mBfNnD+Omyb9GdhETu4veaeRkoFv5OHK1PGwTz201z94khD+lBPhk4tnZmYm0jiGE/ 2XP1S1xzaudX80rWjafQrTXqC9Lpk3FVEEz51f7KSlJOvVZeWzFwh3QgzRLIGgu+VNew yiYyT0R2HDzNOKT5xbbY3RsdeELEau4OU7tOZyor+xVyObhsH4E6WNVinFgqqBHDxyA5 fKNTktmpM569Eqj8ruwZ7CeUVMecmmQ/iGreNQSosE1jtaL83QiqM4ARZuK00fFVjOhG etXebinQvELDkFecsdmGt7sj2454CqDgOECvB28bFn8heCl2sUuqt6u6VC7IoHOM/7iy O2Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=n0crX8Gx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si360382oin.43.2020.03.31.20.23.37; Tue, 31 Mar 2020 20:23:52 -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=@nifty.com header.s=dec2015msa header.b=n0crX8Gx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731644AbgDADW7 (ORCPT + 99 others); Tue, 31 Mar 2020 23:22:59 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:19739 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731593AbgDADW7 (ORCPT ); Tue, 31 Mar 2020 23:22:59 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id 0313MSET017333; Wed, 1 Apr 2020 12:22:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 0313MSET017333 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1585711350; bh=6cmk4VhYcoiSK0648BJFDTb8WGo1i4aniwWtusevAaQ=; h=From:To:Cc:Subject:Date:From; b=n0crX8GxExB2dPg/8QhQatWt02gUfaOo6/Q6XF2RR3LPaFrXrpow0/nhIbhk9UaSp a/+rhR9iy+jrfi4TIoRdURW1PVBAGPQ1E0Qbb7appR14bGzqqheIN3+Tx7tsYwceEx mQJxi6OQmpZb6Nar5VNm/dmqec/IsB23ZD5zBEZG7VFGh1uBd2BGZXjlY06PyQGSak 7xgUgyNtqdbz+b1rgf6jKiqrYZsw273kOa1j7abnHphGqOx+Ff8e6bVIajur46u3j7 LWs5x+R6+Vo36uvL3YHv/n2qz6z9yTXvH54CSJPzjKW07NcFPpKL7LMbISOrkFEyh6 924kwGhB0OP7Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Vinod Koul , dmaengine@vger.kernel.org Cc: Masahiro Yamada , Kunihiko Hayashi , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: dma: uniphier-xdmac: switch to single reg region Date: Wed, 1 Apr 2020 12:21:50 +0900 Message-Id: <20200401032150.19767-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reg in the example "<0x5fc10000 0x1000>, <0x5fc20000 0x800>" is wrong. The register region of this controller is much smaller, and there is no other hardware register interleaved. There is no good reason to split it into two regions. Just use a single, contiguous register region. While I am here, I made the 'dma-channels' property mandatory because otherwise there is no way to determine the number of the channels. Please note the original binding was merged recently. Since there is no user yet, this change has no actual impact. Fixes: b9fb56b6ba8a ("dt-bindings: dmaengine: Add UniPhier external DMA controller bindings") Signed-off-by: Masahiro Yamada --- We do not need to touch the driver either because the second region is not used. .../devicetree/bindings/dma/socionext,uniphier-xdmac.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml index 86cfb599256e..371f18773198 100644 --- a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml +++ b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml @@ -22,9 +22,7 @@ properties: const: socionext,uniphier-xdmac reg: - items: - - description: XDMAC base register region (offset and length) - - description: XDMAC extension register region (offset and length) + maxItems: 1 interrupts: maxItems: 1 @@ -49,12 +47,13 @@ required: - reg - interrupts - "#dma-cells" + - dma-channels examples: - | xdmac: dma-controller@5fc10000 { compatible = "socionext,uniphier-xdmac"; - reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>; + reg = <0x5fc10000 0x5300>; interrupts = <0 188 4>; #dma-cells = <2>; dma-channels = <16>; -- 2.17.1