Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2288444pxu; Fri, 18 Dec 2020 09:35:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2WdOMJO1z8RqbIO8m8qQwoypVRZ54sphX3p0ijFgjsgKgVzwduqNrMv0fbXyI5txmbVN6 X-Received: by 2002:a17:906:d0c1:: with SMTP id bq1mr4342ejb.202.1608312938978; Fri, 18 Dec 2020 09:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608312938; cv=none; d=google.com; s=arc-20160816; b=djtPNXaMVs7S0IjxVoEwuXlF2GF2iF0RPlk8lD9ROlIy0z4/4mVKYeEJG2/+wFnY4q FCdKLK7Wsya7aXctEcI6I/GOhxKObeYId+VGKPQT+pOO2yRG7QQYeSCMbFe6l2Kq6o6/ ZswhBqEHqzkn6pDBIUO0LgRPEtqG380qJUKFVtiS2wYkNpLvxAiy3B/V4kIgCL7y7FkI Ze+hj3T5RqPBKRYFWEDN4g0eKGOQqzR4OeKWmTr/rflYmclfh5IG79HlMhx/t+P5YgZy v67Xf+U+/FMkPxRj8WNsUvOhoOx3iPVbnOP/epQ/9QqN7Wnf65YcIg5ry4j5O3noEJzK FmIg== 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=gRhRZVtQaTMtklLhGYfbei+QaPodzo2py0ncJTxvT/s=; b=nkm4sG0r5K0zNBRS10hhwtTwpKhOu9FtCtZYW0/rBk8/LUFkOZwuoutq/zdiccpsHC xthNGiXeSOjoYMVL/JDBo3cj9vZ1UbDFO/DHByK1EbI77SwaCJ8eiHZqMK+abiMYKfyD SqExzM9vblYtRkuoE5JvVwc2jgs4cgYJ+ups3POUDEDSpOzStbgPilQKMkljyuVGCxxb yJrDBi0jKLv1KviFF2QXDA06kRAINXAopv8+m+UFV+bjuWZYdcDKnGJqrpDfOlnY3NKB zbTWA1wMPcJvcJfCEHzDcQcKsDLEJdXjh30sMc7n/bUQv59ILIPybI1S3Wa0L75ymOvr P0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNpsREt+; 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 n25si4078337edw.77.2020.12.18.09.35.16; Fri, 18 Dec 2020 09:35:38 -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=tNpsREt+; 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 S1732371AbgLRRdd (ORCPT + 99 others); Fri, 18 Dec 2020 12:33:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732311AbgLRRdc (ORCPT ); Fri, 18 Dec 2020 12:33:32 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C6CC061257 for ; Fri, 18 Dec 2020 09:32:32 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id v3so1738416plz.13 for ; Fri, 18 Dec 2020 09:32:32 -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=gRhRZVtQaTMtklLhGYfbei+QaPodzo2py0ncJTxvT/s=; b=tNpsREt+XbPPv5QuoOhm9OqsITxalLxxOZfgF8GTLq+WJ8iOk5xzuavWPKfg58ioVE vBnZIyX/ncnJ2y40CyDTmSENMfPGcJewYu8oc3kJ5gXDZkQ35Pan0ThRHaPR4j8bNOFr dTa2k+0iXIbnE8vX66p/PMHDMBGHZkIVXf63lWQg4QHZsaFAbrdfmUqSzPgzV3SkxCiN cW227HbMVgiQ4M8uIXZeAKla3krZ6TzWemIzYMDGTUV1n5M6UZwJ8ZU3XQmivnqsNLFA EXNaCAd9JvVPPXBHFKQ7X9WuYH5XIhAaGzy5Z0igOM8Fo4zLsHKrqv0pq7vRF5UwrOUn I7lg== 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=gRhRZVtQaTMtklLhGYfbei+QaPodzo2py0ncJTxvT/s=; b=hlaysDQbLI8mGJXnH1I+ShSAJu+qy3Tsm9Eqs7cp1igu9dcALTFMklNvgNAa/RTqJf +flOFKOGbkZ1D29yaeUnI275rN1s+o+UrlD7+tKX40ZpDYmd4UH3ElZnIDVLctTZOCzA wcie+sJPJv0rXNlqaxonEZSKnB6fUb9XHS0WKM5/UDcsMP08T823u0GT9SgpMvg1V0Bh qP/lKbVTl10FNr/BYuIgSlEWJAT6bnaCDc8AskTa2tta+H1v25xZn+JYEXvIqWU6y1OJ 1qUqQdsdq5I7DGAKaBpdlCCNFhzF3UI1z2MQqPIJEaDgaxrQlcJkXN3dfQGjBUn2EodW 9Spg== X-Gm-Message-State: AOAM530vCIf9fNVoGVng4QDYKbqpp9dtgQnFr4HfTzaHMUGsCdDAI6WM Imsel2DgP0ZC2z2ZylDBrQS3OO4wDjEs6rRP X-Received: by 2002:a17:902:ed0d:b029:da:c83b:5f40 with SMTP id b13-20020a170902ed0db02900dac83b5f40mr5444448pld.20.1608312751595; Fri, 18 Dec 2020 09:32:31 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id l11sm9892957pgt.79.2020.12.18.09.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 09:32:30 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 01/17] dt-bindings: remoteproc: Add bindind to support autonomous processors Date: Fri, 18 Dec 2020 10:32:12 -0700 Message-Id: <20201218173228.2277032-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201218173228.2277032-1-mathieu.poirier@linaro.org> References: <20201218173228.2277032-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 --- .../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