From patchwork Wed Jul 22 10:20:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1333785 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=mQZtYM9x; 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 4BBWgx5hmrz9sPf for ; Wed, 22 Jul 2020 20:20:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CD3A7819EA; Wed, 22 Jul 2020 12:20:40 +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="mQZtYM9x"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB5A1819F0; Wed, 22 Jul 2020 12:20:39 +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-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 3AC4281765 for ; Wed, 22 Jul 2020 12:20:36 +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-x630.google.com with SMTP id o18so1612374eje.7 for ; Wed, 22 Jul 2020 03:20:36 -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=EFOLScgTG2JOk/W+7MdNFwBaIP/tTW/BPpmIPC7DBy4=; b=mQZtYM9xCfLE8F2R8cfEv4rehMkx/PDrUwpLip75Qe3Mzf+ww0cGJmFiWouKbssPwY zFLpXYOvLyYBX5zrWY2SsXB/BKid9sNr6lKJPd+kgqIdjqr8v4UJL7/qCVL4S2uzTfr7 RFrpldAIjGuSmPWlCnWF5SmAajrf0npqMWvDXwqQy56vL0tkEhu4493ZJDSxklIasvKY EtNeKfrt/YPxJU3OZBUGfAEJYSSD003L3Vricbw0JRHAdTkn39RZFmGtXOxHgR+Yrmor Ohx79KmnmtSTIbOZuq3l4zn6VRXf8/QWtG848ynn5PwI8zwsvGmqO2FXRKYxXqQZybyQ YBqA== 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=EFOLScgTG2JOk/W+7MdNFwBaIP/tTW/BPpmIPC7DBy4=; b=D3Y+yQAi0DAa0Gp27cY7tbO7lJYJkTPUk3tsV9OfN++br2R0+V8tXrevJgfV/unSHp DhjcJxsx+9CViiSN6iNRd/zzLb7S2iUczGSFmkjwzwcA1Dpi87PXsv/8s8OaU0EVVkBF hzAkapzLtXQ1YToF4hItorI5ctfWDWJ5BADaUk11+m81ZicSBL7VhmCcAWjrjQiwyPXx ttEh5tZTmk9k47AkPbGKizkAmdDx9f1yNmQKgUfJLerl/pZ9fWF8fvtle+TW5a4ZVdxX GF+5iiz/RZWORY050+b9uxfR6R4aASvcg6lcWnzK7EuvxpMqvqmUedcR2lzqkJ49GERq DdFw== X-Gm-Message-State: AOAM530reHrVAuP1KINc99IRK6HLAYDqhwV6xE8DJGVk42MtHaeYzGil +ibOjMuSNsco9bOZAqcAlBPgaEeKJzTNBg== X-Google-Smtp-Source: ABdhPJxUjfdxsTOg7FmHvnNxVlg7dDDjtYRbfVD+6ukpd5+OSLA0tRwT8QJxJ6FbVX1i1HFIljBlLg== X-Received: by 2002:a17:907:395:: with SMTP id ss21mr28946903ejb.181.1595413235176; Wed, 22 Jul 2020 03:20:35 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id d13sm18915805edv.12.2020.07.22.03.20.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jul 2020 03:20:34 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Subject: [PATCH v2] arm64: zynqmp: Define eeprom fixed partitions in DT Date: Wed, 22 Jul 2020 12:20:33 +0200 Message-Id: <7b8ab9cd0d4cf091843028048942cdcfd06ae7c1.1595413231.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean Use fixed partition to cover eeprom content on zynqmp boards. Signed-off-by: Michal Simek --- Changes in v2: - remove address/size cells from eeprom nodes - it is not needed - Add missing compatible node to zcu102 arch/arm/dts/zynqmp-zcu102-rev1.0.dts | 29 +++++++++++++++------------ arch/arm/dts/zynqmp-zcu104-revA.dts | 23 +++++++++++++++++++-- arch/arm/dts/zynqmp-zcu104-revC.dts | 23 +++++++++++++++++++-- arch/arm/dts/zynqmp-zcu106-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu111-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu1285-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu208-revA.dts | 21 +++++++++++++++++++ arch/arm/dts/zynqmp-zcu216-revA.dts | 21 +++++++++++++++++++ 8 files changed, 163 insertions(+), 17 deletions(-) diff --git a/arch/arm/dts/zynqmp-zcu102-rev1.0.dts b/arch/arm/dts/zynqmp-zcu102-rev1.0.dts index d508f3359943..aed8548bc786 100644 --- a/arch/arm/dts/zynqmp-zcu102-rev1.0.dts +++ b/arch/arm/dts/zynqmp-zcu102-rev1.0.dts @@ -15,22 +15,25 @@ }; &eeprom { - #address-cells = <1>; - #size-cells = <1>; + partitions { + compatible = "fixed-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..78949c313445 100644 --- a/arch/arm/dts/zynqmp-zcu104-revA.dts +++ b/arch/arm/dts/zynqmp-zcu104-revA.dts @@ -128,8 +128,27 @@ eeprom: eeprom@54 { /* u23 */ compatible = "atmel,24c08"; reg = <0x54>; - #address-cells = <1>; - #size-cells = <1>; + 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..35e4cec15213 100644 --- a/arch/arm/dts/zynqmp-zcu104-revC.dts +++ b/arch/arm/dts/zynqmp-zcu104-revC.dts @@ -153,8 +153,27 @@ eeprom: eeprom@54 { /* u23 */ compatible = "atmel,24c08"; reg = <0x54>; - #address-cells = <1>; - #size-cells = <1>; + 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..5f4cd17505e1 100644 --- a/arch/arm/dts/zynqmp-zcu106-revA.dts +++ b/arch/arm/dts/zynqmp-zcu106-revA.dts @@ -483,6 +483,27 @@ eeprom: eeprom@54 { /* u23 */ compatible = "atmel,24c08"; reg = <0x54>; + 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..cae83222bd90 100644 --- a/arch/arm/dts/zynqmp-zcu111-revA.dts +++ b/arch/arm/dts/zynqmp-zcu111-revA.dts @@ -379,6 +379,27 @@ eeprom: eeprom@54 { /* u88 */ compatible = "atmel,24c08"; reg = <0x54>; + 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..3e6737edcfaf 100644 --- a/arch/arm/dts/zynqmp-zcu1285-revA.dts +++ b/arch/arm/dts/zynqmp-zcu1285-revA.dts @@ -152,6 +152,27 @@ eeprom: eeprom@54 { /* u101 */ compatible = "atmel,24c32"; /* 24LC32A */ reg = <0x54>; + 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..e6e99cf8be96 100644 --- a/arch/arm/dts/zynqmp-zcu208-revA.dts +++ b/arch/arm/dts/zynqmp-zcu208-revA.dts @@ -397,6 +397,27 @@ eeprom: eeprom@54 { /* u21 */ compatible = "atmel,24c128"; reg = <0x54>; + 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..b55defff6e45 100644 --- a/arch/arm/dts/zynqmp-zcu216-revA.dts +++ b/arch/arm/dts/zynqmp-zcu216-revA.dts @@ -401,6 +401,27 @@ eeprom: eeprom@54 { /* u21 */ compatible = "atmel,24c128"; reg = <0x54>; + 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 {