All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/14] dt-bindings: arm: freescale: Switch fsl,scu from txt to yaml
@ 2022-06-16 16:42 ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel

Changes since v4: https://lore.kernel.org/lkml/20220615105834.743045-1-viorel.suman@nxp.com/
  * Missing SoB added

Changes since v3: https://lore.kernel.org/lkml/20220609143423.2839186-1-abel.vesa@nxp.com/
  * Examples included
  * Included Abel's patches fixing thermal zone, keys and power controller names.

Abel Vesa (14):
  arm64: dts: freescale: imx8qxp: Fix thermal zone name for cpu0
  dt-bindings: clk: imx: Add fsl,scu-clk yaml file
  dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
  dt-bindings: input: Add fsl,scu-key yaml file
  dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
  dt-bindings: power: Add fsl,scu-pd yaml file
  dt-bindings: rtc: Add fsl,scu-rtc yaml file
  dt-bindings: thermal: Add fsl,scu-thermal yaml file
  dt-bindings: watchdog: Add fsl,scu-wdt yaml file
  dt-bindings: firmware: Add fsl,scu yaml file
  arm64: dts: freescale: imx8: Fix power controller name
  arm64: dts: freescale: imx8qxp: Add fallback compatible for clock
    controller
  arm64: dts: freescale: imx8qxp: Fix the keys node name
  dt-bindings: arm: freescale: Remove fsl,scu txt file

 .../bindings/arm/freescale/fsl,scu.txt        | 271 ------------------
 .../bindings/clock/fsl,scu-clk.yaml           |  58 ++++
 .../devicetree/bindings/firmware/fsl,scu.yaml | 170 +++++++++++
 .../bindings/input/fsl,scu-key.yaml           |  39 +++
 .../bindings/nvmem/fsl,scu-ocotp.yaml         |  49 ++++
 .../bindings/pinctrl/fsl,scu-pinctrl.yaml     |  47 +++
 .../devicetree/bindings/power/fsl,scu-pd.yaml |  41 +++
 .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  |  28 ++
 .../bindings/thermal/fsl,scu-thermal.yaml     |  38 +++
 .../bindings/watchdog/fsl,scu-wdt.yaml        |  35 +++
 arch/arm64/boot/dts/freescale/imx8qm.dtsi     |   2 +-
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi    |   8 +-
 12 files changed, 510 insertions(+), 276 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
 create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
 create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml
 create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
 create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
 create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
 create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml

-- 
2.25.1


^ permalink raw reply	[flat|nested] 52+ messages in thread

* [PATCH v5 00/14] dt-bindings: arm: freescale: Switch fsl,scu from txt to yaml
@ 2022-06-16 16:42 ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel

Changes since v4: https://lore.kernel.org/lkml/20220615105834.743045-1-viorel.suman@nxp.com/
  * Missing SoB added

Changes since v3: https://lore.kernel.org/lkml/20220609143423.2839186-1-abel.vesa@nxp.com/
  * Examples included
  * Included Abel's patches fixing thermal zone, keys and power controller names.

Abel Vesa (14):
  arm64: dts: freescale: imx8qxp: Fix thermal zone name for cpu0
  dt-bindings: clk: imx: Add fsl,scu-clk yaml file
  dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
  dt-bindings: input: Add fsl,scu-key yaml file
  dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
  dt-bindings: power: Add fsl,scu-pd yaml file
  dt-bindings: rtc: Add fsl,scu-rtc yaml file
  dt-bindings: thermal: Add fsl,scu-thermal yaml file
  dt-bindings: watchdog: Add fsl,scu-wdt yaml file
  dt-bindings: firmware: Add fsl,scu yaml file
  arm64: dts: freescale: imx8: Fix power controller name
  arm64: dts: freescale: imx8qxp: Add fallback compatible for clock
    controller
  arm64: dts: freescale: imx8qxp: Fix the keys node name
  dt-bindings: arm: freescale: Remove fsl,scu txt file

 .../bindings/arm/freescale/fsl,scu.txt        | 271 ------------------
 .../bindings/clock/fsl,scu-clk.yaml           |  58 ++++
 .../devicetree/bindings/firmware/fsl,scu.yaml | 170 +++++++++++
 .../bindings/input/fsl,scu-key.yaml           |  39 +++
 .../bindings/nvmem/fsl,scu-ocotp.yaml         |  49 ++++
 .../bindings/pinctrl/fsl,scu-pinctrl.yaml     |  47 +++
 .../devicetree/bindings/power/fsl,scu-pd.yaml |  41 +++
 .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  |  28 ++
 .../bindings/thermal/fsl,scu-thermal.yaml     |  38 +++
 .../bindings/watchdog/fsl,scu-wdt.yaml        |  35 +++
 arch/arm64/boot/dts/freescale/imx8qm.dtsi     |   2 +-
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi    |   8 +-
 12 files changed, 510 insertions(+), 276 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
 create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
 create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml
 create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
 create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
 create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
 create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml

-- 
2.25.1


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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* [PATCH v5 01/14] arm64: dts: freescale: imx8qxp: Fix thermal zone name for cpu0
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is cpu0-thermal, not cpu-thermal0, so change it to that.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index a79ae33cbad2..483996a1f2d5 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -276,7 +276,7 @@ xtal24m: clock-xtal24m {
 	};
 
 	thermal_zones: thermal-zones {
-		cpu-thermal0 {
+		cpu0-thermal {
 			polling-delay-passive = <250>;
 			polling-delay = <2000>;
 			thermal-sensors = <&tsens IMX_SC_R_SYSTEM>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 01/14] arm64: dts: freescale: imx8qxp: Fix thermal zone name for cpu0
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is cpu0-thermal, not cpu-thermal0, so change it to that.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index a79ae33cbad2..483996a1f2d5 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -276,7 +276,7 @@ xtal24m: clock-xtal24m {
 	};
 
 	thermal_zones: thermal-zones {
-		cpu-thermal0 {
+		cpu0-thermal {
 			polling-delay-passive = <250>;
 			polling-delay = <2000>;
 			thermal-sensors = <&tsens IMX_SC_R_SYSTEM>;
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 02/14] dt-bindings: clk: imx: Add fsl,scu-clk yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'clock' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/clock/fsl,scu-clk.yaml           | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml

diff --git a/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
new file mode 100644
index 000000000000..8b59758eee4a
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/fsl,scu-clk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Clock bindings based on SCU Message Protocol
+
+maintainers:
+  - Abel Vesa <abel.vesa@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  This binding uses the common clock binding.
+  (Documentation/devicetree/bindings/clock/clock-bindings.txt)
+  The clock consumer should specify the desired clock by having the clock
+  ID in its "clocks" phandle cell.
+  See the full list of clock IDs from
+  include/dt-bindings/clock/imx8qxp-clock.h
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8dxl-clk
+          - fsl,imx8qm-clk
+          - fsl,imx8qxp-clk
+      - const: fsl,scu-clk
+
+  '#clock-cells':
+    const: 2
+
+  clocks:
+    items:
+      - description: XTAL 32KHz
+      - description: XTAL 24MHz
+    minItems: 1
+
+  clock-names:
+    items:
+      enum:
+        - xtal_32KHz
+        - xtal_24Mhz
+    minItems: 1
+    maxItems: 2
+
+required:
+  - compatible
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    clock-controller {
+           compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
+           #clock-cells = <2>;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 02/14] dt-bindings: clk: imx: Add fsl,scu-clk yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'clock' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/clock/fsl,scu-clk.yaml           | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml

diff --git a/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
new file mode 100644
index 000000000000..8b59758eee4a
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/fsl,scu-clk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Clock bindings based on SCU Message Protocol
+
+maintainers:
+  - Abel Vesa <abel.vesa@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  This binding uses the common clock binding.
+  (Documentation/devicetree/bindings/clock/clock-bindings.txt)
+  The clock consumer should specify the desired clock by having the clock
+  ID in its "clocks" phandle cell.
+  See the full list of clock IDs from
+  include/dt-bindings/clock/imx8qxp-clock.h
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8dxl-clk
+          - fsl,imx8qm-clk
+          - fsl,imx8qxp-clk
+      - const: fsl,scu-clk
+
+  '#clock-cells':
+    const: 2
+
+  clocks:
+    items:
+      - description: XTAL 32KHz
+      - description: XTAL 24MHz
+    minItems: 1
+
+  clock-names:
+    items:
+      enum:
+        - xtal_32KHz
+        - xtal_24Mhz
+    minItems: 1
+    maxItems: 2
+
+required:
+  - compatible
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    clock-controller {
+           compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
+           #clock-cells = <2>;
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 03/14] dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'iomux/pinctrl' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/pinctrl/fsl,scu-pinctrl.yaml     | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml

diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
new file mode 100644
index 000000000000..7a08c60da66f
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/fsl,scu-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Pinctrl bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  This binding uses the i.MX common pinctrl binding.
+  (Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt)
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8qm-iomuxc
+          - fsl,imx8qxp-iomuxc
+          - fsl,imx8dxl-iomuxc
+
+patternProperties:
+  "grp$":
+    type: object
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
+
+    pinctrl {
+             compatible = "fsl,imx8qxp-iomuxc";
+
+             pinctrl_lpuart0: lpuart0grp {
+                    fsl,pins = <
+                            IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
+                            IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
+                    >;
+             };
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 03/14] dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'iomux/pinctrl' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/pinctrl/fsl,scu-pinctrl.yaml     | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml

diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
new file mode 100644
index 000000000000..7a08c60da66f
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/fsl,scu-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Pinctrl bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  This binding uses the i.MX common pinctrl binding.
+  (Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt)
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8qm-iomuxc
+          - fsl,imx8qxp-iomuxc
+          - fsl,imx8dxl-iomuxc
+
+patternProperties:
+  "grp$":
+    type: object
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
+
+    pinctrl {
+             compatible = "fsl,imx8qxp-iomuxc";
+
+             pinctrl_lpuart0: lpuart0grp {
+                    fsl,pins = <
+                            IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
+                            IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
+                    >;
+             };
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 04/14] dt-bindings: input: Add fsl,scu-key yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'keys' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/input/fsl,scu-key.yaml           | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml

diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
new file mode 100644
index 000000000000..b0f4c5b553ce
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - SCU key bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/input/input.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-key
+      - const: fsl,imx-sc-key
+
+  linux,keycodes: true
+
+required:
+  - compatible
+  - linux,keycodes
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/input/input.h>
+
+    keys {
+             compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
+             linux,keycodes = <KEY_POWER>;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 04/14] dt-bindings: input: Add fsl,scu-key yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'keys' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/input/fsl,scu-key.yaml           | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml

diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
new file mode 100644
index 000000000000..b0f4c5b553ce
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - SCU key bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/input/input.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-key
+      - const: fsl,imx-sc-key
+
+  linux,keycodes: true
+
+required:
+  - compatible
+  - linux,keycodes
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/input/input.h>
+
+    keys {
+             compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
+             linux,keycodes = <KEY_POWER>;
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 05/14] dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'ocotp' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/nvmem/fsl,scu-ocotp.yaml         | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml

diff --git a/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
new file mode 100644
index 000000000000..071171e55218
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - OCOTP bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  Detailed bindings are described in bindings/nvmem/nvmem.txt
+
+properties:
+  compatible:
+    enum:
+      - fsl,imx8qm-scu-ocotp
+      - fsl,imx8qxp-scu-ocotp
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+patternProperties:
+  "^mac@[0-9a-f]*$":
+    type: object
+
+required:
+  - compatible
+  - '#address-cells'
+  - '#size-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    imx8qx-ocotp {
+             compatible = "fsl,imx8qxp-scu-ocotp";
+             #address-cells = <1>;
+             #size-cells = <1>;
+
+             fec_mac0: mac@2c4 {
+                    reg = <0x2c4 6>;
+             };
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 05/14] dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'ocotp' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/nvmem/fsl,scu-ocotp.yaml         | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml

diff --git a/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
new file mode 100644
index 000000000000..071171e55218
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - OCOTP bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  Detailed bindings are described in bindings/nvmem/nvmem.txt
+
+properties:
+  compatible:
+    enum:
+      - fsl,imx8qm-scu-ocotp
+      - fsl,imx8qxp-scu-ocotp
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+patternProperties:
+  "^mac@[0-9a-f]*$":
+    type: object
+
+required:
+  - compatible
+  - '#address-cells'
+  - '#size-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    imx8qx-ocotp {
+             compatible = "fsl,imx8qxp-scu-ocotp";
+             #address-cells = <1>;
+             #size-cells = <1>;
+
+             fec_mac0: mac@2c4 {
+                    reg = <0x2c4 6>;
+             };
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 06/14] dt-bindings: power: Add fsl,scu-pd yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'power controller' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/power/fsl,scu-pd.yaml | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml

diff --git a/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
new file mode 100644
index 000000000000..9d3cb51d7b37
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Power domain bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  Power domain bindings based on SCU Message Protocol
+
+allOf:
+  - $ref: /schemas/power/power-domain.yaml
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8qm-scu-pd
+          - fsl,imx8qxp-scu-pd
+      - const: fsl,scu-pd
+
+  '#power-domain-cells':
+    const: 1
+
+required:
+  - compatible
+  - '#power-domain-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    power-controller {
+             compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
+             #power-domain-cells = <1>;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 06/14] dt-bindings: power: Add fsl,scu-pd yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'power controller' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/power/fsl,scu-pd.yaml | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml

diff --git a/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
new file mode 100644
index 000000000000..9d3cb51d7b37
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Power domain bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+  Power domain bindings based on SCU Message Protocol
+
+allOf:
+  - $ref: /schemas/power/power-domain.yaml
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx8qm-scu-pd
+          - fsl,imx8qxp-scu-pd
+      - const: fsl,scu-pd
+
+  '#power-domain-cells':
+    const: 1
+
+required:
+  - compatible
+  - '#power-domain-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    power-controller {
+             compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
+             #power-domain-cells = <1>;
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 07/14] dt-bindings: rtc: Add fsl,scu-rtc yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'rtc' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml

diff --git a/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
new file mode 100644
index 000000000000..a2594fdd486f
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/fsl,scu-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - RTC bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+properties:
+  compatible:
+    const: fsl,imx8qxp-sc-rtc
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    rtc {
+             compatible = "fsl,imx8qxp-sc-rtc";
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 07/14] dt-bindings: rtc: Add fsl,scu-rtc yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'rtc' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml

diff --git a/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
new file mode 100644
index 000000000000..a2594fdd486f
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/fsl,scu-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - RTC bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+properties:
+  compatible:
+    const: fsl,imx8qxp-sc-rtc
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    rtc {
+             compatible = "fsl,imx8qxp-sc-rtc";
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 08/14] dt-bindings: thermal: Add fsl,scu-thermal yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'thermal' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/thermal/fsl,scu-thermal.yaml     | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml

diff --git a/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
new file mode 100644
index 000000000000..8f2646a18ef0
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/fsl,scu-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Thermal bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/thermal/thermal-sensor.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-thermal
+      - const: fsl,imx-sc-thermal
+
+  '#thermal-sensor-cells':
+    const: 1
+
+required:
+  - compatible
+  - '#thermal-sensor-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    thermal-sensor {
+             compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
+             #thermal-sensor-cells = <1>;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 08/14] dt-bindings: thermal: Add fsl,scu-thermal yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'thermal' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/thermal/fsl,scu-thermal.yaml     | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml

diff --git a/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
new file mode 100644
index 000000000000..8f2646a18ef0
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/fsl,scu-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Thermal bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/thermal/thermal-sensor.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-thermal
+      - const: fsl,imx-sc-thermal
+
+  '#thermal-sensor-cells':
+    const: 1
+
+required:
+  - compatible
+  - '#thermal-sensor-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    thermal-sensor {
+             compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
+             #thermal-sensor-cells = <1>;
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 09/14] dt-bindings: watchdog: Add fsl,scu-wdt yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'watchdog' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/watchdog/fsl,scu-wdt.yaml        | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml

diff --git a/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
new file mode 100644
index 000000000000..c5d3063a4130
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/fsl,scu-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Watchdog bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/watchdog/watchdog.yaml
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-wdt
+      - const: fsl,imx-sc-wdt
+
+  timeout-sec: true
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    watchdog {
+             compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
+             timeout-sec = <60>;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 09/14] dt-bindings: watchdog: Add fsl,scu-wdt yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'watchdog' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/watchdog/fsl,scu-wdt.yaml        | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml

diff --git a/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
new file mode 100644
index 000000000000..c5d3063a4130
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/fsl,scu-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX SCU Client Device Node - Watchdog bindings based on SCU Message Protocol
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: i.MX SCU Client Device Node
+  Client nodes are maintained as children of the relevant IMX-SCU device node.
+
+allOf:
+  - $ref: /schemas/watchdog/watchdog.yaml
+properties:
+  compatible:
+    items:
+      - const: fsl,imx8qxp-sc-wdt
+      - const: fsl,imx-sc-wdt
+
+  timeout-sec: true
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    watchdog {
+             compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
+             timeout-sec = <60>;
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:42   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch adds the
fsl,scu.yaml in the firmware bindings folder. This one is only for
the main SCU node. The old txt file will be removed only after all
the child nodes have been properly switch to yaml.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
 1 file changed, 170 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml

diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
new file mode 100644
index 000000000000..a28f729bfadb
--- /dev/null
+++ b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
@@ -0,0 +1,170 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/fsl,scu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX System Controller Firmware (SCFW)
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: System Controller Device Node
+  The System Controller Firmware (SCFW) is a low-level system function
+  which runs on a dedicated Cortex-M core to provide power, clock, and
+  resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
+  (QM, QP), and i.MX8QX (QXP, DX).
+  The AP communicates with the SC using a multi-ported MU module found
+  in the LSIO subsystem. The current definition of this MU module provides
+  5 remote AP connections to the SC to support up to 5 execution environments
+  (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
+  with the LSIO DSC IP bus. The SC firmware will communicate with this MU
+  using the MSI bus.
+
+properties:
+  $nodename:
+    const: 'scu'
+
+  compatible:
+    const: fsl,imx-scu
+
+  clock-controller:
+    description: |
+      $ref: /schemas/clock/fsl,scu-clk.yaml
+      Clock controller node that provides the clocks controlled by the SCU
+
+  imx8qx-ocotp:
+    description: |
+      $ref: /schemas/nvmem/fsl,scu-ocotp.yaml
+      OCOTP controller node provided by the SCU
+
+  keys:
+    description: |
+      $ref: /schemas/input/fsl,scu-key.yaml
+      Keys provided by the SCU
+
+  mboxes:
+    description: |
+      $ref: /schemas/mailbox/fsl,mu.yaml
+      List of phandle of 4 MU channels for tx, 4 MU channels for
+      rx, and 1 optional MU channel for general interrupt.
+      All MU channels must be in the same MU instance.
+      Cross instances are not allowed. The MU instance can only
+      be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
+      to make sure use the one which is not conflict with other
+      execution environments. e.g. ATF.
+    minItems: 1
+    maxItems: 10
+
+  mbox-names:
+    description:
+      include "gip3" if want to support general MU interrupt.
+    minItems: 1
+    maxItems: 10
+
+  pinctrl:
+    description: |
+      $ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml
+      Pin controller provided by the SCU
+
+  power-controller:
+    description: |
+      $ref: /schemas/power/fsl,scu-pd.yaml
+      Power domains controller node that provides the power domains
+      controlled by the SCU
+
+  rtc:
+    description: |
+      $ref: /schemas/rtc/fsl,scu-rtc.yaml
+      RTC controller provided by the SCU
+
+  thermal-sensor:
+    description: |
+      $ref: /schemas/thermal/fsl,scu-thermal.yaml
+      Thermal sensor provided by the SCU
+
+  watchdog:
+    description: |
+      $ref: /schemas/watchdog/fsl,scu-wdt.yaml
+      Watchdog controller provided by the SCU
+
+required:
+  - compatible
+  - mbox-names
+  - mboxes
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/firmware/imx/rsrc.h>
+    #include <dt-bindings/input/input.h>
+    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
+
+    firmware {
+           scu {
+                   compatible = "fsl,imx-scu";
+                   mbox-names = "tx0", "tx1", "tx2", "tx3",
+                                "rx0", "rx1", "rx2", "rx3",
+                                "gip3";
+                   mboxes = <&lsio_mu1 0 0
+                            &lsio_mu1 0 1
+                            &lsio_mu1 0 2
+                            &lsio_mu1 0 3
+                            &lsio_mu1 1 0
+                            &lsio_mu1 1 1
+                            &lsio_mu1 1 2
+                            &lsio_mu1 1 3
+                            &lsio_mu1 3 3>;
+
+                   clock-controller {
+                            compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
+                            #clock-cells = <2>;
+                   };
+
+                   pinctrl {
+                            compatible = "fsl,imx8qxp-iomuxc";
+
+                            pinctrl_lpuart0: lpuart0grp {
+                                   fsl,pins = <
+                                           IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
+                                           IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
+                                   >;
+                            };
+                   };
+
+                   imx8qx-ocotp {
+                            compatible = "fsl,imx8qxp-scu-ocotp";
+                            #address-cells = <1>;
+                            #size-cells = <1>;
+
+                            fec_mac0: mac@2c4 {
+                                   reg = <0x2c4 6>;
+                            };
+                   };
+
+                   power-controller {
+                            compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
+                            #power-domain-cells = <1>;
+                   };
+
+                   rtc {
+                            compatible = "fsl,imx8qxp-sc-rtc";
+                   };
+
+                   keys {
+                            compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
+                            linux,keycodes = <KEY_POWER>;
+                   };
+
+                   watchdog {
+                            compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
+                            timeout-sec = <60>;
+                   };
+
+                   thermal-sensor {
+                            compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
+                            #thermal-sensor-cells = <1>;
+                   };
+            };
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
@ 2022-06-16 16:42   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch adds the
fsl,scu.yaml in the firmware bindings folder. This one is only for
the main SCU node. The old txt file will be removed only after all
the child nodes have been properly switch to yaml.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
 1 file changed, 170 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml

diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
new file mode 100644
index 000000000000..a28f729bfadb
--- /dev/null
+++ b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
@@ -0,0 +1,170 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/fsl,scu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX System Controller Firmware (SCFW)
+
+maintainers:
+  - Dong Aisheng <aisheng.dong@nxp.com>
+
+description: System Controller Device Node
+  The System Controller Firmware (SCFW) is a low-level system function
+  which runs on a dedicated Cortex-M core to provide power, clock, and
+  resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
+  (QM, QP), and i.MX8QX (QXP, DX).
+  The AP communicates with the SC using a multi-ported MU module found
+  in the LSIO subsystem. The current definition of this MU module provides
+  5 remote AP connections to the SC to support up to 5 execution environments
+  (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
+  with the LSIO DSC IP bus. The SC firmware will communicate with this MU
+  using the MSI bus.
+
+properties:
+  $nodename:
+    const: 'scu'
+
+  compatible:
+    const: fsl,imx-scu
+
+  clock-controller:
+    description: |
+      $ref: /schemas/clock/fsl,scu-clk.yaml
+      Clock controller node that provides the clocks controlled by the SCU
+
+  imx8qx-ocotp:
+    description: |
+      $ref: /schemas/nvmem/fsl,scu-ocotp.yaml
+      OCOTP controller node provided by the SCU
+
+  keys:
+    description: |
+      $ref: /schemas/input/fsl,scu-key.yaml
+      Keys provided by the SCU
+
+  mboxes:
+    description: |
+      $ref: /schemas/mailbox/fsl,mu.yaml
+      List of phandle of 4 MU channels for tx, 4 MU channels for
+      rx, and 1 optional MU channel for general interrupt.
+      All MU channels must be in the same MU instance.
+      Cross instances are not allowed. The MU instance can only
+      be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
+      to make sure use the one which is not conflict with other
+      execution environments. e.g. ATF.
+    minItems: 1
+    maxItems: 10
+
+  mbox-names:
+    description:
+      include "gip3" if want to support general MU interrupt.
+    minItems: 1
+    maxItems: 10
+
+  pinctrl:
+    description: |
+      $ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml
+      Pin controller provided by the SCU
+
+  power-controller:
+    description: |
+      $ref: /schemas/power/fsl,scu-pd.yaml
+      Power domains controller node that provides the power domains
+      controlled by the SCU
+
+  rtc:
+    description: |
+      $ref: /schemas/rtc/fsl,scu-rtc.yaml
+      RTC controller provided by the SCU
+
+  thermal-sensor:
+    description: |
+      $ref: /schemas/thermal/fsl,scu-thermal.yaml
+      Thermal sensor provided by the SCU
+
+  watchdog:
+    description: |
+      $ref: /schemas/watchdog/fsl,scu-wdt.yaml
+      Watchdog controller provided by the SCU
+
+required:
+  - compatible
+  - mbox-names
+  - mboxes
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/firmware/imx/rsrc.h>
+    #include <dt-bindings/input/input.h>
+    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
+
+    firmware {
+           scu {
+                   compatible = "fsl,imx-scu";
+                   mbox-names = "tx0", "tx1", "tx2", "tx3",
+                                "rx0", "rx1", "rx2", "rx3",
+                                "gip3";
+                   mboxes = <&lsio_mu1 0 0
+                            &lsio_mu1 0 1
+                            &lsio_mu1 0 2
+                            &lsio_mu1 0 3
+                            &lsio_mu1 1 0
+                            &lsio_mu1 1 1
+                            &lsio_mu1 1 2
+                            &lsio_mu1 1 3
+                            &lsio_mu1 3 3>;
+
+                   clock-controller {
+                            compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
+                            #clock-cells = <2>;
+                   };
+
+                   pinctrl {
+                            compatible = "fsl,imx8qxp-iomuxc";
+
+                            pinctrl_lpuart0: lpuart0grp {
+                                   fsl,pins = <
+                                           IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
+                                           IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
+                                   >;
+                            };
+                   };
+
+                   imx8qx-ocotp {
+                            compatible = "fsl,imx8qxp-scu-ocotp";
+                            #address-cells = <1>;
+                            #size-cells = <1>;
+
+                            fec_mac0: mac@2c4 {
+                                   reg = <0x2c4 6>;
+                            };
+                   };
+
+                   power-controller {
+                            compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
+                            #power-domain-cells = <1>;
+                   };
+
+                   rtc {
+                            compatible = "fsl,imx8qxp-sc-rtc";
+                   };
+
+                   keys {
+                            compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
+                            linux,keycodes = <KEY_POWER>;
+                   };
+
+                   watchdog {
+                            compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
+                            timeout-sec = <60>;
+                   };
+
+                   thermal-sensor {
+                            compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
+                            #thermal-sensor-cells = <1>;
+                   };
+            };
+    };
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 11/14] arm64: dts: freescale: imx8: Fix power controller name
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:43   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is power-controller, not imx8qx-pd.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi  | 2 +-
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
index 4f767012f1f5..5ad1c9a5933c 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
@@ -190,7 +190,7 @@ scu {
 			  &lsio_mu1 1 0
 			  &lsio_mu1 3 3>;
 
-		pd: imx8qx-pd {
+		pd: power-controller {
 			compatible = "fsl,imx8qm-scu-pd", "fsl,scu-pd";
 			#power-domain-cells = <1>;
 		};
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 483996a1f2d5..542bc47509ca 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -210,7 +210,7 @@ scu {
 			  &lsio_mu1 1 0
 			  &lsio_mu1 3 3>;
 
-		pd: imx8qx-pd {
+		pd: power-controller {
 			compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
 			#power-domain-cells = <1>;
 		};
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 11/14] arm64: dts: freescale: imx8: Fix power controller name
@ 2022-06-16 16:43   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is power-controller, not imx8qx-pd.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi  | 2 +-
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
index 4f767012f1f5..5ad1c9a5933c 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
@@ -190,7 +190,7 @@ scu {
 			  &lsio_mu1 1 0
 			  &lsio_mu1 3 3>;
 
-		pd: imx8qx-pd {
+		pd: power-controller {
 			compatible = "fsl,imx8qm-scu-pd", "fsl,scu-pd";
 			#power-domain-cells = <1>;
 		};
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 483996a1f2d5..542bc47509ca 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -210,7 +210,7 @@ scu {
 			  &lsio_mu1 1 0
 			  &lsio_mu1 3 3>;
 
-		pd: imx8qx-pd {
+		pd: power-controller {
 			compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
 			#power-domain-cells = <1>;
 		};
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 12/14] arm64: dts: freescale: imx8qxp: Add fallback compatible for clock controller
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:43   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

Both i.MX8QM and i.MX8DXL use the fallback fsl,scu-clk compatible.
They rely on the same driver generic part as the i.MX8QXP, so
lets add it to i.MX8QXP too, for consitency.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 542bc47509ca..f9c3090c632e 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -216,7 +216,7 @@ pd: power-controller {
 		};
 
 		clk: clock-controller {
-			compatible = "fsl,imx8qxp-clk";
+			compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
 			#clock-cells = <2>;
 			clocks = <&xtal32k &xtal24m>;
 			clock-names = "xtal_32KHz", "xtal_24Mhz";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 12/14] arm64: dts: freescale: imx8qxp: Add fallback compatible for clock controller
@ 2022-06-16 16:43   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

Both i.MX8QM and i.MX8DXL use the fallback fsl,scu-clk compatible.
They rely on the same driver generic part as the i.MX8QXP, so
lets add it to i.MX8QXP too, for consitency.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 542bc47509ca..f9c3090c632e 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -216,7 +216,7 @@ pd: power-controller {
 		};
 
 		clk: clock-controller {
-			compatible = "fsl,imx8qxp-clk";
+			compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
 			#clock-cells = <2>;
 			clocks = <&xtal32k &xtal24m>;
 			clock-names = "xtal_32KHz", "xtal_24Mhz";
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 13/14] arm64: dts: freescale: imx8qxp: Fix the keys node name
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:43   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is 'keys', not 'scu-keys'.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index f9c3090c632e..1ef736815969 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -232,7 +232,7 @@ ocotp: imx8qx-ocotp {
 			#size-cells = <1>;
 		};
 
-		scu_key: scu-key {
+		scu_key: keys {
 			compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
 			linux,keycodes = <KEY_POWER>;
 			status = "disabled";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 13/14] arm64: dts: freescale: imx8qxp: Fix the keys node name
@ 2022-06-16 16:43   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

The proper name is 'keys', not 'scu-keys'.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index f9c3090c632e..1ef736815969 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -232,7 +232,7 @@ ocotp: imx8qx-ocotp {
 			#size-cells = <1>;
 		};
 
-		scu_key: scu-key {
+		scu_key: keys {
 			compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
 			linux,keycodes = <KEY_POWER>;
 			status = "disabled";
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 14/14] dt-bindings: arm: freescale: Remove fsl,scu txt file
  2022-06-16 16:42 ` Viorel Suman
@ 2022-06-16 16:43   ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

Now that all the child nodes have been properly documented in the
yaml files, within their proper subystems, we can drop the fsl,scu.txt.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/arm/freescale/fsl,scu.txt        | 271 ------------------
 1 file changed, 271 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt

diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
deleted file mode 100644
index a87ec15e28d2..000000000000
--- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
+++ /dev/null
@@ -1,271 +0,0 @@
-NXP i.MX System Controller Firmware (SCFW)
---------------------------------------------------------------------
-
-The System Controller Firmware (SCFW) is a low-level system function
-which runs on a dedicated Cortex-M core to provide power, clock, and
-resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
-(QM, QP), and i.MX8QX (QXP, DX).
-
-The AP communicates with the SC using a multi-ported MU module found
-in the LSIO subsystem. The current definition of this MU module provides
-5 remote AP connections to the SC to support up to 5 execution environments
-(TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
-with the LSIO DSC IP bus. The SC firmware will communicate with this MU
-using the MSI bus.
-
-System Controller Device Node:
-============================================================
-
-The scu node with the following properties shall be under the /firmware/ node.
-
-Required properties:
--------------------
-- compatible:	should be "fsl,imx-scu".
-- mbox-names:	should include "tx0", "tx1", "tx2", "tx3",
-			       "rx0", "rx1", "rx2", "rx3";
-		include "gip3" if want to support general MU interrupt.
-- mboxes:	List of phandle of 4 MU channels for tx, 4 MU channels for
-		rx, and 1 optional MU channel for general interrupt.
-		All MU channels must be in the same MU instance.
-		Cross instances are not allowed. The MU instance can only
-		be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
-		to make sure use the one which is not conflict with other
-		execution environments. e.g. ATF.
-		Note:
-		Channel 0 must be "tx0" or "rx0".
-		Channel 1 must be "tx1" or "rx1".
-		Channel 2 must be "tx2" or "rx2".
-		Channel 3 must be "tx3" or "rx3".
-		General interrupt rx channel must be "gip3".
-		e.g.
-		mboxes = <&lsio_mu1 0 0
-			  &lsio_mu1 0 1
-			  &lsio_mu1 0 2
-			  &lsio_mu1 0 3
-			  &lsio_mu1 1 0
-			  &lsio_mu1 1 1
-			  &lsio_mu1 1 2
-			  &lsio_mu1 1 3
-			  &lsio_mu1 3 3>;
-		See Documentation/devicetree/bindings/mailbox/fsl,mu.yaml
-		for detailed mailbox binding.
-
-Note: Each mu which supports general interrupt should have an alias correctly
-numbered in "aliases" node.
-e.g.
-aliases {
-	mu1 = &lsio_mu1;
-};
-
-i.MX SCU Client Device Node:
-============================================================
-
-Client nodes are maintained as children of the relevant IMX-SCU device node.
-
-Power domain bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding for the SCU power domain providers uses the generic power
-domain binding[2].
-
-Required properties:
-- compatible:		Should be one of:
-			  "fsl,imx8qm-scu-pd",
-			  "fsl,imx8qxp-scu-pd"
-			followed by "fsl,scu-pd"
-
-- #power-domain-cells:	Must be 1. Contains the Resource ID used by
-			SCU commands.
-			See detailed Resource ID list from:
-			include/dt-bindings/firmware/imx/rsrc.h
-
-Clock bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding uses the common clock binding[1].
-
-Required properties:
-- compatible:		Should be one of:
-			  "fsl,imx8dxl-clk"
-			  "fsl,imx8qm-clk"
-			  "fsl,imx8qxp-clk"
-			followed by "fsl,scu-clk"
-- #clock-cells:		Should be 2.
-			Contains the Resource and Clock ID value.
-- clocks:		List of clock specifiers, must contain an entry for
-			each required entry in clock-names
-- clock-names:		Should include entries "xtal_32KHz", "xtal_24MHz"
-
-The clock consumer should specify the desired clock by having the clock
-ID in its "clocks" phandle cell.
-
-See the full list of clock IDs from:
-include/dt-bindings/clock/imx8qxp-clock.h
-
-Pinctrl bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding uses the i.MX common pinctrl binding[3].
-
-Required properties:
-- compatible:		Should be one of:
-			"fsl,imx8qm-iomuxc",
-			"fsl,imx8qxp-iomuxc",
-			"fsl,imx8dxl-iomuxc".
-
-Required properties for Pinctrl sub nodes:
-- fsl,pins:		Each entry consists of 3 integers which represents
-			the mux and config setting for one pin. The first 2
-			integers <pin_id mux_mode> are specified using a
-			PIN_FUNC_ID macro, which can be found in
-			<dt-bindings/pinctrl/pads-imx8qm.h>,
-			<dt-bindings/pinctrl/pads-imx8qxp.h>,
-			<dt-bindings/pinctrl/pads-imx8dxl.h>.
-			The last integer CONFIG is the pad setting value like
-			pull-up on this pin.
-
-			Please refer to i.MX8QXP Reference Manual for detailed
-			CONFIG settings.
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-[2] Documentation/devicetree/bindings/power/power-domain.yaml
-[3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt
-
-RTC bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be "fsl,imx8qxp-sc-rtc";
-
-OCOTP bindings based on SCU Message Protocol
-------------------------------------------------------------
-Required properties:
-- compatible:		Should be one of:
-			"fsl,imx8qm-scu-ocotp",
-			"fsl,imx8qxp-scu-ocotp".
-- #address-cells:	Must be 1. Contains byte index
-- #size-cells:		Must be 1. Contains byte length
-
-Optional Child nodes:
-
-- Data cells of ocotp:
-  Detailed bindings are described in bindings/nvmem/nvmem.txt
-
-Watchdog bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be:
-              "fsl,imx8qxp-sc-wdt"
-              followed by "fsl,imx-sc-wdt";
-Optional properties:
-- timeout-sec: contains the watchdog timeout in seconds.
-
-SCU key bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be:
-              "fsl,imx8qxp-sc-key"
-              followed by "fsl,imx-sc-key";
-- linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml
-
-Thermal bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible:			Should be :
-				  "fsl,imx8qxp-sc-thermal"
-				followed by "fsl,imx-sc-thermal";
-
-- #thermal-sensor-cells:	See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml
-				for a description.
-
-Example (imx8qxp):
--------------
-aliases {
-	mu1 = &lsio_mu1;
-};
-
-lsio_mu1: mailbox@5d1c0000 {
-	...
-	#mbox-cells = <2>;
-};
-
-firmware {
-	scu {
-		compatible = "fsl,imx-scu";
-		mbox-names = "tx0", "tx1", "tx2", "tx3",
-			     "rx0", "rx1", "rx2", "rx3",
-			     "gip3";
-		mboxes = <&lsio_mu1 0 0
-			  &lsio_mu1 0 1
-			  &lsio_mu1 0 2
-			  &lsio_mu1 0 3
-			  &lsio_mu1 1 0
-			  &lsio_mu1 1 1
-			  &lsio_mu1 1 2
-			  &lsio_mu1 1 3
-			  &lsio_mu1 3 3>;
-
-		clk: clk {
-			compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
-			#clock-cells = <2>;
-		};
-
-		iomuxc {
-			compatible = "fsl,imx8qxp-iomuxc";
-
-			pinctrl_lpuart0: lpuart0grp {
-				fsl,pins = <
-					SC_P_UART0_RX_ADMA_UART0_RX	0x06000020
-					SC_P_UART0_TX_ADMA_UART0_TX	0x06000020
-				>;
-			};
-			...
-		};
-
-		ocotp: imx8qx-ocotp {
-			compatible = "fsl,imx8qxp-scu-ocotp";
-			#address-cells = <1>;
-			#size-cells = <1>;
-
-			fec_mac0: mac@2c4 {
-				reg = <0x2c4 8>;
-			};
-		};
-
-		pd: imx8qx-pd {
-			compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
-			#power-domain-cells = <1>;
-		};
-
-		rtc: rtc {
-			compatible = "fsl,imx8qxp-sc-rtc";
-		};
-
-		scu_key: scu-key {
-			compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
-			linux,keycodes = <KEY_POWER>;
-		};
-
-		watchdog {
-			compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
-			timeout-sec = <60>;
-		};
-
-		tsens: thermal-sensor {
-			compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
-			#thermal-sensor-cells = <1>;
-		};
-	};
-};
-
-serial@5a060000 {
-	...
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_lpuart0>;
-	clocks = <&uart0_clk IMX_SC_R_UART_0 IMX_SC_PM_CLK_PER>;
-	clock-names = "ipg";
-	power-domains = <&pd IMX_SC_R_UART_0>;
-};
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 52+ messages in thread

* [PATCH v5 14/14] dt-bindings: arm: freescale: Remove fsl,scu txt file
@ 2022-06-16 16:43   ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-16 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Viorel Suman, Oliver Graute, Mirela Rabulea, Peng Fan,
	Liu Ying, Ming Qian, devicetree, linux-kernel, linux-clk,
	linux-input, linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel
  Cc: Abel Vesa

From: Abel Vesa <abel.vesa@nxp.com>

Now that all the child nodes have been properly documented in the
yaml files, within their proper subystems, we can drop the fsl,scu.txt.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
---
 .../bindings/arm/freescale/fsl,scu.txt        | 271 ------------------
 1 file changed, 271 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt

diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
deleted file mode 100644
index a87ec15e28d2..000000000000
--- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
+++ /dev/null
@@ -1,271 +0,0 @@
-NXP i.MX System Controller Firmware (SCFW)
---------------------------------------------------------------------
-
-The System Controller Firmware (SCFW) is a low-level system function
-which runs on a dedicated Cortex-M core to provide power, clock, and
-resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
-(QM, QP), and i.MX8QX (QXP, DX).
-
-The AP communicates with the SC using a multi-ported MU module found
-in the LSIO subsystem. The current definition of this MU module provides
-5 remote AP connections to the SC to support up to 5 execution environments
-(TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
-with the LSIO DSC IP bus. The SC firmware will communicate with this MU
-using the MSI bus.
-
-System Controller Device Node:
-============================================================
-
-The scu node with the following properties shall be under the /firmware/ node.
-
-Required properties:
--------------------
-- compatible:	should be "fsl,imx-scu".
-- mbox-names:	should include "tx0", "tx1", "tx2", "tx3",
-			       "rx0", "rx1", "rx2", "rx3";
-		include "gip3" if want to support general MU interrupt.
-- mboxes:	List of phandle of 4 MU channels for tx, 4 MU channels for
-		rx, and 1 optional MU channel for general interrupt.
-		All MU channels must be in the same MU instance.
-		Cross instances are not allowed. The MU instance can only
-		be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
-		to make sure use the one which is not conflict with other
-		execution environments. e.g. ATF.
-		Note:
-		Channel 0 must be "tx0" or "rx0".
-		Channel 1 must be "tx1" or "rx1".
-		Channel 2 must be "tx2" or "rx2".
-		Channel 3 must be "tx3" or "rx3".
-		General interrupt rx channel must be "gip3".
-		e.g.
-		mboxes = <&lsio_mu1 0 0
-			  &lsio_mu1 0 1
-			  &lsio_mu1 0 2
-			  &lsio_mu1 0 3
-			  &lsio_mu1 1 0
-			  &lsio_mu1 1 1
-			  &lsio_mu1 1 2
-			  &lsio_mu1 1 3
-			  &lsio_mu1 3 3>;
-		See Documentation/devicetree/bindings/mailbox/fsl,mu.yaml
-		for detailed mailbox binding.
-
-Note: Each mu which supports general interrupt should have an alias correctly
-numbered in "aliases" node.
-e.g.
-aliases {
-	mu1 = &lsio_mu1;
-};
-
-i.MX SCU Client Device Node:
-============================================================
-
-Client nodes are maintained as children of the relevant IMX-SCU device node.
-
-Power domain bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding for the SCU power domain providers uses the generic power
-domain binding[2].
-
-Required properties:
-- compatible:		Should be one of:
-			  "fsl,imx8qm-scu-pd",
-			  "fsl,imx8qxp-scu-pd"
-			followed by "fsl,scu-pd"
-
-- #power-domain-cells:	Must be 1. Contains the Resource ID used by
-			SCU commands.
-			See detailed Resource ID list from:
-			include/dt-bindings/firmware/imx/rsrc.h
-
-Clock bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding uses the common clock binding[1].
-
-Required properties:
-- compatible:		Should be one of:
-			  "fsl,imx8dxl-clk"
-			  "fsl,imx8qm-clk"
-			  "fsl,imx8qxp-clk"
-			followed by "fsl,scu-clk"
-- #clock-cells:		Should be 2.
-			Contains the Resource and Clock ID value.
-- clocks:		List of clock specifiers, must contain an entry for
-			each required entry in clock-names
-- clock-names:		Should include entries "xtal_32KHz", "xtal_24MHz"
-
-The clock consumer should specify the desired clock by having the clock
-ID in its "clocks" phandle cell.
-
-See the full list of clock IDs from:
-include/dt-bindings/clock/imx8qxp-clock.h
-
-Pinctrl bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-This binding uses the i.MX common pinctrl binding[3].
-
-Required properties:
-- compatible:		Should be one of:
-			"fsl,imx8qm-iomuxc",
-			"fsl,imx8qxp-iomuxc",
-			"fsl,imx8dxl-iomuxc".
-
-Required properties for Pinctrl sub nodes:
-- fsl,pins:		Each entry consists of 3 integers which represents
-			the mux and config setting for one pin. The first 2
-			integers <pin_id mux_mode> are specified using a
-			PIN_FUNC_ID macro, which can be found in
-			<dt-bindings/pinctrl/pads-imx8qm.h>,
-			<dt-bindings/pinctrl/pads-imx8qxp.h>,
-			<dt-bindings/pinctrl/pads-imx8dxl.h>.
-			The last integer CONFIG is the pad setting value like
-			pull-up on this pin.
-
-			Please refer to i.MX8QXP Reference Manual for detailed
-			CONFIG settings.
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-[2] Documentation/devicetree/bindings/power/power-domain.yaml
-[3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt
-
-RTC bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be "fsl,imx8qxp-sc-rtc";
-
-OCOTP bindings based on SCU Message Protocol
-------------------------------------------------------------
-Required properties:
-- compatible:		Should be one of:
-			"fsl,imx8qm-scu-ocotp",
-			"fsl,imx8qxp-scu-ocotp".
-- #address-cells:	Must be 1. Contains byte index
-- #size-cells:		Must be 1. Contains byte length
-
-Optional Child nodes:
-
-- Data cells of ocotp:
-  Detailed bindings are described in bindings/nvmem/nvmem.txt
-
-Watchdog bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be:
-              "fsl,imx8qxp-sc-wdt"
-              followed by "fsl,imx-sc-wdt";
-Optional properties:
-- timeout-sec: contains the watchdog timeout in seconds.
-
-SCU key bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible: should be:
-              "fsl,imx8qxp-sc-key"
-              followed by "fsl,imx-sc-key";
-- linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml
-
-Thermal bindings based on SCU Message Protocol
-------------------------------------------------------------
-
-Required properties:
-- compatible:			Should be :
-				  "fsl,imx8qxp-sc-thermal"
-				followed by "fsl,imx-sc-thermal";
-
-- #thermal-sensor-cells:	See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml
-				for a description.
-
-Example (imx8qxp):
--------------
-aliases {
-	mu1 = &lsio_mu1;
-};
-
-lsio_mu1: mailbox@5d1c0000 {
-	...
-	#mbox-cells = <2>;
-};
-
-firmware {
-	scu {
-		compatible = "fsl,imx-scu";
-		mbox-names = "tx0", "tx1", "tx2", "tx3",
-			     "rx0", "rx1", "rx2", "rx3",
-			     "gip3";
-		mboxes = <&lsio_mu1 0 0
-			  &lsio_mu1 0 1
-			  &lsio_mu1 0 2
-			  &lsio_mu1 0 3
-			  &lsio_mu1 1 0
-			  &lsio_mu1 1 1
-			  &lsio_mu1 1 2
-			  &lsio_mu1 1 3
-			  &lsio_mu1 3 3>;
-
-		clk: clk {
-			compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
-			#clock-cells = <2>;
-		};
-
-		iomuxc {
-			compatible = "fsl,imx8qxp-iomuxc";
-
-			pinctrl_lpuart0: lpuart0grp {
-				fsl,pins = <
-					SC_P_UART0_RX_ADMA_UART0_RX	0x06000020
-					SC_P_UART0_TX_ADMA_UART0_TX	0x06000020
-				>;
-			};
-			...
-		};
-
-		ocotp: imx8qx-ocotp {
-			compatible = "fsl,imx8qxp-scu-ocotp";
-			#address-cells = <1>;
-			#size-cells = <1>;
-
-			fec_mac0: mac@2c4 {
-				reg = <0x2c4 8>;
-			};
-		};
-
-		pd: imx8qx-pd {
-			compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
-			#power-domain-cells = <1>;
-		};
-
-		rtc: rtc {
-			compatible = "fsl,imx8qxp-sc-rtc";
-		};
-
-		scu_key: scu-key {
-			compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
-			linux,keycodes = <KEY_POWER>;
-		};
-
-		watchdog {
-			compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
-			timeout-sec = <60>;
-		};
-
-		tsens: thermal-sensor {
-			compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
-			#thermal-sensor-cells = <1>;
-		};
-	};
-};
-
-serial@5a060000 {
-	...
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_lpuart0>;
-	clocks = <&uart0_clk IMX_SC_R_UART_0 IMX_SC_PM_CLK_PER>;
-	clock-names = "ipg";
-	power-domains = <&pd IMX_SC_R_UART_0>;
-};
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 02/14] dt-bindings: clk: imx: Add fsl,scu-clk yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:05     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:05 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'clock' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/clock/fsl,scu-clk.yaml           | 58 +++++++++++++++++++
>  1 file changed, 58 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> 
> diff --git a/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> new file mode 100644
> index 000000000000..8b59758eee4a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> @@ -0,0 +1,58 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/fsl,scu-clk.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Clock bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Abel Vesa <abel.vesa@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  This binding uses the common clock binding.
> +  (Documentation/devicetree/bindings/clock/clock-bindings.txt)
> +  The clock consumer should specify the desired clock by having the clock
> +  ID in its "clocks" phandle cell.
> +  See the full list of clock IDs from
> +  include/dt-bindings/clock/imx8qxp-clock.h
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - fsl,imx8dxl-clk
> +          - fsl,imx8qm-clk
> +          - fsl,imx8qxp-clk
> +      - const: fsl,scu-clk
> +
> +  '#clock-cells':
> +    const: 2
> +
> +  clocks:
> +    items:
> +      - description: XTAL 32KHz
> +      - description: XTAL 24MHz
> +    minItems: 1
> +
> +  clock-names:
> +    items:
> +      enum:
> +        - xtal_32KHz
> +        - xtal_24Mhz

No, this does not match your clocks property and allow any combination.
Are you sure that hardware can have entirely different clocks connected?

> +    minItems: 1
> +    maxItems: 2
> +
> +required:
> +  - compatible
> +  - '#clock-cells'

Why the clocks are not required?

> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    clock-controller {
> +           compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";

Wrong indentation. 4 spaces for DTS example.

> +           #clock-cells = <2>;
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 02/14] dt-bindings: clk: imx: Add fsl,scu-clk yaml file
@ 2022-06-24 10:05     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:05 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'clock' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/clock/fsl,scu-clk.yaml           | 58 +++++++++++++++++++
>  1 file changed, 58 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> 
> diff --git a/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> new file mode 100644
> index 000000000000..8b59758eee4a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
> @@ -0,0 +1,58 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/fsl,scu-clk.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Clock bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Abel Vesa <abel.vesa@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  This binding uses the common clock binding.
> +  (Documentation/devicetree/bindings/clock/clock-bindings.txt)
> +  The clock consumer should specify the desired clock by having the clock
> +  ID in its "clocks" phandle cell.
> +  See the full list of clock IDs from
> +  include/dt-bindings/clock/imx8qxp-clock.h
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - fsl,imx8dxl-clk
> +          - fsl,imx8qm-clk
> +          - fsl,imx8qxp-clk
> +      - const: fsl,scu-clk
> +
> +  '#clock-cells':
> +    const: 2
> +
> +  clocks:
> +    items:
> +      - description: XTAL 32KHz
> +      - description: XTAL 24MHz
> +    minItems: 1
> +
> +  clock-names:
> +    items:
> +      enum:
> +        - xtal_32KHz
> +        - xtal_24Mhz

No, this does not match your clocks property and allow any combination.
Are you sure that hardware can have entirely different clocks connected?

> +    minItems: 1
> +    maxItems: 2
> +
> +required:
> +  - compatible
> +  - '#clock-cells'

Why the clocks are not required?

> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    clock-controller {
> +           compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";

Wrong indentation. 4 spaces for DTS example.

> +           #clock-cells = <2>;
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 03/14] dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:09     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:09 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'iomux/pinctrl' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/pinctrl/fsl,scu-pinctrl.yaml     | 47 +++++++++++++++++++

Since this is a conversion, I expect removal of existing bindings. This
applies to each other patch as well.

>  1 file changed, 47 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> new file mode 100644
> index 000000000000..7a08c60da66f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> @@ -0,0 +1,47 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/fsl,scu-pinctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Pinctrl bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  This binding uses the i.MX common pinctrl binding.
> +  (Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt)
> +
> +properties:
> +  compatible:
> +    items:

You have only one item, so no items.

> +      - enum:
> +          - fsl,imx8qm-iomuxc
> +          - fsl,imx8qxp-iomuxc
> +          - fsl,imx8dxl-iomuxc
> +
> +patternProperties:
> +  "grp$":
> +    type: object

You need to describe the children and then additionalProperties:false.
See other pinctrl bindings for example.

> +
> +required:
> +  - compatible
> +

Missing allOf referencing pinctrl.

> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
> +
> +    pinctrl {
> +             compatible = "fsl,imx8qxp-iomuxc";
> +
> +             pinctrl_lpuart0: lpuart0grp {
> +                    fsl,pins = <
> +                            IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
> +                            IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
> +                    >;
> +             };
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 03/14] dt-bindings: pinctrl: imx: Add fsl,scu-iomux yaml file
@ 2022-06-24 10:09     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:09 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'iomux/pinctrl' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/pinctrl/fsl,scu-pinctrl.yaml     | 47 +++++++++++++++++++

Since this is a conversion, I expect removal of existing bindings. This
applies to each other patch as well.

>  1 file changed, 47 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> new file mode 100644
> index 000000000000..7a08c60da66f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/fsl,scu-pinctrl.yaml
> @@ -0,0 +1,47 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/fsl,scu-pinctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Pinctrl bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  This binding uses the i.MX common pinctrl binding.
> +  (Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt)
> +
> +properties:
> +  compatible:
> +    items:

You have only one item, so no items.

> +      - enum:
> +          - fsl,imx8qm-iomuxc
> +          - fsl,imx8qxp-iomuxc
> +          - fsl,imx8dxl-iomuxc
> +
> +patternProperties:
> +  "grp$":
> +    type: object

You need to describe the children and then additionalProperties:false.
See other pinctrl bindings for example.

> +
> +required:
> +  - compatible
> +

Missing allOf referencing pinctrl.

> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
> +
> +    pinctrl {
> +             compatible = "fsl,imx8qxp-iomuxc";
> +
> +             pinctrl_lpuart0: lpuart0grp {
> +                    fsl,pins = <
> +                            IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
> +                            IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
> +                    >;
> +             };
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 04/14] dt-bindings: input: Add fsl,scu-key yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:14     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:14 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'keys' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/input/fsl,scu-key.yaml           | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> 
> diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> new file mode 100644
> index 000000000000..b0f4c5b553ce
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - SCU key bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/input/input.yaml#
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-key
> +      - const: fsl,imx-sc-key
> +
> +  linux,keycodes: true

need maxItems

> +
> +required:
> +  - compatible
> +  - linux,keycodes
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/input/input.h>
> +
> +    keys {
> +             compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";

Wrong indentation.

> +             linux,keycodes = <KEY_POWER>;
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 04/14] dt-bindings: input: Add fsl,scu-key yaml file
@ 2022-06-24 10:14     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:14 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'keys' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/input/fsl,scu-key.yaml           | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> 
> diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> new file mode 100644
> index 000000000000..b0f4c5b553ce
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - SCU key bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/input/input.yaml#
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-key
> +      - const: fsl,imx-sc-key
> +
> +  linux,keycodes: true

need maxItems

> +
> +required:
> +  - compatible
> +  - linux,keycodes
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/input/input.h>
> +
> +    keys {
> +             compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";

Wrong indentation.

> +             linux,keycodes = <KEY_POWER>;
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 05/14] dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:15     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:15 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'ocotp' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/nvmem/fsl,scu-ocotp.yaml         | 49 +++++++++++++++++++
>  1 file changed, 49 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> 
> diff --git a/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> new file mode 100644
> index 000000000000..071171e55218
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - OCOTP bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  Detailed bindings are described in bindings/nvmem/nvmem.txt
> +
> +properties:
> +  compatible:
> +    enum:
> +      - fsl,imx8qm-scu-ocotp
> +      - fsl,imx8qxp-scu-ocotp
> +
> +  '#address-cells':
> +    const: 1
> +
> +  '#size-cells':
> +    const: 1
> +
> +patternProperties:
> +  "^mac@[0-9a-f]*$":

Use consistent quotes, either " or '.

> +    type: object
> +
> +required:
> +  - compatible
> +  - '#address-cells'
> +  - '#size-cells'
> +

missing allOf referencing nvmem. You can skip then address/size cells
and use unevaluatedProperties:false.

> +additionalProperties: false
> +
> +examples:
> +  - |
> +    imx8qx-ocotp {
> +             compatible = "fsl,imx8qxp-scu-ocotp";

Wrong indentation.

> +             #address-cells = <1>;
> +             #size-cells = <1>;
> +
> +             fec_mac0: mac@2c4 {
> +                    reg = <0x2c4 6>;
> +             };
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 05/14] dt-bindings: nvmem: Add fsl,scu-ocotp yaml file
@ 2022-06-24 10:15     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:15 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'ocotp' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/nvmem/fsl,scu-ocotp.yaml         | 49 +++++++++++++++++++
>  1 file changed, 49 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> 
> diff --git a/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> new file mode 100644
> index 000000000000..071171e55218
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/fsl,scu-ocotp.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/nvmem/fsl,scu-ocotp.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - OCOTP bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  Detailed bindings are described in bindings/nvmem/nvmem.txt
> +
> +properties:
> +  compatible:
> +    enum:
> +      - fsl,imx8qm-scu-ocotp
> +      - fsl,imx8qxp-scu-ocotp
> +
> +  '#address-cells':
> +    const: 1
> +
> +  '#size-cells':
> +    const: 1
> +
> +patternProperties:
> +  "^mac@[0-9a-f]*$":

Use consistent quotes, either " or '.

> +    type: object
> +
> +required:
> +  - compatible
> +  - '#address-cells'
> +  - '#size-cells'
> +

missing allOf referencing nvmem. You can skip then address/size cells
and use unevaluatedProperties:false.

> +additionalProperties: false
> +
> +examples:
> +  - |
> +    imx8qx-ocotp {
> +             compatible = "fsl,imx8qxp-scu-ocotp";

Wrong indentation.

> +             #address-cells = <1>;
> +             #size-cells = <1>;
> +
> +             fec_mac0: mac@2c4 {
> +                    reg = <0x2c4 6>;
> +             };
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 06/14] dt-bindings: power: Add fsl,scu-pd yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:16     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:16 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'power controller' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/power/fsl,scu-pd.yaml | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> 
> diff --git a/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> new file mode 100644
> index 000000000000..9d3cb51d7b37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Power domain bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  Power domain bindings based on SCU Message Protocol
> +
> +allOf:
> +  - $ref: /schemas/power/power-domain.yaml
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - fsl,imx8qm-scu-pd
> +          - fsl,imx8qxp-scu-pd
> +      - const: fsl,scu-pd
> +
> +  '#power-domain-cells':
> +    const: 1
> +
> +required:
> +  - compatible
> +  - '#power-domain-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    power-controller {
> +             compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";

Wrong indentation.

> +             #power-domain-cells = <1>;
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 06/14] dt-bindings: power: Add fsl,scu-pd yaml file
@ 2022-06-24 10:16     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:16 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'power controller' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/power/fsl,scu-pd.yaml | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> 
> diff --git a/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> new file mode 100644
> index 000000000000..9d3cb51d7b37
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Power domain bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +  Power domain bindings based on SCU Message Protocol
> +
> +allOf:
> +  - $ref: /schemas/power/power-domain.yaml
> +
> +properties:
> +  compatible:
> +    items:
> +      - enum:
> +          - fsl,imx8qm-scu-pd
> +          - fsl,imx8qxp-scu-pd
> +      - const: fsl,scu-pd
> +
> +  '#power-domain-cells':
> +    const: 1
> +
> +required:
> +  - compatible
> +  - '#power-domain-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    power-controller {
> +             compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";

Wrong indentation.

> +             #power-domain-cells = <1>;
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 07/14] dt-bindings: rtc: Add fsl,scu-rtc yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:17     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:17 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'rtc' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> new file mode 100644
> index 000000000000..a2594fdd486f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> @@ -0,0 +1,28 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/fsl,scu-rtc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - RTC bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +properties:
> +  compatible:
> +    const: fsl,imx8qxp-sc-rtc
> +
> +required:
> +  - compatible

Missing allOf with ref to rtc.yaml.

> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    rtc {

Wrong indentation.

> +             compatible = "fsl,imx8qxp-sc-rtc";
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 07/14] dt-bindings: rtc: Add fsl,scu-rtc yaml file
@ 2022-06-24 10:17     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:17 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'rtc' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/rtc/fsl,scu-rtc.yaml  | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> new file mode 100644
> index 000000000000..a2594fdd486f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/fsl,scu-rtc.yaml
> @@ -0,0 +1,28 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/fsl,scu-rtc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - RTC bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +properties:
> +  compatible:
> +    const: fsl,imx8qxp-sc-rtc
> +
> +required:
> +  - compatible

Missing allOf with ref to rtc.yaml.

> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    rtc {

Wrong indentation.

> +             compatible = "fsl,imx8qxp-sc-rtc";
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 08/14] dt-bindings: thermal: Add fsl,scu-thermal yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:18     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:18 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'thermal' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/thermal/fsl,scu-thermal.yaml     | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> 
> diff --git a/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> new file mode 100644
> index 000000000000..8f2646a18ef0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/thermal/fsl,scu-thermal.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Thermal bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/thermal/thermal-sensor.yaml#
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-thermal
> +      - const: fsl,imx-sc-thermal
> +
> +  '#thermal-sensor-cells':
> +    const: 1
> +
> +required:
> +  - compatible
> +  - '#thermal-sensor-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    thermal-sensor {

Wrong indentation.

> +             compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
> +             #thermal-sensor-cells = <1>;
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 08/14] dt-bindings: thermal: Add fsl,scu-thermal yaml file
@ 2022-06-24 10:18     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:18 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'thermal' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/thermal/fsl,scu-thermal.yaml     | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> 
> diff --git a/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> new file mode 100644
> index 000000000000..8f2646a18ef0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml
> @@ -0,0 +1,38 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/thermal/fsl,scu-thermal.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Thermal bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/thermal/thermal-sensor.yaml#
> +
> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-thermal
> +      - const: fsl,imx-sc-thermal
> +
> +  '#thermal-sensor-cells':
> +    const: 1
> +
> +required:
> +  - compatible
> +  - '#thermal-sensor-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    thermal-sensor {

Wrong indentation.

> +             compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
> +             #thermal-sensor-cells = <1>;
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 09/14] dt-bindings: watchdog: Add fsl,scu-wdt yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:19     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:19 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'watchdog' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/watchdog/fsl,scu-wdt.yaml        | 35 +++++++++++++++++++
>  1 file changed, 35 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> 
> diff --git a/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> new file mode 100644
> index 000000000000..c5d3063a4130
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> @@ -0,0 +1,35 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/fsl,scu-wdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Watchdog bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/watchdog/watchdog.yaml

Blank line

> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-wdt
> +      - const: fsl,imx-sc-wdt
> +
> +  timeout-sec: true

Drop it.

> +
> +required:
> +  - compatible
> +
> +additionalProperties: false

unevaluatedProperties: false

> +
> +examples:
> +  - |
> +    watchdog {
> +             compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";

Indentation...

> +             timeout-sec = <60>;
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 09/14] dt-bindings: watchdog: Add fsl,scu-wdt yaml file
@ 2022-06-24 10:19     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:19 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch documents
> separately the 'watchdog' child node of the SCU main node.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../bindings/watchdog/fsl,scu-wdt.yaml        | 35 +++++++++++++++++++
>  1 file changed, 35 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> 
> diff --git a/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> new file mode 100644
> index 000000000000..c5d3063a4130
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/fsl,scu-wdt.yaml
> @@ -0,0 +1,35 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/fsl,scu-wdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: i.MX SCU Client Device Node - Watchdog bindings based on SCU Message Protocol
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: i.MX SCU Client Device Node
> +  Client nodes are maintained as children of the relevant IMX-SCU device node.
> +
> +allOf:
> +  - $ref: /schemas/watchdog/watchdog.yaml

Blank line

> +properties:
> +  compatible:
> +    items:
> +      - const: fsl,imx8qxp-sc-wdt
> +      - const: fsl,imx-sc-wdt
> +
> +  timeout-sec: true

Drop it.

> +
> +required:
> +  - compatible
> +
> +additionalProperties: false

unevaluatedProperties: false

> +
> +examples:
> +  - |
> +    watchdog {
> +             compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";

Indentation...

> +             timeout-sec = <60>;
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
  2022-06-16 16:42   ` Viorel Suman
@ 2022-06-24 10:25     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:25 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch adds the
> fsl,scu.yaml in the firmware bindings folder. This one is only for
> the main SCU node. The old txt file will be removed only after all
> the child nodes have been properly switch to yaml.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
>  1 file changed, 170 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> 
> diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> new file mode 100644
> index 000000000000..a28f729bfadb
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> @@ -0,0 +1,170 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/firmware/fsl,scu.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP i.MX System Controller Firmware (SCFW)
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: System Controller Device Node
> +  The System Controller Firmware (SCFW) is a low-level system function
> +  which runs on a dedicated Cortex-M core to provide power, clock, and
> +  resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
> +  (QM, QP), and i.MX8QX (QXP, DX).
> +  The AP communicates with the SC using a multi-ported MU module found
> +  in the LSIO subsystem. The current definition of this MU module provides
> +  5 remote AP connections to the SC to support up to 5 execution environments
> +  (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
> +  with the LSIO DSC IP bus. The SC firmware will communicate with this MU
> +  using the MSI bus.
> +
> +properties:
> +  $nodename:
> +    const: 'scu'

Why enforcing node name? Second point is that node names should be
generic, so I wonder what "SCU" exactly means and whether it is generic?

> +
> +  compatible:
> +    const: fsl,imx-scu
> +
> +  clock-controller:
> +    description: |
> +      $ref: /schemas/clock/fsl,scu-clk.yaml

That's not a valid syntax. ref is not part of description

> +      Clock controller node that provides the clocks controlled by the SCU
> +
> +  imx8qx-ocotp:
> +    description: |
> +      $ref: /schemas/nvmem/fsl,scu-ocotp.yaml
> +      OCOTP controller node provided by the SCU
> +
> +  keys:
> +    description: |
> +      $ref: /schemas/input/fsl,scu-key.yaml
> +      Keys provided by the SCU
> +
> +  mboxes:
> +    description: |
> +      $ref: /schemas/mailbox/fsl,mu.yaml
> +      List of phandle of 4 MU channels for tx, 4 MU channels for
> +      rx, and 1 optional MU channel for general interrupt.
> +      All MU channels must be in the same MU instance.
> +      Cross instances are not allowed. The MU instance can only
> +      be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
> +      to make sure use the one which is not conflict with other
> +      execution environments. e.g. ATF.
> +    minItems: 1
> +    maxItems: 10
> +
> +  mbox-names:
> +    description:
> +      include "gip3" if want to support general MU interrupt.
> +    minItems: 1
> +    maxItems: 10
> +
> +  pinctrl:
> +    description: |
> +      $ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml
> +      Pin controller provided by the SCU
> +
> +  power-controller:
> +    description: |
> +      $ref: /schemas/power/fsl,scu-pd.yaml
> +      Power domains controller node that provides the power domains
> +      controlled by the SCU
> +
> +  rtc:
> +    description: |
> +      $ref: /schemas/rtc/fsl,scu-rtc.yaml
> +      RTC controller provided by the SCU
> +
> +  thermal-sensor:
> +    description: |
> +      $ref: /schemas/thermal/fsl,scu-thermal.yaml
> +      Thermal sensor provided by the SCU
> +
> +  watchdog:
> +    description: |
> +      $ref: /schemas/watchdog/fsl,scu-wdt.yaml
> +      Watchdog controller provided by the SCU
> +
> +required:
> +  - compatible
> +  - mbox-names
> +  - mboxes
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/firmware/imx/rsrc.h>
> +    #include <dt-bindings/input/input.h>
> +    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
> +
> +    firmware {
> +           scu {
> +                   compatible = "fsl,imx-scu";
> +                   mbox-names = "tx0", "tx1", "tx2", "tx3",
> +                                "rx0", "rx1", "rx2", "rx3",
> +                                "gip3";
> +                   mboxes = <&lsio_mu1 0 0
> +                            &lsio_mu1 0 1
> +                            &lsio_mu1 0 2
> +                            &lsio_mu1 0 3
> +                            &lsio_mu1 1 0
> +                            &lsio_mu1 1 1
> +                            &lsio_mu1 1 2
> +                            &lsio_mu1 1 3
> +                            &lsio_mu1 3 3>;
> +
> +                   clock-controller {
> +                            compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
> +                            #clock-cells = <2>;
> +                   };
> +
> +                   pinctrl {
> +                            compatible = "fsl,imx8qxp-iomuxc";
> +
> +                            pinctrl_lpuart0: lpuart0grp {
> +                                   fsl,pins = <
> +                                           IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
> +                                           IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
> +                                   >;
> +                            };
> +                   };
> +
> +                   imx8qx-ocotp {
> +                            compatible = "fsl,imx8qxp-scu-ocotp";
> +                            #address-cells = <1>;
> +                            #size-cells = <1>;
> +
> +                            fec_mac0: mac@2c4 {
> +                                   reg = <0x2c4 6>;
> +                            };
> +                   };
> +
> +                   power-controller {
> +                            compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
> +                            #power-domain-cells = <1>;
> +                   };
> +
> +                   rtc {
> +                            compatible = "fsl,imx8qxp-sc-rtc";
> +                   };
> +
> +                   keys {
> +                            compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
> +                            linux,keycodes = <KEY_POWER>;
> +                   };
> +
> +                   watchdog {
> +                            compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
> +                            timeout-sec = <60>;
> +                   };
> +
> +                   thermal-sensor {
> +                            compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
> +                            #thermal-sensor-cells = <1>;
> +                   };
> +            };
> +    };


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
@ 2022-06-24 10:25     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-24 10:25 UTC (permalink / raw)
  To: Viorel Suman, Rob Herring, Krzysztof Kozlowski,
	Michael Turquette, Stephen Boyd, Dmitry Torokhov,
	Srinivas Kandagatla, Dong Aisheng, Fabio Estevam, Shawn Guo,
	Stefan Agner, Pengutronix Kernel Team, Linus Walleij,
	Alessandro Zummo, Alexandre Belloni, Rafael J. Wysocki,
	Daniel Lezcano, Amit Kucheria, Zhang Rui, Wim Van Sebroeck,
	Guenter Roeck, Sascha Hauer, NXP Linux Team, Abel Vesa,
	Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying, Ming Qian,
	devicetree, linux-kernel, linux-clk, linux-input, linux-gpio,
	linux-rtc, linux-pm, linux-watchdog, linux-arm-kernel
  Cc: Abel Vesa

On 16/06/2022 18:42, Viorel Suman wrote:
> From: Abel Vesa <abel.vesa@nxp.com>
> 
> In order to replace the fsl,scu txt file from bindings/arm/freescale,
> we need to split it between the right subsystems. This patch adds the
> fsl,scu.yaml in the firmware bindings folder. This one is only for
> the main SCU node. The old txt file will be removed only after all
> the child nodes have been properly switch to yaml.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> ---
>  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
>  1 file changed, 170 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> 
> diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> new file mode 100644
> index 000000000000..a28f729bfadb
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> @@ -0,0 +1,170 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/firmware/fsl,scu.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP i.MX System Controller Firmware (SCFW)
> +
> +maintainers:
> +  - Dong Aisheng <aisheng.dong@nxp.com>
> +
> +description: System Controller Device Node
> +  The System Controller Firmware (SCFW) is a low-level system function
> +  which runs on a dedicated Cortex-M core to provide power, clock, and
> +  resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
> +  (QM, QP), and i.MX8QX (QXP, DX).
> +  The AP communicates with the SC using a multi-ported MU module found
> +  in the LSIO subsystem. The current definition of this MU module provides
> +  5 remote AP connections to the SC to support up to 5 execution environments
> +  (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
> +  with the LSIO DSC IP bus. The SC firmware will communicate with this MU
> +  using the MSI bus.
> +
> +properties:
> +  $nodename:
> +    const: 'scu'

Why enforcing node name? Second point is that node names should be
generic, so I wonder what "SCU" exactly means and whether it is generic?

> +
> +  compatible:
> +    const: fsl,imx-scu
> +
> +  clock-controller:
> +    description: |
> +      $ref: /schemas/clock/fsl,scu-clk.yaml

That's not a valid syntax. ref is not part of description

> +      Clock controller node that provides the clocks controlled by the SCU
> +
> +  imx8qx-ocotp:
> +    description: |
> +      $ref: /schemas/nvmem/fsl,scu-ocotp.yaml
> +      OCOTP controller node provided by the SCU
> +
> +  keys:
> +    description: |
> +      $ref: /schemas/input/fsl,scu-key.yaml
> +      Keys provided by the SCU
> +
> +  mboxes:
> +    description: |
> +      $ref: /schemas/mailbox/fsl,mu.yaml
> +      List of phandle of 4 MU channels for tx, 4 MU channels for
> +      rx, and 1 optional MU channel for general interrupt.
> +      All MU channels must be in the same MU instance.
> +      Cross instances are not allowed. The MU instance can only
> +      be one of LSIO MU0~M4 for imx8qxp and imx8qm. Users need
> +      to make sure use the one which is not conflict with other
> +      execution environments. e.g. ATF.
> +    minItems: 1
> +    maxItems: 10
> +
> +  mbox-names:
> +    description:
> +      include "gip3" if want to support general MU interrupt.
> +    minItems: 1
> +    maxItems: 10
> +
> +  pinctrl:
> +    description: |
> +      $ref: /schemas/pinctrl/fsl,scu-pinctrl.yaml
> +      Pin controller provided by the SCU
> +
> +  power-controller:
> +    description: |
> +      $ref: /schemas/power/fsl,scu-pd.yaml
> +      Power domains controller node that provides the power domains
> +      controlled by the SCU
> +
> +  rtc:
> +    description: |
> +      $ref: /schemas/rtc/fsl,scu-rtc.yaml
> +      RTC controller provided by the SCU
> +
> +  thermal-sensor:
> +    description: |
> +      $ref: /schemas/thermal/fsl,scu-thermal.yaml
> +      Thermal sensor provided by the SCU
> +
> +  watchdog:
> +    description: |
> +      $ref: /schemas/watchdog/fsl,scu-wdt.yaml
> +      Watchdog controller provided by the SCU
> +
> +required:
> +  - compatible
> +  - mbox-names
> +  - mboxes
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/firmware/imx/rsrc.h>
> +    #include <dt-bindings/input/input.h>
> +    #include <dt-bindings/pinctrl/pads-imx8qxp.h>
> +
> +    firmware {
> +           scu {
> +                   compatible = "fsl,imx-scu";
> +                   mbox-names = "tx0", "tx1", "tx2", "tx3",
> +                                "rx0", "rx1", "rx2", "rx3",
> +                                "gip3";
> +                   mboxes = <&lsio_mu1 0 0
> +                            &lsio_mu1 0 1
> +                            &lsio_mu1 0 2
> +                            &lsio_mu1 0 3
> +                            &lsio_mu1 1 0
> +                            &lsio_mu1 1 1
> +                            &lsio_mu1 1 2
> +                            &lsio_mu1 1 3
> +                            &lsio_mu1 3 3>;
> +
> +                   clock-controller {
> +                            compatible = "fsl,imx8qxp-clk", "fsl,scu-clk";
> +                            #clock-cells = <2>;
> +                   };
> +
> +                   pinctrl {
> +                            compatible = "fsl,imx8qxp-iomuxc";
> +
> +                            pinctrl_lpuart0: lpuart0grp {
> +                                   fsl,pins = <
> +                                           IMX8QXP_UART0_RX_ADMA_UART0_RX   0x06000020
> +                                           IMX8QXP_UART0_TX_ADMA_UART0_TX   0x06000020
> +                                   >;
> +                            };
> +                   };
> +
> +                   imx8qx-ocotp {
> +                            compatible = "fsl,imx8qxp-scu-ocotp";
> +                            #address-cells = <1>;
> +                            #size-cells = <1>;
> +
> +                            fec_mac0: mac@2c4 {
> +                                   reg = <0x2c4 6>;
> +                            };
> +                   };
> +
> +                   power-controller {
> +                            compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd";
> +                            #power-domain-cells = <1>;
> +                   };
> +
> +                   rtc {
> +                            compatible = "fsl,imx8qxp-sc-rtc";
> +                   };
> +
> +                   keys {
> +                            compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
> +                            linux,keycodes = <KEY_POWER>;
> +                   };
> +
> +                   watchdog {
> +                            compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt";
> +                            timeout-sec = <60>;
> +                   };
> +
> +                   thermal-sensor {
> +                            compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal";
> +                            #thermal-sensor-cells = <1>;
> +                   };
> +            };
> +    };


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
  2022-06-24 10:25     ` Krzysztof Kozlowski
@ 2022-06-27 11:49       ` Viorel Suman
  -1 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-27 11:49 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying,
	Ming Qian, devicetree, linux-kernel, linux-clk, linux-input,
	linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel, Abel Vesa

On 22-06-24 12:25:44, Krzysztof Kozlowski wrote:
> On 16/06/2022 18:42, Viorel Suman wrote:
> > From: Abel Vesa <abel.vesa@nxp.com>
> > 
> > In order to replace the fsl,scu txt file from bindings/arm/freescale,
> > we need to split it between the right subsystems. This patch adds the
> > fsl,scu.yaml in the firmware bindings folder. This one is only for
> > the main SCU node. The old txt file will be removed only after all
> > the child nodes have been properly switch to yaml.
> > 
> > Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> > Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> > ---
> >  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
> >  1 file changed, 170 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> > 
> > diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml

[...]

> > +properties:
> > +  $nodename:
> > +    const: 'scu'
> 
> Why enforcing node name? Second point is that node names should be
> generic, so I wonder what "SCU" exactly means and whether it is generic?
> 

It stands for "System Control Unit" - looks generic to me.
I guess a reason to enforce it - need to check with Abel - might be
the need to group multiple SCU implementations under a common known name.

> > +
> > +  compatible:
> > +    const: fsl,imx-scu
> > +
> > +  clock-controller:
> > +    description: |
> > +      $ref: /schemas/clock/fsl,scu-clk.yaml
> 
> That's not a valid syntax. ref is not part of description
> 

Right, will fix that, thank you for review.

Regards,
Viorel


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

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
@ 2022-06-27 11:49       ` Viorel Suman
  0 siblings, 0 replies; 52+ messages in thread
From: Viorel Suman @ 2022-06-27 11:49 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying,
	Ming Qian, devicetree, linux-kernel, linux-clk, linux-input,
	linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel, Abel Vesa

On 22-06-24 12:25:44, Krzysztof Kozlowski wrote:
> On 16/06/2022 18:42, Viorel Suman wrote:
> > From: Abel Vesa <abel.vesa@nxp.com>
> > 
> > In order to replace the fsl,scu txt file from bindings/arm/freescale,
> > we need to split it between the right subsystems. This patch adds the
> > fsl,scu.yaml in the firmware bindings folder. This one is only for
> > the main SCU node. The old txt file will be removed only after all
> > the child nodes have been properly switch to yaml.
> > 
> > Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
> > Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
> > ---
> >  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
> >  1 file changed, 170 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> > 
> > diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml

[...]

> > +properties:
> > +  $nodename:
> > +    const: 'scu'
> 
> Why enforcing node name? Second point is that node names should be
> generic, so I wonder what "SCU" exactly means and whether it is generic?
> 

It stands for "System Control Unit" - looks generic to me.
I guess a reason to enforce it - need to check with Abel - might be
the need to group multiple SCU implementations under a common known name.

> > +
> > +  compatible:
> > +    const: fsl,imx-scu
> > +
> > +  clock-controller:
> > +    description: |
> > +      $ref: /schemas/clock/fsl,scu-clk.yaml
> 
> That's not a valid syntax. ref is not part of description
> 

Right, will fix that, thank you for review.

Regards,
Viorel


^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
  2022-06-27 11:49       ` Viorel Suman
@ 2022-06-27 12:06         ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-27 12:06 UTC (permalink / raw)
  To: Viorel Suman
  Cc: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying,
	Ming Qian, devicetree, linux-kernel, linux-clk, linux-input,
	linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel, Abel Vesa

On 27/06/2022 13:49, Viorel Suman wrote:
> On 22-06-24 12:25:44, Krzysztof Kozlowski wrote:
>> On 16/06/2022 18:42, Viorel Suman wrote:
>>> From: Abel Vesa <abel.vesa@nxp.com>
>>>
>>> In order to replace the fsl,scu txt file from bindings/arm/freescale,
>>> we need to split it between the right subsystems. This patch adds the
>>> fsl,scu.yaml in the firmware bindings folder. This one is only for
>>> the main SCU node. The old txt file will be removed only after all
>>> the child nodes have been properly switch to yaml.
>>>
>>> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
>>> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
>>> ---
>>>  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
>>>  1 file changed, 170 insertions(+)
>>>  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> 
> [...]
> 
>>> +properties:
>>> +  $nodename:
>>> +    const: 'scu'
>>
>> Why enforcing node name? Second point is that node names should be
>> generic, so I wonder what "SCU" exactly means and whether it is generic?
>>
> 
> It stands for "System Control Unit" - looks generic to me.

Nope, it's specific, just like other scu - Snoop Control Unit. What's
more, reusing the same acronym leads to confusions.

If it was generic, then I expect it to be present in several other
places, but it's not (except the other SCU).

Generic name is for example "system-controller".

> I guess a reason to enforce it - need to check with Abel - might be
> the need to group multiple SCU implementations under a common known name.

Device bindings do not enforce the names, unless it's really needed, and
I doubt there is a need here.  Just drop it and rename nodes in DTS to
something generic.


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 52+ messages in thread

* Re: [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu yaml file
@ 2022-06-27 12:06         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 52+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-27 12:06 UTC (permalink / raw)
  To: Viorel Suman
  Cc: Rob Herring, Krzysztof Kozlowski, Michael Turquette,
	Stephen Boyd, Dmitry Torokhov, Srinivas Kandagatla, Dong Aisheng,
	Fabio Estevam, Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Linus Walleij, Alessandro Zummo, Alexandre Belloni,
	Rafael J. Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui,
	Wim Van Sebroeck, Guenter Roeck, Sascha Hauer, NXP Linux Team,
	Abel Vesa, Oliver Graute, Mirela Rabulea, Peng Fan, Liu Ying,
	Ming Qian, devicetree, linux-kernel, linux-clk, linux-input,
	linux-gpio, linux-rtc, linux-pm, linux-watchdog,
	linux-arm-kernel, Abel Vesa

On 27/06/2022 13:49, Viorel Suman wrote:
> On 22-06-24 12:25:44, Krzysztof Kozlowski wrote:
>> On 16/06/2022 18:42, Viorel Suman wrote:
>>> From: Abel Vesa <abel.vesa@nxp.com>
>>>
>>> In order to replace the fsl,scu txt file from bindings/arm/freescale,
>>> we need to split it between the right subsystems. This patch adds the
>>> fsl,scu.yaml in the firmware bindings folder. This one is only for
>>> the main SCU node. The old txt file will be removed only after all
>>> the child nodes have been properly switch to yaml.
>>>
>>> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
>>> Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
>>> ---
>>>  .../devicetree/bindings/firmware/fsl,scu.yaml | 170 ++++++++++++++++++
>>>  1 file changed, 170 insertions(+)
>>>  create mode 100644 Documentation/devicetree/bindings/firmware/fsl,scu.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
> 
> [...]
> 
>>> +properties:
>>> +  $nodename:
>>> +    const: 'scu'
>>
>> Why enforcing node name? Second point is that node names should be
>> generic, so I wonder what "SCU" exactly means and whether it is generic?
>>
> 
> It stands for "System Control Unit" - looks generic to me.

Nope, it's specific, just like other scu - Snoop Control Unit. What's
more, reusing the same acronym leads to confusions.

If it was generic, then I expect it to be present in several other
places, but it's not (except the other SCU).

Generic name is for example "system-controller".

> I guess a reason to enforce it - need to check with Abel - might be
> the need to group multiple SCU implementations under a common known name.

Device bindings do not enforce the names, unless it's really needed, and
I doubt there is a need here.  Just drop it and rename nodes in DTS to
something generic.


Best regards,
Krzysztof

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

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2022-06-27 12:08 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 16:42 [PATCH v5 00/14] dt-bindings: arm: freescale: Switch fsl,scu from txt to yaml Viorel Suman
2022-06-16 16:42 ` Viorel Suman
2022-06-16 16:42 ` [PATCH v5 01/14] arm64: dts: freescale: imx8qxp: Fix thermal zone name for cpu0 Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-16 16:42 ` [PATCH v5 02/14] dt-bindings: clk: imx: Add fsl,scu-clk yaml file Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:05   ` Krzysztof Kozlowski
2022-06-24 10:05     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 03/14] dt-bindings: pinctrl: imx: Add fsl,scu-iomux " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:09   ` Krzysztof Kozlowski
2022-06-24 10:09     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 04/14] dt-bindings: input: Add fsl,scu-key " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:14   ` Krzysztof Kozlowski
2022-06-24 10:14     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 05/14] dt-bindings: nvmem: Add fsl,scu-ocotp " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:15   ` Krzysztof Kozlowski
2022-06-24 10:15     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 06/14] dt-bindings: power: Add fsl,scu-pd " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:16   ` Krzysztof Kozlowski
2022-06-24 10:16     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 07/14] dt-bindings: rtc: Add fsl,scu-rtc " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:17   ` Krzysztof Kozlowski
2022-06-24 10:17     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 08/14] dt-bindings: thermal: Add fsl,scu-thermal " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:18   ` Krzysztof Kozlowski
2022-06-24 10:18     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 09/14] dt-bindings: watchdog: Add fsl,scu-wdt " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:19   ` Krzysztof Kozlowski
2022-06-24 10:19     ` Krzysztof Kozlowski
2022-06-16 16:42 ` [PATCH v5 10/14] dt-bindings: firmware: Add fsl,scu " Viorel Suman
2022-06-16 16:42   ` Viorel Suman
2022-06-24 10:25   ` Krzysztof Kozlowski
2022-06-24 10:25     ` Krzysztof Kozlowski
2022-06-27 11:49     ` Viorel Suman
2022-06-27 11:49       ` Viorel Suman
2022-06-27 12:06       ` Krzysztof Kozlowski
2022-06-27 12:06         ` Krzysztof Kozlowski
2022-06-16 16:43 ` [PATCH v5 11/14] arm64: dts: freescale: imx8: Fix power controller name Viorel Suman
2022-06-16 16:43   ` Viorel Suman
2022-06-16 16:43 ` [PATCH v5 12/14] arm64: dts: freescale: imx8qxp: Add fallback compatible for clock controller Viorel Suman
2022-06-16 16:43   ` Viorel Suman
2022-06-16 16:43 ` [PATCH v5 13/14] arm64: dts: freescale: imx8qxp: Fix the keys node name Viorel Suman
2022-06-16 16:43   ` Viorel Suman
2022-06-16 16:43 ` [PATCH v5 14/14] dt-bindings: arm: freescale: Remove fsl,scu txt file Viorel Suman
2022-06-16 16:43   ` Viorel Suman

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.