Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38358903rwd; Wed, 12 Jul 2023 06:44:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkxDDb8r9guScGZEyE4NccIT7tBpghbPBzx7/aZPbskMHYFWiTDZ1dsYjLSidhD/vu74a/ X-Received: by 2002:adf:e2d2:0:b0:314:1560:cc68 with SMTP id d18-20020adfe2d2000000b003141560cc68mr17173923wrj.56.1689169466933; Wed, 12 Jul 2023 06:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689169466; cv=none; d=google.com; s=arc-20160816; b=nyBpwAt8oTZwSVjK9PShOgyqCjaqb/7xVD9+mFlKrTk4e1zpCs/TciJrCAPZA9fy9b PnW/Fw/GDp/4w4ig6NR/689gOTu8D8NmFdB+FZmu5Q+AI3EdsiyJl2QelpB07Xkq9pNk IQ4aRhu8Q0yqcldOLQnYgmC//cHSGrMXF9hii3Jgc7ELOgoTPRlfwCUpQw6dyNJIZeQZ mTOHr8XsfONg0FJvJuANmlBAETFXtscRwL1YQm6dg9mfnh8LhmCmqRF8nJmYQ/jZKc0V ox98vu3+qwWzNJrgeLzroRoJazYQpqQmdGEDIVgw1cEjJbO8Bf2GmW3WEqKouWyUeUAF E1pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=9EOsQhAYQoUHrxxW1o4tOwQwmHnRQW2U6mF0UYSSSzM=; fh=tenHlHDk27urgUplrDAmAtWqZDqhuBXRu63dcE4nUpI=; b=B/NevdMckralDaqsGVJ2+gBOAJD+G0mypwBw0r60jBg0aj4acd7R2vTVzmM/thtd+z xZf06JoVl8B/zFiDxormUbWl2NFjDYnVOFTlJcE2vR3h6gG2ODmkmz04t6t7c3OX63vJ K6Sd5uTUROAIq73lATypwPaPfnBPl52kc7Pozo/2YfnQ0nr/ySI/TMEqxGyh9HnZUUSD Een83Xl6mrpsBKu82kMMQGM5hg/IekyL3fIE4d8kd8oW4Z6NM1ZavflyayW291+/IL4k W7TcstVWaqZDjUqgM/fb+wuR712pV1gc1MC7WS+olPCZauo0+s0EDyv+5x01AiuVAFHy CYhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=eTM5xnnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs3-20020a170906d1c300b00982c6df10a0si5664722ejb.815.2023.07.12.06.44.02; Wed, 12 Jul 2023 06:44:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=eTM5xnnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232148AbjGLNiX (ORCPT + 99 others); Wed, 12 Jul 2023 09:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjGLNiR (ORCPT ); Wed, 12 Jul 2023 09:38:17 -0400 X-Greylist: delayed 4914 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 12 Jul 2023 06:38:13 PDT Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3DFE19B4 for ; Wed, 12 Jul 2023 06:38:13 -0700 (PDT) From: =?UTF-8?q?Martin=20Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1689169090; bh=9EOsQhAYQoUHrxxW1o4tOwQwmHnRQW2U6mF0UYSSSzM=; h=From:To:Cc:Subject:Date; b=eTM5xnnz3rQZ/KuptxBnqUJbtMSzL7q1JgVdE213d2Pyu+QPqJ+Ght27fhIg3OTJU N+aWLP/326GePEWx4LkSLz5n+DScz2WoA30A4TgxpNqAkYLVAF1R3JoFMx+Bt3/YoE L/itxbqcX0i1ICEXFEQ4Qt/tS1peqOrYvPb2yrag= To: =?UTF-8?q?Martin=20Povi=C5=A1er?= , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: asahi@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Apple SIO driver Date: Wed, 12 Jul 2023 15:38:04 +0200 Message-Id: <20230712133806.4450-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, see attached a driver for the SIO coprocessor found on recent Apple SoCs. This coprocessor provides general DMA services, it can feed many peripherals but so far it seems it will only be useful for audio output over HDMI/DisplayPort. So the driver here only supports the DMA_CYCLIC mode of transactions with the focus being on audio. There's a downstream prototype ALSA driver the DMA driver is being tested against. Some of the boilerplate code in implementing the dmaengine interface was lifted from apple-admac.c. Among other things these two drivers have in common that they implement the DMA_CYCLIC regime on top of hardware/coprocessor layer supporting linear transactions only. The binding schema saw two RFC rounds before and has a reviewed-by from Rob. https://lore.kernel.org/asahi/167693643966.613996.10372170526471864080.robh@kernel.org Best regards, Martin Martin PoviĊĦer (2): dt-bindings: dma: apple,sio: Add schema dmaengine: apple-sio: Add Apple SIO driver .../devicetree/bindings/dma/apple,sio.yaml | 111 ++ MAINTAINERS | 2 + drivers/dma/Kconfig | 10 + drivers/dma/Makefile | 1 + drivers/dma/apple-sio.c | 956 ++++++++++++++++++ 5 files changed, 1080 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/apple,sio.yaml create mode 100644 drivers/dma/apple-sio.c -- 2.38.3