Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2051501ybp; Thu, 10 Oct 2019 01:16:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAFtGgaTbOEkyAUI5IA0rfcyPvKwvRY0dti7s2ZdjFXQEEghPC22L7pl6+0xwIElxQRbzl X-Received: by 2002:a50:ce16:: with SMTP id y22mr6836476edi.293.1570695381480; Thu, 10 Oct 2019 01:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695381; cv=none; d=google.com; s=arc-20160816; b=NlyM2NYWOfW34OHdm/8x6JZTl16tZSIEUjDJS2uCv5FuLMefEvMdxoRXNT62onE6Bi yvb6g+wLJZlbHuH4VcU7FfYE5Y+NCAW9O4XzN3IPUzF5ojkIaDeb114hPt0th7/yHusw vMHQpF9OMHfY86pAzLfzx2P3NpdWXNYXhSHcqT0XshsATimwffgdVDROR1ci2zQPBaTl K7vS6jKm7QcyH8Ff2beXWzKhgTJEAJt1lviL/hRlIzBmyzlrHFJeIikmSajNgWKRmYzT Bv18Z/wI1k/XMwPv2DxJ3ORZbcvtJtQN3mIwvUHjke9KpMWwJVNgRg+4l5rdUiitRVUy JTrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=0TyfNLIBexx9jIyMVRdJKP/Drq13Ko7WUHr1lEli+7g=; b=CMOIqR8aq3AQ8080G5rBuYBuuJvxMcBDVptzNWkFlYeT5IClodjYJCdYIJ+iVIihM5 Yg61NwQXJaBsalQi3Q1CQyCfrbM4YZXU+l7zfe80Bx2Tm1rK+GrxqQXFrKcwPp1saDiU +TNWJzV3iZgSTvFRw/wLte+Sfjho7KrJ71CeKMavZpJIMjhBLyqJISCIADbO3QMnf/0y bCvMniXzXE9r4FJimWOUR+xQIKBgBe9lizZT6r6u+2NA0V+oMM/r9hKxnnt0Q4rsr/4U QRkvpIx7iwmTkkwTE3edcokGAPilAMUcVftGtFpKkgo/p1knVqVyukEej99ViENk8HMx T6BQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si2621122ejk.23.2019.10.10.01.15.57; Thu, 10 Oct 2019 01:16:21 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733139AbfJJIPx (ORCPT + 99 others); Thu, 10 Oct 2019 04:15:53 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:11342 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732980AbfJJIPx (ORCPT ); Thu, 10 Oct 2019 04:15:53 -0400 Received: from droid13.amlogic.com (116.236.93.172) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.1591.10; Thu, 10 Oct 2019 16:15:57 +0800 From: Jianxin Pan To: Kevin Hilman , CC: Jianxin Pan , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: [PATCH v2 0/4] arm64: meson: add support for A1 Power Domains Date: Thu, 10 Oct 2019 04:15:40 -0400 Message-ID: <1570695345-54178-1-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [116.236.93.172] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces a "Secure Power Doamin Controller". In A1/C1, power controller registers such as PWRCTRL_FOCRSTN, PWRCTRL_PWR_OFF, PWRCTRL_MEM_PD and PWRCTRL_ISO_EN, are in the secure domain, and should be accessed from ATF by smc. Changes since v1 at [0]: - use APIs from sm driver - rename pwrc_secure_get_power as Kevin suggested - add comments for always on domains - replace arch_initcall_sync with builtin_platform_driver - fix coding style [0] https://lore.kernel.org/linux-amlogic/1568895064-4116-1-git-send-email-jianxin.pan@amlogic.com Jianxin Pan (4): dt-bindings: power: add Amlogic secure power domains bindings firmware: meson_sm: Add secure power domain support soc: amlogic: Add support for Secure power domains controller arm64: dts: meson: a1: add secure power domain controller .../bindings/power/amlogic,meson-sec-pwrc.yaml | 42 +++++ arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 7 + drivers/firmware/meson/meson_sm.c | 2 + drivers/soc/amlogic/Kconfig | 13 ++ drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-secure-pwrc.c | 203 +++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 ++++ include/linux/firmware/meson/meson_sm.h | 2 + 8 files changed, 302 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml create mode 100644 drivers/soc/amlogic/meson-secure-pwrc.c create mode 100644 include/dt-bindings/power/meson-a1-power.h -- 2.7.4