diff mbox

[5/5] hdat: Fix interrupt & device_type of UART node

Message ID 20170203095200.26035-5-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt Feb. 3, 2017, 9:52 a.m. UTC
The interrupt should use a standard "interrupts" property. The UART
node also need a device_type="serial" property for historical reasons
otherwise Linux won't pick it up.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hdata/fsp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Oliver O'Halloran Feb. 8, 2017, 2:55 a.m. UTC | #1
On Fri, 2017-02-03 at 20:52 +1100, Benjamin Herrenschmidt wrote:
> The interrupt should use a standard "interrupts" property. The UART
> node also need a device_type="serial" property for historical reasons
> otherwise Linux won't pick it up.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Stewart Smith March 3, 2017, 3:58 a.m. UTC | #2
Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
> The interrupt should use a standard "interrupts" property. The UART
> node also need a device_type="serial" property for historical reasons
> otherwise Linux won't pick it up.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Merged to master as of ca2d9170822c1d6a2909ade2d131c14f165d7840
diff mbox

Patch

diff --git a/hdata/fsp.c b/hdata/fsp.c
index 998724b..f44f6a9 100644
--- a/hdata/fsp.c
+++ b/hdata/fsp.c
@@ -264,8 +264,10 @@  static void add_uart(const struct spss_iopath *iopath, struct dt_node *lpc)
 		be32_to_cpu(iopath->lpc.uart_baud));
 	dt_add_property_cells(serial, "clock-frequency",
 		be32_to_cpu(iopath->lpc.uart_clk));
-	dt_add_property_cells(serial, "serirq-interrupt",
+	dt_add_property_cells(serial, "interrupts",
 		be32_to_cpu(iopath->lpc.uart_int_number));
+	dt_add_property_string(serial, "device_type", "serial");
+
 
 	prlog(PR_DEBUG, "LPC UART: base addr = %#" PRIx64" (%#" PRIx64 ") size = %#x clk = %u, baud = %u\n",
 		be64_to_cpu(iopath->lpc.uart_base),