Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5365624rwr; Mon, 24 Apr 2023 03:05:37 -0700 (PDT) X-Google-Smtp-Source: AKy350a12PLy6XQZh9EeQOiGkrkturLYMzW+nC0gUHfPxEZjNwhGeDWkKwy0RPv3KC9YpAwRThCT X-Received: by 2002:a05:6a21:788e:b0:e7:4f8a:d04d with SMTP id bf14-20020a056a21788e00b000e74f8ad04dmr17835758pzc.57.1682330736694; Mon, 24 Apr 2023 03:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682330736; cv=none; d=google.com; s=arc-20160816; b=MwCi/bqNQSAU43ucmv1gI5I4U79Q6C+U7gcAJlPoxczeM+OQqP+OmvuyVrFyub7ExN D11/XkLNdenUJzAwOQVf4itJ6Ft7cvZLtatkb5jh4rVqgc4EIwwZHHGW84moLpcxj1bd 0EOn6jbHZth63riEofMGsBCP121uY+IcKNJNhgICiCK7AoHzw9cJ2KVLE83uRwkDcEn4 Ic3bA0bzGZ+S7gahmtLZZAfpF7greogJt228sD3cg79g125dzRtmZ/7svBev7XjWewQ/ RhBiVrhUL8DY73XWY4lEzVU+6nI1z3T/TH1zTTdTnpD0/E+hEd60TxRyKHlwi/ViZZ3O vUtg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a630413000000b0050fae6024fcsi10839668pge.564.2023.04.24.03.05.04; Mon, 24 Apr 2023 03:05:36 -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 S231488AbjDXJzy (ORCPT + 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 ); 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 Cc: Arnd Bergmann , Linus Walleij , Alexander Sverdlin , Sergey Shtylyov , Damien Le Moal , 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: X-Mailing-List: linux-kernel@vger.kernel.org - find register range from the device tree - get interrupts from device tree Signed-off-by: Nikita Shubin --- 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 #include #include +#include +#include #include #include #include @@ -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, -- 2.39.2