From patchwork Tue Nov 24 13:14:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 57234 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2081548lbb; Tue, 24 Nov 2015 05:17:56 -0800 (PST) X-Received: by 10.66.193.36 with SMTP id hl4mr42666995pac.153.1448371076815; Tue, 24 Nov 2015 05:17:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v88si26671184pfi.250.2015.11.24.05.17.56; Tue, 24 Nov 2015 05:17:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753853AbbKXNRy (ORCPT + 28 others); Tue, 24 Nov 2015 08:17:54 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34414 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbbKXNQ3 (ORCPT ); Tue, 24 Nov 2015 08:16:29 -0500 Received: by wmvv187 with SMTP id v187so208838501wmv.1 for ; Tue, 24 Nov 2015 05:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FeyMGJ21mQFDMX+kEYdbZhFISvNJLQ3asOhqJr9T8Dk=; b=FPftDseGuLPl3Cv5UVIYWTKAsUeDMoeshcCCWy98NwAS/pDWncWzu9OYa3SPhCdTYO 8r23cvq/6M1Z2zq6Ve5AQcSbydvz3E797rfJ/dRdDRdPqR35phYbRSV60rmbNGjjfNIm 9acXmvHTDABFYk2KbtPM2VcplE6PhRgwsqjYQTEkh1eVIXzDULD6P4EvENpCIQxo3kTl 861FQJsIfmtPWBKp8BVQAa415SQSQXDrho3Gd6Rv3o9fbMkYTQ/46x25xRcA5VJhT6kP Yn3pYmZX/klSsnBhu+YgTItsvJylL2ojXtfc6xFHAyOH4OVMkxIcNFHQ7tYIctXGFV8M BAhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FeyMGJ21mQFDMX+kEYdbZhFISvNJLQ3asOhqJr9T8Dk=; b=JqdpmZ9ucDEBbwMWxyzRsUfGeaOcsnJLuhxDcIcCHGJnSOAryTZyZt0BdnLNUF5ig1 urdf4SUaSdoPIx0uPGhfg7WXoh/2JpPp34UKL5OLth4grmQd8OqW163Z2UWSI0BAOgpc vrFQEFsrVU/JiXYqSlHfh90MQqZUlhc8Yjg7YHY+UBr0DYcxF1jGQo0yjcEqYxc9aP7D 5+GT7PvF7uBgEPXePD71Bg/Xl+84qgEoQpkhp968cA6jMLGl9AcWNZkG2KCJ/S6MDkgr vEcEykp+HsRYZ2UZMp+5EC53bgJ37vgpSFualq0SRULXWhnkjSklKl/x6r9Q+p0j4lpU pXhw== X-Gm-Message-State: ALoCoQlci3NuOH12KuA1TLYmWuB0hpmAdJ5v12/aHYlUsd+03X5Aug8ZAZHsCRV+/aiYfGLOXqR6 X-Received: by 10.28.89.137 with SMTP id n131mr15149432wmb.9.1448370987871; Tue, 24 Nov 2015 05:16:27 -0800 (PST) Received: from localhost.localdomain (host86-170-56-3.range86-170.btcentralplus.com. [86.170.56.3]) by smtp.gmail.com with ESMTPSA id f11sm17112172wmd.7.2015.11.24.05.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 05:16:27 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, ohad@wizery.com, devicetree@vger.kernel.org, Nathan_Lynch@mentor.com, f.fainelli@gmail.com, ludovic.barre@st.com, s-anna@ti.com, Lee Jones Subject: [RESEND v4 1/6] remoteproc: dt: Provide bindings for ST's Remote Processor Controller driver Date: Tue, 24 Nov 2015 13:14:17 +0000 Message-Id: <1448370862-19120-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448370862-19120-1-git-send-email-lee.jones@linaro.org> References: <1448370862-19120-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Ludovic Barre Signed-off-by: Lee Jones --- .../devicetree/bindings/remoteproc/st-rproc.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/st-rproc.txt -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/Documentation/devicetree/bindings/remoteproc/st-rproc.txt b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt new file mode 100644 index 0000000..1031bcd --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/st-rproc.txt @@ -0,0 +1,41 @@ +STMicroelectronics Co-Processor Bindings +---------------------------------------- + +This binding provides support for adjunct processors found on ST SoCs. + +Co-processors can be controlled from the bootloader or the primary OS. If +the bootloader starts a co-processor, the primary OS must detect its state +and act accordingly. + +Required properties: +- compatible Should be one of: + "st,st231-rproc" + "st,st40-rproc" +- memory-region Reserved memory (See: ../reserved-memory/reserved-memory.txt) +- resets Reset lines (See: ../reset/reset.txt) +- reset-names Must be "sw_reset" and "pwr_reset" +- clocks Clock for co-processor (See: ../clock/clock-bindings.txt) +- clock-frequency Clock frequency to set co-processor at if the bootloader + hasn't already done so +- st,syscfg System configuration register which holds the boot vector + for the co-processor + 1st cell: Phandle to syscon block + 2nd cell: Boot vector register offset + +Example: + + audio_reserved: rproc@42000000 { + compatible = "shared-dma-pool"; + reg = <0x42000000 0x01000000>; + no-map; + }; + + st231-audio { + compatible = "st,st231-rproc"; + memory-region = <&audio_reserved>; + resets = <&softreset STIH407_ST231_AUD_SOFTRESET>; + reset-names = "sw_reset"; + clocks = <&clk_s_c0_flexgen CLK_ST231_AUD_0>; + clock-frequency = <600000000>; + st,syscfg = <&syscfg_core 0x228>; + };