File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Documentation/devicetree/bindings/tty/serial Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Required properties:
5
5
- reg : offset and length of the register set for the device.
6
6
- interrupts : device interrupt
7
7
- clock-frequency : the input clock frequency for the UART
8
- - baud : baud rate for UART
8
+ - current-speed : baud rate for UART
9
9
10
10
e.g.
11
11
@@ -14,7 +14,7 @@ arcuart0: serial@c0fc1000 {
14
14
reg = <0xc0fc1000 0x100>;
15
15
interrupts = <5>;
16
16
clock-frequency = <80000000>;
17
- baud = <115200>;
17
+ current-speed = <115200>;
18
18
status = "okay";
19
19
};
20
20
Original file line number Diff line number Diff line change @@ -547,8 +547,8 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
547
547
}
548
548
uart -> port .uartclk = val ;
549
549
550
- if (of_property_read_u32 (np , "baud " , & val )) {
551
- dev_err (& pdev -> dev , "baud property NOT set\n" );
550
+ if (of_property_read_u32 (np , "current-speed " , & val )) {
551
+ dev_err (& pdev -> dev , "current-speed property NOT set\n" );
552
552
return - EINVAL ;
553
553
}
554
554
uart -> baud = val ;
@@ -694,10 +694,8 @@ static int arc_serial_probe(struct platform_device *pdev)
694
694
return - ENODEV ;
695
695
696
696
dev_id = of_alias_get_id (np , "serial" );
697
- if (dev_id < 0 ) {
698
- dev_err (& pdev -> dev , "failed to get alias id: %d\n" , dev_id );
699
- return dev_id ;
700
- }
697
+ if (dev_id < 0 )
698
+ dev_id = 0 ;
701
699
702
700
rc = arc_uart_init_one (pdev , dev_id );
703
701
if (rc )
You can’t perform that action at this time.
0 commit comments