Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5366742rwr; Mon, 24 Apr 2023 03:06:41 -0700 (PDT) X-Google-Smtp-Source: AKy350b49EkMQ5gsq5XI0LEEgPpZLBHioiLyr1u4orqEZVzQcFfdEeUr0f8dDldEJEY/emCHLBRd X-Received: by 2002:a17:90b:388f:b0:23d:1143:c664 with SMTP id mu15-20020a17090b388f00b0023d1143c664mr13051277pjb.31.1682330801475; Mon, 24 Apr 2023 03:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682330801; cv=none; d=google.com; s=arc-20160816; b=pFBQKM3q/gQj7Uv/W4F9wCtfyr6Yk+TOkKWqg4rCYgig9M6nIUl/2PzEuPgvMpJTGz +PjfCXz1K9oUf7id4Vc/Yp1SRygwyrzmLrXgBUxe5hPakGUxcBr+mBBzPHbfqzOgQtFI tmgl8qJNTQl8b2zmvhUlThNB9lGDuOR9oGNTewFuSxydvPpM+1lJFDct6lgvoJn7NEF1 eu0nvAfTeKpTiS2ZqkMPrEfNLVvCtOrPn2xvB08oZojg84V7iVpYiuimHfodBF6Adw9E RY1Wn8LBk0Ou9+DmbtAZ9L2PbP6KsaeB1oiuKtq+GgYVwmw7/3gY3l2xAhnN1LHafzpn avVA== 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=X2ZnF8z0MJVwVfnTxaJeQDmtpEYIwg62QlS6BVN0m0c=; b=m4ZZXuJGg5M8SoPlVvNtRUYRXsuu6aZWTmfOalEiqCYuiK3xm2sLTBD0ycJkKD4cY3 t4/3CUKbh+7XO6ZLkNnsyRtW1tXdvItJRrLHSGxwup9C1mH0sbDUd1hfSrIZL73XpSxX JbmGPAnNQYFgOntTH6v5KieDGEzRBryr5kacpuVqFGNapp0G01JHs+ep4mzVon2Bw82o 0ZxF+2XTsWbHt1hwdJgUbhF6TM/Xk+af3PUBNREAvqUNo9M7wccn3MJzb3OXHeQHXdVx sSoNVNxropWyYv78N8qMG7cr4IsI89dU7twE8N2vxQ0oqeo6yyaoN+KAEw4yc4yeJA39 vDMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b=S6TlKmzS; 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 y9-20020a17090264c900b001a6f1f3e474si10054137pli.400.2023.04.24.03.06.19; Mon, 24 Apr 2023 03:06:41 -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=S6TlKmzS; 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 S231503AbjDXJ5b (ORCPT + 99 others); Mon, 24 Apr 2023 05:57:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbjDXJ51 (ORCPT ); Mon, 24 Apr 2023 05:57:27 -0400 Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CDB3196; Mon, 24 Apr 2023 02:57:26 -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 forward502b.mail.yandex.net (Yandex) with ESMTP id 920515EBE4; Mon, 24 Apr 2023 12:36:04 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-Lb5xZorK; Mon, 24 Apr 2023 12:36:04 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328964; bh=X2ZnF8z0MJVwVfnTxaJeQDmtpEYIwg62QlS6BVN0m0c=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=S6TlKmzSb8mNgS6HtrmGROmKsWLrDtphmKY5TD7km/ETt/mRUm4XbxPgbMLqweMoQ YkJ4UglWWycr7ZEJZ0Hm/dm+WozxYlX4tlUpjgnaIram/ik3LWCZ+p5JqCzu0u2FPd 7G/UZPfpZVKs+61TIneJoVh7MWDYEvcH5Vjd1aJU= 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 , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/43] wdt: ts72xx: add DT support for ts72xx Date: Mon, 24 Apr 2023 15:34:47 +0300 Message-Id: <20230424123522.18302-32-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 - get regs from device tree Signed-off-by: Nikita Shubin --- Notes: Arnd Bergmann: - wildcards ep93xx to something meaningful, i.e. ep9301 - drop wrappers 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..72bbb4db983e 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" }, + {}, +}; +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.39.2