Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: firmware: convert meson_sm.txt to dt-schema

Convert the Amlogic Secure Monitor bindings to dt-schema.

Take in account usage the used variant with amlogic,meson-gx-sm.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221117-b4-amlogic-bindings-convert-v2-1-36ad050bb625@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>

+39 -15
+39
Documentation/devicetree/bindings/firmware/amlogic,meson-gxbb-sm.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/firmware/amlogic,meson-gxbb-sm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Secure Monitor (SM) 8 + 9 + description: 10 + In the Amlogic SoCs the Secure Monitor code is used to provide access to the 11 + NVMEM, enable JTAG, set USB boot, etc... 12 + 13 + maintainers: 14 + - Neil Armstrong <neil.armstrong@linaro.org> 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - const: amlogic,meson-gxbb-sm 20 + - items: 21 + - const: amlogic,meson-gx-sm 22 + - const: amlogic,meson-gxbb-sm 23 + 24 + power-controller: 25 + type: object 26 + $ref: /schemas/power/amlogic,meson-sec-pwrc.yaml# 27 + 28 + required: 29 + - compatible 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + firmware { 36 + secure-monitor { 37 + compatible = "amlogic,meson-gxbb-sm"; 38 + }; 39 + };
-15
Documentation/devicetree/bindings/firmware/meson/meson_sm.txt
··· 1 - * Amlogic Secure Monitor 2 - 3 - In the Amlogic SoCs the Secure Monitor code is used to provide access to the 4 - NVMEM, enable JTAG, set USB boot, etc... 5 - 6 - Required properties for the secure monitor node: 7 - - compatible: Should be "amlogic,meson-gxbb-sm" 8 - 9 - Example: 10 - 11 - firmware { 12 - sm: secure-monitor { 13 - compatible = "amlogic,meson-gxbb-sm"; 14 - }; 15 - };