Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dfb9758a
Commit
dfb9758a
authored
Aug 21, 2023
by
Rob Herring
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dt/linus' into dt/next
Pick up changeset fixes for further rework.
parents
7ceb60ec
7882541c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
79 deletions
+20
-79
Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
+3
-3
Documentation/devicetree/bindings/serial/cavium-uart.txt
Documentation/devicetree/bindings/serial/cavium-uart.txt
+0
-19
Documentation/devicetree/bindings/serial/nxp,lpc1850-uart.txt
...mentation/devicetree/bindings/serial/nxp,lpc1850-uart.txt
+0
-28
drivers/of/Kconfig
drivers/of/Kconfig
+1
-1
drivers/of/dynamic.c
drivers/of/dynamic.c
+9
-22
drivers/of/kexec.c
drivers/of/kexec.c
+2
-1
drivers/of/platform.c
drivers/of/platform.c
+3
-3
drivers/of/unittest.c
drivers/of/unittest.c
+2
-2
No files found.
Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
View file @
dfb9758a
...
...
@@ -105,7 +105,7 @@ properties:
G coefficient for temperature equation.
Default for series 5 =
60000
Default for series 6 =
57400
multipleOf
:
100
0
multipleOf
:
100
minimum
:
1000
$ref
:
/schemas/types.yaml#/definitions/uint32
...
...
@@ -114,7 +114,7 @@ properties:
H coefficient for temperature equation.
Default for series 5 =
200000
Default for series 6 =
249400
multipleOf
:
100
0
multipleOf
:
100
minimum
:
1000
$ref
:
/schemas/types.yaml#/definitions/uint32
...
...
@@ -131,7 +131,7 @@ properties:
J coefficient for temperature equation.
Default for series 5 = -100
Default for series 6 =
0
multipleOf
:
100
0
multipleOf
:
100
maximum
:
0
$ref
:
/schemas/types.yaml#/definitions/int32
...
...
Documentation/devicetree/bindings/serial/cavium-uart.txt
deleted
100644 → 0
View file @
7ceb60ec
* Universal Asynchronous Receiver/Transmitter (UART)
- compatible: "cavium,octeon-3860-uart"
Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs.
- reg: The base address of the UART register bank.
- interrupts: A single interrupt specifier.
- current-speed: Optional, the current bit rate in bits per second.
Example:
uart1: serial@1180000000c00 {
compatible = "cavium,octeon-3860-uart","ns16550";
reg = <0x11800 0x00000c00 0x0 0x400>;
current-speed = <115200>;
interrupts = <0 35>;
};
Documentation/devicetree/bindings/serial/nxp,lpc1850-uart.txt
deleted
100644 → 0
View file @
7ceb60ec
* NXP LPC1850 UART
Required properties:
- compatible : "nxp,lpc1850-uart", "ns16550a".
- reg : offset and length of the register set for the device.
- interrupts : should contain uart interrupt.
- clocks : phandle to the input clocks.
- clock-names : required elements: "uartclk", "reg".
Optional properties:
- dmas : Two or more DMA channel specifiers following the
convention outlined in bindings/dma/dma.txt
- dma-names : Names for the dma channels, if present. There must
be at least one channel named "tx" for transmit
and named "rx" for receive.
Since it's also possible to also use the of_serial.c driver all
parameters from 8250.txt also apply but are optional.
Example:
uart0: serial@40081000 {
compatible = "nxp,lpc1850-uart", "ns16550a";
reg = <0x40081000 0x1000>;
reg-shift = <2>;
interrupts = <24>;
clocks = <&ccu2 CLK_APB0_UART0>, <&ccu1 CLK_CPU_UART0>;
clock-names = "uartclk", "reg";
};
drivers/of/Kconfig
View file @
dfb9758a
...
...
@@ -55,7 +55,7 @@ config OF_FLATTREE
config OF_EARLY_FLATTREE
bool
select DMA_DECLARE_COHERENT if HAS_DMA
select DMA_DECLARE_COHERENT if HAS_DMA
&& HAS_IOMEM
select OF_FLATTREE
config OF_PROMTREE
...
...
drivers/of/dynamic.c
View file @
dfb9758a
...
...
@@ -63,15 +63,14 @@ int of_reconfig_notifier_unregister(struct notifier_block *nb)
}
EXPORT_SYMBOL_GPL
(
of_reconfig_notifier_unregister
);
#ifdef DEBUG
const
char
*
action_names
[]
=
{
static
const
char
*
action_names
[]
=
{
[
0
]
=
"INVALID"
,
[
OF_RECONFIG_ATTACH_NODE
]
=
"ATTACH_NODE"
,
[
OF_RECONFIG_DETACH_NODE
]
=
"DETACH_NODE"
,
[
OF_RECONFIG_ADD_PROPERTY
]
=
"ADD_PROPERTY"
,
[
OF_RECONFIG_REMOVE_PROPERTY
]
=
"REMOVE_PROPERTY"
,
[
OF_RECONFIG_UPDATE_PROPERTY
]
=
"UPDATE_PROPERTY"
,
};
#endif
int
of_reconfig_notify
(
unsigned
long
action
,
struct
of_reconfig_data
*
p
)
{
...
...
@@ -620,21 +619,9 @@ static int __of_changeset_entry_apply(struct of_changeset_entry *ce)
}
ret
=
__of_add_property
(
ce
->
np
,
ce
->
prop
);
if
(
ret
)
{
pr_err
(
"changeset: add_property failed @%pOF/%s
\n
"
,
ce
->
np
,
ce
->
prop
->
name
);
break
;
}
break
;
case
OF_RECONFIG_REMOVE_PROPERTY
:
ret
=
__of_remove_property
(
ce
->
np
,
ce
->
prop
);
if
(
ret
)
{
pr_err
(
"changeset: remove_property failed @%pOF/%s
\n
"
,
ce
->
np
,
ce
->
prop
->
name
);
break
;
}
break
;
case
OF_RECONFIG_UPDATE_PROPERTY
:
...
...
@@ -648,20 +635,17 @@ static int __of_changeset_entry_apply(struct of_changeset_entry *ce)
}
ret
=
__of_update_property
(
ce
->
np
,
ce
->
prop
,
&
old_prop
);
if
(
ret
)
{
pr_err
(
"changeset: update_property failed @%pOF/%s
\n
"
,
ce
->
np
,
ce
->
prop
->
name
);
break
;
}
break
;
default:
ret
=
-
EINVAL
;
}
raw_spin_unlock_irqrestore
(
&
devtree_lock
,
flags
);
if
(
ret
)
if
(
ret
)
{
pr_err
(
"changeset: apply failed: %-15s %pOF:%s
\n
"
,
action_names
[
ce
->
action
],
ce
->
np
,
ce
->
prop
->
name
);
return
ret
;
}
switch
(
ce
->
action
)
{
case
OF_RECONFIG_ATTACH_NODE
:
...
...
@@ -947,6 +931,9 @@ int of_changeset_action(struct of_changeset *ocs, unsigned long action,
if
(
!
ce
)
return
-
ENOMEM
;
if
(
WARN_ON
(
action
>=
ARRAY_SIZE
(
action_names
)))
return
-
EINVAL
;
/* get a reference to the node */
ce
->
action
=
action
;
ce
->
np
=
of_node_get
(
np
);
...
...
drivers/of/kexec.c
View file @
dfb9758a
...
...
@@ -184,7 +184,8 @@ int __init ima_free_kexec_buffer(void)
if
(
ret
)
return
ret
;
return
memblock_phys_free
(
addr
,
size
);
memblock_free_late
(
addr
,
size
);
return
0
;
}
#endif
...
...
drivers/of/platform.c
View file @
dfb9758a
...
...
@@ -175,7 +175,7 @@ struct platform_device *of_device_alloc(struct device_node *np,
}
/* setup generic device info */
device_set_node
(
&
dev
->
dev
,
of_fwnode_handle
(
np
));
device_set_node
(
&
dev
->
dev
,
of_fwnode_handle
(
of_node_get
(
np
)
));
dev
->
dev
.
parent
=
parent
?
:
&
platform_bus
;
if
(
bus_id
)
...
...
@@ -273,7 +273,7 @@ static struct amba_device *of_amba_device_create(struct device_node *node,
dev
->
dev
.
dma_mask
=
&
dev
->
dev
.
coherent_dma_mask
;
/* setup generic device info */
device_set_node
(
&
dev
->
dev
,
of_fwnode_handle
(
node
));
device_set_node
(
&
dev
->
dev
,
of_fwnode_handle
(
of_node_get
(
node
)
));
dev
->
dev
.
parent
=
parent
?
:
&
platform_bus
;
dev
->
dev
.
platform_data
=
platform_data
;
if
(
bus_id
)
...
...
@@ -586,7 +586,7 @@ static int __init of_platform_default_populate_init(void)
if
(
!
of_get_property
(
node
,
"linux,opened"
,
NULL
)
||
!
of_get_property
(
node
,
"linux,boot-display"
,
NULL
))
continue
;
dev
=
of_platform_device_create
(
node
,
"of-display
.0
"
,
NULL
);
dev
=
of_platform_device_create
(
node
,
"of-display"
,
NULL
);
of_node_put
(
node
);
if
(
WARN_ON
(
!
dev
))
return
-
ENOMEM
;
...
...
drivers/of/unittest.c
View file @
dfb9758a
...
...
@@ -664,12 +664,12 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
memset
(
&
args
,
0
,
sizeof
(
args
));
EXPECT_BEGIN
(
KERN_INFO
,
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"
);
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle
12345678
"
);
rc
=
of_parse_phandle_with_args_map
(
np
,
"phandle-list-bad-phandle"
,
"phandle"
,
0
,
&
args
);
EXPECT_END
(
KERN_INFO
,
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"
);
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle
12345678
"
);
unittest
(
rc
==
-
EINVAL
,
"expected:%i got:%i
\n
"
,
-
EINVAL
,
rc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment