Skip to content

Commit 3f0f5d2

Browse files
committed
Merge tag 'samsung-soc-6.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into arm/soc
Samsung mach/soc changes for v6.3 1. Correct s3c64xx_set_timer_source() prototype. 2. Re-work MIPI and DP phys as children of Exynos PMU system controller. This both better reflects actual device hierarchy and allows to remove later few warnings from dtc W=1 and dtbs_check. * tag 'samsung-soc-6.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: dt-bindings: soc: samsung: exynos-pmu: allow phys as child ARM: s3c: fix s3c64xx_set_timer_source prototype Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 521d844 + fe6a952 commit 3f0f5d2

File tree

2 files changed

+59
-15
lines changed

2 files changed

+59
-15
lines changed

Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,28 @@ select:
3131

3232
properties:
3333
compatible:
34-
items:
35-
- enum:
36-
- samsung,exynos3250-pmu
37-
- samsung,exynos4210-pmu
38-
- samsung,exynos4412-pmu
39-
- samsung,exynos5250-pmu
40-
- samsung,exynos5260-pmu
41-
- samsung,exynos5410-pmu
42-
- samsung,exynos5420-pmu
43-
- samsung,exynos5433-pmu
44-
- samsung,exynos7-pmu
45-
- samsung,exynos850-pmu
46-
- samsung-s5pv210-pmu
47-
- const: syscon
34+
oneOf:
35+
- items:
36+
- enum:
37+
- samsung,exynos3250-pmu
38+
- samsung,exynos4210-pmu
39+
- samsung,exynos4412-pmu
40+
- samsung,exynos5250-pmu
41+
- samsung,exynos5260-pmu
42+
- samsung,exynos5410-pmu
43+
- samsung,exynos5420-pmu
44+
- samsung,exynos5433-pmu
45+
- samsung,exynos7-pmu
46+
- samsung,exynos850-pmu
47+
- samsung-s5pv210-pmu
48+
- const: syscon
49+
- items:
50+
- enum:
51+
- samsung,exynos5250-pmu
52+
- samsung,exynos5420-pmu
53+
- samsung,exynos5433-pmu
54+
- const: simple-mfd
55+
- const: syscon
4856

4957
reg:
5058
maxItems: 1
@@ -64,6 +72,10 @@ properties:
6472
minItems: 1
6573
maxItems: 32
6674

75+
dp-phy:
76+
$ref: /schemas/phy/samsung,dp-video-phy.yaml
77+
unevaluatedProperties: false
78+
6779
interrupt-controller:
6880
description:
6981
Some PMUs are capable of behaving as an interrupt controller (mostly
@@ -74,6 +86,10 @@ properties:
7486
Must be identical to the that of the parent interrupt controller.
7587
const: 3
7688

89+
mipi-phy:
90+
$ref: /schemas/phy/samsung,mipi-video-phy.yaml
91+
unevaluatedProperties: false
92+
7793
reboot-mode:
7894
$ref: /schemas/power/reset/syscon-reboot-mode.yaml
7995
type: object
@@ -117,6 +133,23 @@ allOf:
117133
- clock-names
118134
- clocks
119135

136+
- if:
137+
properties:
138+
compatible:
139+
contains:
140+
enum:
141+
- samsung,exynos5250-pmu
142+
- samsung,exynos5420-pmu
143+
- samsung,exynos5433-pmu
144+
then:
145+
properties:
146+
dp-phy: true
147+
mipi-phy: true
148+
else:
149+
properties:
150+
dp-phy: false
151+
mipi-phy: false
152+
120153
examples:
121154
- |
122155
#include <dt-bindings/clock/exynos5250.h>
@@ -130,4 +163,14 @@ examples:
130163
#clock-cells = <1>;
131164
clock-names = "clkout16";
132165
clocks = <&clock CLK_FIN_PLL>;
166+
167+
dp-phy {
168+
compatible = "samsung,exynos5250-dp-video-phy";
169+
#phy-cells = <0>;
170+
};
171+
172+
mipi-phy {
173+
compatible = "samsung,s5pv210-mipi-video-phy";
174+
#phy-cells = <1>;
175+
};
133176
};

arch/arm/mach-s3c/s3c64xx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ static struct samsung_pwm_variant s3c64xx_pwm_variant = {
173173
.tclk_mask = (1 << 7) | (1 << 6) | (1 << 5),
174174
};
175175

176-
void __init s3c64xx_set_timer_source(unsigned int event, unsigned int source)
176+
void __init s3c64xx_set_timer_source(enum s3c64xx_timer_mode event,
177+
enum s3c64xx_timer_mode source)
177178
{
178179
s3c64xx_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1;
179180
s3c64xx_pwm_variant.output_mask &= ~(BIT(event) | BIT(source));

0 commit comments

Comments
 (0)