From patchwork Thu Jun 1 05:45:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp75083vqr; Wed, 31 May 2023 22:59:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6KU6etbMp6EDChW6+52oRJW+dQFL4RGxljYf2MSVAnetZo3IqZ4/4yJl4oSv5yj7QOEzvG X-Received: by 2002:a05:6358:3404:b0:11b:3e4d:a203 with SMTP id h4-20020a056358340400b0011b3e4da203mr5402158rwd.23.1685599153462; Wed, 31 May 2023 22:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599153; cv=none; d=google.com; s=arc-20160816; b=N6UDKhAIFdt5OMp63OAnLpaA9lGnGeJUimpU3gQM6XJBtMsFZi9uZrXeFfm2yQdOMD ThHcCYIKGn5t5hsG6oBK+vARbAwDPxXyHu0ug5yn98lA6HmzNqUbkH6saNH6/aq73/6Q FVAODv/GNmDpBrxRp7TS9kbMT67haHKmOehNhY1zgUSIK+aAUB5/Bv4sgYefpckpXCFp oNCjZcdUWB0RcmqITA2OIjaW6RL/gxKEK5vJOGBz4twg+S7Mt5nedmGmyb1IOq7Er3r8 nTthM613CQXifD3N+cXcKoQrv1atN1AS6lYnkjJ2mDgC5LV95WJetNue4l/CrZVkR/kM u/Vg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a17090ab90100b0024e01bbc60asi550340pjr.117.2023.05.31.22.59.00; Wed, 31 May 2023 22:59:13 -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 S229851AbjFAFrn (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764052195744608903?= X-GMAIL-MSGID: =?utf-8?q?1767478818056847631?= - 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, }, };