Skip to content

Commit 49774d8

Browse files
committed
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
2 parents a7e66ff + 7353c54 commit 49774d8

8 files changed

Lines changed: 26 additions & 25 deletions

File tree

‎Documentation/devicetree/bindings/arm/samsung/pmu.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ following properties:
4343
- interrupt-parent: a phandle indicating which interrupt controller
4444
this PMU signals interrupts to.
4545

46+
47+
Optional nodes:
48+
49+
- nodes defining the restart and poweroff syscon children
50+
51+
4652
Example :
4753
pmu_system_controller: system-controller@10040000 {
4854
compatible = "samsung,exynos5250-pmu", "syscon";

‎drivers/memory/samsung/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
12
config SAMSUNG_MC
23
bool "Samsung Exynos Memory Controller support" if COMPILE_TEST
34
help

‎drivers/memory/samsung/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
12
obj-$(CONFIG_EXYNOS_SROM) += exynos-srom.o

‎drivers/memory/samsung/exynos-srom.c‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
/*
2-
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
3-
* http://www.samsung.com/
4-
*
5-
* EXYNOS - SROM Controller support
6-
* Author: Pankaj Dubey <pankaj.dubey@samsung.com>
7-
*
8-
* This program is free software; you can redistribute it and/or modify
9-
* it under the terms of the GNU General Public License version 2 as
10-
* published by the Free Software Foundation.
11-
*/
1+
// SPDX-License-Identifier: GPL-2.0
2+
//
3+
// Copyright (c) 2015 Samsung Electronics Co., Ltd.
4+
// http://www.samsung.com/
5+
//
6+
// EXYNOS - SROM Controller support
7+
// Author: Pankaj Dubey <pankaj.dubey@samsung.com>
128

139
#include <linux/io.h>
1410
#include <linux/init.h>

‎drivers/memory/samsung/exynos-srom.h‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
/*
23
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
34
* http://www.samsung.com
45
*
56
* Exynos SROMC register definitions
6-
*
7-
* This program is free software; you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License version 2 as
9-
* published by the Free Software Foundation.
10-
*/
7+
*/
118

129
#ifndef __EXYNOS_SROM_H
1310
#define __EXYNOS_SROM_H __FILE__

‎drivers/soc/samsung/exynos-pmu.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,15 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
8484
}, {
8585
.compatible = "samsung,exynos5250-pmu",
8686
.data = exynos_pmu_data_arm_ptr(exynos5250_pmu_data),
87+
}, {
88+
.compatible = "samsung,exynos5410-pmu",
8789
}, {
8890
.compatible = "samsung,exynos5420-pmu",
8991
.data = exynos_pmu_data_arm_ptr(exynos5420_pmu_data),
9092
}, {
9193
.compatible = "samsung,exynos5433-pmu",
94+
}, {
95+
.compatible = "samsung,exynos7-pmu",
9296
},
9397
{ /*sentinel*/ },
9498
};
@@ -126,6 +130,9 @@ static int exynos_pmu_probe(struct platform_device *pdev)
126130

127131
platform_set_drvdata(pdev, pmu_context);
128132

133+
if (devm_of_platform_populate(dev))
134+
dev_err(dev, "Error populating children, reboot and poweroff might not work properly\n");
135+
129136
dev_dbg(dev, "Exynos PMU Driver probe done\n");
130137
return 0;
131138
}

‎include/linux/soc/samsung/exynos-pmu.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
/*
23
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
34
* http://www.samsung.com
45
*
56
* Header for EXYNOS PMU Driver support
6-
*
7-
* This program is free software; you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License version 2 as
9-
* published by the Free Software Foundation.
107
*/
118

129
#ifndef __LINUX_SOC_EXYNOS_PMU_H

‎include/linux/soc/samsung/exynos-regs-pmu.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
/*
23
* Copyright (c) 2010-2015 Samsung Electronics Co., Ltd.
34
* http://www.samsung.com
45
*
56
* EXYNOS - Power management unit definition
67
*
7-
* This program is free software; you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License version 2 as
9-
* published by the Free Software Foundation.
10-
*
11-
*
128
* Notice:
139
* This is not a list of all Exynos Power Management Unit SFRs.
1410
* There are too many of them, not mentioning subtle differences

0 commit comments

Comments
 (0)