From patchwork Wed Nov 9 09:30:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13037288 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6E5BDC433FE for ; Wed, 9 Nov 2022 09:32:03 +0000 (UTC) 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=Tw3KNKAMY2orv1iJWuiW70c7jACks61BE+yfW81lWw8=; b=Y9GEna9PMwka0e XIMFpNGmxVdgWn0LWJqjLIk87R+OePqrysxQUofgwgGwAIKSW+3Cbo3gT4meg8OIqCBnHj4dOPkXK lIchsAxL5P6us9wJn7Y7oWTmhqfoLnJGQJLRCfFV2ooBW0DOwFjAPCBc4WKRx9mR0e7BFJk2Ar3Rz 9ief3r3YKh6qKyLCkBbQ61lsEigvpn2Og8MvXjw8IyZxdkf6T4Es6tMb2yiGskFcA1EpW3Prd2mEY mAqIbkLu402Pvx/iXyaJt4tsnT7ZZX3NC/3aOVLn+YzKuJ1jRqNtnTu+slsOf9WvpI93KvI929HJS tx73o8Rul2eYqemZFeuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oshQB-00CJyZ-1f; Wed, 09 Nov 2022 09:30:59 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oshPm-00CJlP-U4 for linux-arm-kernel@lists.infradead.org; Wed, 09 Nov 2022 09:30:37 +0000 Received: by mail-wr1-x431.google.com with SMTP id l14so24862343wrw.2 for ; Wed, 09 Nov 2022 01:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pLWz/etKkdRYFJ1Qa8OubzwENK5OGCzv8f4RtofetLs=; b=EvIkXa/E3Gylc3MWmsmJcm5pjIg8IJYxwcmfcZjBmnXelQELNkmWdN2Ck0CT6P93Gz 8b6+xzBMCCYP47iuKA9LvppbaQPR1by7OUxQFBIQmR0hUbWXzAyxcLa+YhgZsqd9FMy6 HccaujjukGZzQKWp01gW+Iio+FzPZg8ed/IySzFMsit7Mdo0uzj9UJ2fGgGyFXCLhY67 D046hd0HQ8sVZAPjr4m1QixjjFZVg43ZKR4pnT78MR9FhNDD7CEIINKR+2JkagV8f2iL ISu9wUpfhfuTqKw2GZZFkCNH3zp/30N44bIr/QY4JNh57PR6ups2nGpm0OIgkS7QR2Ub Tbiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pLWz/etKkdRYFJ1Qa8OubzwENK5OGCzv8f4RtofetLs=; b=NSiBA+uGEgDFKKZesiZKHE7gElSRczm35EQv/EDZTztkLZEGVfxaEaWa2g/J7vw/I/ OSzRAiXke95NACgK9dW6v3jNpBt5yOjbdUx8YQPuh/r9FFNgNOfgpmsaOayo9fHPmze+ xTIlcsVHcBrbD46pMs+kpVnv5V9qZaogDxcFbxpBi6UNofYcVPakxo1+l4HGBM7vqRQJ DUpDHKnlyr75oV85p0PVFqptP1WoeXLCAiNDcPuZaadqU3ak4AQs/USZPIDegP8gIj/2 0zs2CVq2tPMjkIQa4UWRHzllVz0V4zND9VyXKiR+HCk1YefU1z4ADmvkUyc6FzOjsWQb wg6Q== X-Gm-Message-State: ACrzQf3/lF75C4uL39ytP84gZL1l9hAfZdBgBg+Rjn8MU71xmfSdexBk WC6pNGIxBr3Fz+gdYNqaolNPAg== X-Google-Smtp-Source: AMsMyM7JlX0xONPC+nB5MASK0ugjcmZFyvp7x8KuX5+aop6TQfMNPV70vvCP3crg/nSTj56oAtWvkQ== X-Received: by 2002:adf:c5c4:0:b0:236:87bc:a8fa with SMTP id v4-20020adfc5c4000000b0023687bca8famr36777687wrg.151.1667986229834; Wed, 09 Nov 2022 01:30:29 -0800 (PST) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (254.31.102.84.rev.sfr.net. [84.102.31.254]) by smtp.gmail.com with ESMTPSA id g12-20020adffc8c000000b0022cd96b3ba6sm14547919wrr.90.2022.11.09.01.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 01:30:29 -0800 (PST) From: Julien Panis To: nm@ti.com, vigneshr@ti.com, afd@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] arm64: dts: ti: k3-am62: add watchdog nodes Date: Wed, 9 Nov 2022 10:30:25 +0100 Message-Id: <20221109093026.103790-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221109093026.103790-1-jpanis@baylibre.com> References: <20221109093026.103790-1-jpanis@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221109_013034_986721_13329F22 X-CRM114-Status: GOOD ( 10.69 ) 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 Add nodes for watchdogs : - 5 in main domain - 1 in MCU domain - 1 in wakeup domain Signed-off-by: Julien Panis --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 45 ++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 9 +++++ arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 11 ++++++ 3 files changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 03660476364f..fb8480d7cf76 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -591,6 +591,51 @@ main_mcan0: can@20701000 { bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; }; + main_rti0: watchdog@e000000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e000000 0x00 0x100>; + clocks = <&k3_clks 125 0>; + power-domains = <&k3_pds 125 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 125 0>; + assigned-clock-parents = <&k3_clks 125 2>; + }; + + main_rti1: watchdog@e010000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e010000 0x00 0x100>; + clocks = <&k3_clks 126 0>; + power-domains = <&k3_pds 126 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 126 0>; + assigned-clock-parents = <&k3_clks 126 2>; + }; + + main_rti2: watchdog@e020000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e020000 0x00 0x100>; + clocks = <&k3_clks 127 0>; + power-domains = <&k3_pds 127 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 127 0>; + assigned-clock-parents = <&k3_clks 127 2>; + }; + + main_rti3: watchdog@e030000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e030000 0x00 0x100>; + clocks = <&k3_clks 128 0>; + power-domains = <&k3_pds 128 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 128 0>; + assigned-clock-parents = <&k3_clks 128 2>; + }; + + main_rti15: watchdog@e0f0000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e0f0000 0x00 0x100>; + clocks = <&k3_clks 130 0>; + power-domains = <&k3_pds 130 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 130 0>; + assigned-clock-parents = <&k3_clks 130 2>; + }; + epwm0: pwm@23000000 { compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; #pwm-cells = <3>; diff --git a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi index f56c803560f2..f82e94def774 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi @@ -81,4 +81,13 @@ mcu_gpio0: gpio@4201000 { clocks = <&k3_clks 79 0>; clock-names = "gpio"; }; + + mcu_rti0: watchdog@4880000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x04880000 0x00 0x100>; + clocks = <&k3_clks 131 0>; + power-domains = <&k3_pds 131 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 131 0>; + assigned-clock-parents = <&k3_clks 131 2>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi index 4090134676cf..7d5bc9dfe51d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -38,4 +38,15 @@ wkup_i2c0: i2c@2b200000 { clocks = <&k3_clks 107 4>; clock-names = "fck"; }; + + wkup_rti0: watchdog@2b000000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x2b000000 0x00 0x100>; + clocks = <&k3_clks 132 0>; + power-domains = <&k3_pds 132 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 132 0>; + assigned-clock-parents = <&k3_clks 132 2>; + /* WKUP RTI0 is used by DM firmware */ + status = "reserved"; + }; };