Skip to content

Commit

Permalink
dt-bindings: arm: hisilicon: convert hisilicon,hip04-bootwrapper bind…
Browse files Browse the repository at this point in the history
…ings to json-schema

Convert the Hisilicon Bootwrapper boot method binding to DT schema format
using json-schema.

The property boot-method contains two groups of physical address range
information: bootwrapper and relocation. The "uint32-array" type is not
suitable for it, because the field "address" and "size" may occupy one or
two cells respectively. Use "minItems: 1" and "maxItems: 2" to allow it
can be written in "<addr size addr size>" or "<addr size>, <addr size>"
format.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20200929141454.2312-15-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
Zhen Lei authored and Rob Herring committed Oct 1, 2020
1 parent 1dc0041 commit aeb9dd8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/arm/hisilicon/controller/hip04-bootwrapper.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Bootwrapper boot method

maintainers:
- Wei Xu <xuwei5@hisilicon.com>

description: Bootwrapper boot method (software protocol on SMP)

properties:
compatible:
items:
- const: hisilicon,hip04-bootwrapper

boot-method:
description: |
Address and size of boot method.
[0]: bootwrapper physical address
[1]: bootwrapper size
[2]: relocation physical address
[3]: relocation size
minItems: 1
maxItems: 2

required:
- compatible
- boot-method

additionalProperties: false
...

This file was deleted.

0 comments on commit aeb9dd8

Please sign in to comment.