From patchwork Tue May 25 18:44:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12279991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46D78C2B9F8 for ; Tue, 25 May 2021 19:07:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C862613A9 for ; Tue, 25 May 2021 19:07:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C862613A9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=V/SZ43pb/Vp/pCT5BhYOcVX13K2/rmdEq0oSpiwPq40=; b=1CO9b9LTRBBR5Q 5lZtLAl7Krvxw0TllOgGiozknj59ZA4HcEw/KYhWbXKO8ymwgWhRc/AgSSmuJadQ/fbPrAsQC7z/U jwSET3VkxKj+8Lc5aoc58DaV9RYbRbfLUzMVdyen9+EwCdHX3X2X7FOTb25UBJM1EHf4SZm8LFiMr xpOhUJi8aqOcZUIZvhdaftca/qsNowKegJpd4qNoNiHaTSqmigZF/ILDugGY47qTnVF+X5z0to6yB RpTixCa7vOGNDzkefwLtYxV4OfF68qlwuF9lyvx4XCs+TS8Wyw8lS5b+zbyM/Z3kneU2WzTHvYV5w LUGS7NpBs6xVI4ZB2A+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llcNC-007XqG-Bl; Tue, 25 May 2021 19:05:51 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llc32-007OMy-1y for linux-arm-kernel@lists.infradead.org; Tue, 25 May 2021 18:45:01 +0000 Received: by mail-wr1-x435.google.com with SMTP id i17so33272058wrq.11 for ; Tue, 25 May 2021 11:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bqTv+TFAOMBiEQMLXRI7rx6F3LpfuebvVaCG8zYT/N8=; b=hLav2Q7or125o0zrBzNf5u+ACFiioB2IxHdwFxQ4yGd2FIPHV+8AoIrrXv0y0Am+uR bcXLjdplJ2iz+DIYOkYUlJPj7paVRPy+HceZQXevvK+coIGow13KR08oLVkZ8ykJF85P pyhfmFa1rbU/CCUiAfam8CjjMqioRvEmRiWexQcwh427lx2WmR2y29sRkz6XwwzQrHR7 BVDka9IYtZtYiWixr1gwDlr/MN8M/RcYAOVTil4yn5EBreLr1Uxnn/9qz9qv4fwVXCK6 uxx73F3lKbVj3hkKKJTx6smZW8m8CFPaXdQ7L5q8Eko60kKhAxgTO8eZfZX2vhQIlimV JzvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bqTv+TFAOMBiEQMLXRI7rx6F3LpfuebvVaCG8zYT/N8=; b=QHXx+NOG2pyKEmeZMBhl+67AMb+zzlwFxtKiwxbIc9IrN35MbTZVvigEeiF+31Oct9 jQkBd59xTCDbKtEkezdMN/Ny3bmT16NqOlDj+RIdYxcXEaMe1RiSA6PsSj/kuJCXhvJ8 Pl8hNh6sDnh9AfsxXxQDHZHl1dBhTXwxeqw+RrDW3e7uQDht+JVp1S48cozCj/ojul7p krELPGEuuVWBkqJXuR8TV8NdCHBXLcr51ZGOyQ8qZBPENmeRlB6zLB4QhjFs3UHLPwvo Ga/eRfyYGI4qfwjM3fFS3eCEpCAGrlDWT/bcwNFTRHNUreeEckpCbsXk93vHSO9Gl26S RKXw== X-Gm-Message-State: AOAM533ifA4GIpEU72JKbmk4brqBmbGVollC+1bRdeTS/SaWAojgba7w qakx3fd8JLETzhM6uZyXqZQ= X-Google-Smtp-Source: ABdhPJwor9nnK+rwJRHqFbttHr3fZpGo8vUcaPhHIaSN5bwKEj7DzM7qdy8y/YeHMvQF+EXoQy5PhQ== X-Received: by 2002:a5d:6d83:: with SMTP id l3mr28938777wrs.241.1621968297955; Tue, 25 May 2021 11:44:57 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id u14sm3595732wmc.41.2021.05.25.11.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 11:44:57 -0700 (PDT) From: Romain Perier To: Wim Van Sebroeck , Guenter Roeck , Rob Herring Cc: Daniel Palmer , Mohammed Billoo , linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: mstar: Add watchdog device_node definition Date: Tue, 25 May 2021 20:44:49 +0200 Message-Id: <20210525184449.57703-4-romain.perier@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210525184449.57703-1-romain.perier@gmail.com> References: <20210525184449.57703-1-romain.perier@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210525_114500_128404_6192A85D X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the definition of both an oscillator at 12Mhz required by the the watchdog and the watchdog device_node. Signed-off-by: Romain Perier --- arch/arm/boot/dts/mstar-v7.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 3d5d8c634de3..23dff8fe4731 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -62,6 +62,14 @@ rtc_xtal: rtc_xtal { clock-frequency = <32768>; status = "disabled"; }; + + xtal_div2: xtal_div2 { + #clock-cells = <0>; + compatible = "fixed-factor-clock"; + clocks = <&xtal>; + clock-div = <2>; + clock-mult = <1>; + }; }; soc: soc { @@ -119,6 +127,12 @@ pm_irin_pins: pm_irin { }; }; + watchdog: watchdog@6000 { + compatible = "mstar,msc313e-wdt"; + reg = <0x6000 0x1f>; + clocks = <&xtal_div2>; + }; + intc_fiq: interrupt-controller@201310 { compatible = "mstar,mst-intc"; reg = <0x201310 0x40>;