On 20/01/2024 12:20, Amrit Anand wrote:Sure will take care of this.
From: Elliot Berman <quic_eberman@xxxxxxxxxxx>
How is this better than Qualcomm's qcom,msm-id/qcom,board-id?Some mis-indentation in two lines above.
-------------------------------------------------------------
The selection process for devicetrees was Qualcomm-specific and not
useful for other devices and bootloaders that were not developed by
Qualcomm because a complex algorithm was used to implement. Board-ids
provide a matching solution that can be implemented by bootloaders
without introducing vendor-specific code. Qualcomm uses three
devicetree properties: msm-id (interchangeably: soc-id), board-id, and
pmic-id. This does not scale well for use casese which use identifiers,
for example, to distinguish between a display panel. For a display
panel, an approach could be to add a new property: display-id,
but now bootloaders need to be updated to also read this property. We
want to avoid requiring to update bootloaders with new hardware
Do you want us to move this file completely to the below mentioned repo and under which directory?
identifiers: a bootloader need only recognize the identifiers it canI think we should add it to dtschema, because bootloaders are using these.
handle.
Signed-off-by: Elliot Berman <quic_eberman@xxxxxxxxxxx>
Signed-off-by: Amrit Anand <quic_amrianan@xxxxxxxxxxx>
---
.../devicetree/bindings/hwinfo/board-id.yaml | 53 ++++++++++++++++++++++
1 file changed, 53 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwinfo/board-id.yaml
diff --git a/Documentation/devicetree/bindings/hwinfo/board-id.yaml b/Documentation/devicetree/bindings/hwinfo/board-id.yaml
Will drop it.
new file mode 100644Do not need '|' unless you need to preserve formatting.
index 0000000..82d5ff7
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwinfo/board-id.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwinfo/board-id.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Board Identifier for Devicetree Selection
+
+maintainers:
+ - Amrit Anand <quic_amrianan@xxxxxxxxxxx>
+ - Elliot Berman <quic_eberman@xxxxxxxxxxx>
+
+description: |
The nodename here would be "/". So it will be applied to all the DTs, right?
+ Device manufacturers frequently ship multiple boards under a singleI don't fully get why do you need this select. Isn't the schema selected
+ software package. These software packages will ship multiple devicetree
+ blobs and require some mechanism to pick the correct DTB for the board
+ the software package was deployed. board-id provides a mechanism for
+ bootloaders to select the appropriate DTB which is vendor/OEM-agnostic.
+
+select:
+ anyOf:
+ - required:
+ - 'board-id'
+ - required:
+ - 'board-id-types'
+ - required:
+ - '#board-id-cells'
by nodename? Or maybe it is for the final required: but then this could
be just set of dependencies.
Will add it.+Blank line.
+properties:
+ $nodename:
+ const: "/"
Ack+ board-id:Do not need '|' unless you need to preserve formatting.
+ $ref: /schemas/types.yaml#/definitions/uint32-matrix
+ description: |
Will update+ A list of identifiers that can be used to match with this devicetree.s/devicetree/Devicetree/ ?
Will update+ The interpretatation of each cell can be matched with theTypo: interpretation
Will update+ board-id-type at the same index.s/DeviceTree/Devicetree/ ?
+
+ board-id-types:
+ $ref: /schemas/types.yaml#/definitions/non-unique-string-array
+ description:
+ Defines the type of each cell, indicating to the DeviceTree selection
Bootloader will use this to check the number of entries in a tuple of board-id.
+ mechanism how to parse the board-id.What are the cells for?
+
+ '#board-id-cells':