From patchwork Wed Jun 9 11:44:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12309941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D945C48BCF for ; Wed, 9 Jun 2021 12:07:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3609161285 for ; Wed, 9 Jun 2021 12:07:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3609161285 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=40uLT6cZeU557ARCeKcZ3l+gWL/WPB372VWfC1Wq/wc=; b=KXRfBSRpBAv9Zg L2Pc9qzp2Nnzy69pb8FUe2C70q3ILC0IOrBu7jDdeq7p40D4MBjyl9j81zuFL21+FKnpjjHuuRbQn ou8sZ6gIjc2Lb98pwO/j7phWGklgDC4ti0CF/93/IjFcprc2Dg6rz95+vyNQTgeJZVkdIl6kwItPE VE60C0tunf9LleMMJxU9Ctl8JBYX+cfdz1PhC+9F9sqhiekBAGL0uOFehqazgRgDNW4zcWhSJEjSw mQhIS+me4n3ynkq5JcFlvLc6/pvYOEbjQhCN/2LSJQIU0M8ceXlzCe9aPqMauyKvWwPsAGvccWzrK aM5qzOVZVh6LIZbkTY2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqwxX-00DXsK-Od; Wed, 09 Jun 2021 12:05:25 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqwef-00DQ2O-V2 for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 11:45:55 +0000 Received: by mail-wr1-x435.google.com with SMTP id z8so25087995wrp.12 for ; Wed, 09 Jun 2021 04:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2oJBCb/IEp6HCT0Khc41E+ZKW3BEVh2wQ7Q+Btm9aLE=; b=u33UTezcqWw3EwAL8es1PrN9BNk7b9P6aXfTUXOzGWKzRU6LGDhufMDBOfMYaBaYT4 j+iPZkh2PBwNtEMxwiJpskl5YbN7timv2lOCyKcRx77nrM176NuN5g+yB7ccIjUe71wo /ml5VXI12qXCAVDRpt3XDYylJsVS9SWUGGnBT9Zka4lUB2zTJ7cERD4MYes/g9WcBGLT YSuPRi1FN0kRIEAtMFSuMVB33yYz3IdtyNe30kSAuuzOGiiSFT63DL4msLO0oW9hPNN4 UjltDjinK7zo/jy+pfcl1DTHlLUfEeuQt9BpWdPeWHuOJv0pOsbe8ukg1eibPAy8BLnf tx7w== 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:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=2oJBCb/IEp6HCT0Khc41E+ZKW3BEVh2wQ7Q+Btm9aLE=; b=SkNU/c49ZqmkKFGW81yzO88S3beaZal6LqI4Vkk4lsKIJe/d5VFvdr8HeaYef1kenM C9gBUUpMD7QEUvorS9EBWqQEtOVIK1x9c95V1WpSyQMGwaualnQptMMxXwCndT74TYBN 7fVT5gF1oEDu0kOpVmvEujaaWYL+YN2ElQejSuRFsMEGTTAcBZZUNM/au8VdfmY4Vp6l PV4DdOqzecD5IINS8YUsDgTLBAnxDgPlqNSz3Wm8gK78U8howcZC+b0nabXFDeanNhik KlkVhHRT4nNtG2VA4YQxxQ4nGTO2H/17TGOiozrumgjyanuQlhq55d5DRuJ8lUAl4+hc XBrg== X-Gm-Message-State: AOAM533oVPfcmWg/Kd0KXXnrQ5BgbI8ZUJtWRMPSwJ9oZwskrjzNsh96 wivsVYZNA0FH3IQLJd+pYke09A== X-Google-Smtp-Source: ABdhPJwu3dPsiYPGloJtXLHsOdDjrEjSlsgc0e2EjWGqoM/VtNdqkJ4OceOVsDvXUIFHi1wPvQEQHA== X-Received: by 2002:a5d:6a41:: with SMTP id t1mr21296407wrw.113.1623239150445; Wed, 09 Jun 2021 04:45:50 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::45a]) by smtp.gmail.com with ESMTPSA id l2sm23037103wrp.21.2021.06.09.04.45.49 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jun 2021 04:45:50 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Viresh Kumar Cc: Krzysztof Kozlowski , Laurent Pinchart , Quanyang Wang , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 17/31] arm64: zynqmp: Add nvmem alises for eeproms Date: Wed, 9 Jun 2021 13:44:53 +0200 Message-Id: <9b860b47ec3ca64340b4d29317e92b667236d7d1.1623239033.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_044554_067907_E35A7B47 X-CRM114-Status: GOOD ( 13.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use nvmem alias to point to eeprom memory which contains information about board. The change is done based on discussion in the link below. Link: https://lore.kernel.org/r/CAL_JsqLMDqpkyg-Q7mUfw-XH67-v068Q6e9wTq2UOoN=0-_coQ@mail.gmail.com Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts | 3 ++- arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts index 1a45e4946dd4..339a12b255c1 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts @@ -25,6 +25,7 @@ aliases { i2c0 = &i2c0; i2c1 = &i2c1; mmc0 = &sdhci1; + nvmem0 = &eeprom; rtc0 = &rtc; serial0 = &uart0; serial1 = &uart1; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts index d7ecfcadd08b..4c328569c3ac 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts @@ -23,6 +23,7 @@ aliases { ethernet0 = &gem3; i2c0 = &i2c1; mmc0 = &sdhci1; + nvmem0 = &eeprom; rtc0 = &rtc; serial0 = &uart0; serial1 = &uart1; @@ -146,7 +147,7 @@ i2c@0 { * 512B - 768B address 0x56 * 768B - 1024B address 0x57 */ - eeprom@54 { /* u23 */ + eeprom: eeprom@54 { /* u23 */ compatible = "atmel,24c08"; reg = <0x54>; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts index 403a8ea6a36f..99d172867f6a 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts @@ -23,6 +23,7 @@ aliases { ethernet0 = &gem3; i2c0 = &i2c1; mmc0 = &sdhci1; + nvmem0 = &eeprom; rtc0 = &rtc; serial0 = &uart0; serial1 = &uart1; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts index 186d2e00d4a0..dbb8bfbb5c7f 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts @@ -25,6 +25,7 @@ aliases { i2c0 = &i2c0; i2c1 = &i2c1; mmc0 = &sdhci1; + nvmem0 = &eeprom; rtc0 = &rtc; serial0 = &uart0; serial1 = &uart1; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts index e646246a3b14..85e9d0e2f9bd 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts @@ -25,6 +25,7 @@ aliases { i2c0 = &i2c0; i2c1 = &i2c1; mmc0 = &sdhci1; + nvmem0 = &eeprom; rtc0 = &rtc; serial0 = &uart0; serial1 = &dcc;