|
7 | 7 | chassis-type = "embedded"; |
8 | 8 |
|
9 | 9 | chosen { |
10 | | - bootargs = "earlycon=sbi console=ttyS0"; |
| 10 | + // SBI: console=hvc |
| 11 | + // UART0: console=ttyS0 |
| 12 | + // for debugging: kgdboc_earlycon=sbi kgdboc=ttyS0 kgdbwait |
| 13 | + bootargs = "earlycon=sbi console=hvc"; |
11 | 14 | stdout-path = &uart0; |
12 | 15 | }; |
13 | 16 |
|
14 | 17 | rom@0 { |
15 | 18 | compatible = "mtd-rom"; |
16 | 19 | reg = <0x0 (16*1024*1024)>; |
| 20 | + bank-width = <1>; // 8-bit "bus" |
| 21 | + |
17 | 22 | #address-cells = <1>; |
18 | 23 | #size-cells = <1>; |
19 | | - bank-width = <1>; // 8-bit "bus" |
20 | 24 |
|
21 | | - // align rootfs to pgdir boundary |
22 | 25 | rootfs@1000 { |
23 | 26 | label = "rootfs"; |
24 | 27 | reg = <0x1000 (16*1024*1024 - 0x1000)>; |
25 | | - bank-width = <1>; |
26 | | - read-only; |
27 | 28 | linux,rootfs; |
28 | 29 | }; |
29 | 30 | }; |
|
78 | 79 | uart0: serial@f0000010 { |
79 | 80 | compatible = "ns16550a"; |
80 | 81 | reg = <0xf0000010 0x20>; |
81 | | - clock-frequency = <10000000>; |
82 | | - reg-shift = <2>; |
83 | | - no-loopback-test = <1>; |
84 | | - fifo-size = <253>; |
85 | | - }; |
86 | | - |
87 | | - uart1: serial@f0000030 { |
88 | | - compatible = "ns16550a"; |
89 | | - reg = <0xf0000030 0x20>; |
90 | | - clock-frequency = <10000000>; |
91 | | - reg-shift = <2>; |
92 | | - no-loopback-test = <1>; |
93 | | - fifo-size = <253>; |
94 | | - }; |
95 | | - |
96 | | - uart2: serial@f0000050 { |
97 | | - compatible = "ns16550a"; |
98 | | - reg = <0xf0000050 0x20>; |
99 | | - clock-frequency = <10000000>; |
100 | | - reg-shift = <2>; |
101 | | - no-loopback-test = <1>; |
102 | | - fifo-size = <253>; |
103 | | - }; |
104 | | - |
105 | | - uart3: serial@f0000070 { |
106 | | - compatible = "ns16550a"; |
107 | | - reg = <0xf0000070 0x20>; |
108 | | - clock-frequency = <10000000>; |
109 | 82 | reg-shift = <2>; |
110 | | - no-loopback-test = <1>; |
| 83 | + interrupts-extended = <&intc 9>; |
| 84 | + clock-frequency = <(38400*16)>; |
111 | 85 | fifo-size = <253>; |
| 86 | + no-loopback-test; |
| 87 | + // TODO: https://github.com/torvalds/linux/blob/8c2e52ebbe885c7eeaabd3b7ddcdc1246fc400d2/drivers/tty/serial/8250/8250_of.c#L233 |
112 | 88 | }; |
113 | 89 |
|
114 | 90 | syscon: syscon@fffffff0 { |
|
0 commit comments