karo: tx48: remove the 'interrupts' property from LTC3589 node for AM335x silicon...
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 25 Aug 2014 12:35:06 +0000 (14:35 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 25 Aug 2014 12:35:06 +0000 (14:35 +0200)
This silicon rev. has the polarity of the EXTINTn pin inverted
wrt. the spec. with no useable workaround. Remove the 'interrupts'
property from the ltc3589 DT node, so that the LTC driver will operate
in polling mode.

board/karo/tx48/tx48.c

index 81103ce..9e59ebf 100644 (file)
@@ -1145,5 +1145,11 @@ void ft_board_setup(void *blob, bd_t *bd)
        karo_fdt_update_fb_mode(blob, video_mode);
 
        tx48_disable_watchdog();
+
+       if (get_cpu_rev() == 0) {
+               karo_fdt_del_prop(blob, "lltc,ltc3589-2", 0x34, "interrupts");
+               karo_fdt_del_prop(blob, "lltc,ltc3589-2", 0x34,
+                               "interrupt-parent");
+       }
 }
 #endif /* CONFIG_OF_BOARD_SETUP */