From patchwork Mon Jun 15 13:46:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1309521 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=UXszLcl0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49lt0Y44q0z9sRN for ; Mon, 15 Jun 2020 23:46:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 421DB81DED; Mon, 15 Jun 2020 15:46:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="UXszLcl0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CFB7581E23; Mon, 15 Jun 2020 15:46:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0280E81D6A for ; Mon, 15 Jun 2020 15:46:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x631.google.com with SMTP id w16so16973913ejj.5 for ; Mon, 15 Jun 2020 06:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=hu0ct6Gn7ca0Lj8Z4unGvMCm1s7aan4toqUXfr7NkWY=; b=UXszLcl0rcvPr/8LwPdi4UAnn1Cn6DdWmaY9EsfFT19EtDTMiLJQ4/GhHtsHCmt9XF FUXHRuZthz7cgv0RKH16v5P9DZ894VhrHEG3MWntcwL/XHvLmbLUZEZr0yjEZ5ATRRTq TUUbM2TDFqvQK3y4FXdqV5NffiLU/fjCy0XIJo/XXu4dzcc8hzy6o7WAuYoM9PmxdrYO zcJrAURVrdB3rdyeWAQsdg4Dtc1tRxsxrHXgJ9ChleNaUzKUmusWeFtJ62VC4q1A4/RV FoBDDHrgGIJ2kurvcCN2IXELwMu2CZOziaGFpNQG6hSfIn5XsKwBnMgM9+dxWh4Vym2C AAPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=hu0ct6Gn7ca0Lj8Z4unGvMCm1s7aan4toqUXfr7NkWY=; b=uR7xNBtRFZxwE9JqKoTQp1PPG06C1PLaIL9BHGoBczJ7pNDA67HPeOUoqrJPI41jDm X4bXNpCmdr0TSx+GErQBskLQ/CXTiGWWtliIrjw4WoQXFmbcORjAe7kKwPcJ3dtDbI9P IQsv7WD2QsxKlLYJ7bxx0NhdqmaE3RZETfLTWMGGKdLYWrPxiW/NMZK5L4BywuViLedp xlD+BLSt+p2u/DkqPn/lP2ikgXia1LyaT7gb+NRkEMinGcBF8Nnl4NkedrsCZ5Y1k2kw dkbGRxcxR9lfcpzJAv4AWwZJfNPgEfaTfn9gByXY+wUjZ0tIlbqb5IN21nN5dTc55zko DR+A== X-Gm-Message-State: AOAM530EeH7HbmoLe3I7KYFL8RVntwpiNiLswMZth0wDTyXCLbWa0Ihy N2zcZCzE2XaxwTujJ/1rmroBUVqrSv7NUU45 X-Google-Smtp-Source: ABdhPJymKLcUTrLY4vLmwrsrxql32RLLAmGiGf6nXhUH8p/nRIorv2Nm81c7LtRqFUI6bmvfNtaEEA== X-Received: by 2002:a17:906:d143:: with SMTP id br3mr23525049ejb.548.1592228784140; Mon, 15 Jun 2020 06:46:24 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id j11sm9110063ejk.67.2020.06.15.06.46.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jun 2020 06:46:23 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Subject: [PATCH] arm64: zynqmp: Define eeprom fixed partitions in DT Date: Mon, 15 Jun 2020 15:46:22 +0200 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Use fixed partition to cover eeprom content on zynqmp boards. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu102-rev1.0.dts | 28 +++++++++++++++------------ arch/arm/dts/zynqmp-zcu104-revA.dts | 23 +++++++++++++++++++++- arch/arm/dts/zynqmp-zcu104-revC.dts | 23 +++++++++++++++++++++- arch/arm/dts/zynqmp-zcu106-revA.dts | 23 ++++++++++++++++++++++ arch/arm/dts/zynqmp-zcu111-revA.dts | 23 ++++++++++++++++++++++ arch/arm/dts/zynqmp-zcu1285-revA.dts | 23 ++++++++++++++++++++++ arch/arm/dts/zynqmp-zcu208-revA.dts | 23 ++++++++++++++++++++++ arch/arm/dts/zynqmp-zcu216-revA.dts | 23 ++++++++++++++++++++++ 8 files changed, 175 insertions(+), 14 deletions(-) diff --git a/arch/arm/dts/zynqmp-zcu102-rev1.0.dts b/arch/arm/dts/zynqmp-zcu102-rev1.0.dts index d508f3359943..932d86f53b45 100644 --- a/arch/arm/dts/zynqmp-zcu102-rev1.0.dts +++ b/arch/arm/dts/zynqmp-zcu102-rev1.0.dts @@ -16,21 +16,25 @@ &eeprom { #address-cells = <1>; - #size-cells = <1>; + #size-cells = <0>; + partitions { + #address-cells = <1>; + #size-cells = <1>; - board_sn: board-sn@0 { - reg = <0x0 0x14>; - }; + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; - eth_mac: eth-mac@20 { - reg = <0x20 0x6>; - }; + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; - board_name: board-name@d0 { - reg = <0xd0 0x6>; - }; + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; - board_revision: board-revision@e0 { - reg = <0xe0 0x3>; + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; }; }; diff --git a/arch/arm/dts/zynqmp-zcu104-revA.dts b/arch/arm/dts/zynqmp-zcu104-revA.dts index a4bd6b800a18..f3ab34e1f958 100644 --- a/arch/arm/dts/zynqmp-zcu104-revA.dts +++ b/arch/arm/dts/zynqmp-zcu104-revA.dts @@ -129,7 +129,28 @@ compatible = "atmel,24c08"; reg = <0x54>; #address-cells = <1>; - #size-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; diff --git a/arch/arm/dts/zynqmp-zcu104-revC.dts b/arch/arm/dts/zynqmp-zcu104-revC.dts index d4b3769a27cc..ffa1ca34034a 100644 --- a/arch/arm/dts/zynqmp-zcu104-revC.dts +++ b/arch/arm/dts/zynqmp-zcu104-revC.dts @@ -154,7 +154,28 @@ compatible = "atmel,24c08"; reg = <0x54>; #address-cells = <1>; - #size-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; diff --git a/arch/arm/dts/zynqmp-zcu106-revA.dts b/arch/arm/dts/zynqmp-zcu106-revA.dts index 221685fd23be..df473db60c22 100644 --- a/arch/arm/dts/zynqmp-zcu106-revA.dts +++ b/arch/arm/dts/zynqmp-zcu106-revA.dts @@ -483,6 +483,29 @@ eeprom: eeprom@54 { /* u23 */ compatible = "atmel,24c08"; reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; i2c@1 { diff --git a/arch/arm/dts/zynqmp-zcu111-revA.dts b/arch/arm/dts/zynqmp-zcu111-revA.dts index 63e285fe9a9a..e3b4573c19d9 100644 --- a/arch/arm/dts/zynqmp-zcu111-revA.dts +++ b/arch/arm/dts/zynqmp-zcu111-revA.dts @@ -379,6 +379,29 @@ eeprom: eeprom@54 { /* u88 */ compatible = "atmel,24c08"; reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; i2c@1 { diff --git a/arch/arm/dts/zynqmp-zcu1285-revA.dts b/arch/arm/dts/zynqmp-zcu1285-revA.dts index d8b9cb1a9e13..b829a8a5cd85 100644 --- a/arch/arm/dts/zynqmp-zcu1285-revA.dts +++ b/arch/arm/dts/zynqmp-zcu1285-revA.dts @@ -152,6 +152,29 @@ eeprom: eeprom@54 { /* u101 */ compatible = "atmel,24c32"; /* 24LC32A */ reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; i2c@3 { diff --git a/arch/arm/dts/zynqmp-zcu208-revA.dts b/arch/arm/dts/zynqmp-zcu208-revA.dts index 118a2de96b3c..4dc0aaf55873 100644 --- a/arch/arm/dts/zynqmp-zcu208-revA.dts +++ b/arch/arm/dts/zynqmp-zcu208-revA.dts @@ -397,6 +397,29 @@ eeprom: eeprom@54 { /* u21 */ compatible = "atmel,24c128"; reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; i2c_si5341: i2c@1 { diff --git a/arch/arm/dts/zynqmp-zcu216-revA.dts b/arch/arm/dts/zynqmp-zcu216-revA.dts index e454bfcba797..b643335da058 100644 --- a/arch/arm/dts/zynqmp-zcu216-revA.dts +++ b/arch/arm/dts/zynqmp-zcu216-revA.dts @@ -401,6 +401,29 @@ eeprom: eeprom@54 { /* u21 */ compatible = "atmel,24c128"; reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + board_sn: board-sn@0 { + reg = <0x0 0x14>; + }; + + eth_mac: eth-mac@20 { + reg = <0x20 0x6>; + }; + + board_name: board-name@d0 { + reg = <0xd0 0x6>; + }; + + board_revision: board-revision@e0 { + reg = <0xe0 0x3>; + }; + }; }; }; i2c_si5341: i2c@1 {