Move PCB type and version to DTS
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user