From patchwork Wed Apr 10 05:37:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 10893163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B30C1708 for ; Wed, 10 Apr 2019 05:38:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D6672890F for ; Wed, 10 Apr 2019 05:38:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40558289E5; Wed, 10 Apr 2019 05:38:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CCFCB2890F for ; Wed, 10 Apr 2019 05:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uDxXQJDM9X4/sD8TUFQh26VHdQhByef5L0siDutWQSI=; b=Fakc71qimkPBmq VXUhOkfrO6Uoe8oQ03W69fPnHZZjLeIhDlhmeCmnZP2gzO6cYgAQUWDQZ2/U3oIWErYrjPtKuL0dn RRYn6/Prq0FIcZs7BtxJyC6PCKgV1U3fDDMqMa+RmZOYK/ZgyZGDjlV9Qb+yu280Lq9pwYLeMdxVD QjwxTlg0bDtqGKZqMa5WPI2mSmopV8vz/QiEVNJim7PNz22E6wPAwWeGg+T3YHCTknbatfhDclaiw 21JTyZcHX9k4o6ykBgQLXqfy123tOw0GizqY7T1n/ND3Oo7AqAXUtd7Fg/LKYeT74GkAOpF0tcKdV wuv9CfeYUKiN4bs456HA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE5vt-00028l-As; Wed, 10 Apr 2019 05:38:01 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE5vp-00027i-BA for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2019 05:37:58 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3A5brCW066929; Wed, 10 Apr 2019 00:37:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554874673; bh=j2u/+Vec69VTmmUXXqZlMRQEI/kmiSQCyYAYv82IQfU=; h=From:To:CC:Subject:Date; b=Bc4nBZI+oqSDlqzslNrTGzMXMypErQnVtVla4DKanmrHNJc/d7cLo0IbyNHGglIkO 0vHEgI1J9ktTQgTj+toE2pKB1x+JN/fVsVaWXqqFP7VGKLkKYWfRgNx25HxxYzmKUM wxWEXyw/MEMdqj/6uyZnDajMUIlo4mBaoRUYxr60= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3A5brcT100417 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Apr 2019 00:37:53 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 10 Apr 2019 00:37:53 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 10 Apr 2019 00:37:53 -0500 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3A5boIJ116462; Wed, 10 Apr 2019 00:37:50 -0500 From: Lokesh Vutla To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring Subject: [PATCH v3 0/5] soc: ti: k3-am654: Allow for exclusive and shared device requests Date: Wed, 10 Apr 2019 11:07:23 +0530 Message-ID: <20190410053728.17374-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_223757_487628_AF841B22 X-CRM114-Status: GOOD ( 13.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lokesh Vutla , Device Tree Mailing List , Sekhar Nori , Linux ARM Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Sysfw provides an option for requesting exclusive access for a device using the flags MSG_FLAG_DEVICE_EXCLUSIVE. If this flag is not used, the device is meant to be shared across hosts. Once a device is requested from a host with this flag set, any request to this device from a different host will be nacked by sysfw. Current tisci firmware and pm drivers always requests for device with exclusive permissions set. But this is not be true for certain devices that are expcted to be shared across different host contexts. So add support for getting the shared or exclusive permissions from DT and request firmware accordingly. Changes since v2: - Added macros for new power-domain cell - Rebased on top of v5.1-rc4 - Updated commit messages. Lokesh Vutla (5): firmware: ti_sci: Allow for device shared and exclusive requests dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access soc: ti: ti_sci_pm_domains: Switch to SPDX Licensing arm64: dts: ti: k3-am654: Update the power domain cells .../bindings/soc/ti/sci-pm-domain.txt | 11 ++++- MAINTAINERS | 1 + arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 32 ++++++------- arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 10 ++--- arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 6 +-- arch/arm64/boot/dts/ti/k3-am65.dtsi | 1 + drivers/firmware/ti_sci.c | 45 ++++++++++++++++++- drivers/soc/ti/ti_sci_pm_domains.c | 33 +++++++++----- include/dt-bindings/soc/ti,sci_pm_domain.h | 9 ++++ include/linux/soc/ti/ti_sci_protocol.h | 3 ++ 10 files changed, 112 insertions(+), 39 deletions(-) create mode 100644 include/dt-bindings/soc/ti,sci_pm_domain.h