Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2058768ybp; Thu, 10 Oct 2019 01:24:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIlxNK5gKp2Cy4YUT9n2UwY8rcwlVjVCr1v2Q1oXNkt4KJM0s0W2Kd0AazJ/14h0rcBm3y X-Received: by 2002:a17:906:6094:: with SMTP id t20mr6969417ejj.316.1570695872568; Thu, 10 Oct 2019 01:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695872; cv=none; d=google.com; s=arc-20160816; b=w1hHeTeKkiCbnZzRzUSnzQW+ULKxDVrI1JnOMpJl04voBZIN3g7MdIbXeqQITQ206Z PdHmRJNasJ6NyrWc94blN0zQmYbNgRpFQ25OeMzrU38QD3taBn6dBFjehe56FQvX0C84 ySznFpiFUYGecVXG7obBCadPozdDYRc2hdffLnrn1qtH0U24z30NXz2BQUZwBtQ3KQli hCHYufpcQEpAg2ycl1zr4f7xP1WC+OT7mg4Y2+jZakIf9N+5hVEzML+3u8+izmhRq6U/ TD0vHDUvQvqsRToHfnaMuUtQ/ImId1ptAGqgkJDJnaTzAUgwRvjydK+yKb4iH42tGQ4Q GITg== 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=shIkxraM8zK0iOGpJ8RMgj3h0yH7ECHvAAnxfhUuJdSy1A7mIxtDFpzBcK+ZJ4hG6u IZkco2k3KfCw8XyBu4f4GzjmoP3VWXsviqIkQh53CyGZzPCXJcsZj7ARHhmvzihHZXv7 hpIMPIYLGDZernep2JBis6wRmAicVRaz58l/7vnn3HvNTQX+ExjRpeCegxiSqAKKGs8j qfv+Su7pEt6flFYC2avw9N7yO0FzQaKGv8HLJrB5ScYdWPqJknZn9YDJ/sHmO+Yn5w4d TxvXFFfVVxL8zdYrEx8fGESJokVMFXxq/vAMwWTtbCS4+u7Vtm3ih5Bq+64ZZAQWsCkQ nJ4Q== 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 om23si2571535ejb.194.2019.10.10.01.24.09; Thu, 10 Oct 2019 01:24:32 -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 S1733210AbfJJIVX (ORCPT + 99 others); Thu, 10 Oct 2019 04:21:23 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:20799 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732980AbfJJIVX (ORCPT ); Thu, 10 Oct 2019 04:21:23 -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:21:27 +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 RESEND v2 0/4] arm64: meson: add support for A1 Power Domains Date: Thu, 10 Oct 2019 04:21:14 -0400 Message-ID: <1570695678-42623-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