From patchwork Tue Jul 18 09:53:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wadim Egorov X-Patchwork-Id: 790059 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xBb813RtNz9sRV for ; Tue, 18 Jul 2017 19:53:21 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 349DDC21D88; Tue, 18 Jul 2017 09:53:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 481BCC21C2C; Tue, 18 Jul 2017 09:53:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CE1FDC21C54; Tue, 18 Jul 2017 09:53:12 +0000 (UTC) Received: from root.phytec.de (mail.x-arc.co.uk [217.6.246.34]) by lists.denx.de (Postfix) with ESMTP id 21609C21C26 for ; Tue, 18 Jul 2017 09:53:12 +0000 (UTC) Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 15C61A002D2; Tue, 18 Jul 2017 11:54:28 +0200 (CEST) Received: from augenblix.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2017071811531174-198253 ; Tue, 18 Jul 2017 11:53:11 +0200 From: Wadim Egorov To: u-boot@lists.denx.de, sjg@chromium.org, jacob2.chen@rock-chips.com, philipp.tomsich@theobroma-systems.com Date: Tue, 18 Jul 2017 11:53:10 +0200 Message-Id: <1500371591-44762-1-git-send-email-w.egorov@phytec.de> X-Mailer: git-send-email 1.9.1 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.07.2017 11:53:11, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.07.2017 11:53:11, Serialize complete at 18.07.2017 11:53:11 X-TNEFEvaluated: 1 Subject: [U-Boot] [PATCH 1/2] rockchip: phycore: Add ID page of M24C32-D EEPROM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The Identification Page (32 byte) is an additional page which can be written and (later) permanently locked in Read-only mode. phyCORE-RK3288 SoMs are using this page to describe the module variant. This page also contains a MAC. Our boards can be equipped with a different amount of EEPROMs. To make this more transparent let's add an alias for the eeprom which stores the module variant. Signed-off-by: Wadim Egorov Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- arch/arm/dts/rk3288-phycore-som.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/rk3288-phycore-som.dtsi b/arch/arm/dts/rk3288-phycore-som.dtsi index fd463f4..02d1196 100644 --- a/arch/arm/dts/rk3288-phycore-som.dtsi +++ b/arch/arm/dts/rk3288-phycore-som.dtsi @@ -61,6 +61,7 @@ aliases { rtc0 = &i2c_rtc; rtc1 = &rk818; + eeprom0 = &i2c_eeprom_id; }; ext_gmac: external-gmac-clock { @@ -383,6 +384,13 @@ pagesize = <32>; }; + /* M24C32-D Identification page */ + i2c_eeprom_id: eeprom@58 { + compatible = "atmel,24c32"; + reg = <0x58>; + pagesize = <32>; + }; + vdd_cpu: regulator@60 { compatible = "fcs,fan53555"; reg = <0x60>;