From patchwork Fri Dec 18 17:32:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 345467 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2334343jai; Fri, 18 Dec 2020 09:33:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmVby6TmIRVUqX6N+qAjZwHAmdW8UZZk0KupQkbaTNPXkKLbA/qQhSmyvKad2LGP18wAFh X-Received: by 2002:aa7:d7d2:: with SMTP id e18mr5598604eds.256.1608312821498; Fri, 18 Dec 2020 09:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608312821; cv=none; d=google.com; s=arc-20160816; b=gPnR3LCfzMLQ7flnrIfhXIKB2x1zmSRp9mtTJ6rLe0FzKAoyigpRrgSuY0gia0B095 pPKrP03WPZ2luo0OpPlcZiapFt/haVAtff2B+7fxjfZPS/k9rp+8aZRMPxK2KeUJGBWk lpjbe/G1jZui5v2ycIXo7uWfzhU0m9L2rBZtHqoM4OxuGnWKFxOVHAfsUuA6aMfAvT3P yvi9ifMisjmwB8g4DPubkvZqfhwQQ1rRRkXNKuD0WjAIpuwW/qF/fiIDXxFA8q4dRbjv 4yH0WmL3Bv9gkIusaa4siV25OBtrjM7jOgC3H4go/8CccRVWjgYMsFgxQCoHoSH5vX3P ijUA== 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=VjUlbYzoB6i9Fd5dedeurjacXOWvG7sf84thrpbB0/EHtbx49cts5ylREimaSs+zH1 Q15fesW9jIIptth8xbrlQxFOsMBkrlYO4hZTEuTnrQfNwANpJXo9YIYto6mf7NZW5rD4 KnKA/TLfsKKkOi0TGFKWJ0LUicm6xIkKa0WQvcYuEl7iNr63yRemg1zwxYhvr0/uWkMV oS9TXAmrrlX1MMBjbgIRVl9V4bePJtL6dh1HKwYYjJigYVsfVB+Uz/3eplK3LL7GA1ZM uMuYdkk0AvOsVm7OQF+jTNNxIXhO57i4OM4sbu1bfY0Y/ndg2W7XywvCFwthOOWE53/N HDIg== 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 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 h14si5383818eje.325.2020.12.18.09.33.41; Fri, 18 Dec 2020 09:33:41 -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=tNpsREt+; 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 S1726680AbgLRRdN (ORCPT + 7 others); Fri, 18 Dec 2020 12:33:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732354AbgLRRdM (ORCPT ); Fri, 18 Dec 2020 12:33:12 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0662BC061285 for ; Fri, 18 Dec 2020 09:32:32 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id r4so1743742pls.11 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=nvhJZxvUDDbpC8EYvy0LtPLU2a8dPr7lbW3mRul4bmeeaXcj9SARs5M+Y8Ycpc55Yq ThK/lDGbwcRk5T8HC58Bs3p71OU7Kz89uQDxFAJRD/UG02OqYRQ6yAfhEL7efbRbOmAt SAwkISXiG+CRF/nHYXTYAy1TeXOu5xIN21r6vLf6LcswrxEpUz1YoKrUIXIvF2w50jw7 e1tehaIkrObYY3JKgDM9TjMpuRWINRYd0cjLK1hh4B1MH8P1YDIlRjd00LA8QAIgDOwr kCP8UCE3WMUL6G8Fkrc0Xh8u+aqZC0OdRPPTIRDEsdqpJAqeM5zwOXEqkmtreMXvZGcL ROyQ== X-Gm-Message-State: AOAM530RgLQF3EyJFUUPTZ93N62aFQNTIRgUuFZN8CBIgq+7q1t1LOLD IU/FqAP8rvlMNpQ9v2hiPftpEg== 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 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 | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/remoteproc-core.yaml -- 2.25.1 Reviewed-by: Rob Herring 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