Message ID | 20230703093142.2028500-4-xianwei.zhao@amlogic.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;ivan.orlov0322@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <xianwei.zhao@amlogic.com> To: <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, "Neil Armstrong" <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Xianwei Zhao <xianwei.zhao@amlogic.com> 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
Power: C3: add power domain driver
|
|
Commit Message
Xianwei Zhao
July 3, 2023, 9:31 a.m. UTC
From: Xianwei Zhao <xianwei.zhao@amlogic.com> Enable power domain controller for Amlogic C3 SoC Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
Comments
On 03/07/2023 11:31, =Xianwei Zhao wrote: > From: Xianwei Zhao <xianwei.zhao@amlogic.com> > > Enable power domain controller for Amlogic C3 SoC > > Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> > --- > 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"; Why do you need it? okay is by default. Best regards, Krzysztof
Hi Krzysztof, Thanks for your reply. On 2023/7/3 21:12, Krzysztof Kozlowski wrote: > [ EXTERNAL EMAIL ] > > On 03/07/2023 11:31, =Xianwei Zhao wrote: >> From: Xianwei Zhao <xianwei.zhao@amlogic.com> >> >> Enable power domain controller for Amlogic C3 SoC >> >> Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> >> --- >> 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"; > > Why do you need it? okay is by default.Will move "status" in next version. > > Best regards, > Krzysztof >
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>;