From patchwork Fri Nov 6 11:15:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 321360 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C9BCC2D0A3 for ; Fri, 6 Nov 2020 11:15:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1AD3F21707 for ; Fri, 6 Nov 2020 11:15:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ILa9QEuH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727169AbgKFLP4 (ORCPT ); Fri, 6 Nov 2020 06:15:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgKFLPz (ORCPT ); Fri, 6 Nov 2020 06:15:55 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB6FC0613CF; Fri, 6 Nov 2020 03:15:55 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id p7so1061235ioo.6; Fri, 06 Nov 2020 03:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+MeC1RjPb3Mk2gII20C6IYolnVGBW/q2hIgPPdYmaM4=; b=ILa9QEuHn6VOxwc8dvrLyURks+VMTCLmAGuTXkgUAQaLSByzjCNuc0mW4wovWFC1kn HQbIb7Y9UKtRV/K0WUe/RZzq3ENqwVb9xNlEHx/Wt48UMgkajPcHEGJK5/pplIfbpBjj 0gaL96segIkb1VzFAGC2v7zcfB0uVFqtQp55UIl1vt0K3L/888U4j6TcuujC65WFSHJg leuX/NCHEG8TyfpSBMsOdexJMWixOQ496HX+LzzygR7DN4mtlXJUjKS9vtWEbkE2SJcQ zwM6Ka51HG3hECnMPDIlx1nl6uXIa/b6iP5BgIXP4ECI+dJPHQLeQ/DuoLMO+mBUveyB z69A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+MeC1RjPb3Mk2gII20C6IYolnVGBW/q2hIgPPdYmaM4=; b=c3EUUcVZswL/Yn82ksSMsQpfvgKMNdNuIvA2sUmOj0JhMUTOthfjl8F6ogd3qAOBIt 706/Kxftwmk3xpY2KRkdV5a4bdBPAGNAprIt0MRWEcrLoGYA44SDFLZzO+f0O2Upo2cV gDhopy0GAPHpxlvldBIUZzUqHoe25ICI4B0GClWIkmnXpASbgIW0hroGV4+VpcTMwnEA LrwMwuA0fvvkIAlR3HtlrWu9pHXSPmkazaUCkDbjqH42QtJzJb8BVSeUmVK26/QFgw/o VT/pHV9ivXkO9CRzIhl7d/h2t1v3WWDNlhnmeH6deab9ncPHT8zF7AwI22882NIQ251x HILw== X-Gm-Message-State: AOAM5307lM2xnYxAyNUcMt/e0kthG1VxkUGGiAVKQdwFsFfCLAtehQ1g +epVdGn6CZ8BV2TEp/eVHsY= X-Google-Smtp-Source: ABdhPJwvJbUWYApaItTNY1XMK+uZ80vAMjNKA6QidEx+1tBKX4C+9aZzspwHdKOWqe9izwgDvSOFqQ== X-Received: by 2002:a02:3b2c:: with SMTP id c44mr1091564jaa.134.1604661354509; Fri, 06 Nov 2020 03:15:54 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8492:7d60:7e29:2784]) by smtp.gmail.com with ESMTPSA id x5sm854597ilc.15.2020.11.06.03.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 03:15:53 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 2/5] arm64: dts: imx8mn: Enable Asynchronous Sample Rate Converter Date: Fri, 6 Nov 2020 05:15:40 -0600 Message-Id: <20201106111543.1806809-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106111543.1806809-1-aford173@gmail.com> References: <20201106111543.1806809-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The driver exists for the Enhanced Asynchronous Sample Rate Converter (EASRC) Controller, but there isn't a device tree entry for it. On the vendor kernel, they put this on a spba-bus for SDMA support. Add the node for the spba-bus with the easrc node inside. Signed-off-by: Adam Ford --- V3: Change spba-bus@30000000 to spba: bus@30000000 V2: Make the DT node more in-line with the dt binding and remove vendor customizations that are not applicable. diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index a06d2a6268e6..61560c083300 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -253,6 +253,34 @@ aips1: bus@30000000 { #size-cells = <1>; ranges; + spba: bus@30000000 { + compatible = "fsl,spba-bus", "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x30000000 0x100000>; + ranges; + + easrc: easrc@300c0000 { + compatible = "fsl,imx8mn-easrc"; + reg = <0x300c0000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; + clock-names = "mem"; + dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, + <&sdma2 18 23 0> , <&sdma2 19 23 0>, + <&sdma2 20 23 0> , <&sdma2 21 23 0>, + <&sdma2 22 23 0> , <&sdma2 23 23 0>; + dma-names = "ctx0_rx", "ctx0_tx", + "ctx1_rx", "ctx1_tx", + "ctx2_rx", "ctx2_tx", + "ctx3_rx", "ctx3_tx"; + firmware-name = "imx/easrc/easrc-imx8mn.bin"; + fsl,asrc-rate = <8000>; + fsl,asrc-format = <2>; + status = "disabled"; + }; + }; + gpio1: gpio@30200000 { compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio"; reg = <0x30200000 0x10000>;