Skip to content

Commit d1a8869

Browse files
committed
Merge tag 'devicetree-fixes-for-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull devicetree fixes from Rob Herring: - Revert fw_devlink tracking 'phy-handle' links. This broke at least a few platforms. A better solution is being worked on. - Add Samsung UFS binding which fell thru the cracks - Doc reference fixes from Mauro - Fix for restricted DMA error handling * tag 'devicetree-fixes-for-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: dt-bindings: arm: Fix Toradex compatible typo of: restricted dma: Fix condition for rmem init dt-bindings: arm: mediatek: mmsys: update mediatek,mmsys.yaml reference dt-bindings: net: dsa: sja1105: update nxp,sja1105.yaml reference dt-bindings: ufs: Add bindings for Samsung ufs host Revert "of: property: fw_devlink: Add support for "phy-handle" property"
2 parents cd395d5 + 55c21d5 commit d1a8869

File tree

6 files changed

+97
-6
lines changed

6 files changed

+97
-6
lines changed

Documentation/devicetree/bindings/arm/tegra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ properties:
5454
- const: toradex,apalis_t30
5555
- const: nvidia,tegra30
5656
- items:
57-
- const: toradex,apalis_t30-eval-v1.1
57+
- const: toradex,apalis_t30-v1.1-eval
5858
- const: toradex,apalis_t30-eval
5959
- const: toradex,apalis_t30-v1.1
6060
- const: toradex,apalis_t30

Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function block.
99

1010
All DISP device tree nodes must be siblings to the central MMSYS_CONFIG node.
1111
For a description of the MMSYS_CONFIG binding, see
12-
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt.
12+
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml.
1313

1414
DISP function blocks
1515
====================
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/ufs/samsung,exynos-ufs.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung SoC series UFS host controller Device Tree Bindings
8+
9+
maintainers:
10+
- Alim Akhtar <alim.akhtar@samsung.com>
11+
12+
description: |
13+
Each Samsung UFS host controller instance should have its own node.
14+
This binding define Samsung specific binding other then what is used
15+
in the common ufshcd bindings
16+
[1] Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
17+
18+
properties:
19+
20+
compatible:
21+
enum:
22+
- samsung,exynos7-ufs
23+
24+
reg:
25+
items:
26+
- description: HCI register
27+
- description: vendor specific register
28+
- description: unipro register
29+
- description: UFS protector register
30+
31+
reg-names:
32+
items:
33+
- const: hci
34+
- const: vs_hci
35+
- const: unipro
36+
- const: ufsp
37+
38+
clocks:
39+
items:
40+
- description: ufs link core clock
41+
- description: unipro main clock
42+
43+
clock-names:
44+
items:
45+
- const: core_clk
46+
- const: sclk_unipro_main
47+
48+
interrupts:
49+
maxItems: 1
50+
51+
phys:
52+
maxItems: 1
53+
54+
phy-names:
55+
const: ufs-phy
56+
57+
required:
58+
- compatible
59+
- reg
60+
- interrupts
61+
- phys
62+
- phy-names
63+
- clocks
64+
- clock-names
65+
66+
additionalProperties: false
67+
68+
examples:
69+
- |
70+
#include <dt-bindings/interrupt-controller/arm-gic.h>
71+
#include <dt-bindings/clock/exynos7-clk.h>
72+
73+
ufs: ufs@15570000 {
74+
compatible = "samsung,exynos7-ufs";
75+
reg = <0x15570000 0x100>,
76+
<0x15570100 0x100>,
77+
<0x15571000 0x200>,
78+
<0x15572000 0x300>;
79+
reg-names = "hci", "vs_hci", "unipro", "ufsp";
80+
interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
81+
clocks = <&clock_fsys1 ACLK_UFS20_LINK>,
82+
<&clock_fsys1 SCLK_UFSUNIPRO20_USER>;
83+
clock-names = "core_clk", "sclk_unipro_main";
84+
pinctrl-names = "default";
85+
pinctrl-0 = <&ufs_rst_n &ufs_refclk_out>;
86+
phys = <&ufs_phy>;
87+
phy-names = "ufs-phy";
88+
};
89+
...

Documentation/networking/dsa/sja1105.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ not available.
296296
Device Tree bindings and board design
297297
=====================================
298298

299-
This section references ``Documentation/devicetree/bindings/net/dsa/sja1105.txt``
299+
This section references ``Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml``
300300
and aims to showcase some potential switch caveats.
301301

302302
RMII PHY role and out-of-band signaling

drivers/of/device.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ of_dma_set_restricted_buffer(struct device *dev, struct device_node *np)
8585
break;
8686
}
8787

88-
if (i != count && of_reserved_mem_device_init_by_idx(dev, of_node, i))
88+
/*
89+
* Attempt to initialize a restricted-dma-pool region if one was found.
90+
* Note that count can hold a negative error code.
91+
*/
92+
if (i < count && of_reserved_mem_device_init_by_idx(dev, of_node, i))
8993
dev_warn(dev, "failed to initialise \"restricted-dma-pool\" memory node\n");
9094
}
9195

drivers/of/property.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells")
12911291
DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
12921292
DEFINE_SIMPLE_PROP(leds, "leds", NULL)
12931293
DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
1294-
DEFINE_SIMPLE_PROP(phy_handle, "phy-handle", NULL)
12951294
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
12961295
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
12971296

@@ -1380,7 +1379,6 @@ static const struct supplier_bindings of_supplier_bindings[] = {
13801379
{ .parse_prop = parse_resets, },
13811380
{ .parse_prop = parse_leds, },
13821381
{ .parse_prop = parse_backlight, },
1383-
{ .parse_prop = parse_phy_handle, },
13841382
{ .parse_prop = parse_gpio_compat, },
13851383
{ .parse_prop = parse_interrupts, },
13861384
{ .parse_prop = parse_regulators, },

0 commit comments

Comments
 (0)