From patchwork Tue May 18 13:23:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Dautricourt X-Patchwork-Id: 12264811 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 D56B9C433B4 for ; Tue, 18 May 2021 13:24:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4AFF610CD for ; Tue, 18 May 2021 13:24:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349422AbhERNZZ (ORCPT ); Tue, 18 May 2021 09:25:25 -0400 Received: from mail-eopbgr10088.outbound.protection.outlook.com ([40.107.1.88]:5326 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244483AbhERNZZ (ORCPT ); Tue, 18 May 2021 09:25:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eaxKckMvWsKOfRg5YmGF7RMHIzkoY6yKdqGz6f0MEvO8tHyV7ovf0ByQo6QFgzno7GK/NrAZGao7X95F8OYGBS+rQgir7LaPsE86c39dz8arZ3t8BeVFWxPa5JyTtXugB3KMwFgGt3jilVSPPce23TzY8SWF2uLpQLsS+I3MbKRbMpZooIknrbF67gQ9vyj92NqATkXpX64NqJjaUPjikjLCUuU2BGvVvtbhvXFGUND+dlZ/VOqd5cE4au186G7piulFv7XhEJN+6ifKhWNp9UJZyAU7vXhTfaz9Lwh8beDCffuLzuklLksUDoRs/ofg0aD1zLRkK/6b5Uj7eFuXuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C7BYelvOQ806e0DHRNY7WWJwXkoPODiFtjJOCsq5bwM=; b=HB0CGv/lHNmgtHBYYA1DWoT+OoxEtKR4YUG5DaJg+qtNXM70YKT/TELWncFWumb1Ve3mJQFKIBoZPg/Gsgq6okCTPwC+RYDRNEi58L/RRRpCvCAvCqPA0WK+a1GNmHFmKtnLIh3hiw+KFCnWKdpiuHn9O5Y0zheUzHsU/qg0ugjkzDmJf9tIK+UVKUGS27G6+x3yrWv0tmtH/I3g5dQduvmgAwXppqZYESDN+YqGhsbhVBsj7tW+H3b+gTx3co6J7Iw0FNliE3AyuefKu4bsPt2zN3Zvv+kq4PB2d5d356ihShoax6N67Cm85Sa9Lgce6Jw7c5arDJdso2Av4+K30A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=orolia.com; dmarc=pass action=none header.from=orolia.com; dkim=pass header.d=orolia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orolia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C7BYelvOQ806e0DHRNY7WWJwXkoPODiFtjJOCsq5bwM=; b=CGu53JOr23OChH2qpca8Owyq3d+KkGX96tU5PAqiz3naAYPg02Mz/oIDxsFMDSX9+zZKOUBZ4lID1PzGALRlzY55qdv03iM9uY3+YZ4/ENxjwVbohj7qhdoNO8tpDgD5NoUv8c19aHYvLUHCilYX+NroIv63q1okR9y+mLlUrv4= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=orolia.com; Received: from PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) by PR3PR06MB6715.eurprd06.prod.outlook.com (2603:10a6:102:65::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 18 May 2021 13:24:03 +0000 Received: from PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3]) by PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3%6]) with mapi id 15.20.4129.031; Tue, 18 May 2021 13:24:03 +0000 Date: Tue, 18 May 2021 15:23:34 +0200 From: Olivier Dautricourt To: Rob Herring , Vinod Koul , Stefan Roese Cc: Olivier Dautricourt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/3] dt-bindings: dma: add schema for altera-msgdma Message-ID: <7d77772f49b978e3d52d3815b8743fe54c816994.1621343877.git.olivier.dautricourt@orolia.com> Content-Disposition: inline X-Originating-IP: [2a01:e34:ec42:fd70:167:681b:bc47:e8b1] X-ClientProxiedBy: PAZP264CA0014.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:21::19) To PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from orolia.com (2a01:e34:ec42:fd70:167:681b:bc47:e8b1) by PAZP264CA0014.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:21::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 13:24:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f167caf5-e30c-405c-cb1f-08d91a0034ac X-MS-TrafficTypeDiagnostic: PR3PR06MB6715: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:304; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uA2G+xFv5xYNSheC370chQBNVvo4R1EIQpE9+UXbbn7lGTdAPQDj7eL0MVKcmBe4s7QY3jRpMXDJSSjkwMFyXBJE8Ncr+LF22TIzL8tkaAtsOiBVutlL7gs0PaTW0pASfPWcWBR4s5PKIDRiuFPrtpEbnSNxtzVqc5vy7UgCqdfqD3dJE7wnTRLUQEIwBsrxDYjTYOcxNfxcIbzYdRuun0Qb5zvT06rNvdeH9k0Kz3OnJbfDHC9QHvooKnxVbm9PSc08eM8fCLQaswFWVVrugswpKovfg4BSh0FRSWy6fki+bCqxe/BCzx5uRCg27E2KnL9lJg/2IUvHbnulMAqbnDhQwpfuxLjE7VQrnwE0D88noe/pQGsHTS3cei6zedVKxQV1x0DaAgmx5OmRhyvL1kNhovG30myyudcsv/ngXXNmENkAi7HtbyEQ5MrsVZxT/lEpeKdQKuImnHcstAsSub68wQ/gLOvT5k6GTTXNiCUjwJqk54uygbWUo0hDKedIda+B6IE+uQAO0jIjWnggWU3FjuONhQyMyYhlljxpI55msKoVA7x/ZgH7aqqP1h5ac0ci9gH2D/oVO5xiAnPrUeMCyGpa3Fb8C1k6lQWIPKVot0Pe0ZEacYTNO1AU/8nmf0LLkCe3e2e1bkloae6Ri6l/vo/t3L2TW7fTA9G7NhvqhB75QUdeM77hKJnX+fKd X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PR1PR06MB4746.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39840400004)(346002)(366004)(376002)(396003)(83380400001)(6666004)(478600001)(966005)(66556008)(66476007)(36756003)(66946007)(2906002)(8886007)(7696005)(110136005)(2616005)(44832011)(4326008)(186003)(316002)(55016002)(8936002)(16526019)(86362001)(8676002)(38100700002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: tv5N7lRp/NoutotE5PSWnzr9B5E1kQOnpNf5HeHgAuok1NlWIR1GfdERoJVkAb3zYlzKnRedOMlGcZEHatEPOKJqYx6M7Hbez10wUc7AGcczjD4b0Wb0/laN5eV15Gj+uQbm+/dW5WomILcgsvobcm1oRI5j8toAdqnYy/znBroWi+ns2bTy9qELa2LimJx5Zhs4/XzpRlnR6DpSrLVV0TZNfdB2iI68+SKOtRNBrMLT/OD4ap8v9Z+X3Ts+K/oMHpZeTuI7dA5vRlwbK1ZvyXmqvD8vPicMiKjLFTpjnDE1rBXbxtpi+G9QqgpdP2rZeqhkkNWIzLVieOHY4my37vcWkHKNH1jWxdSx8rvxs1sczbIS69QZFUuN51PhXaO4it+9lhK5NF1Mb/GTrZCA5ZZ1Oi3cYLWEf3OtZeohCYFWzLzNAOtsjQRVk6QxiuIADUMJO9FJ5ITlDV+kx2v5qmOy/WRHPWr+2OYI004NGP1xA3HW71Dnc1Ato3N+p9yJP8QvCfRbpfAXQ5oNE2LBgm1/w8zl7G93hVETjMYUDPlkAwRzaHwJz6t6rTkc5041kMUEQg08K5TH1IH56rAybCd9Ze3+S0zHd1hBAgoKfuDosN02QAtEVAUcMYGZWnkIaVi1PDTgaO7AuVOPvln2vnfsonJzWit5/DjevlTWHeXxl3kd6VWEEkERpqSQdVH93ZPNg/SbwnKC4DD74ShpVFSP9GISoxUo/pX7zX+6yv6B6fhnoHRX9OE4dhf/NqJMOVojBjo3NUyK8GkimS600/IO15AdEx2WWypSwGpIx4dp9jkfcc4CzjFuAKH3RM7+MrojcjmUXbCpqs7Q2EpdCy4uLYQq1J+9wH2Rvzo3X8uTmKQJ0dIfru42pzKR4GjZVBAnDbLVi/zDLEw9+tX5WpfcvdrO0C55mXGaOqQ56UvswCjK3CztVbCHDaVyN0pnFtkLPX6CSE84SaHFnRNQJIzeBKuXlurHjnLViOaZZj592hMJ8VjEqqtiFvZvg8RNtxM+DF07T7W/RLjo275TXAqOfNAu6a0pyLr0DQoi8oerbXflO4gQUz0/L0WAJSWVCrk5bUSfqVhhiZQd5Zx/jM+UTAzRzZl7m6/De6uak/5PpBjrIfovSS0abtu5s0jvzNc6SuxH79WMX6MLpkU64WnCV4KIYjgyDrigtkdhF9SjEPH6kwT0zUtunmggeN9ab2eYYUxr6eQPYPaJbohnEu8P7t+INgkNnfjj3SCiMxIdDP0GTb90GegXGWpdjR23m5Lb8SveDXGNkr/2/VHOBi2Z6ghNZwLzcu0MlF8JmKwBuOtRdfeKNyw8wVtCCZAdt19J1UqIP9eduD5XqbfFoEnQiwRRrbVi+N/H45m6oZ2/dUlWEs9mSoucaOrCf2Cs X-OriginatorOrg: orolia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f167caf5-e30c-405c-cb1f-08d91a0034ac X-MS-Exchange-CrossTenant-AuthSource: PR1PR06MB4746.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 13:24:03.7076 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a263030c-9c1b-421f-9471-1dec0b29c664 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qoIhzA/0NHM6jYFt+xhrzC8SFkKtDmNVYdpS9QSwH6mVBT0NyXgsrp79LaTttdEgVGeXHG/dupLQRWUwDA5FWA7QnUA4K83rIZ6myVD+s10= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6715 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org add yaml schema for Altera mSGDMA bindings in devicetree. Reviewed-by: Stefan Roese Signed-off-by: Olivier Dautricourt Reviewed-by: Rob Herring --- Notes: Changes in v2: - fix reg size in dt example - fix dt_binding check warning - add list in MAINTAINERS entry Changes from v2 to v3: none Changes from v3 to v4: none Changes from v4 to v5: as per Rob's comments: - change compatible field from 'altr,msgdma' to 'altr,socfpga-msgdma' to indicate that it's compatible with altera socfpga family. - describe each region separately - remove maxItems/minItems for reg section. as per Vinod's comments: - separate MAINTAINERS editing in another commit - remove description for #dma-cells .../devicetree/bindings/dma/altr,msgdma.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/altr,msgdma.yaml -- 2.31.0.rc2 diff --git a/Documentation/devicetree/bindings/dma/altr,msgdma.yaml b/Documentation/devicetree/bindings/dma/altr,msgdma.yaml new file mode 100644 index 000000000000..ce51531e8736 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/altr,msgdma.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/altr,msgdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Altera mSGDMA IP core + +maintainers: + - Olivier Dautricourt + +description: | + Altera / Intel modular Scatter-Gather Direct Memory Access (mSGDMA) + intellectual property (IP) + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + const: altr,socfpga-msgdma + + reg: + items: + - description: Control and Status Register Slave Port + - description: Descriptor Slave Port + - description: Response Slave Port + + reg-names: + items: + - const: csr + - const: desc + - const: resp + + interrupts: + maxItems: 1 + + "#dma-cells": + const: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + msgdma_controller: dma-controller@ff200b00 { + compatible = "altr,socfpga-msgdma"; + reg = <0xff200b00 0x100>, <0xff200c00 0x100>, <0xff200d00 0x100>; + reg-names = "csr", "desc", "resp"; + interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + }; From patchwork Tue May 18 13:24:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Dautricourt X-Patchwork-Id: 12264813 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 A297CC433ED for ; Tue, 18 May 2021 13:25:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80DE2610CD for ; Tue, 18 May 2021 13:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349474AbhERN0V (ORCPT ); Tue, 18 May 2021 09:26:21 -0400 Received: from mail-eopbgr150042.outbound.protection.outlook.com ([40.107.15.42]:16129 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244483AbhERN0S (ORCPT ); Tue, 18 May 2021 09:26:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l4fZP7yk/BPdm5T/YB0+g5mauybMA1HWbvKHXfFJMGIaFyY/4gr5KB94QrszV7rTZX3A2213vZeWNgNL5IHebzKOeNGSDJOfR9MAHt8YvMDXir64vxG5VaLC3ZkbO+ftg415TXpWyE8oE1A6kR4LfPn0SuXHEeM+Oop1J/ZY67AnM3NrLyFQc00o23Um3NJshky6U1nSUWGCabUuZpyLczdsLBmxsECKkRnooJ4rbwQbe3FfMJJkQKl2FnurjARU7v3b4jS4ncCw3vmFA+PB7DXlpnLNJHk1ifBMNPKrQ2qpWugnX6WiXSdTEMVsFpwPlh1W4cMJvTRJvrFDEIXllg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L+Dqw6mfNyAwBqb9xMwyuOsb4PAEMgbLV0HH9bwITGo=; b=KkKZyJauCIm6iU9BQf7ExYuSMop5UGHjiwufJopQzsVPcBuWFwjDRHqfOEkhvIaIzlvXXy4bM6Ph9v5/u+ojTjF7ZwrcMVpP5BpwQmciwMIRS0hzT5ihKlQDDq6PiAHR/NTgL8WPCCIl39wlHb61tLdAMrP8KvFrxknZ5ERmVbtw0QilYae5PiGNt36SqTKuM9IkBV46DYzu+Irzem1m8yXshJcxcJQAeBk5dX/fW2t6IXssvymZq8kdfEOVcdeIga53ANyEitLMird5pxX5tdmlTnc/8uFyQ0O9nqdlKV5DWnbjAzKc8y5QuTx/NpYZjX0sY1tsqHCjli03Ulrniw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=orolia.com; dmarc=pass action=none header.from=orolia.com; dkim=pass header.d=orolia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orolia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L+Dqw6mfNyAwBqb9xMwyuOsb4PAEMgbLV0HH9bwITGo=; b=Zyyecg/Wo0kIEWWGw5zi2Ln0H+hE6cqXRrfQMJfGfG0BdIgiQcEKz/2eS6yXoT49J0LjAWMFqFmKr2Y+oqhfV92OhQfGRwULTjfkgYA50t+LFtaP/zUcckZraJNt1DRn0ERvlWVFnGcgxVpYTYviT1ygf1np/049DBDrlOgXCXc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=orolia.com; Received: from PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) by PR3PR06MB6715.eurprd06.prod.outlook.com (2603:10a6:102:65::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 18 May 2021 13:24:59 +0000 Received: from PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3]) by PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3%6]) with mapi id 15.20.4129.031; Tue, 18 May 2021 13:24:58 +0000 Date: Tue, 18 May 2021 15:24:45 +0200 From: Olivier Dautricourt To: Rob Herring , Vinod Koul , Stefan Roese Cc: Olivier Dautricourt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] MAINTAINERS: add entry for Altera mSGDMA Message-ID: References: <7d77772f49b978e3d52d3815b8743fe54c816994.1621343877.git.olivier.dautricourt@orolia.com> Content-Disposition: inline In-Reply-To: <7d77772f49b978e3d52d3815b8743fe54c816994.1621343877.git.olivier.dautricourt@orolia.com> X-Originating-IP: [2a01:e34:ec42:fd70:167:681b:bc47:e8b1] X-ClientProxiedBy: PAZP264CA0029.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:122::16) To PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from orolia.com (2a01:e34:ec42:fd70:167:681b:bc47:e8b1) by PAZP264CA0029.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:122::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 13:24:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 926e2b1b-7e53-4466-522f-08d91a005590 X-MS-TrafficTypeDiagnostic: PR3PR06MB6715: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:363; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v19KLRMK2u9w/fb5Yv4UNANvjpUKccQPaj21LXOoqmIA4xNq05kqjQTU5RHurfGnsgsxEH+qruClN8RUrV9z1DupFl4qbnMaf7iE2tAVMZPQzuTFHUsJ2t3X8SKRwF/CZAsxil/VmlaBW83IIOpYBFfPAeZNSaMhH4twZZuUANuv7jzIgwyWmWXTSRPBVrsx7K9WuQHNIbYAXehcFHKNMfWEQMX5a2xntE1zRjPZMAGRhbS4YgbhVmYJKkPiGPz0bNLE8l6x5yenNixOCwVZivCjhCxOv2nzQe4lN9mJE1+o9dp3+s5wGzFmXKe8pNEaDH5X/KugRM6pKrKQiDC+1j/z3THa8o5Fte170rdX4+QwXpgymqkp1KgSlKE/YEb28ByEXdvo25pqxrNHG9ZZ032WX+vDCTDGnoezMKi2a2aIOxcJ8DMnVph1ZnzjkJ+u7TRtdL9HOm35WsZ486dxKAlNT7HxXFVCBp+Ch/HT9T1ehEtZr9pSlh046jKdxp/wONhOHq5RrkL8dkiEedLNyW1rzTxHwCGNsz7EJhPDJMmBjQyiw5KRRVVqE/7QWWWUrviS9gSW0NFeyTje6Ji/mQUz8ove3QPmue/u9qnczEY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PR1PR06MB4746.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39840400004)(346002)(366004)(376002)(396003)(83380400001)(6666004)(478600001)(66556008)(66476007)(36756003)(66946007)(2906002)(8886007)(7696005)(110136005)(4744005)(2616005)(44832011)(4326008)(186003)(316002)(55016002)(8936002)(16526019)(86362001)(8676002)(38100700002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: GqaCqKCIbfnmYuPALRwNRHPgAeVn/rlntsaRAYF1/MsXQC6FOkmYpvJUmBeXXVb1U3R/9egao+UAHAuFNWB8dhqMBk1TK/Tz4kahVOepnvH5632FAm93Nakx8gaXw+HVX399LUdjYJKRusTnLwmSL8w0A3LR3yiHQehk1rZtU+3gJG9I0642vRmakP4i0xXZvxCO88hnh+o3taa7sfxQ+iw19sqvZ/I3taWdIZ94jRnX4w36/7mJ47lI2Y9y70b/fd9jGwsU4+KGFyIQGDEIJD4zkTLqnpomUQ+l3ceVmQXb5vqPqkDLChMXeKNWOhYS+t5IkbdraT90/LwG4g0tC18SMl+w3ZqUhELcaNOoxj5N4VDThtKP6tZSayVX3zXtbyfC7NHLHzo/98/JMIBENVFfFnFAffOGqClR2wwrp6DjcTuZ0UtSNHVQk4bIVDaQ4zHM6O7/AS8j8Ns+cM18KqISOrO6p5p47tbAmEFjzqlQSeFVXtXQUM5Skz2L3x0lNquLKCTtT93Jeze7CXTbwTiiipxVxI2L/B7kRgtNJgUQMXgylaVlVeTZcLUU2Bm85Jlurom0IN8tDJAzOeF/vZm6E+pW+z4cffA6EIIlohRL/6YW9WWKYrfsBnEW4sDKAovlkyOGEZWDwVQFntxqKuFe4XN1KPQ5SlW3Nnr7rjpFgkVSirlR/h1n+vhcBmSNtCGzc0wOg3dWtPyb0hG1RuEZ+aCD9Y23L2YUKipTRfaGLTsmBZFvkjgxL1QvDKVOX25VsR1d1BUy/jZojtyH+3IFGjQcm/NJulM2Q0Oxn93qMba3NSWIsoPR+5qG3+za1yJj+zjiXov3hQcF1D5EwGwxI5IO0YkfI05cWz9yA8cKVTLBNjkt6pARlQDiAY+xqBUx+iJ1BumkULXVyOfHtmJILC4uwFfBtgKEt4ee/Qe9S5uiR6i9DGcFuEbRm8YVzYLMltFcQ0VksFx6OEmu1qQSJyU564KOTGV7c0JaYNHREPdzRbLMS5zVXePFyZbzPicFVq0SDWaT5oUGBMi2ihptA1yh4AvI/8uSw8OCtz4oo2ZM1O9DH18fuhRKi6N7LaEeH9650Hbv5vFcEfqPxaEQ5/bd8XtrxXgtS0QqDLr8hSsPASvXGGmMhdO+F/62+gLR7kLObp1bXQXEivxRy17uYvvtZh4FsOlcDxHB3HzvOoP2mix4xPHIgS5UEdiXzQovSC0aju/QMKiP9fFadKDmdO9mi+dUz24jnndX8OM1RcIjyI8H65oQpjARpNOY62xMYl67MF4nJEdgybFpEkm+o6MThbPfRbzJ3xbGUmIEtczY8pPukvjkJFd1M9FVLpoJ8fWuI4lAcBBYNgWyapeka/GfYoqdrYnxj438L9FIy3Q/86qayUohlDQjJ/DG X-OriginatorOrg: orolia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 926e2b1b-7e53-4466-522f-08d91a005590 X-MS-Exchange-CrossTenant-AuthSource: PR1PR06MB4746.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 13:24:58.8519 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a263030c-9c1b-421f-9471-1dec0b29c664 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ky3KhUOiD2boQdp5lMAWRNt1PG9ISmz/38DUVsCAJy3DPMa8FBjSXu8iVJIQiDVOYwKjotxp+HcXi5rvxuVUJOyYXmQNjxE+IFzAPonaA8Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6715 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org This entry is for the standalone driver in drivers/dma/altera-msgdma.c Add myself as 'Odd fixes' maintainer for this driver as i am currently writing new code and have access to the hardware. Signed-off-by: Olivier Dautricourt --- Notes: splitted commit, introduced in v5 MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.31.0.rc2 diff --git a/MAINTAINERS b/MAINTAINERS index 008fcad7ac00..ccccce849b27 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -783,6 +783,13 @@ M: Ley Foon Tan S: Maintained F: drivers/mailbox/mailbox-altera.c +ALTERA MSGDMA IP CORE DRIVER +M: Olivier Dautricourt +L: dmaengine@vger.kernel.org +S: Odd Fixes +F: Documentation/devicetree/bindings/dma/altr,msgdma.yaml +F: drivers/dma/altera-msgdma.c + ALTERA PIO DRIVER M: Joyce Ooi L: linux-gpio@vger.kernel.org From patchwork Tue May 18 13:25:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Dautricourt X-Patchwork-Id: 12264815 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS 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 B57B9C433ED for ; Tue, 18 May 2021 13:25:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 910BF61209 for ; Tue, 18 May 2021 13:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349561AbhERN1J (ORCPT ); Tue, 18 May 2021 09:27:09 -0400 Received: from mail-eopbgr130081.outbound.protection.outlook.com ([40.107.13.81]:49123 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244483AbhERN1G (ORCPT ); Tue, 18 May 2021 09:27:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J32mF+hNRRpYduiCb9y34MbtxVyKsmjOkrLS0RLPcdxpD/oQeRK8NskUoPIrSo7rdLykydZ9NKw0Qm+wjqODSTiCYLiRHp2kb49Ly8OBFHeDTStqdSUqYTeCjZ/sD5f/Uj9SHfvIi/ZXDQK08QzxsTLe0mYs9XcTaEzr3vXdxz1pvq3io9+qMWqYD6kAi8YgR5uOtCOjEUutVSpo3FGHetK1A2NQrXabzqCpQjqwqTgOB+5bYlEpDJiY03z7CGoIFKlIU9qV7Ez39/DCvnrDHkb5tcoxykXkaa5Nyz91XWVt5YXedcu1jaKj6J1vPUjzmGF9gT6SeHWoiB28bObsZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TtQpf0avNAMZsCvYKNv6eXa6zRAUCsVEAGdIO3CPzfc=; b=S3Vg35Hm3N4RHeiqccQWnDIBefI8vM1L0Xam2HWlLXiZmKOBeBKeqJgsH1ryhSV7xNuWYFph3tZGv5RN1EPGowGJdA+7mb7dhpgeb2gxyUVtzlcPZ3alOe0d2XPbU74Ltflir8KWhKdRHvS39XzOtReOSQlE2nLwx8a5190Id2803J8x2mGMSBGwCKWp6EsZ5Lwx68Ke1rZXyIxHjM+lNhUJOHzxrvwTC0YNmm+az34IH/W9dpww+JPR3YRhslWihDLUUlLZSEABrzQKEIDHaVLDIBkkNGcw4AjGtbd81tyfhf8tZpqB3564HONVyPi9nbSCHQrU0onqVTkI6QtXlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=orolia.com; dmarc=pass action=none header.from=orolia.com; dkim=pass header.d=orolia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orolia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TtQpf0avNAMZsCvYKNv6eXa6zRAUCsVEAGdIO3CPzfc=; b=IizmXhL9CfkVzyYclFecVXtXvHZ/gtJllfSos38grbvsloJ8ypy27ydU5KR3gRIMFYXXMBxYYsYfOr5kESCjsmZxJzQ/vzIxyvF5TA929CEnWSRitRnSZeJwYaultD2BIDFD06iBOFdtPqcmU97er8CZddUi8GiMO1tEy05d6nI= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=orolia.com; Received: from PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) by PR3PR06MB6715.eurprd06.prod.outlook.com (2603:10a6:102:65::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 18 May 2021 13:25:46 +0000 Received: from PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3]) by PR1PR06MB4746.eurprd06.prod.outlook.com ([fe80::81ef:de90:c451:d6e3%6]) with mapi id 15.20.4129.031; Tue, 18 May 2021 13:25:46 +0000 Date: Tue, 18 May 2021 15:25:32 +0200 From: Olivier Dautricourt To: Rob Herring , Vinod Koul , Stefan Roese Cc: Olivier Dautricourt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/3] dmaengine: altera-msgdma: add OF support Message-ID: <088a373c92bdee6e24da771c1ae2e4ed0887c0d7.1621343877.git.olivier.dautricourt@orolia.com> References: <7d77772f49b978e3d52d3815b8743fe54c816994.1621343877.git.olivier.dautricourt@orolia.com> Content-Disposition: inline In-Reply-To: <7d77772f49b978e3d52d3815b8743fe54c816994.1621343877.git.olivier.dautricourt@orolia.com> X-Originating-IP: [2a01:e34:ec42:fd70:167:681b:bc47:e8b1] X-ClientProxiedBy: PAYP264CA0029.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:11f::16) To PR1PR06MB4746.eurprd06.prod.outlook.com (2603:10a6:102:11::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from orolia.com (2a01:e34:ec42:fd70:167:681b:bc47:e8b1) by PAYP264CA0029.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:11f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 13:25:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c601982b-8f04-4c5b-e742-08d91a0071e6 X-MS-TrafficTypeDiagnostic: PR3PR06MB6715: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:628; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YwasrRSWYzLp+b01tvnISbBxvPf2sT8L1Piv4ejwvhnyqjXGF7Ook2f1ph1YY1T9zpsGITK501x5fQWzPIF9NTDUvL6nMlQ6nfkamMqmtlZ2X4WjWwmVicFOAvCFPuJbvqarZ9l0WFF8rKGUs/kqEhA/Njeu+WsYFusDJcL5yHbfX+z9THeiMpSUhHeXxjnYz0l2wCmFbv+0hDM1SrjmqkDePg0QTIN0SQPUQRmecHCEteHFJ2iQiwpd05VmRGoGmCBYlMZfza5tAPp97hPTd0yJJjpHGfgGg3hDo/1lYpyQRahGh7vvDzg4AMmVcxoLUbK9BZeMczci3SVlvnH6JMzmaGwPGlKw2NWrJKqfivnZ3T7PVU9TWmuO/j76mzz3hlNZrd/Wtf+6x+vR4LQdjG/pLhM5PygQ2IeHq9P7eXLTHUhb2KLufEraMoiXGju4bOs8QZ07mjAg/hl+HUyN73XuJNnkpXWZoqecug6QBcdzPuVZG9R6wCDOwCXKBzdyhJAZ1ZwBsWx9LAlbHnqNamT44gmA1duv3+YArSwWnhRCjw6aHJppxSeejyy6hrln656h012owCmPLURd14DPb92GXukPNsEseYTRsJ7UYtI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PR1PR06MB4746.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39840400004)(346002)(366004)(376002)(396003)(83380400001)(6666004)(478600001)(66556008)(66476007)(36756003)(66946007)(2906002)(8886007)(7696005)(110136005)(2616005)(44832011)(4326008)(186003)(316002)(55016002)(8936002)(16526019)(86362001)(8676002)(38100700002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hV6Kn7SUaD4re4kBs7G2DEPtZVvarNRdkOIrQDPi3RlVQhoq5lLut9ECKLJ3vvWt0eB0KVfhHy33aJhaprDWW1vReygl/BUF9XNge553Po8y67eABbNXbMifHtgLIasrMn7tkxQFOC43GKmAS3HD4Hs4s8SjdW96xQyMu1IIujUsSiJFEm0G+jtQ6qHJxej0owP82vzpPzb+POlfYoAXWdC+czznPORHPlglZ0Ax4DR52RXRXpbUGbRYocRpqOa+eMCNz/UwcvfsFlgyFS2g/tNOGr3VeUBVVCK+z0lQt9hG+ddNl4idlExWzycfSVa+ip2x0b8c2jIqLeKDLaCkfJ+85f78HUvAuEKStxwN+kQ2amMlQzweHjuUfuC5/ry6+TQnM3OjlqJFhbn09TBm6zQTH7xm2X1Dk8vwyVBY6+VEZtxf26ey/7OVzu76XjWjAXa9kt6i73c8Wrb9aiXSa3RWpteCiBSEPDYxqZk6t8NaeDFVQLQQDV9xVh+JYmcs5Qa75K19SpjQ9PjTtnl4beXmRhDE1OGaB1A74A8tScLIcbj11RuTchgCuY4l8VwqHOHypzJKYAv+/DDKCi+g6ZHPNMKYqrQaGLlOgDYW/rk7OWnnV1xKyvz1J2fuedb7ZcHOzSeafo+/+pdcB2VRxvPL/8HiGr8d3Fjm+iUT4pJg6du8+XF8nPRQEOijEHNzh8Kukou9Qj6plkxLLhpJJArEvI4HaWuk1prbYEH9bMy3bWtmL4UH90V8FCMR4sOp//L1IGehNpbOGlHYAZy3KggVMXh/fvekbUgDQXKZwSf8/GpRL7xNFBC1POp/TAi6+lyJl9Ym8chBNlNDOfaMMZZlZabjTN68dU/gNTbFwwUjZTBTxNCg6OhIt/M/BK/PiOCrApuJoR2yZfcNJFdx5N5QQtX2iacLYm6Y03//rL9PdpkzKMU0i00vFzJyU5Koieim+i6YVY8nKX75Z8tZqN6ry8vxKcYS0lH88UKxtJu9PTEXqg0tMaFb9kF8LD2gt6w913hNzYC8Nigru2GxSjWRnDbXwGYoOvSAGgkrJ8b5gz7mLtpDBWZuWBPIisJZCcpiAOoZcSw8k7IAv41wzJKPHPGNZhL4wqKdWh4PcUxQLveew10PCGXXBICh6VdSy9d+AfbzYF2xHcbE9Rsje1uwNgFRQdEF7oDvMvQG3b9zCEgkvyeau/CtrtNqJ7JjRcj52Bqn/1Rp1+RZnRvaBInlwGKoUVpV2V03SbrrJOboEVSE9/Kw54T0mfUUUwMZRYXverC+hAv1pQyptvjFd52GZFrjwvrmR0VybP1RSXD/n++xUT0n7usXGU4T7/TSSqZdLRcz3xeQ8lu3DgPCt0ORENa6Fls1UzQgCoJWGwddLp4A4fxJeHJBqjuO42Wt X-OriginatorOrg: orolia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c601982b-8f04-4c5b-e742-08d91a0071e6 X-MS-Exchange-CrossTenant-AuthSource: PR1PR06MB4746.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 13:25:46.3965 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a263030c-9c1b-421f-9471-1dec0b29c664 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: J8MnRHio10zn9ee0dFQhotmAIn+3OKQbsGS20Ad4okakPFDjTToT0JSi2RWbuF7V5uHGF8jUd9iMh5FZCWrsPyI0YuYpCIoT1nJEKOs6IBI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6715 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org This driver had no device tree support. - add compatible field "altr,socfpga-msgdma" - define msgdma_of_xlate, with no argument - register dma controller with of_dma_controller_register Reviewed-by: Stefan Roese Signed-off-by: Olivier Dautricourt --- Notes: Changes in v2: none Changes from v2 to v3: Removed CONFIG_OF #ifdef's and use if (IS_ENABLED(CONFIG_OF)) only once. Changes from v3 to v4 Reintroduce #ifdef CONFIG_OF for msgdma_match as it produces a unused variable warning Changes from v4 to v5 - As per Rob's comments on patch 1/2: change compatible field from altr,msgdma to altr,socfpga-msgdma. - change commit title to fit previous commits naming - As per Vinod's comments: - use dma_get_slave_channel instead of dma_get_any_slave_channel which makes more sense. - remove if (IS_ENABLED(CONFIG_OF)) for of_dma_controller_register as it is taken care by the core drivers/dma/altera-msgdma.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.31.0.rc2 diff --git a/drivers/dma/altera-msgdma.c b/drivers/dma/altera-msgdma.c index 9a841ce5f0c5..acf0990d73ae 100644 --- a/drivers/dma/altera-msgdma.c +++ b/drivers/dma/altera-msgdma.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "dmaengine.h" @@ -784,6 +785,14 @@ static int request_and_map(struct platform_device *pdev, const char *name, return 0; } +static struct dma_chan *msgdma_of_xlate(struct of_phandle_args *dma_spec, + struct of_dma *ofdma) +{ + struct msgdma_device *d = ofdma->of_dma_data; + + return dma_get_slave_channel(&d->dmachan); +} + /** * msgdma_probe - Driver probe function * @pdev: Pointer to the platform_device structure @@ -888,6 +897,13 @@ static int msgdma_probe(struct platform_device *pdev) if (ret) goto fail; + ret = of_dma_controller_register(pdev->dev.of_node, + msgdma_of_xlate, mdev); + if (ret) { + dev_err(&pdev->dev, "failed to register dma controller"); + goto fail; + } + dev_notice(&pdev->dev, "Altera mSGDMA driver probe success\n"); return 0; @@ -916,9 +932,19 @@ static int msgdma_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id msgdma_match[] = { + { .compatible = "altr,socfpga-msgdma", }, + { } +}; + +MODULE_DEVICE_TABLE(of, msgdma_match); +#endif + static struct platform_driver msgdma_driver = { .driver = { .name = "altera-msgdma", + .of_match_table = of_match_ptr(msgdma_match), }, .probe = msgdma_probe, .remove = msgdma_remove,