mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
For 32-bit Altera SoCFPGA parts, the sys-mgr uses the syscon as a fallback. This change addresses this warning from dtbs_check: sysmgr@ffd08000 (altr,sys-mgr): compatible: 'oneOf' conditional failed, one must be fixed: ['altr,sys-mgr', 'syscon'] is too long 'altr,sys-mgr-s10' was expected 'altr,sys-mgr' was expected from schema $id: http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/soc/altera/altr,sys-mgr.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Altera SOCFPGA System Manager
|
|
|
|
maintainers:
|
|
- Dinh Nguyen <dinguyen@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- description: Cyclone5/Arria5/Arria10
|
|
items:
|
|
- const: altr,sys-mgr
|
|
- const: syscon
|
|
- description: Stratix10 SoC
|
|
items:
|
|
- const: altr,sys-mgr-s10
|
|
- const: altr,sys-mgr
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
cpu1-start-addr:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: CPU1 start address in hex
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: altr,sys-mgr-s10
|
|
then:
|
|
properties:
|
|
cpu1-start-addr: false
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
sysmgr@ffd08000 {
|
|
compatible = "altr,sys-mgr", "syscon";
|
|
reg = <0xffd08000 0x1000>;
|
|
cpu1-start-addr = <0xffd080c4>;
|
|
};
|