From patchwork Thu Nov 26 21:06:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 333054 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp1633917ilb; Thu, 26 Nov 2020 13:08:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzO2OKrBU2QQ9BmAL7UYlqyRfx9FLTyfsaxAABmg7qsrLYbL54E3tyCmadq+x8eyp/V13t X-Received: by 2002:a17:906:2756:: with SMTP id a22mr4235642ejd.81.1606424896325; Thu, 26 Nov 2020 13:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606424896; cv=none; d=google.com; s=arc-20160816; b=i3nZUfZMtbtbNhL0ofRUbiNHeDWHzv0YJmZMFF2qbdSy9JMcmWPsjvMtFtUTIbzGeM roPq46EcAn1GjSOW6tzq7ij+JPq2IYkkSkkwaEhXCoQ30+7phy2W0xFz3AtxAVThZkju V8rxUu+UdA6xVYADRxceqS7NWFMTi0yu8ICf6j27GqLvS1RzydavNHLKuJZltWh4EV8O fireTWx1vHnnpFWUGqrXPDBMZS7UQaDcP+Fb0skp/OCMYDM10ArTv1/eeTi6P2I6oJcq Dfl3B06GPAO21voVQFoHsCJu0aGohmcWsANOS9LfwO6p1/ZJgQCOobWag2gQ8ygp7LHr 1sqA== 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=b8dSpVOpxPRkH7Ii5MIpuEJbpdKoro7QaAmsugruQCw=; b=0qsyIClaAr+0qXLQuSjIvIPpahdoz65zNYtZdDkgx2/SC4z+E6vFJP6FbpoUNld/uR qcfcD0tN6/fzpcu3G4Qwz6qYyshQbxhLlCz/21uX/9OQYBWHqvTRi/Rb+YEP5U8O+s2j 4zBZW7+9ECHG24v0wBGQ5AYmWmXUl3DAJybOEo4r0KgwH6Aa+6VgCeesgQEu+FgQKC+L DeRweSOEh5cRStF8OBF+/RX14FQ5RHl7EX9GlItSIoVdppxXeFICIO9cs0hXslBfF0iP TEiSLt9pXvwt0tzrKDxvtlveWe61K/8gDjwiEtZ5KyJkwpxnxanIqk/D63Bib9EzDLaT q5pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4PfmXE+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 k11si3567033ejg.330.2020.11.26.13.08.16; Thu, 26 Nov 2020 13:08:16 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=P4PfmXE+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2387510AbgKZVGq (ORCPT + 6 others); Thu, 26 Nov 2020 16:06:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733135AbgKZVGp (ORCPT ); Thu, 26 Nov 2020 16:06:45 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D845C061A48 for ; Thu, 26 Nov 2020 13:06:45 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id x24so2613008pfn.6 for ; Thu, 26 Nov 2020 13:06:45 -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=b8dSpVOpxPRkH7Ii5MIpuEJbpdKoro7QaAmsugruQCw=; b=P4PfmXE+FyQXDHy7FgUHIsP5Zo1vGXgGcprWj5PB8cHTbClbTLHEi1OyxOAboyn1li UGdIfos4P/stI6PNO6eh333PBp7DupwMLj5qpZjiNbCU5QYrFTXJK7iMkCAwRLzjUis2 JkUnprHv5osDdjPK3iaQvipXGPnbkACZ8lE44zJLGy6KMKpxWj+cg23jKpvYnC7D+Pz7 KA1pmb0JW09uAluqEE/mmr6hHVVyZ+dgkCXOGEV7tjTSYy0InNz909L+DGT90b/vpnIx mzw6jQdyXneVb8u7SHkkrnloKV8FRa11JJ3EwqN0s4J/xJFb6Y1mhqORAkhNXfck3kVM 7nSQ== 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=b8dSpVOpxPRkH7Ii5MIpuEJbpdKoro7QaAmsugruQCw=; b=G0yWjhf5tkb1bip5SYMDhSs3fdFw2f/Wk1LrQAqo0LWq2zcfxrmnINt5+yzYbxAbhR Lij91y5uacP77vWPCH4QHQeCWDqFcI24gLjX89dgOTkM2DMytLS0hvndFPN/06yGLCiu ZD7lq0tj3x5pPdfQdAsRY/TvsO6PDjG0B7VdXFedsv5HJD4LH0Tpiltg1BQt6Rtf3soY 3bHLiZHsM7wcMAcprtT5FRbwcwEJkLS4uTf2BF3cld6OUTywpc4nBmc26+YCZGu2xYSJ jik7WJlonnIJvivTFdvC4xKtQ1sUlos1j+fvrfb0pJXqOfTEiThoLP8rtLi/ARHdReWk p+CA== X-Gm-Message-State: AOAM533lu+IBzk1c3cSjUp6iR+1wJ5P9KdsueOrMXO9liDitDOT7Kcvi uMN3AM6t9Pu0wW0l4H3lhIyivQ== X-Received: by 2002:a63:1704:: with SMTP id x4mr3933109pgl.65.1606424804717; Thu, 26 Nov 2020 13:06:44 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id c203sm5612676pfc.10.2020.11.26.13.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 13:06:44 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com Subject: [PATCH v3 01/15] dt-bindings: remoteproc: Add bindind to support autonomous processors Date: Thu, 26 Nov 2020 14:06:28 -0700 Message-Id: <20201126210642.897302-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126210642.897302-1-mathieu.poirier@linaro.org> References: <20201126210642.897302-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml -- 2.25.1 diff --git a/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml b/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml new file mode 100644 index 000000000000..3032734f42a3 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml @@ -0,0 +1,25 @@ +# 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 for the remoteproc core applicable to all remote processors + +maintainers: + - Bjorn Andersson + - Mathieu Poirier + +description: + This document defines the binding recognised by the remoteproc core that can + be used by any remote processor in the subsystem. + +properties: + autonomous-on-core-reboot: + $ref: /schemas/types.yaml#/definitions/flag + description: + Used in two situations, i.e when a user space application releases the + handle it has on the remote processor's character driver interface and + when a remote processor's platform driver is being removed. If defined, + this flag instructs the remoteproc core to detach the remote processor + rather than turning it off.