dt-bindings: android: add entries for android

Add dt-bindings entries pertaining to android
firmware required for verified boot.

Change-Id: Ice1074b9faee0c6faefdf1c5b03942de9878fa56
This commit is contained in:
Gaurav Kashyap
2019-12-10 15:37:10 -08:00
committed by Gerrit - the friendly Code Review server
parent 9bb8e1e5cf
commit 0a1d9b59d6
3 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
Android firmware
Node to specify early mount of vendor and system partition.
Required properties
-compatible: "android,firmware"
Child nodes:
------------
fstab:
------------------------------
fstab entry to specify mount attributes of vendor partition.
Required properties:
-compatible: "android,fstab"
Child nodes:
------------
vendor:
-----------------
vendor partition specification.
Required properties:
-compatible: "android, vendor"
-dev: block device corresponding to vendor partition
-type: file system type of vendor partition
-mnt_flags: mount flags
-fsmgr_flags: fsmgr flags
Example:
firmware: firmware {
android {
compatible = "android,firmware";
fstab {
compatible = "android,fstab";
vendor {
compatible = "android,vendor";
dev = "/dev/block/platform/soc/1da4000.ufshc/by-name/vendor";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
fsmgr_flags = "wait,slotselect";
status = "ok";
};
};
};
};
odm:
-----------------
odm partition specification.
Required properties:
-compatible: "android, odm"
-dev: block device corresponding to odm partition
-type: file system type of odm partition
-mnt_flags: mount flags
-fsmgr_flags: fsmgr flags
Example:
firmware: firmware {
android {
compatible = "android,firmware";
fstab {
compatible = "android,fstab";
odm {
compatible = "android,odm";
dev = "/dev/block/platform/soc/1da4000.ufshc/by-name/odm";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
fsmgr_flags = "wait,slotselect";
status = "ok";
};
};
};
};
system:
-----------------
system partition specification.
Required properties:
-compatible: "android,system"
-dev: block device corresponding to system partition
-type: file system type of system partition
-mnt_flags: mount flags
-fsmgr_flags: fsmgr flags
Example:
firmware: firmware {
android {
compatible = "android,firmware";
fstab {
compatible = "android,fstab";
system {
compatible = "android,system";
dev = "/dev/block/platform/soc/1da4000.ufshc/by-name/system";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
fsmgr_flags = "wait,slotselect";
status = "ok";
};
};
};
};

View File

@@ -21,6 +21,8 @@ Required properties:
* "qcom,scm-sm8150"
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"
@@ -42,3 +44,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";
};
};
};
};

View File

@@ -81,6 +81,8 @@ patternProperties:
description: Analogix Semiconductor, Inc.
"^andestech,.*":
description: Andes Technology Corporation
"^android,.*":
description: Google Inc.
"^apm,.*":
description: Applied Micro Circuits Corporation (APM)
"^aptina,.*":