arm: dts: am335x-bone-common.dtsi: add eeprom device to DT
PATCH 1/1 arm: dts: am335x-bone-common.dtsi: add eeprom device to DT
From: Marc Reilly <[email protected]>
This adds a device node to provide support for the onboard eeprom of beaglebone products. The eeprom contents can be used to determine the type of beaglebone running. For example this can be used to differentiate between the original Beaglebone Black and the wireless version.
--- arch/arm/dts/am335x-bone-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/dts/am335x-bone-common.dtsi +10 -0
@@ -217,6 +217,16 @@ reg = <0x24>; }; + baseboard_eeprom: baseboard_eeprom@50 { + compatible = "atmel,24c256"; + reg = <0x50>; + + #address-cells = <1>; + #size-cells = <1>; + baseboard_data: baseboard_data@0 { + reg = <0 0x100>; + }; + }; }; /include/ "tps65217.dtsi"
Signature · 7 lines
2.16.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Hi Marc,
Quoted 21 lines · On Fri, Jul 27, 2018 at 08:02:08PM +1000, [email protected] wrote:
From: Marc Reilly <[email protected]>
This adds a device node to provide support for the onboard eeprom of beaglebone products. The eeprom contents can be used to determine the type of beaglebone running. For example this can be used to differentiate between the original Beaglebone Black and the wireless version.
Signed-off-by Marc Reilly <[email protected]>--- arch/arm/dts/am335x-bone-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm/dts/am335x-bone-common.dtsi +0
-0@@ -217,6 +217,16 @@ reg = <0x24>; };
arch/arm/dts/am335x-bone-common.dtsi line 229
Quoted 10 lines
arch/arm/dts/am335x-bone-common.dtsi +10
-0+ baseboard_eeprom: baseboard_eeprom@50 { + compatible = "atmel,24c256"; + reg = <0x50>; + + #address-cells = <1>; + #size-cells = <1>; + baseboard_data: baseboard_data@0 { + reg = <0 0x100>; + }; + };
I see this node is present in the upstream dtsi in dts/src/arm/am335x-bone-common.dtsi already. Maybe a better approach would be to switch to the upstream file?
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox