Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1722603ybg; Sat, 19 Oct 2019 01:05:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGBPrcxF5GcK8YhiYbC0v/OAjaVN6HB5VoiLg4pV1U1b3Cg59lLzzzABAMtMgv6XWi2/8Y X-Received: by 2002:a17:906:f0d2:: with SMTP id dk18mr12602675ejb.281.1571472357331; Sat, 19 Oct 2019 01:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472357; cv=none; d=google.com; s=arc-20160816; b=bsXxJH8RHGqYHKAeG4/EBqneE6u92H2IajFwSWE9N03vu5BxihSG7mF52jyQ2WArRH GQs1Pf2zoEMnhuDQTcwJOhK2SpjbXXY/GK84zq/HrqE1etyZK1NlFNT0DREMqrTiq5ua N6a5a1E6DMnJzsIrnWpQDpmFsAEbtlc/7KC3t/ge/uJfiA636qRexzK7/X2nfWfqffRW syY6/KJ9HGGjEOJl04d/VkbCLJgYINSM81/zCaJ5KdEnCbXfokn7GiNlBxYxTHwbu5ZQ 00fKJq/avNu76pPGUQv2iwdgFknWezi+Z+eBvLyxayPkOr/cRUutn+PqDhEWsfYv9vLD Xd0w== 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=IRoOBkeiAnNSKsHs+TTUhMZ6BgVG7IheLSB7jgIq500=; b=byDDgWo0rd5FdRApWmt5nSkijBia2JLf/BjuUn9X5lzed70NsPzQ1C3rPznHukUcbg 0pVRt59REn0dQi5lyKGEtljNtQny9kZ2FU+/5Ak402BjwThYQq+E5frAFNcNArUnT47n hO8+/zH0bkTmiv0gewzZauEoRvFoEoA0o+J8b6dLyINzLZfvfg8g7GIod0yQiotlPI/R gBX1wzPVckeT3/v5REBi/XUQwCNczFTvGbxilCGI59P9xRCStS+xdLqhlZ8IweP6avIx mT5zazkR5wfMrVdxoQLmaiKm74/sfuaa54ouLaGgRi4QYSTQxWTdg/IndeSw/wtCZy/A Dy/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 p38si5505087edc.449.2019.10.19.01.05.34; Sat, 19 Oct 2019 01:05:57 -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 S2409802AbfJRJcy (ORCPT + 99 others); Fri, 18 Oct 2019 05:32:54 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:32069 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409791AbfJRJcx (ORCPT ); Fri, 18 Oct 2019 05:32: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; Fri, 18 Oct 2019 17:33:00 +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 v3 0/4] arm64: meson: add support for A1 Power Domains Date: Fri, 18 Oct 2019 17:32:43 +0800 Message-ID: <1571391167-79679-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 [1]: - update domain id - include dt-bindings in dts 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 [1] https://lore.kernel.org/linux-amlogic/1570695678-42623-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 | 8 + drivers/firmware/meson/meson_sm.c | 2 + drivers/soc/amlogic/Kconfig | 13 ++ drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-secure-pwrc.c | 204 +++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 ++++ include/linux/firmware/meson/meson_sm.h | 2 + 8 files changed, 304 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