mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* of_state_fixup / different path in barebox and kernel
@ 2016-02-17 18:14 Harald Welte
  2016-02-18 11:57 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Welte @ 2016-02-17 18:14 UTC (permalink / raw)
  To: barebox

Dear List,

I have a custom board with an AM335x on it.  We used to have an I2C
EEPROM for keeping the boot state, but moved that to SPI in a subsequent
version.

The SPI EEPROM uses gpio-based chip select, which is supported by linux
kernel spi-omap2-mcspi.c.  However, it is not supported by barebox.

My "solution" was to simply use the gpio-bitbang in barebox, which also
works fine for those few bytes that need to be read, performance doesn't
matter.

Now however I can no longer boot any kernel image, as of_state_fixup
fails in

	backend_node = of_find_node_by_path_from(root, state->backend->of_path);

due to the fact that the of-path of the EEPROM is different in the
barebox device tree (/spi_gpio/m95m02@0) than in the kernel device tree
(/ocp/spi@481a0000/m95m02@0)

Is there any designated solution for this situation?

Thanks in advance,
	Harald
-- 
- Harald Welte <laforge@gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-18 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17 18:14 of_state_fixup / different path in barebox and kernel Harald Welte
2016-02-18 11:57 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox