From 4d6e9532829ffe94d1a6c6b48e934e27ec47b8fb Mon Sep 17 00:00:00 2001 From: shenghu liu Date: Thu, 15 Jul 2021 19:07:21 -0700 Subject: [PATCH] dt-bindings: android: add entries of firmware and vbmeta Add dt-bindings entries pertaining to android firmware required for verified boot. Change-Id: I67958c81bc4a1f1dbfe1affed57121188fad3c9c --- bindings/firmware/qcom,scm.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bindings/firmware/qcom,scm.txt b/bindings/firmware/qcom,scm.txt index e747d736..8e8686f0 100644 --- a/bindings/firmware/qcom,scm.txt +++ b/bindings/firmware/qcom,scm.txt @@ -28,6 +28,8 @@ Required properties: * "qcom,scm-sm8350" and: * "qcom,scm" + * "android,firmware" for firmware image + * "android,vbmeta" for setting system properties for verified boot. - clocks: Specifies clocks needed by the SCM interface, if any: * core clock required for "qcom,scm-apq8064", "qcom,scm-msm8660" and "qcom,scm-msm8960" @@ -49,3 +51,26 @@ Example for MSM8916: clock-names = "core", "bus", "iface"; }; }; + +Example for SM6150: + +firmware: firmware { + android { + compatible = "android,firmware"; + vbmeta { + compatible = "android,vbmeta"; + parts = "vbmeta,boot,system,vendor,dtbo"; + }; + fstab { + compatible = "android,fstab"; + vendor { + compatible = "android,vendor"; + dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor"; + type = "ext4"; + mnt_flags = "ro,barrier=1,discard"; + fsmgr_flags = "wait,slotselect,avb"; + status = "ok"; + }; + }; + }; + };