Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2575555pxb; Thu, 11 Feb 2021 16:39:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk51/3fGImFwLSYIbFwoGNQdX6jFOQakMAOTcXadCq4aHxMYJ4PSRpsSwHbGrF+LiBOAge X-Received: by 2002:a17:906:7689:: with SMTP id o9mr386686ejm.324.1613090350948; Thu, 11 Feb 2021 16:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613090350; cv=none; d=google.com; s=arc-20160816; b=OHjbZT0lRNHuegRhb9gCprdhxy2+IGyqQwA7uoU3PWLKinHDO92oQ44ua7p7lJ4yh8 L0Eym1OvbAUDzf8WoPBJkA8ujSOCMJdu6V9gMnKLUc7zeNPz4GAhxABD1r/r0e5yNlg6 /D5T+QFGQlA3a1zrCzKpp762MkGEBBgwU9lzygsxFitPfgS3SmdzpCAv5hEL43rPInQD vl8hweb/+P4hxLLYSH5hGFEvs2Kf8/3oASj4cQDcRh2PchWpKDJkxW1pE71i+twxyerd pvM0gbAP++lTZtb5TYw5foH/LTZcL1OW/nCMW4ijtCywkS0VojnB+AlVATS63HJZr3a8 2vAg== 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=Gwpmc0x1+3eFyR/7BUUjdFio04J+RxJRu7OO5iEL6OM=; b=SoimyfmBAESrC5nPIrRrbwhV5IQUrFIwR7wfqlTdyR1vgIjM8b4KO8SkvRgQDZ++DR XBrzdF801k1uc2oMwppvkkSZ0GbN6kwZxPPxio9ToubtAwFW7BnWwpnAs9sQZ07Dg4GY RrZsjq7b45+Cw6aFvmWNb0czvBD75HezD6U2vS8znOzgQhCUpYvCQivjCPzv/RPcQW33 imtHnwe526xGqxHK9aw5scQKOwkTfGHNeNgFl3EUu3lKauWXRLK4aZUBtGpbOxlO1OPc cdYRKcyrn9BgYUJz/F771WDP+CC3LbIn1wMGg/u6gDMZr9A92cisQJWsa9GtMwg1aY/H oGUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WO0wSo3j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si4802592edt.579.2021.02.11.16.38.47; Thu, 11 Feb 2021 16:39:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WO0wSo3j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbhBKXsO (ORCPT + 99 others); Thu, 11 Feb 2021 18:48:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbhBKXrN (ORCPT ); Thu, 11 Feb 2021 18:47:13 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80DB7C061788 for ; Thu, 11 Feb 2021 15:46:30 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id c11so4712409pfp.10 for ; Thu, 11 Feb 2021 15:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gwpmc0x1+3eFyR/7BUUjdFio04J+RxJRu7OO5iEL6OM=; b=WO0wSo3j+XaM9YaYHbZhCBQTUA7k48YCAkeLLXG/SjngCPEgOa+wAvMxV2TPCD/qvh 0fkme8eCctnok0ahmPDDDgxEkD+RW1+4aJueNg1Y3ZPvt3IjOHEnKDID7ewATFrq9zpo fSj9BxnHyc7QZOdKJlXLnF4keh6RIAzIl5WS07h44J9qG26IR4DBd5uNzHeFwbXP/puE B29RUK5RkBKvLKNJulOKT0aSt7EiuqK3kMRDlrR2pmEDpTJPC9AM+ocTJZltBa1sQNhQ wV8C90YueHgfVHmAI9NIue9ErJ0P0DgASlEgwmEyfS+qbuKRuY3vqs8gub33yAtz94wp y5kg== 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=Gwpmc0x1+3eFyR/7BUUjdFio04J+RxJRu7OO5iEL6OM=; b=B6ZPUcLqOmBcjdW+ZNUppCs5EUDL4do16IemISaIpz0yqlbC9BVPrU5IX4rXeS0M7x K2CFZguk77h59SlFmqAYCngjRQMck3jmfH6r7L7/9i78ClSndcJzmcMJiPcBedvVd5Dt T3ZTbUoMFs0gvh60MfIx45f8d68qkC+lnnKyUQzCgmcFs18F7hmIMkoTaAJirhJuf/Ko tqVs/rQKb9CTxMqtAjjjc5yHuafByLhs60c+d39x1Dm7qUbXhQBZEGD3PEMeij4AIxpV zJIo/01+GjaUIxRtK//9nrZvuREgkV4QcX0EvrMOUysyDFvr/jZd/fcfONVrMasiS+tr AfvA== X-Gm-Message-State: AOAM532IXXaCGFVCaV+m4apIh3RNcegSBp0cEwqwZMS75v3LLLjrjU5m JW73KIIs5Ik8mjiL4JpEJDjNmw== X-Received: by 2002:a63:43c6:: with SMTP id q189mr505041pga.245.1613087190012; Thu, 11 Feb 2021 15:46:30 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id iq6sm5932740pjb.6.2021.02.11.15.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 15:46:29 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com Cc: robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 01/19] dt-bindings: remoteproc: Add bindind to support autonomous processors Date: Thu, 11 Feb 2021 16:46:09 -0700 Message-Id: <20210211234627.2669674-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210211234627.2669674-1-mathieu.poirier@linaro.org> References: <20210211234627.2669674-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a binding to guide the remoteproc core on how to deal with remote processors in two cases: 1) When an application holding a reference to a remote processor character device interface crashes. 2) when the platform driver for a remote processor is removed. In both cases if "autonomous-on-core-reboot" is specified in the remote processor DT node, the remoteproc core will detach the remote processor rather than switching it off. Signed-off-by: Mathieu Poirier Reviewed-by: Rob Herring --- .../bindings/remoteproc/remoteproc-core.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml b/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml new file mode 100644 index 000000000000..e8bb8ef9031a --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/remoteproc-core.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding(s) for a primary processor applicable to all ancillary + processors + +maintainers: + - Bjorn Andersson + - Mathieu Poirier + +description: + This document defines the bindings used by a primary processor to determine + the state it should leave an ancillary processor when the former is no longer + functioning. + +properties: + autonomous-on-core-reboot: + $ref: /schemas/types.yaml#/definitions/flag + description: + When specified the ancillary processor should be left operational when + the primary processor is no longer available. Otherwise the ancillary + processor should be made inoperative. + +additionalProperties: true -- 2.25.1