From patchwork Thu Jun 20 17:56:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Wojtaszczyk X-Patchwork-Id: 13706198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FA55C27C79 for ; Thu, 20 Jun 2024 17:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=UP/GNN9hhxz4nMUGrLaNfWrPk3mVaVMWtBi9huNJxPk=; b=ApnYSac4OzTuSJAv5N6HuZofb2 U1/qCa1UxlK3SRssB1LomDhSPUslm/sIQl7mE/4rh76I3fD6Ty+mr3sSuUJISidD3ht5+cNRe3fqN 0HwWtRQl2OvqGOYV3Q5Op4FV2XGDIiDKr92ZI6W7Hd5aY12OuqxHMYXx3ZL7+UDmk0NPZ35uqMZTB Z5jcG/mFUyHWqf5M1aio10dClBBUtBdSkgHN1p39Y06VIYUuvjB3NqEMm/OhDnkyYRPc5Q+gYTF0y OQXpQNYIVG26tfBKHbkZAGMjsb17KerI1C9EFWhsPwuOzMSrEzkynTPPewsQ4MUCul6rpVi+SuOdV AbLNn1cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKM2R-00000006AJr-2RjW; Thu, 20 Jun 2024 17:57:35 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKM2G-00000006AAO-2DMU for linux-arm-kernel@bombadil.infradead.org; Thu, 20 Jun 2024 17:57:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=UP/GNN9hhxz4nMUGrLaNfWrPk3mVaVMWtBi9huNJxPk=; b=IqJLLbkw0yqbmZ0XbZtgNSDT4q Ff/oXAndXse5gfvrKbRAj61xgHuabQyGj3b1ohba4Pkq978Y6PfimJvpk5pe5m9aCGq8fyFsG6FtA +OttMbmBje4b53d+dZS8aCx6+PlYeJKj/jlAVudg4yWH9DYF5ZQEkC2b2Ckcab2ZOApRCuEYeqXQw M5xmLdjC+LqhRcmjoGzjqgt1BRQ/gdh70PoowfVoXiOQswFw2Zbp+u/Ier9YxzEXu2Vp2NLGj5D/e mFxazAbTVFJk+JmUPXIZALMyL8BcxbPlxgTIYFNpg6I0DNRVuwXpgOYeSnC+KtN4ifTUnmuc6zMNL Y9jkL6Og==; Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKM2A-00000007ac4-25hm for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2024 17:57:22 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a62ef52e837so134827066b.3 for ; Thu, 20 Jun 2024 10:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20230601.gappssmtp.com; s=20230601; t=1718906235; x=1719511035; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UP/GNN9hhxz4nMUGrLaNfWrPk3mVaVMWtBi9huNJxPk=; b=15HSo2ezmX/RnimCD35puWc7eZJztgOxAJLqYEv5r8XzUZdzgZUxmBDcCNvqvo9TmA eEKPeHYVGYKl5A7Nk1lGqp1cMTq027RZY/6qAj9LNEP6oCuvOl2XBl+p5nmrULTyJ7RC HT+7eE2JbjTg1bCsi0qJp7fS9iJyocdeMC3TVItsDWbWNTQWAsEiX9tU4LBPJaXN2SH5 705En9ohwj2QzjVBt/UkfDnhYvpa+8Ps9iZcY+003kbWQFzbDcSwGv4x4kEuZz5L6504 q8rLaYTkF9m16eRXBcCg/V70Eyslesi3CkvP9OyJsZIqhqJx/ruRDYcZTRd4cMO3sn8I pnfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718906235; x=1719511035; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UP/GNN9hhxz4nMUGrLaNfWrPk3mVaVMWtBi9huNJxPk=; b=N6VDbqaATfiNRouwZTLx6wJ5NZnkSiM2dMNL+tIPUA3H3lisNUMGdtxg1nja1XGl29 u9Dd8pvwgIxaWUTFh9+FT6DicAQVrVhFkQfqSkAc1o2mAZI7A539hUrOCScl1Wo2zXIZ GYVJft7SrFFKERcmMg+1UmyaMJSf1U5YAVh4jxcEIymlE9NJBpsv1En/+mXQb5Q5q6pp uuFkm8vs8sDxZ8V5F3ANiuXA3XrXnjCdyVul6PFctMXPodj26k4qk5DebHitn2l2MzYL qXmB9sMe19fGL14CelNuQa+9If3sl3SkAFKej6qTDBjc+ZeVeaxd7hm5yGFU/xSdzII2 i0Kw== X-Forwarded-Encrypted: i=1; AJvYcCVYNYSrVLmldCAgXtslDNgV6ZobS+xX9LFFmr8gqSGWchYOLSkQWUMqens5V2RC6xuxKehRcE+Vy/YKnRPFN/3l8WZa5/LoFnxa9o1QpWKI7GmPWlQ= X-Gm-Message-State: AOJu0Yw2WARoRSL+urrlUBFakSIEnW11dfHMMKtx/MVgr/DpFswLW4dC S4G0qbjCv45yWQIZuuQVg+2v6ybkrXcTRxzB52Vj/3y6MYnWGPDL3F7CvApcf+8= X-Google-Smtp-Source: AGHT+IHwzCxasTWecNI2BQg/1Mqv76qvz0pqMMUj9hgHTBodTuDhBkY00q2aX9YgUG43J9U17WwHFQ== X-Received: by 2002:a17:906:a09:b0:a6e:f7bf:712e with SMTP id a640c23a62f3a-a6fab618973mr379689666b.27.1718906235388; Thu, 20 Jun 2024 10:57:15 -0700 (PDT) Received: from localhost.localdomain ([91.216.213.152]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56f42e80sm781370766b.186.2024.06.20.10.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 10:57:14 -0700 (PDT) From: Piotr Wojtaszczyk To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "J.M.B. Downing" , Piotr Wojtaszczyk , Vladimir Zapolskiy , Liam Girdwood , Mark Brown , Russell King , Michael Turquette , Stephen Boyd , Andi Shyti , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Jaroslav Kysela , Takashi Iwai , Arnd Bergmann , Yangtao Li , Li Zetao , Michael Ellerman , Chancel Liu , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-clk@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Markus Elfring Subject: [Patch v4 00/10] Add audio support for LPC32XX CPUs Date: Thu, 20 Jun 2024 19:56:31 +0200 Message-Id: <20240620175657.358273-1-piotr.wojtaszczyk@timesys.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_185719_063716_B743C96A X-CRM114-Status: GOOD ( 16.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This pach set is to bring back audio to machines with a LPC32XX CPU. The legacy LPC32XX SoC used to have audio spport in linux 2.6.27. The support was dropped due to lack of interest from mainaeners. Piotr Wojtaszczyk (10): dt-bindings: dma: pl08x: Add dma-cells description dt-bindings: dma: Add lpc32xx DMA mux binding ASoC: dt-bindings: lpc32xx: Add lpc32xx i2s DT binding ARM: dts: lpc32xx: Add missing dma and i2s properties clk: lpc32xx: initialize regmap using parent syscon dmaengine: Add dma router for pl08x in LPC32XX SoC ARM: lpc32xx: Remove pl08x platform data in favor for device tree mtd: rawnand: lpx32xx: Request DMA channels using DT entries ASoC: fsl: Add i2s and pcm drivers for LPC32xx CPUs i2x: pnx: Use threaded irq to fix warning from del_timer_sync() .../devicetree/bindings/dma/arm-pl08x.yaml | 7 + .../bindings/dma/nxp,lpc3220-dmamux.yaml | 56 +++ .../bindings/sound/nxp,lpc3220-i2s.yaml | 73 ++++ MAINTAINERS | 21 + arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 53 ++- arch/arm/mach-lpc32xx/phy3250.c | 54 --- drivers/clk/Kconfig | 1 + drivers/clk/nxp/clk-lpc32xx.c | 10 +- drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/lpc32xx-dmamux.c | 195 +++++++++ drivers/i2c/busses/i2c-pnx.c | 4 +- drivers/mtd/nand/raw/lpc32xx_mlc.c | 10 +- drivers/mtd/nand/raw/lpc32xx_slc.c | 10 +- sound/soc/fsl/Kconfig | 7 + sound/soc/fsl/Makefile | 2 + sound/soc/fsl/lpc3xxx-i2s.c | 376 ++++++++++++++++++ sound/soc/fsl/lpc3xxx-i2s.h | 79 ++++ sound/soc/fsl/lpc3xxx-pcm.c | 73 ++++ 19 files changed, 954 insertions(+), 87 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/nxp,lpc3220-dmamux.yaml create mode 100644 Documentation/devicetree/bindings/sound/nxp,lpc3220-i2s.yaml create mode 100644 drivers/dma/lpc32xx-dmamux.c create mode 100644 sound/soc/fsl/lpc3xxx-i2s.c create mode 100644 sound/soc/fsl/lpc3xxx-i2s.h create mode 100644 sound/soc/fsl/lpc3xxx-pcm.c