Move PCB type and version to DTS

This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 4e6f6c7365
commit affaa9d8e8
14 changed files with 55 additions and 26 deletions
@@ -6,6 +6,18 @@ description: Generic charge controller device setup
compatible: "charge-controller"
properties:
type:
type: string
required: true
description: Device type
version-str:
type: string
required: true
description: Hardware version number (human-readable)
version-num:
type: int
required: true
description: Hardware version number (usable in preprocessor defines)
hs-voltage-max:
type: int
required: true
+12
View File
@@ -0,0 +1,12 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2020 Martin Jäger / Libre Solar
*/
/ {
pcb {
version-str = "v0.2";
version-num = <2>;
};
};