From patchwork Mon Jul 3 09:31:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 115276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp405897vqx; Mon, 3 Jul 2023 03:02:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lwJpbpwv93mOoZcuEJlnMLwsdqmZo9T5gDQw0ZDPoCdtD8aQK04MV6PNizA4YKw51XQZ/ X-Received: by 2002:a05:6a20:1456:b0:111:77cf:96dd with SMTP id a22-20020a056a20145600b0011177cf96ddmr15492526pzi.5.1688378574862; Mon, 03 Jul 2023 03:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688378574; cv=none; d=google.com; s=arc-20160816; b=QgRDg17oGRBYHYRKuqfjNFYJltOHprOTHx669xlW1opwkauVmd5ZH0IafI/GrLWU9/ 0eeSz81Zwcj+xMaomftWgBWM7WB6mKCeWoXcx9jxixJ0VeR2QNK6gfocMSU1yjwmB/gP Lw9eA3RmhK+ZgBXfylH+P60RewAXNir1DMC/QjZ/DKs5pcF+ZCecNpWMp7HClg0KQB6S fL4mUxB/h32W3+affR00+SAxcHCWzhWLfKqy5RKhuzsvKhu0skIitt1QJzbS0+gXJnVS ekqCjcc6cL66JSUveeP96V+juQp4rsRN0LvbzxVN2R1bnZJolx4lOtC24STkwA9Aiunw zrrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FQUxwG+KLeKYDrrxAgB8ohZ7PdrQUUxco7s7zrIlozA=; fh=OGsX7d96NIKgN7a/X5aL1VFkJp7BmfP/4DIlJu3fPig=; b=v8IMjihJKfLoPqRlHRpwMqzEv/dY+rxxvguD9E1b5n69p4gGTOL98GURj2nX4BE3BH W2XvpFblpVr/ylDPBaUIx5uk0JBCCQ3nunTJ2RQGZlZDQjTs11CTkS1iuDVaSDqh1i5U tAjFV2hAc/fPsZamrTgnXybnjiTZKU7MR7OasTeeUuX+x0gDL6vzkQAR3oxCF/6h8AHK 3gAtBc9TTTZNV/i8h90cuijAIiOW0Pxegtaqw5a80lpo5mI/MTjZEQc7X7sOIeouaEEM hmDp5zdjsF1s+4UqyxArjrjACS6pPYOIjdrwRF4EOHg47QfZQ84oWEYOvY6DYOToss8L IwDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a170902e74800b001b849afa713si9788622plf.4.2023.07.03.03.02.40; Mon, 03 Jul 2023 03:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbjGCJdA (ORCPT + 99 others); Mon, 3 Jul 2023 05:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbjGCJc6 (ORCPT ); Mon, 3 Jul 2023 05:32:58 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66400E54; Mon, 3 Jul 2023 02:32:09 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Mon, 3 Jul 2023 17:32:02 +0800 From: =Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH 3/3] arm64: dts: add support for C3 power domain controller Date: Mon, 3 Jul 2023 17:31:42 +0800 Message-ID: <20230703093142.2028500-4-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> References: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770393252429620836?= X-GMAIL-MSGID: =?utf-8?q?1770393252429620836?= From: Xianwei Zhao Enable power domain controller for Amlogic C3 SoC Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 60ad4f3eef9d..826c51b1aff6 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -47,6 +47,16 @@ xtal: xtal-clk { #clock-cells = <0>; }; + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + + pwrc: power-controller { + compatible = "amlogic,c3-pwrc"; + #power-domain-cells = <1>; + status = "okay"; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;