mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 17:08:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
The EEPROM chips on UniPhier reference daughter boards expect 2-byte
offset address.
Since 7132b9fd68
(dm: i2c: dts: Support an offset-len device tree
property), I2C sub-nodes can have "u-boot,i2c-offset-len" property.
It is convenient to set the default I2C offset address length in
Device Tree, so that we do not have to set it on the command line.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
17 lines
318 B
Plaintext
17 lines
318 B
Plaintext
/*
|
|
* Device Tree Source for UniPhier Reference Daughter Board
|
|
*
|
|
* Copyright (C) 2014-2015 Panasonic Corporation
|
|
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
&i2c0 {
|
|
eeprom {
|
|
compatible = "i2c-eeprom";
|
|
reg = <0x50>;
|
|
u-boot,i2c-offset-len = <2>;
|
|
};
|
|
};
|