From patchwork Fri Jul 7 00:37:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 116892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2933316vqx; Thu, 6 Jul 2023 17:53:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGB/TV7RkGzYg+nYo/euYymigGgq+HDv+hxmYPNNznr+Ly9SM8fvWRQVo2dMGLCwY++mVwq X-Received: by 2002:a05:6870:f142:b0:1b4:55e9:99 with SMTP id l2-20020a056870f14200b001b455e90099mr307327oac.21.1688691214263; Thu, 06 Jul 2023 17:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688691214; cv=none; d=google.com; s=arc-20160816; b=U+YLQqFM++7iW0RMWOJDkoWopoY5jFkI1PW73yLDx8Y9Lag6pzpC85y0fCB+fSU/G0 pzHvGvoGUc/liaoM0DmM3GaA4ZfIQ6W6LPwoPbN54ST8f2SrFOuvShe5ZWqlPWbeiFbR lDkoJqKDARMlegzMraDmUYItUt24dWWe4pLTRfrJyS65gfzpzP3aNJJeEeyKykSoxfCG Tu67NM5AsyU8EPlmCYnY5IOgrVX9EDX5mtpoOOPHCNc3p6j/AenSZKlis/5tIPe+Po5P 5ON0fX8EizNO7go7VgdgA/uZHcRtmK3HGzaKHHbu5Ozdd0EKuVYhDRObzLXQO7rlAQLa jqBA== 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=WVIMvwVCdlBD8BaZcam/HldFWZ1n1SC/gKV/xxSDMqc=; fh=WzRG3WH3uvRbKqWQdKb+SWZNQhoyocMFA6Hw0LDjFNQ=; b=o3IW8/zViSxUJj9bdT2mFCs1U4RxfO79hY+Itfds6hbko+h7is2n57hweqORKqwe3s Rg4+tUaR3KqxbSFmedzWt03UwHks4pT2TjUW2wh7raHASUoDRkiGa5x3FipybQOCkH39 xUbGAN5X3o1GegZV6BYxr0LbNSslLbS8rfZKtpGIzXmo79y1z8FxhUKev5CF9oV6fhaQ EouAiaGbRJKrDyTieIbdPlLfo8LKwuuOf88rQIVNDWwVo4jej9a72guynaI7C6o2HeQA TTPxF5611kra3RwPvg6xJYvQTqKIn5eRFFerwlxMUDDAYYujSz6x2Gnd0pgMiqGoE/7g UUAw== 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 s11-20020a17090b070b00b002563fbb8a85si783571pjz.111.2023.07.06.17.53.19; Thu, 06 Jul 2023 17:53:34 -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 S231654AbjGGAhY (ORCPT + 99 others); Thu, 6 Jul 2023 20:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjGGAhW (ORCPT ); Thu, 6 Jul 2023 20:37:22 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D658C1BDB; Thu, 6 Jul 2023 17:37:20 -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; Fri, 7 Jul 2023 08:37:12 +0800 From: Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH V2 4/4] arm64: dts: add support for C3 power domain controller Date: Fri, 7 Jul 2023 08:37:10 +0800 Message-ID: <20230707003710.2667989-5-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230707003710.2667989-1-xianwei.zhao@amlogic.com> References: <20230707003710.2667989-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?1770721078439635710?= X-GMAIL-MSGID: =?utf-8?q?1770721078439635710?= Enable power domain controller for Amlogic C3 SoC Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- V1 -> V2: delete status,use "okay" status by default. --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 60ad4f3eef9d..f6603fd57551 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -47,6 +47,15 @@ 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>; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;