Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp255118rwd; Wed, 31 May 2023 22:59:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ505deFmWn2rBlVCYxBR/sxOmwC+zK5wXa/V2TnnFG6vfq8PzZEUM+uwRM3WjF4oI10AtZ3 X-Received: by 2002:a05:6358:91e:b0:127:8af5:b5aa with SMTP id r30-20020a056358091e00b001278af5b5aamr5827658rwi.15.1685599154077; Wed, 31 May 2023 22:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599154; cv=none; d=google.com; s=arc-20160816; b=pVT79A4evvWlfucUXDcsOFDCHR0SpYmHCqEdbziYjbVxbGsRcfGZu2Cs28FixA3GPv K/JdeIeGuvBuGw6nHINmLLZQQ2fWJSlLwv1JjKl/O4N5R/bxy8RZa/s1iFtcCI3sKef+ oRV4WDwgPGHTtOBYT1pAka1z35Xs5CyC8GuarHKxWkR0k//tmq8xJzFEnAoxKTrn/ZtF U0IErjFv1b9lb0dIX5EN1mnzUESvxB9reJrj2FG0r0tTq4zUtLoWxA1ppQYPcHF3DrR7 vXk8OKp/w14F0Sl69ebGXwRGftC8aI7JmMS5v+SdB8uMJVkPuVfhQoSiVuizMz32QLjt d6Iw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v3HJXmUEkmSAb+uuyo4K6MLRD4SD7v0NXouWjuBUnQA=; b=IO3qSVHhmLQfKkoT5anITmEHtFbIYB6lr/s9cB5LWyWFaaal3Tkpz4xJd4GEpLx6L5 frItJ62YCk/aEhI7MkFbh8cT1hXY9jXyeFOihaaWPViw+qO3vtYXMh1n7hxgfOxj4rXf Ga83eVE9lfweHSbDV07tb2j9bIn8JlnZ3B9aIwHsajNwC4lgPhi4utmjppJzue5S1o49 ZL5XRdsEKS4wvi/2hyaOpjqINHXtNJpf1ufsmles13PhTwf7Gw2w2Rfw12Qs1TP76RLL LJ7W7ESF8BbLA1VYVjSVZpMaMgEBkQAOHwo64VrB9GqnDT34xPkMV3Gt5haV+YJLzq9x GetQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b="gxI9T0/D"; 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 bb19-20020a17090b009300b0024dd0a6c437si599055pjb.59.2023.05.31.22.59.01; Wed, 31 May 2023 22:59:14 -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=@maquefel.me header.s=mail header.b="gxI9T0/D"; 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 S231712AbjFAFrn (ORCPT + 99 others); Thu, 1 Jun 2023 01:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjFAFqy (ORCPT ); Thu, 1 Jun 2023 01:46:54 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD4C10CA; Wed, 31 May 2023 22:46:24 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id A295346C98; Thu, 1 Jun 2023 08:46:21 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-JqyCyMqJ; Thu, 01 Jun 2023 08:46:21 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598381; bh=v3HJXmUEkmSAb+uuyo4K6MLRD4SD7v0NXouWjuBUnQA=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=gxI9T0/DLoDkOfh/B0UPamKZjd0peL81BdPJz2mjbkSoFuOuzFzkdtJUHQrTKZPzQ D+XVLTf9dwfRFZFoywCu41WdJ9Geoe4s7H8ql/gnYAfOUUjKUVTIYcGGUvNIBKhqh6 pR+151PMdmlrUZ4lEpgBkd+PHrxvgOBf1Ddh06jA= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Wim Van Sebroeck , Guenter Roeck Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 32/43] wdt: ts72xx: add DT support for ts72xx Date: Thu, 1 Jun 2023 08:45:37 +0300 Message-Id: <20230601054549.10843-14-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 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,RCVD_IN_DNSWL_NONE, 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - get regs from device tree Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - dropped coma in id table drivers/watchdog/ts72xx_wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index bf918f5fa131..c3dbeffbb85d 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c @@ -13,6 +13,7 @@ * warranty of any kind, whether express or implied. */ +#include #include #include #include @@ -162,10 +163,17 @@ static int ts72xx_wdt_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id ts72xx_wdt_of_ids[] = { + { .compatible = "technologic,ts7200-wdt" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids); + static struct platform_driver ts72xx_wdt_driver = { .probe = ts72xx_wdt_probe, .driver = { .name = "ts72xx-wdt", + .of_match_table = ts72xx_wdt_of_ids, }, }; -- 2.37.4