Message ID | 20230424123522.18302-26-nikita.shubin@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2631280vqo; Mon, 24 Apr 2023 03:09:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6s1tvbWgoG1bR5Jqgumh6IZcB3hgwQxMLfuLbpWGaXU0HrSB2HccF6I+ukkJsWnDBdYmW X-Received: by 2002:a17:903:2309:b0:1a1:ee8c:eef5 with SMTP id d9-20020a170903230900b001a1ee8ceef5mr16735650plh.7.1682330986329; Mon, 24 Apr 2023 03:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682330986; cv=none; d=google.com; s=arc-20160816; b=Q99UQBEBGP7hD+VDub5frMiaoBj3HWN86etEdan2SUtQCPizYQ9KcuTF8333Ci9ufY s4haiQJWs57poQpl2bCB4bgLhOEjyaG0F/rrY5vlzejV/NCKTn5TZCGATrZQ9P46We5B uW1woGWIsevxFVgKLSThQn6+7394Bbq4bMH1m1uPB55dGgxcC7n5h2DfsNtdVwzIazFG 3dL2Aw6jlVoJOw1IOCT4LSDeZ7KJUAue/rR+AI4WYPlx/eBogAKFqyRkjGOaqiUZAxE5 9SiEt9/2DO6I7/qikwdiUAHkBOyY64UjgvYDG70UWXj6Nju3aW75q9iU0p6WiVE8OXBo JWUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=iOOPWZopx7qpDvb3sEH1pWrdV4nbUnzXRBxcuSzX3T8=; b=Fy1nUya2c4y1OSCmBxbWH6WEAuqkiKbtgDGqBeb5+GSyspFZCj4sYfzqsvGPijJA1v w1T6B3ZByYknSIPA3W8NARa7TBIhMZG7v2qa8VOHI2Pa1Q0zWTmoIaoMRfWU0Ch/YpYA GRfbdwB0LFK1L7tJh8c+u6kUOWGQK8fnwCmhrLoQII+/1vZduZM4vr5HtMTj0i5CVQFm sKmL5v9LmJWVkp4AaJ5+INVxA2l1EviWLSeJy3pjreY1G4tzW21VkKRSWoX89YEernuC J2Bp3iDTZCNh1uaORoShXVojmmJWFUJ3Ecqlqd7UNLeIhcTOngg0nmR7lPo39FhNPkLr dv4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=srLCbG2G; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a170902e84500b001a4f005d59dsi10195674plg.389.2023.04.24.03.09.30; Mon, 24 Apr 2023 03:09:46 -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=fail header.i=@maquefel.me header.s=mail header.b=srLCbG2G; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231651AbjDXJzy (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Mon, 24 Apr 2023 05:55:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbjDXJzr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 05:55:47 -0400 Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60E8A40F0; Mon, 24 Apr 2023 02:55:23 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:261e:0:640:2e3d:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id DA6EB5EA88; Mon, 24 Apr 2023 12:35:59 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-ogYNo2U7; Mon, 24 Apr 2023 12:35:59 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328959; bh=iOOPWZopx7qpDvb3sEH1pWrdV4nbUnzXRBxcuSzX3T8=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=srLCbG2GEk+PzfcAIp2h75Rauh7y4FAEXroJ2CLQVVLBTaSJHBixNK/vNcv5SpXNH paCsCyk06nCMV0Os8fszEmttapHpsfUh4QHl/Qj7+Uvnhc3FUhAb0SFd2R3zRMtVv8 pHmhtGOkY/pJov6sAsk80DmR+/JPlUYygKNRK9Hw= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin <nikita.shubin@maquefel.me> Cc: Arnd Bergmann <arnd@kernel.org>, Linus Walleij <linusw@kernel.org>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Sergey Shtylyov <s.shtylyov@omp.ru>, Damien Le Moal <dlemoal@kernel.org>, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 25/43] pata: cirrus: add DT support for Cirrus EP93xx Date: Mon, 24 Apr 2023 15:34:41 +0300 Message-Id: <20230424123522.18302-26-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764051896452504819?= X-GMAIL-MSGID: =?utf-8?q?1764051896452504819?= |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin
April 24, 2023, 12:34 p.m. UTC
- find register range from the device tree
- get interrupts from device tree
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
Notes:
Arnd Bergmann:
- wildcards ep93xx to something meaningful, i.e. ep9301
- drop wrappers
drivers/ata/pata_ep93xx.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 47845d920075..09c95758389e 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -40,6 +40,8 @@ #include <linux/ata.h> #include <linux/libata.h> #include <linux/platform_device.h> +#include <linux/of.h> +#include <linux/of_platform.h> #include <linux/delay.h> #include <linux/dmaengine.h> #include <linux/ktime.h> @@ -1016,9 +1018,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep9312-pata" }, + {}, +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = ep93xx_pata_of_ids, }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove,