Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: soc: altera: convert socfpga-system.txt to yaml

Convert socfpga-system.txt to altr,socfpga-sys-mgr.yaml and move to
soc directory.

Add platform names in description for clarity. ARM(32-bit) platforms
Cyclone5, Arria5 and Arria10 is using "altr,sys-mgr" compatible,
while ARM64 is using "altr,sys-mgr-s10" compatible.
Removed "cpu1-start-addr" for ARM64 as it is not required.

Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
Link: https://lore.kernel.org/r/20250107105129.2784203-1-niravkumar.l.rabara@intel.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Niravkumar L Rabara and committed by
Rob Herring (Arm)
456f3000 6143cc1d

+51 -25
-25
Documentation/devicetree/bindings/arm/altera/socfpga-system.txt
··· 1 - Altera SOCFPGA System Manager 2 - 3 - Required properties: 4 - - compatible : "altr,sys-mgr" 5 - - reg : Should contain 1 register ranges(address and length) 6 - - cpu1-start-addr : CPU1 start address in hex. 7 - 8 - Example: 9 - sysmgr@ffd08000 { 10 - compatible = "altr,sys-mgr"; 11 - reg = <0xffd08000 0x1000>; 12 - cpu1-start-addr = <0xffd080c4>; 13 - }; 14 - 15 - ARM64 - Stratix10 16 - Required properties: 17 - - compatible : "altr,sys-mgr-s10" 18 - - reg : Should contain 1 register range(address and length) 19 - for system manager register. 20 - 21 - Example: 22 - sysmgr@ffd12000 { 23 - compatible = "altr,sys-mgr-s10"; 24 - reg = <0xffd12000 0x228>; 25 - };
+51
Documentation/devicetree/bindings/soc/altera/altr,sys-mgr.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Altera SOCFPGA System Manager 8 + 9 + maintainers: 10 + - Dinh Nguyen <dinguyen@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - description: Cyclone5/Arria5/Arria10 16 + const: altr,sys-mgr 17 + - description: Stratix10 SoC 18 + items: 19 + - const: altr,sys-mgr-s10 20 + - const: altr,sys-mgr 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + cpu1-start-addr: 26 + $ref: /schemas/types.yaml#/definitions/uint32 27 + description: CPU1 start address in hex 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + allOf: 34 + - if: 35 + properties: 36 + compatible: 37 + contains: 38 + const: altr,sys-mgr-s10 39 + then: 40 + properties: 41 + cpu1-start-addr: false 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + sysmgr@ffd08000 { 48 + compatible = "altr,sys-mgr"; 49 + reg = <0xffd08000 0x1000>; 50 + cpu1-start-addr = <0xffd080c4>; 51 + };