All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
To: <linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>
Cc: <shunzhou.jiang@amlogic.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Subject: [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings
Date: Wed, 2 Mar 2022 10:38:36 +0800	[thread overview]
Message-ID: <20220302023837.326673-2-shunzhou.jiang@amlogic.com> (raw)
In-Reply-To: <20220302023837.326673-1-shunzhou.jiang@amlogic.com>

Add the bindings for the Amlogic Secure power domains, controlling the
secure power domains.

The bindings targets the Amlogic s4, in which the power domains registers
are in secure world.

Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
V1->V2: fix spelling error, patchset use cover-letter
V2->V3: add power domain always on reason
V3->V4: clear vpu and usb power domaon always on
V4->V5: add reviewed owner in patchset
---
 .../power/amlogic,meson-sec-pwrc.yaml         |  3 ++-
 include/dt-bindings/power/meson-s4-power.h    | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/power/meson-s4-power.h

diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
index 5dae04d2936c..7657721a4e96 100644
--- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
+++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
@@ -12,13 +12,14 @@ maintainers:
   - Jianxin Pan <jianxin.pan@amlogic.com>
 
 description: |+
-  Secure Power Domains used in Meson A1/C1 SoCs, and should be the child node
+  Secure Power Domains used in Meson A1/C1/S4 SoCs, and should be the child node
   of secure-monitor.
 
 properties:
   compatible:
     enum:
       - amlogic,meson-a1-pwrc
+      - amlogic,meson-s4-pwrc
 
   "#power-domain-cells":
     const: 1
diff --git a/include/dt-bindings/power/meson-s4-power.h b/include/dt-bindings/power/meson-s4-power.h
new file mode 100644
index 000000000000..462dd2cb938b
--- /dev/null
+++ b/include/dt-bindings/power/meson-s4-power.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
+/*
+ * Copyright (c) 2021 Amlogic, Inc.
+ * Author: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
+ */
+
+#ifndef _DT_BINDINGS_MESON_S4_POWER_H
+#define _DT_BINDINGS_MESON_S4_POWER_H
+
+#define PWRC_S4_DOS_HEVC_ID	0
+#define PWRC_S4_DOS_VDEC_ID	1
+#define PWRC_S4_VPU_HDMI_ID	2
+#define PWRC_S4_USB_COMB_ID	3
+#define PWRC_S4_GE2D_ID		4
+#define PWRC_S4_ETH_ID		5
+#define PWRC_S4_DEMOD_ID	6
+#define PWRC_S4_AUDIO_ID	7
+
+#endif
-- 
2.34.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
To: <linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>
Cc: <shunzhou.jiang@amlogic.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Subject: [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings
Date: Wed, 2 Mar 2022 10:38:36 +0800	[thread overview]
Message-ID: <20220302023837.326673-2-shunzhou.jiang@amlogic.com> (raw)
In-Reply-To: <20220302023837.326673-1-shunzhou.jiang@amlogic.com>

Add the bindings for the Amlogic Secure power domains, controlling the
secure power domains.

The bindings targets the Amlogic s4, in which the power domains registers
are in secure world.

Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
V1->V2: fix spelling error, patchset use cover-letter
V2->V3: add power domain always on reason
V3->V4: clear vpu and usb power domaon always on
V4->V5: add reviewed owner in patchset
---
 .../power/amlogic,meson-sec-pwrc.yaml         |  3 ++-
 include/dt-bindings/power/meson-s4-power.h    | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/power/meson-s4-power.h

diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
index 5dae04d2936c..7657721a4e96 100644
--- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
+++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml
@@ -12,13 +12,14 @@ maintainers:
   - Jianxin Pan <jianxin.pan@amlogic.com>
 
 description: |+
-  Secure Power Domains used in Meson A1/C1 SoCs, and should be the child node
+  Secure Power Domains used in Meson A1/C1/S4 SoCs, and should be the child node
   of secure-monitor.
 
 properties:
   compatible:
     enum:
       - amlogic,meson-a1-pwrc
+      - amlogic,meson-s4-pwrc
 
   "#power-domain-cells":
     const: 1
diff --git a/include/dt-bindings/power/meson-s4-power.h b/include/dt-bindings/power/meson-s4-power.h
new file mode 100644
index 000000000000..462dd2cb938b
--- /dev/null
+++ b/include/dt-bindings/power/meson-s4-power.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
+/*
+ * Copyright (c) 2021 Amlogic, Inc.
+ * Author: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
+ */
+
+#ifndef _DT_BINDINGS_MESON_S4_POWER_H
+#define _DT_BINDINGS_MESON_S4_POWER_H
+
+#define PWRC_S4_DOS_HEVC_ID	0
+#define PWRC_S4_DOS_VDEC_ID	1
+#define PWRC_S4_VPU_HDMI_ID	2
+#define PWRC_S4_USB_COMB_ID	3
+#define PWRC_S4_GE2D_ID		4
+#define PWRC_S4_ETH_ID		5
+#define PWRC_S4_DEMOD_ID	6
+#define PWRC_S4_AUDIO_ID	7
+
+#endif
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-03-02  2:39 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02  2:38 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  2:38 ` Shunzhou Jiang
2022-03-02  2:38 ` Shunzhou Jiang [this message]
2022-03-02  2:38   ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  2:38 ` [PATCH V5 2/2] soc: s4: Add support for power domains controller Shunzhou Jiang
2022-03-02  2:38   ` Shunzhou Jiang
  -- strict thread matches above, loose matches on Subject: below --
2022-03-02  6:55 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  6:55 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  6:55   ` Shunzhou Jiang
2022-03-02  6:55   ` Shunzhou Jiang
2022-03-02 17:54   ` Rob Herring
2022-03-02 17:54     ` Rob Herring
2022-03-02 17:54     ` Rob Herring
2022-03-02  6:01 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  6:01 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  6:01   ` Shunzhou Jiang
2022-03-02  6:01   ` Shunzhou Jiang
2022-03-02  5:43 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  5:43 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  5:43   ` Shunzhou Jiang
2022-03-02  3:39 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  3:39 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  3:39   ` Shunzhou Jiang
2022-03-02  3:09 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  3:09 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  3:09   ` Shunzhou Jiang
2022-03-02  3:09   ` Shunzhou Jiang
2022-03-02  3:05 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  3:05 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  3:05   ` Shunzhou Jiang
2022-03-02  2:22 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-02  2:22 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-02  2:22   ` Shunzhou Jiang
2022-03-01  1:58 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-01  1:58 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-01  1:58   ` Shunzhou Jiang
2022-03-01  1:58   ` Shunzhou Jiang
2022-03-01  1:52 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-01  1:52 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-01  1:52   ` Shunzhou Jiang
2022-03-01  1:52   ` Shunzhou Jiang
2022-03-01  1:48 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-03-01  1:48 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-03-01  1:48   ` Shunzhou Jiang
2022-03-01  1:48   ` Shunzhou Jiang
2022-02-28  3:35 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-02-28  3:35 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-02-28  3:35   ` Shunzhou Jiang
2022-02-28  3:35   ` Shunzhou Jiang
2022-02-28  3:28 [PATCH V5 0/2] Power: meson-s4: add s4 power domain driver Shunzhou Jiang
2022-02-28  3:28 ` [PATCH V5 1/2] dt-bindings: power: add Amlogic s4 power domains bindings Shunzhou Jiang
2022-02-28  3:28   ` Shunzhou Jiang
2022-02-28  3:28   ` Shunzhou Jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220302023837.326673-2-shunzhou.jiang@amlogic.com \
    --to=shunzhou.jiang@amlogic.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=martin.blumenstingl@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.