Commit 49774d86 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'samsung-drivers-4.17' of...

Merge tag 'samsung-drivers-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/drivers

Pull "Samsung soc drivers changes for v4.17" from Krzysztof Kozłowski:

1. Add SPDX license identifiers.
2. Populate children syscon nodes in PMU driver to properly model HW in
   DeviceTree.

* tag 'samsung-drivers-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  soc: samsung: pmu: Populate children syscon nodes
  soc: samsung: Add SPDX license identifiers to headers
  memory: samsung: Add SPDX license identifiers
parents a7e66ff9 7353c546
...@@ -43,6 +43,12 @@ following properties: ...@@ -43,6 +43,12 @@ following properties:
- interrupt-parent: a phandle indicating which interrupt controller - interrupt-parent: a phandle indicating which interrupt controller
this PMU signals interrupts to. this PMU signals interrupts to.
Optional nodes:
- nodes defining the restart and poweroff syscon children
Example : Example :
pmu_system_controller: system-controller@10040000 { pmu_system_controller: system-controller@10040000 {
compatible = "samsung,exynos5250-pmu", "syscon"; compatible = "samsung,exynos5250-pmu", "syscon";
......
# SPDX-License-Identifier: GPL-2.0
config SAMSUNG_MC config SAMSUNG_MC
bool "Samsung Exynos Memory Controller support" if COMPILE_TEST bool "Samsung Exynos Memory Controller support" if COMPILE_TEST
help help
......
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_EXYNOS_SROM) += exynos-srom.o obj-$(CONFIG_EXYNOS_SROM) += exynos-srom.o
/* // SPDX-License-Identifier: GPL-2.0
* Copyright (c) 2015 Samsung Electronics Co., Ltd. //
* http://www.samsung.com/ // Copyright (c) 2015 Samsung Electronics Co., Ltd.
* // http://www.samsung.com/
* EXYNOS - SROM Controller support //
* Author: Pankaj Dubey <pankaj.dubey@samsung.com> // EXYNOS - SROM Controller support
* // Author: Pankaj Dubey <pankaj.dubey@samsung.com>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/io.h> #include <linux/io.h>
#include <linux/init.h> #include <linux/init.h>
......
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd. * Copyright (c) 2015 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* Exynos SROMC register definitions * Exynos SROMC register definitions
* */
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __EXYNOS_SROM_H #ifndef __EXYNOS_SROM_H
#define __EXYNOS_SROM_H __FILE__ #define __EXYNOS_SROM_H __FILE__
......
...@@ -84,11 +84,15 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = { ...@@ -84,11 +84,15 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
}, { }, {
.compatible = "samsung,exynos5250-pmu", .compatible = "samsung,exynos5250-pmu",
.data = exynos_pmu_data_arm_ptr(exynos5250_pmu_data), .data = exynos_pmu_data_arm_ptr(exynos5250_pmu_data),
}, {
.compatible = "samsung,exynos5410-pmu",
}, { }, {
.compatible = "samsung,exynos5420-pmu", .compatible = "samsung,exynos5420-pmu",
.data = exynos_pmu_data_arm_ptr(exynos5420_pmu_data), .data = exynos_pmu_data_arm_ptr(exynos5420_pmu_data),
}, { }, {
.compatible = "samsung,exynos5433-pmu", .compatible = "samsung,exynos5433-pmu",
}, {
.compatible = "samsung,exynos7-pmu",
}, },
{ /*sentinel*/ }, { /*sentinel*/ },
}; };
...@@ -126,6 +130,9 @@ static int exynos_pmu_probe(struct platform_device *pdev) ...@@ -126,6 +130,9 @@ static int exynos_pmu_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pmu_context); platform_set_drvdata(pdev, pmu_context);
if (devm_of_platform_populate(dev))
dev_err(dev, "Error populating children, reboot and poweroff might not work properly\n");
dev_dbg(dev, "Exynos PMU Driver probe done\n"); dev_dbg(dev, "Exynos PMU Driver probe done\n");
return 0; return 0;
} }
......
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd. * Copyright (c) 2014 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* Header for EXYNOS PMU Driver support * Header for EXYNOS PMU Driver support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/ */
#ifndef __LINUX_SOC_EXYNOS_PMU_H #ifndef __LINUX_SOC_EXYNOS_PMU_H
......
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (c) 2010-2015 Samsung Electronics Co., Ltd. * Copyright (c) 2010-2015 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* EXYNOS - Power management unit definition * EXYNOS - Power management unit definition
* *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*
* Notice: * Notice:
* This is not a list of all Exynos Power Management Unit SFRs. * This is not a list of all Exynos Power Management Unit SFRs.
* There are too many of them, not mentioning subtle differences * There are too many of them, not mentioning subtle differences
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment