From: Vitaliy Tomin Date: Sun, 25 Dec 2022 14:44:13 +0000 (+0800) Subject: arch: dts: amlogic; Add deadpool noavb dynamic partition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ed028ffa92f0bb67b5a3b87bb19068ae58e278e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git arch: dts: amlogic; Add deadpool noavb dynamic partition Change-Id: I17c52df142cde9682fc613a7152042b09442c8e4 (cherry picked from commit db804dde0bf8c2b23313edb33bedb508f12296da) --- diff --git a/arch/arm64/boot/dts/amlogic/firmware_deadpool.dtsi b/arch/arm64/boot/dts/amlogic/firmware_deadpool.dtsi new file mode 100644 index 000000000000..6f741bb5bff0 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/firmware_deadpool.dtsi @@ -0,0 +1,59 @@ +/* + * Amlogic partition set for normal + * + * Copyright (c) 2017-2017 Amlogic Ltd + * + * This file is licensed under a dual GPLv2 or BSD license. + * + */ +/ { + firmware { + android { + compatible = "android,firmware"; + vbmeta { + compatible = "android,vbmeta"; + parts = "vbmeta,boot,system,vendor"; + by_name_prefix="/dev/block"; + }; + fstab { + compatible = "android,fstab"; + system { + compatible = "android,system"; + dev = "system"; + type = "ext4"; + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; + fsmgr_flags = "wait,logical,first_stage_mount"; + }; + + vendor { + compatible = "android,vendor"; + dev = "vendor"; + type = "ext4"; + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; + fsmgr_flags = "wait,logical,first_stage_mount"; + }; + odm { + compatible = "android,odm"; + dev = "odm"; + type = "ext4"; + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; + fsmgr_flags = "wait,logical,first_stage_mount"; + }; + product { + compatible = "android,product"; + dev = "product"; + type = "ext4"; + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; + fsmgr_flags = "wait,logical,first_stage_mount"; + }; + metadata { + compatible = "android,metadata"; + dev = "/dev/block/metadata"; + type = "ext4"; + mnt_flags = "noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic"; + fsmgr_flags = "wait,check,formattable,first_stage_mount"; + }; + }; + }; + }; +};/* end of / */ diff --git a/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_deadpool_noavb.dtsi b/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_deadpool_noavb.dtsi new file mode 100644 index 000000000000..bef370154b71 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_deadpool_noavb.dtsi @@ -0,0 +1,112 @@ +/* + * Amlogic partition set for normal + * + * Copyright (c) 2017-2017 Amlogic Ltd + * + * This file is licensed under a dual GPLv2 or BSD license. + * + */ + +#include "firmware_deadpool.dtsi" + +/ { + partitions: partitions{ + parts = <15>; + part-0 = <&logo>; + part-1 = <&recovery>; + part-2 = <&misc>; + part-3 = <&dtbo>; + part-4 = <&cri_data>; + part-5 = <¶m>; + part-6 = <&boot>; + part-7 = <&frp>; + part-8 = <&rsv>; + part-9 = <&metadata>; + part-10 = <&vbmeta>; + part-11 = <&tee>; + part-12 = <&super>; + part-13 = <&cache>; + part-14 = <&data>; + + logo:logo{ + pname = "logo"; + size = <0x0 0x800000>; + mask = <1>; + }; + recovery:recovery{ + pname = "recovery"; + size = <0x0 0x1800000>; + mask = <1>; + }; + misc:misc{ + pname = "misc"; + size = <0x0 0x800000>; + mask = <1>; + }; + dtbo:dtbo{ + pname = "dtbo"; + size = <0x0 0x800000>; + mask = <1>; + }; + cri_data:cri_data + { + pname = "cri_data"; + size = <0x0 0x800000>; + mask = <2>; + }; + frp:frp{ + pname = "frp"; + size = <0x0 0x200000>; + mask = <1>; + }; + rsv:rsv{ + pname = "rsv"; + size = <0x0 0x600000>; + mask = <1>; + }; + metadata:metadata{ + pname = "metadata"; + size = <0x0 0x1000000>; + mask = <1>; + }; + vbmeta:vbmeta{ + pname = "vbmeta"; + size = <0x0 0x200000>; + mask = <1>; + }; + param:param{ + pname = "param"; + size = <0x0 0x1000000>; + mask = <2>; + }; + boot:boot + { + pname = "boot"; + size = <0x0 0x1000000>; + mask = <1>; + }; + tee:tee{ + pname = "tee"; + size = <0x0 0x2000000>; + mask = <1>; + }; + super:super + { + pname = "super"; + size = <0x0 0x7C400000>; + mask = <1>; + }; + cache:cache + { + pname = "cache"; + size = <0x0 0x32000000>; + mask = <2>; + }; + data:data + { + pname = "data"; + size = <0xffffffff 0xffffffff>; + mask = <4>; + }; + }; +};/* end of / */