File tree Expand file tree Collapse file tree
Documentation/devicetree/bindings/arm/samsung
include/linux/soc/samsung Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
4652Example :
4753pmu_system_controller: system-controller@10040000 {
4854 compatible = "samsung,exynos5250-pmu", "syscon";
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: GPL-2.0
12config SAMSUNG_MC
23 bool "Samsung Exynos Memory Controller support" if COMPILE_TEST
34 help
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: GPL-2.0
12obj-$(CONFIG_EXYNOS_SROM) += exynos-srom.o
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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__
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments