diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-21 17:22:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-11-21 17:22:21 -0800 |
| commit | 4843f6873f7c4835e62f2c73ba0fd538e57a2f22 (patch) | |
| tree | ee620501a1ffbad9a83141e3a70154e1fe641040 /drivers/soc/st | |
| download | linux-master.tar.gz linux-master.zip | |
Merge tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctlgraftedHEADmaster
Pull sysctl fix from Joel Granados:
"Fix sysctl jiffy / milliseconds conversion:
- Writing a previously read value "X" shall keep the same "X" value
- Remove truncation that was causing incorrect saturation of valid
timeouts"
* tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: Do jiffy / ms conversion in ulong space
Diffstat (limited to 'drivers/soc/st')
| -rw-r--r-- | drivers/soc/st/Kconfig | 12 | ||||
| -rw-r--r-- | drivers/soc/st/Makefile | 1 | ||||
| -rw-r--r-- | drivers/soc/st/stm32mp2-syscfg.c | 33 |
3 files changed, 46 insertions, 0 deletions
diff --git a/drivers/soc/st/Kconfig b/drivers/soc/st/Kconfig new file mode 100644 index 000000000..2a9d6a77b --- /dev/null +++ b/drivers/soc/st/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "ST SoC drivers" + +config SOC_STM32MP2 + tristate "STM32MP2 SoC family support" + depends on ARCH_STM32 || COMPILE_TEST + default ARCH_STM32 && ARM64 + select SOC_BUS + help + If you say yes here, you get support for the ST STM32MP2 family + +endmenu diff --git a/drivers/soc/st/Makefile b/drivers/soc/st/Makefile new file mode 100644 index 000000000..5ca313476 --- /dev/null +++ b/drivers/soc/st/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_SOC_STM32MP2) += stm32mp2-syscfg.o diff --git a/drivers/soc/st/stm32mp2-syscfg.c b/drivers/soc/st/stm32mp2-syscfg.c new file mode 100644 index 000000000..770321a4a --- /dev/null +++ b/drivers/soc/st/stm32mp2-syscfg.c @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright 2026 Marek Vasut + */ + +#include <linux/module.h> +#include <linux/of_platform.h> +#include <linux/platform_device.h> + +static int stm32mp2_syscfg_probe(struct platform_device *pdev) +{ + return devm_of_platform_populate(&pdev->dev); +} + +static const struct of_device_id stm32mp2_syscfg_ids[] = { + { .compatible = "st,stm32mp23-syscfg" }, + { .compatible = "st,stm32mp25-syscfg" }, + { } +}; +MODULE_DEVICE_TABLE(of, stm32mp2_syscfg_ids); + +static struct platform_driver stm32mp2_syscfg_driver = { + .driver = { + .name = "stm32mp2_syscfg", + .of_match_table = stm32mp2_syscfg_ids, + }, + .probe = stm32mp2_syscfg_probe, +}; +module_platform_driver(stm32mp2_syscfg_driver); + +MODULE_AUTHOR("Marek Vasut <marex@nabladev.com>"); +MODULE_DESCRIPTION("ST STM32MP2 SYSCFG driver"); +MODULE_LICENSE("GPL"); |
