From patchwork Sun Nov 19 17:00:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10066617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F3C46063B for ; Mon, 20 Nov 2017 14:27:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BAB1292F0 for ; Mon, 20 Nov 2017 14:27:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DFBC29304; Mon, 20 Nov 2017 14:27:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39B9529311 for ; Mon, 20 Nov 2017 14:27:44 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A016D26701E; Mon, 20 Nov 2017 15:02:26 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B4800266E6C; Sun, 19 Nov 2017 18:01:32 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by alsa0.perex.cz (Postfix) with ESMTP id 51548266B76 for ; Sun, 19 Nov 2017 18:01:26 +0100 (CET) Received: from localhost.localdomain ([95.90.209.91]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MD155-1ePVeu2ayR-009kad; Sun, 19 Nov 2017 18:01:19 +0100 From: Stefan Wahren To: Liam Girdwood , Mark Brown , Eric Anholt , Florian Fainelli , Rob Herring , Mark Rutland , kernel@martin.sperl.org, Matthias Reichl , phil@raspberrypi.org Date: Sun, 19 Nov 2017 18:00:27 +0100 Message-Id: <1511110827-2726-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K0:EUNxIv6RDzBVtPCeaAgWzubdVCqY3oH353Wnkij4GSbA5m14NGV ZDL5TQh9s5taXngze5bSM2YF0lYNUQOjjTdkmwnDb6R6IunLSdImL5vPYbVRMkGxU2QhmZF 51EiibCNUqn8Urw4f6l46V5BilsUE0hirqaz2o1ddcXO3VRbIxpnW0is7n/YXBhtS1VZD0k B/Y/qSlMtatWVDC+zX1vw== X-UI-Out-Filterresults: notjunk:1; V01:K0:A25ehobW+jE=:Iw5Zah/o/9DZIOYkjkyr11 I3MIapCZVrxkHU52ggp183eXiAmuKs/0SQZGOxolOl53T6LnKHBHYn4IzdBv6+oFkl7oGwTMe iRHhWc8VZhjzEA5xTqJxyciUtv8CsOqUmg2DmFFbZKWRGqetWyr1yy9oNxeO7pm6dcHGXaaMQ c1box2D1mexElh+uRr1uTU4qRcFYH2OK0Is+LIq700ITyCK2Zoeqs9xW8rLcOv3V5HKNWhcrb zR8utKtVJbAa75kkGejjVyVdj7yM32kCBs8nd/GLn0q00Lot5scau+FwXRYNER4vHNCU+QG6N O/rnBBzLQ/DcXtR7/RrPpVW2mkWJYKx/EiX5CLZFhKX/SJfsCBVvwZ/H+NUrt1RLJ0uRahNQ1 8xuRBXhqRETKCQEvu4N2HlH73PCA8YkfrSyg1NgDCkwsAjgKBR0usS3sVA9l0u3kk9239fbA8 1B8zhwVe8FTF6cnq6vWjgZrG0EzLPa4Rm0t9rcc8rcGFoKcXp/j1S4q7yDs6bFuUVfe9wAd5b Fpjma2RJoI8OdSTHoLNPjXP0U74iGv6bD+p35W2AM5q2zcJx7HY51C7TBN8VTe8w30+OmDeQO 0sa+o49DnVTbdg2L2s4AwpiWQCivqhbGwi2PXbVEPKU8JZ87KawfjJ/NBkI7ELsR1VmNmPLAS ldXzW+yi5fcr41MfKITS2wgdv6b6TqxU9DuNiKNCcrrsEvR5M5BT79Bc0/6xnoHkUkg55Zbt+ gZsOnbw4cLgdElPbyIcyUgIOG9+3k97SBtX9Ew== X-Mailman-Approved-At: Mon, 20 Nov 2017 15:02:24 +0100 Cc: Stefan Wahren , alsa-devel@alsa-project.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH RFC] ARM: dts: bcm283x: Fix probing of bcm2835-i2s X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Since 517e7a1537a ("ASoC: bcm2835: move to use the clock framework") the bcm2835-i2s requires a clock as DT property. Unfortunately the necessary DT change has never been applied. While we are at it also fix the first PCM register range to cover the PCM_GRAY register. This patch also fixes the dt-bindings accordlingly. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt Tested-by: Matthias Reichl --- Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt | 4 ++-- Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt | 9 ++++----- arch/arm/boot/dts/bcm283x.dtsi | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) Hi, this is only probe tested with a RPi 1B. I don't have the sound hardware to test the drivers function. diff --git a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt index baf9b34..b6a8cc0 100644 --- a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt +++ b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt @@ -74,8 +74,8 @@ Example: bcm2835_i2s: i2s@7e203000 { compatible = "brcm,bcm2835-i2s"; - reg = < 0x7e203000 0x20>, - < 0x7e101098 0x02>; + reg = < 0x7e203000 0x24>; + clocks = <&clocks BCM2835_CLOCK_PCM>; dmas = <&dma 2>, <&dma 3>; diff --git a/Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt b/Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt index 65783de..7bb0362 100644 --- a/Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt +++ b/Documentation/devicetree/bindings/sound/brcm,bcm2835-i2s.txt @@ -2,9 +2,8 @@ Required properties: - compatible: "brcm,bcm2835-i2s" -- reg: A list of base address and size entries: - * The first entry should cover the PCM registers - * The second entry should cover the PCM clock registers +- reg: Should contain PCM registers location and length. +- clocks: the (PCM) clock to use - dmas: List of DMA controller phandle and DMA request line ordered pairs. - dma-names: Identifier string for each DMA request line in the dmas property. These strings correspond 1:1 with the ordered pairs in dmas. @@ -16,8 +15,8 @@ Example: bcm2835_i2s: i2s@7e203000 { compatible = "brcm,bcm2835-i2s"; - reg = <0x7e203000 0x20>, - <0x7e101098 0x02>; + reg = <0x7e203000 0x24>; + clocks = <&clocks BCM2835_CLOCK_PCM>; dmas = <&dma 2>, <&dma 3>; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 431dcfc..01733a9 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -391,8 +391,8 @@ i2s: i2s@7e203000 { compatible = "brcm,bcm2835-i2s"; - reg = <0x7e203000 0x20>, - <0x7e101098 0x02>; + reg = <0x7e203000 0x24>; + clocks = <&clocks BCM2835_CLOCK_PCM>; dmas = <&dma 2>, <&dma 3>;