* [PATCH 0/2] dt-bindings: soc: add reset syscon for reboot node
@ 2024-07-03 18:08 Frank Li
2024-07-03 18:08 ` [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node Frank Li
2024-07-03 18:08 ` [PATCH 2/2] arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon Frank Li
0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2024-07-03 18:08 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo
Cc: devicetree, imx, Frank Li, linux-kernel, linuxppc-dev,
linux-arm-kernel
Add ls1028 reset syscon and fix below warnings.
syscon@1e60000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['al,alpine-sysfabric-service', ...
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Frank Li (2):
dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node
arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon
.../bindings/soc/fsl/fsl,ls1028a-reset.yaml | 56 ++++++++++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 17 ++++---
2 files changed, 64 insertions(+), 9 deletions(-)
---
base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
change-id: 20240703-ls_reset_syscon-9507b9750397
Best regards,
---
Frank Li <Frank.Li@nxp.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node
2024-07-03 18:08 [PATCH 0/2] dt-bindings: soc: add reset syscon for reboot node Frank Li
@ 2024-07-03 18:08 ` Frank Li
2024-07-08 16:18 ` Rob Herring (Arm)
2024-07-03 18:08 ` [PATCH 2/2] arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon Frank Li
1 sibling, 1 reply; 4+ messages in thread
From: Frank Li @ 2024-07-03 18:08 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo
Cc: devicetree, imx, Frank Li, linux-kernel, linuxppc-dev,
linux-arm-kernel
ls1028a has a reset module that includes reboot, reset control word, and
service processor control.
Add platform specific compatible string to fix the below warning.
syscon@1e60000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['al,alpine-sysfabric-service', ...]
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
.../bindings/soc/fsl/fsl,ls1028a-reset.yaml | 56 ++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/fsl/fsl,ls1028a-reset.yaml b/Documentation/devicetree/bindings/soc/fsl/fsl,ls1028a-reset.yaml
new file mode 100644
index 0000000000000..31295be910130
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/fsl/fsl,ls1028a-reset.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas//soc/fsl/fsl,ls1028a-reset.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale Layerscape Reset Registers Module
+
+maintainers:
+ - Frank Li
+
+description:
+ Reset Module includes chip reset, service processor control and Reset Control
+ Word (RCW) status.
+
+properties:
+ $nodename:
+ pattern: "^syscon@[0-9a-f]+$"
+
+ compatible:
+ items:
+ - enum:
+ - fsl,ls1028a-reset
+ - const: syscon
+ - const: simple-mfd
+
+ reg:
+ maxItems: 1
+
+ little-endian: true
+
+ reboot:
+ $ref: /schemas/power/reset/syscon-reboot.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+ - reboot
+
+additionalProperties: false
+
+examples:
+ - |
+ syscon@1e60000 {
+ compatible = "fsl,ls1028a-reset", "syscon", "simple-mfd";
+ reg = <0x1e60000 0x10000>;
+ little-endian;
+
+ reboot {
+ compatible = "syscon-reboot";
+ offset = <0>;
+ mask = <0x02>;
+ };
+ };
+
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon
2024-07-03 18:08 [PATCH 0/2] dt-bindings: soc: add reset syscon for reboot node Frank Li
2024-07-03 18:08 ` [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node Frank Li
@ 2024-07-03 18:08 ` Frank Li
1 sibling, 0 replies; 4+ messages in thread
From: Frank Li @ 2024-07-03 18:08 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo
Cc: devicetree, imx, Frank Li, linux-kernel, linuxppc-dev,
linux-arm-kernel
Add platform specific compatiable string 'fsl,ls1028-reset' for syscon and
move reboot node under reset syscon node to fix below warning.
syscon@1e60000: compatible: 'anyOf' conditional failed, one must be fixed:
['syscon'] is too short
'syscon' is not one of ['al,alpine-sysfabric-service', ...
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index 6b6e3ee950e53..fd93e66c071e1 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -112,13 +112,6 @@ optee: optee {
};
};
- reboot {
- compatible = "syscon-reboot";
- regmap = <&rst>;
- offset = <0>;
- mask = <0x02>;
- };
-
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
@@ -235,10 +228,16 @@ fspi_clk: clock-controller@900 {
};
};
- rst: syscon@1e60000 {
- compatible = "syscon";
+ syscon@1e60000 {
+ compatible = "fsl,ls1028a-reset", "syscon", "simple-mfd";
reg = <0x0 0x1e60000 0x0 0x10000>;
little-endian;
+
+ reboot {
+ compatible = "syscon-reboot";
+ offset = <0>;
+ mask = <0x02>;
+ };
};
sfp: efuse@1e80000 {
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node
2024-07-03 18:08 ` [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node Frank Li
@ 2024-07-08 16:18 ` Rob Herring (Arm)
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2024-07-08 16:18 UTC (permalink / raw)
To: Frank Li
Cc: devicetree, Conor Dooley, imx, linuxppc-dev, linux-kernel,
Krzysztof Kozlowski, Shawn Guo, linux-arm-kernel
On Wed, 03 Jul 2024 14:08:11 -0400, Frank Li wrote:
> ls1028a has a reset module that includes reboot, reset control word, and
> service processor control.
>
> Add platform specific compatible string to fix the below warning.
>
> syscon@1e60000: compatible: 'anyOf' conditional failed, one must be fixed:
> ['syscon'] is too short
> 'syscon' is not one of ['al,alpine-sysfabric-service', ...]
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> .../bindings/soc/fsl/fsl,ls1028a-reset.yaml | 56 ++++++++++++++++++++++
> 1 file changed, 56 insertions(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-08 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 18:08 [PATCH 0/2] dt-bindings: soc: add reset syscon for reboot node Frank Li
2024-07-03 18:08 ` [PATCH 1/2] dt-bindings: soc: fsl: Add fsl,ls1028a-reset for reset syscon node Frank Li
2024-07-08 16:18 ` Rob Herring (Arm)
2024-07-03 18:08 ` [PATCH 2/2] arm64: dts: fsl-ls1028a.dtsi: add fsl,ls1028-reset for syscon Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).