From patchwork Mon Feb 4 15:53:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 157432 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4068507jaa; Mon, 4 Feb 2019 07:55:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYmq33ZftEHHn5a/Hx5UJ4cUfC8qooMNLbAk0anfY+IAdldTAmNHvo8+57O7baDiR5XfzQB X-Received: by 2002:a62:178f:: with SMTP id 137mr44163pfx.226.1549295705528; Mon, 04 Feb 2019 07:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549295705; cv=none; d=google.com; s=arc-20160816; b=CWlsY0lvYbo2xOJnuFqq7gOTxj/RpMzz8/SOLyyHBb6gZ5B0e9CVZnI1koM1o9Khui DfRj1ljRb8JJnb0PhMEDi1La9kkES3w8MzAkCHzNTocYIBYwuIZIyMkMraeYcoAgbAsM C4GcgqdNMDdUtbRqVYwN3dmKTrGV3BjnYHF+Zwmlo1HHkZjBDE8g0A8pz0noPVBqFVwt g0E5EwvnJWi4uTVRF3mfzkzYfbxbuxf1aLgINxcryjweZm8r07/KsvrOt7snq4QucheB 1kCCZYe7JVsMjPMZPoWI085/Er2Od62A7kP1gTukSXJZRLr2DJaqIrOdTUgj9eyG2YYO ofIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7XIKbA+SuSh0yU8UNFz9F69GDO1qdn7kJ4Z9VhkYcm0=; b=E1xO/oKluA0aAvDtZZguSp9ohwiegcnI1WWTsbhFaYLmfF1eGInwMPz/11Sb75TUAb bZdlGVJ2J7+luVkZuour74QxI2GL7xCyDuwYRIs3ItZfl8YJ+sAFQd/ZG0ylDQwZxt9G rc6QNoh1PjdWd+dHKQ/s87ZYMH5wyuw/aVOyPIz/AmD+h6/AHWuPrwCyraVKq9lupHwO yscLWquPF8eHZ+hO1Z+0T9G914cVkrEPjo46IbJogAAm2KMjqnNFqDaLMgJLzHtUQcGa 54RFCsxi8p6GX7RzcjY+DTxPcgyqglMOOF2sk5O4r1xKMUuncgeQmAzNqzc3YpBgCNQ2 gREA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gvNp3Ad7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si295785pgv.472.2019.02.04.07.55.05; Mon, 04 Feb 2019 07:55:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gvNp3Ad7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728914AbfBDPzE (ORCPT + 7 others); Mon, 4 Feb 2019 10:55:04 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58638 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbfBDPzE (ORCPT ); Mon, 4 Feb 2019 10:55:04 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x14Fs8kW050028; Mon, 4 Feb 2019 09:54:08 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549295648; bh=7XIKbA+SuSh0yU8UNFz9F69GDO1qdn7kJ4Z9VhkYcm0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gvNp3Ad7jd2B9xzO4DNmzj6mK7beaWPj+TD7EsMzBsbincJwi7oer/2L+EwWFQLfv /xTmukgxgy1RZP0TgGi4c8rFFb6LrYM31C3vmH5EnAFhnDcyyJZBVVPFt5LIrsiVvm WLBEkJTHYMVrIFoJsn9hxM+amX/P0AD00+zK+BVk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x14Fs8jH040312 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Feb 2019 09:54:08 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 4 Feb 2019 09:54:08 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 4 Feb 2019 09:54:08 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x14Fs1mM012077; Mon, 4 Feb 2019 09:54:05 -0600 From: Roger Quadros To: CC: , , , , , , , , , , , Roger Quadros Subject: [PATCH 1/4] dt-binding: bus: ti-sysc: Add support for PRUSS SYSC type Date: Mon, 4 Feb 2019 17:53:54 +0200 Message-ID: <1549295637-24890-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549295637-24890-1-git-send-email-rogerq@ti.com> References: <1549295637-24890-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The PRUSS module has a SYSCFG which is unique. Add support for it. Signed-off-by: Roger Quadros --- Documentation/devicetree/bindings/bus/ti-sysc.txt | 1 + include/dt-bindings/bus/ti-sysc.h | 11 +++++++++++ 2 files changed, 12 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/bus/ti-sysc.txt b/Documentation/devicetree/bindings/bus/ti-sysc.txt index 85a23f5..fe1dfb1 100644 --- a/Documentation/devicetree/bindings/bus/ti-sysc.txt +++ b/Documentation/devicetree/bindings/bus/ti-sysc.txt @@ -38,6 +38,7 @@ Required standard properties: "ti,sysc-dra7-mcasp" "ti,sysc-usb-host-fs" "ti,sysc-dra7-mcan" + "ti,sysc-pruss" - reg shall have register areas implemented for the interconnect target module in question such as revision, sysc and syss diff --git a/include/dt-bindings/bus/ti-sysc.h b/include/dt-bindings/bus/ti-sysc.h index 7138384..8ec78e8 100644 --- a/include/dt-bindings/bus/ti-sysc.h +++ b/include/dt-bindings/bus/ti-sysc.h @@ -17,6 +17,17 @@ #define SYSC_DRA7_MCAN_ENAWAKEUP (1 << 4) +/* SYSCONFIG specific to PRUSS */ +#define SYSC_PRUSS_SUB_MWAIT (1 << 5) +#define SYSC_PRUSS_STANDBY_INIT (1 << 4) + +#define SYSC_PRUSS_STANDBY_FORCE (0 << 2) +#define SYSC_PRUSS_STANDBY_NO (1 << 2) +#define SYSC_PRUSS_STANDBY_SMART (2 << 2) +#define SYSC_PRUSS_STANDBY_MASK (3 << 2) + +#define SYSC_PRUSS_IDLE_MASK 3 + /* SYSCONFIG STANDBYMODE/MIDLEMODE/SIDLEMODE supported by hardware */ #define SYSC_IDLE_FORCE 0 #define SYSC_IDLE_NO 1