Commit 3f0f5d22 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'samsung-soc-6.3' of...

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/20230129143944.5104-3-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 521d844d fe6a952b
...@@ -31,20 +31,28 @@ select: ...@@ -31,20 +31,28 @@ select:
properties: properties:
compatible: compatible:
items: oneOf:
- enum: - items:
- samsung,exynos3250-pmu - enum:
- samsung,exynos4210-pmu - samsung,exynos3250-pmu
- samsung,exynos4412-pmu - samsung,exynos4210-pmu
- samsung,exynos5250-pmu - samsung,exynos4412-pmu
- samsung,exynos5260-pmu - samsung,exynos5250-pmu
- samsung,exynos5410-pmu - samsung,exynos5260-pmu
- samsung,exynos5420-pmu - samsung,exynos5410-pmu
- samsung,exynos5433-pmu - samsung,exynos5420-pmu
- samsung,exynos7-pmu - samsung,exynos5433-pmu
- samsung,exynos850-pmu - samsung,exynos7-pmu
- samsung-s5pv210-pmu - samsung,exynos850-pmu
- const: syscon - samsung-s5pv210-pmu
- const: syscon
- items:
- enum:
- samsung,exynos5250-pmu
- samsung,exynos5420-pmu
- samsung,exynos5433-pmu
- const: simple-mfd
- const: syscon
reg: reg:
maxItems: 1 maxItems: 1
...@@ -64,6 +72,10 @@ properties: ...@@ -64,6 +72,10 @@ properties:
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
dp-phy:
$ref: /schemas/phy/samsung,dp-video-phy.yaml
unevaluatedProperties: false
interrupt-controller: interrupt-controller:
description: description:
Some PMUs are capable of behaving as an interrupt controller (mostly Some PMUs are capable of behaving as an interrupt controller (mostly
...@@ -74,6 +86,10 @@ properties: ...@@ -74,6 +86,10 @@ properties:
Must be identical to the that of the parent interrupt controller. Must be identical to the that of the parent interrupt controller.
const: 3 const: 3
mipi-phy:
$ref: /schemas/phy/samsung,mipi-video-phy.yaml
unevaluatedProperties: false
reboot-mode: reboot-mode:
$ref: /schemas/power/reset/syscon-reboot-mode.yaml $ref: /schemas/power/reset/syscon-reboot-mode.yaml
type: object type: object
...@@ -117,6 +133,23 @@ allOf: ...@@ -117,6 +133,23 @@ allOf:
- clock-names - clock-names
- clocks - clocks
- if:
properties:
compatible:
contains:
enum:
- samsung,exynos5250-pmu
- samsung,exynos5420-pmu
- samsung,exynos5433-pmu
then:
properties:
dp-phy: true
mipi-phy: true
else:
properties:
dp-phy: false
mipi-phy: false
examples: examples:
- | - |
#include <dt-bindings/clock/exynos5250.h> #include <dt-bindings/clock/exynos5250.h>
...@@ -130,4 +163,14 @@ examples: ...@@ -130,4 +163,14 @@ examples:
#clock-cells = <1>; #clock-cells = <1>;
clock-names = "clkout16"; clock-names = "clkout16";
clocks = <&clock CLK_FIN_PLL>; clocks = <&clock CLK_FIN_PLL>;
dp-phy {
compatible = "samsung,exynos5250-dp-video-phy";
#phy-cells = <0>;
};
mipi-phy {
compatible = "samsung,s5pv210-mipi-video-phy";
#phy-cells = <1>;
};
}; };
...@@ -173,7 +173,8 @@ static struct samsung_pwm_variant s3c64xx_pwm_variant = { ...@@ -173,7 +173,8 @@ static struct samsung_pwm_variant s3c64xx_pwm_variant = {
.tclk_mask = (1 << 7) | (1 << 6) | (1 << 5), .tclk_mask = (1 << 7) | (1 << 6) | (1 << 5),
}; };
void __init s3c64xx_set_timer_source(unsigned int event, unsigned int source) void __init s3c64xx_set_timer_source(enum s3c64xx_timer_mode event,
enum s3c64xx_timer_mode source)
{ {
s3c64xx_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1; s3c64xx_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1;
s3c64xx_pwm_variant.output_mask &= ~(BIT(event) | BIT(source)); s3c64xx_pwm_variant.output_mask &= ~(BIT(event) | BIT(source));
......
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