From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933911AbcDLN5v (ORCPT ); Tue, 12 Apr 2016 09:57:51 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:33522 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933758AbcDLN5q (ORCPT ); Tue, 12 Apr 2016 09:57:46 -0400 From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v2 4/4] ARM: STi: DT: STiH407: Add DT node for at24c256 eeprom Date: Tue, 12 Apr 2016 14:57:28 +0100 Message-Id: <1460469448-9065-5-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460469448-9065-1-git-send-email-peter.griffin@linaro.org> References: <1460469448-9065-1-git-send-email-peter.griffin@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org More accurately describe the i2c bus hardware by including a dt node for the eeprom device. Now that at24c256 can be accessed via the nvmem framework it allows for example the stmmac driver to be extended to get the MAC address from the at24c256 eeprom. Signed-off-by: Peter Griffin --- Changes in v2: - Add more verbose patch description --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi index 133375b..0d7c6dd 100644 --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi @@ -58,6 +58,15 @@ i2c@9845000 { status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + + eeprom@50 { + compatible = "at,24c256"; + pagesize = <64>; + reg = <0x50>; + }; }; i2c@9540000 { -- 1.9.1