diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-07-03 07:58:43 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-07-03 07:58:43 +0000 |
commit | 92398091e9be5131492c610ee978ccebb75b0856 (patch) | |
tree | aa3d0256d57cebb9fb488a8420e4c192cfb5bd7b /sys/arch/octeon | |
parent | c6fbc951fe6a276696ca2d133f20755f9c9d63d0 (diff) |
Add the first UART into the fdt blob.
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/octeon/cn3xxx.dts | 8 | ||||
-rw-r--r-- | sys/arch/octeon/octeon/cn3xxx_dts.S | 34 |
2 files changed, 41 insertions, 1 deletions
diff --git a/sys/arch/octeon/octeon/cn3xxx.dts b/sys/arch/octeon/octeon/cn3xxx.dts index b9aa29e50d8..b5e6433913f 100644 --- a/sys/arch/octeon/octeon/cn3xxx.dts +++ b/sys/arch/octeon/octeon/cn3xxx.dts @@ -1,4 +1,4 @@ -/* $OpenBSD: cn3xxx.dts,v 1.2 2017/06/26 16:54:31 visa Exp $ */ +/* $OpenBSD: cn3xxx.dts,v 1.3 2017/07/03 07:58:42 visa Exp $ */ /* * Copyright (c) 2017 Visa Hankala @@ -58,5 +58,11 @@ #size-cells = <0>; reg = <0x11800 0x00001800 0x0 0x40>; }; + + serial@1180000000800 { + compatible = "cavium,octeon-3860-uart"; + reg = <0x11800 0x00000800 0x0 0x400>; + interrupts = <0 0x22>; + }; }; }; diff --git a/sys/arch/octeon/octeon/cn3xxx_dts.S b/sys/arch/octeon/octeon/cn3xxx_dts.S index 2ba4a2ea160..3cc2c87060a 100644 --- a/sys/arch/octeon/octeon/cn3xxx_dts.S +++ b/sys/arch/octeon/octeon/cn3xxx_dts.S @@ -192,6 +192,39 @@ ciu_end: .balign 4, 0 /* FDT_END_NODE */ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02 + /* FDT_BEGIN_NODE */ + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x01 + .string "serial@1180000000800" + .balign 4, 0 + /* FDT_PROP */ + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x18 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x21 + .byte 0x63; .byte 0x61; .byte 0x76; .byte 0x69 + .byte 0x75; .byte 0x6d; .byte 0x2c; .byte 0x6f + .byte 0x63; .byte 0x74; .byte 0x65; .byte 0x6f + .byte 0x6e; .byte 0x2d; .byte 0x33; .byte 0x38 + .byte 0x36; .byte 0x30; .byte 0x2d; .byte 0x75 + .byte 0x61; .byte 0x72; .byte 0x74; .byte 0x00 + .balign 4, 0 + /* FDT_PROP */ + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x10 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x6a + .byte 0x00; .byte 0x01; .byte 0x18; .byte 0x00 + .byte 0x00; .byte 0x00; .byte 0x08; .byte 0x00 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00 + .byte 0x00; .byte 0x00; .byte 0x04; .byte 0x00 + .balign 4, 0 + /* FDT_PROP */ + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x03 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x08 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x7c + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x00 + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x22 + .balign 4, 0 + /* FDT_END_NODE */ + .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02 /* FDT_END_NODE */ .byte 0x00; .byte 0x00; .byte 0x00; .byte 0x02 /* FDT_END_NODE */ @@ -214,6 +247,7 @@ _dt_strings_start: .string "#interrupt-cells" .string "reg" .string "linux,phandle" + .string "interrupts" .globl dt_strings_end dt_strings_end: _dt_strings_end: |