v4 changes: dts: 1. remove phandle from socinfo-data for all platforms mtk-socinfo.c: 1. use module_platform_driver instead of builtin_platform_driver drivers/soc/mediatek/Kconfig: 1. add dependency for MTK_SOCINFO mtk-efuse.c: 1. add remove function commit message: 1. update commit message by following reviewer's comment William-tw Lin (3): arm64: dts: mediatek: Add socinfo efuses to MT8173/83/96/92/95 SoCs soc: mediatek: mtk-socinfo: Add driver for getting chip information nvmem: mtk-efuse: Register MediaTek socinfo driver from efuse arch/arm64/boot/dts/mediatek/mt8173.dtsi | 9 ++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 ++ arch/arm64/boot/dts/mediatek/mt8186.dtsi | 4 + arch/arm64/boot/dts/mediatek/mt8192.dtsi | 8 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 3 + drivers/nvmem/mtk-efuse.c | 21 ++- drivers/soc/mediatek/Kconfig | 9 ++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-socinfo.c | 186 +++++++++++++++++++++++ 9 files changed, 249 insertions(+), 1 deletion(-) create mode 100644 drivers/soc/mediatek/mtk-socinfo.c -- 2.18.0