Message ID | 20221109093026.103790-3-jpanis@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp240986wru; Wed, 9 Nov 2022 01:43:30 -0800 (PST) X-Google-Smtp-Source: AMsMyM6ceBLMWjKvocwnWlHYmGk1JymLaRt97klTiDhM/uDP0M4SDBv6vSCSj3mD8venLDfzBzGL X-Received: by 2002:a17:907:6e0d:b0:7ae:2277:9fc9 with SMTP id sd13-20020a1709076e0d00b007ae22779fc9mr27749735ejc.334.1667987009769; Wed, 09 Nov 2022 01:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667987009; cv=none; d=google.com; s=arc-20160816; b=Qj0HlfRH51xtx6SmCqXj5xbGQ1jJTv+r3qWy+hMDWuDNSqybQB06mGmOi+9783pwjh gAVet8j/SvXjcvv+1G6JFHe9qm6d/7HQ5MOLIHFxkhMxfLDB8AKCKeOXcB1KWuVmmJ65 W5PO/WXmud2c4rZW7nlyx2Qkf1IZPzff9Y4ichc7CH9M697uDKhpG38zM+d6n8HpD2rd E6qZeX9gthDmvPvUugfevf1XHArPfM26AzJYhUdEj4EZ5eq/qj/LCXioC6LyM5s2r12e vUkVJTqlitKCdWE1BG0COoI20QahNfYZy/t9NIbO8BRSme7ld5ZfDmEG3AKWGFxCRHuv iJZw== 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=U+oiaRg9ab/55i5+llsM8upTgpALjLL7ge6TbqM64xg=; b=Zag5GEaZnl1yVkmLRSNRfAwkiicXoXmxWFtluxmaHfmmlGGtw9OtE9uRP6Xjh9ueOS NoJ4PWqvIz+Y9BEVKXXrctwnAj0YljkHvSk3qogNipsQy12rcxgoLlKE/6M/yNza4QyK N6Viiqx+ninINsxtcx8cLtlRVkwtz3e6TANGyLqlFvPq8NX3Uiv4HSksEUAG4usMojVU jNRMPUlpz19+P9XE0YcOGkEfVq6yjf9FDZncr8UOb/k2eEkMNJncL61qvUhVPickOLuG x3aafSQ7ejATY3b/lomPRuZJD8pPlhn4SYoM1ahgKmn9HkBK4Ntqy3Xy/KAaiL55Moxe A7DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=RHhGDNRz; 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 hc31-20020a170907169f00b0077ef2f9c8b7si17081627ejc.922.2022.11.09.01.43.05; Wed, 09 Nov 2022 01:43:29 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=RHhGDNRz; 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 S230329AbiKIJah (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 04:30:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbiKIJad (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 04:30:33 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54A21C92C for <linux-kernel@vger.kernel.org>; Wed, 9 Nov 2022 01:30:32 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id t4so10374553wmj.5 for <linux-kernel@vger.kernel.org>; Wed, 09 Nov 2022 01:30:32 -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=U+oiaRg9ab/55i5+llsM8upTgpALjLL7ge6TbqM64xg=; b=RHhGDNRzwjUu9GvsrF38Zt6cOnKGnXOnmW2bPWtOVMfrRFJF09jZRIOIRmCc0QIfz4 7IyK8Y70iYRAOfz9MqySdyrP1aDkQSfrI5KhD7OhkP4tmOVB14h4zumEscz3hRqqEBnt QJ3qVVmlrKvlvWabD6nzjxFq2dn7zwoBFOlmmTKUORVojv4iH71C1yA8QKIdiME71/qn t5MP9FZO5lKz5Wqd61R91SkRLRtbQO1IvR++HKJjbiSEEOUKJ4YxlCwNPrXCKxgQFWB+ upDrvG29rcIGIeRe/4OJ9dQPfGnAfcvkerNLkuco0IsxO+Q71E+C4pazqO/NJjlkzfgC ZPFQ== 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=U+oiaRg9ab/55i5+llsM8upTgpALjLL7ge6TbqM64xg=; b=SNxeWM0yekTRFxz9ozss9ydJ4PeL2qToL5Qm/FcmqlK4b3Nkd22ekXk91t25F6yi02 GZu8BNHOvh1vdwhTIMD/7TUajnq6b/eKsGpwlje0oB56PILm/IjcA9LNgT8SC00cn7d0 w7jfmWaTypL4G6Uj4vxgtWaA6xC0Gc6kd7gp+24Ui/PPECe9kSvUrc+6GREGCLdR/JHy onII94fWA6CQ2C6W7cDFutG3+8MAlSWHfbUKj2Jm5CVZBH1KJNNTv2bBc7+DYGNkvzpo luFRo3qJXAA0NFwIG4OBP/lkHEXvvdo2D4FHgT+M2RrGXFL5S75UUZFZY83DP6zYvjE/ ZlVA== X-Gm-Message-State: ACrzQf3z3qRnQY1Zxzh16eWyi3tUc8/0mIoCP6OfR2ZX/l3p4p4r4DAP jmlb2x+ksj3ifHIPrkeSeQOqy7bzAGui3A== X-Received: by 2002:a05:600c:3107:b0:3c6:ff0a:c42 with SMTP id g7-20020a05600c310700b003c6ff0a0c42mr48554390wmo.141.1667986231447; Wed, 09 Nov 2022 01:30:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 01:30:30 -0800 (PST) From: Julien Panis <jpanis@baylibre.com> 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 2/2] arm64: dts: ti: k3-am625-sk: mark MCU watchdog as reserved Date: Wed, 9 Nov 2022 10:30:26 +0100 Message-Id: <20221109093026.103790-3-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749011146584721008?= X-GMAIL-MSGID: =?utf-8?q?1749011146584721008?= |
Series |
AM62x watchdog support
|
|
Commit Message
Julien Panis
Nov. 9, 2022, 9:30 a.m. UTC
MCU wdt is typically used by M4F.
Signed-off-by: Julien Panis <jpanis@baylibre.com>
---
arch/arm64/boot/dts/ti/k3-am625-sk.dts | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 11/9/22 3:30 AM, Julien Panis wrote: > MCU wdt is typically used by M4F. > See it's this "typically" part I'm concerned about. It depends on the firmware which peripherals will be used. The firmware doesn't communicate this to Linux, and Linux doesn't give the firmware permissions to use one of these peripherals. We only keep from stepping on the firmware by changing device tree to never use peripherals that are often used by firmware, and that is not a hardware description, nor complete when a remote core firmware can use any device in our systems. What happens when I change firmware? How do we power sequence this? Who controls the clocks and clock parents if shared for this peripheral? I'm thinking we can used something like "application nodes"[0] here. These are basically DT nodes for a specific firmware application. The nodes describe the firmware and all hardware it uses (in the linked example, the remote core to run on, DMAs, SRAM, PHYs). All these devices are under exclusive control of the application node. So while Linux will still handle power/clock/state control, no driver will be bound. This also handles the power sequencing question above, sub-devices need to be active before starting the firmware, and firmware needs to go down before the controlled peripherals. These nodes could be loaded/unloaded as DT overlays, along with the firmware. So resources are only "reserved" for firmware when the firmware is actually active. Thoughts? Andrew [0] https://www.spinics.net/lists/netdev/msg823883.html > Signed-off-by: Julien Panis <jpanis@baylibre.com> > --- > arch/arm64/boot/dts/ti/k3-am625-sk.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts > index 93a5f0817efc..089970b304cf 100644 > --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts > @@ -503,6 +503,11 @@ &main_mcan0 { > status = "disabled"; > }; > > +&mcu_rti0 { > + /* MCU RTI0 is used by M4F firmware */ > + status = "reserved"; > +}; > + > &epwm0 { > status = "disabled"; > };
diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index 93a5f0817efc..089970b304cf 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -503,6 +503,11 @@ &main_mcan0 { status = "disabled"; }; +&mcu_rti0 { + /* MCU RTI0 is used by M4F firmware */ + status = "reserved"; +}; + &epwm0 { status = "disabled"; };