Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1116843ybe; Thu, 19 Sep 2019 08:53:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtdFYKCBOo3/6c3bPfXtDp6YLX3MAAbzCGn+4wzd07F3ACyV2J9URc9QLZOaBs2Oa18/OZ X-Received: by 2002:aa7:dad3:: with SMTP id x19mr5186345eds.59.1568908396175; Thu, 19 Sep 2019 08:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568908396; cv=none; d=google.com; s=arc-20160816; b=sMaCpEX2NTqzJYJAdF0P0yWBeH8ynHJ8DwPvVI82p4NLqnuDjTQC2aDLhCqUMGBzHq Uo3fx6EHVYh/a78oDZTOQp2jsF1qPcHXrrXIALDSUQ74j2xrpDu3kYrdC6HM6DPjLntz 1sIWD0WCKD2dhzucG+t4ADBqbuD/L+7dnmWcGyBlTh9p4vcKwf7nn9LKZ1tqebq+QVel JUmLFAhcGjvmhlOTRFioSRZ8gC9q8aAUNcrO28u4og7Oh6O7EYXllnzbAjOBc+vv7ZkA otz/ZhVSztHzC0DWUPS3Kh9qkmNwbBhfiqysCMJpDRcDoolJXqnSMU2anQDYil8KP1Op B5WA== 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=1HX0v85BPHTYAt46gc31qPZO10SpOw7HxPG6yqmqpcU=; b=g0BxvTUj3kaFiDNtZUBYmr6e3I/QF1PXquN7SO2GAS//jIXas6gM392qFBG8ZUHC/E E1KeAns+LVHQok4BNPpz40d7jDdnddMByNUuWjdGZAj3FIqxN/K1nrWXBksP1Q3eGRrs IJnfegUkIB3YcLbRsGgd4DvavReCpKm4M/bH/rXcxNDFAH2bDhcQpHmpRCeAEfmvKYiC 0gxef8BlA4pTSAe1VMtCKOqvRO8Zu+vJ4/WkENeXAV8Ag+vB4pN0ucWW0sjzwWLq12ka z7gGXT6LliSxkkqn9xh8NiUS6oRM49/DwNPgmguHkbxIfpHZqKfRSJY2j36p/14W6H9d 5j+w== 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 a41si5516008eda.366.2019.09.19.08.52.52; Thu, 19 Sep 2019 08:53:16 -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 S2390135AbfISMLM (ORCPT + 99 others); Thu, 19 Sep 2019 08:11:12 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:41463 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfISMLM (ORCPT ); Thu, 19 Sep 2019 08:11:12 -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, 19 Sep 2019 20:12:05 +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 0/3] arm64: meson: add support for A1 Power Domains Date: Thu, 19 Sep 2019 08:11:01 -0400 Message-ID: <1568895064-4116-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. This patchset is based on A1 DTB series at [0]. [0] https://lore.kernel.org/linux-amlogic/1568276370-54181-1-git-send-email-jianxin.pan@amlogic.com Jianxin Pan (3): dt-bindings: power: add Amlogic secure power domains bindings 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 | 32 ++++ arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 6 + drivers/soc/amlogic/Kconfig | 13 ++ drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-secure-pwrc.c | 182 +++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 ++++ 6 files changed, 266 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