From patchwork Tue Jan 22 13:51:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1029302 X-Patchwork-Delegate: monstr@monstr.eu 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=) 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.b="DXxj6b3+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43kVGj0llPz9s2P for ; Wed, 23 Jan 2019 00:52:29 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C863FC21E4E; Tue, 22 Jan 2019 13:52:09 +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_MSPIKE_H2, T_DKIM_INVALID 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 432C3C21C2F; Tue, 22 Jan 2019 13:51:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2032DC21BE5; Tue, 22 Jan 2019 13:51:55 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id AC5CBC21BE5 for ; Tue, 22 Jan 2019 13:51:55 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id t6so27381473wrr.12 for ; Tue, 22 Jan 2019 05:51:55 -0800 (PST) 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 :in-reply-to:references; bh=WzSSZj2Zd5jg0NpBT54YyCDpud+Zsw3gVeiAG7qLHoI=; b=DXxj6b3+XlbCnfHYqbmpBMAE1WOUlyzcVVvYrqbx5T2KdWj/tpiRqbVyafGflzR4R6 r/aa/9WEWrnNUcE+Joj+5cchIq6iPC6tmcimp4PQRjUQKxZu9AhCUP1CY08f+ijt+PYI K71fSuqRDp0+o3LDDG3AZsxaIGo+oOftDDylDu5ZWJ7og8dwAkCrVYlx2J8ru8UrM1D6 t2m92DHW+O3s8jBMppFRXb4uzcoT1m5WDG4ifk8+AZgqSPNCHoBa0xL5wxCdy5ytLkRc JvXmGu3S6898LqAPfsgXzedIy12D3216o/eLRoFvi/Pnr2AwUaFBerv9R+YVFAi2VxWL oOjQ== 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:in-reply-to:references; bh=WzSSZj2Zd5jg0NpBT54YyCDpud+Zsw3gVeiAG7qLHoI=; b=Fd9Hr4sBKo1gdGzlRCtBTvsePJU3mL5/wWLQj6qykwQteRJtKy8UBPFHDEUIBDReUG 3vGNtNGO45LFtHbkCkF6YutMCFaiuchJEMpUGggXCJd1f5t++S14i7P3WPRXTuImEufD EsTE8dc14Ov1qElOzYO0C+CkizRm9sP1hC/cVqFfQfLInvwQyhOEMPPN9Ofcylp7QQ+y gWbnytwtg4YYae4sP8slhJFVtPlfU4zxSrR3emHlPsYU9BgmtDkgClSbIuydU8zd/eOS X6CN8WwpNOuXHnLve9h9LxGPgKnBQqlMIT+SZpaAJy3+Ij/R3lEHwqSEmyufVTVaJ0mK I0dw== X-Gm-Message-State: AJcUukcMcLMNwyu64sPBT7fsBFNIOnKAiDw8zBgBfOH3axZ93Z2JmIH/ JPjOoiApA5f8kJonxlnJarO1wDGBETN/sg== X-Google-Smtp-Source: ALg8bN7cEUHgDFSurJbvuMgyP7rFEVN12C/ULZAmCZZD8Z6Qcx6T1JsuZhNlc/pL7Tmu3t5ZHYqc3w== X-Received: by 2002:adf:ea11:: with SMTP id q17mr31803569wrm.328.1548165115021; Tue, 22 Jan 2019 05:51:55 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id o5sm36505473wrw.46.2019.01.22.05.51.54 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 22 Jan 2019 05:51:54 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 22 Jan 2019 14:51:50 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: <9ce2267083f41472415fcf70f7f0bd1283c99cfc.1548165109.git.michal.simek@xilinx.com> References: <9ce2267083f41472415fcf70f7f0bd1283c99cfc.1548165109.git.michal.simek@xilinx.com> In-Reply-To: <9ce2267083f41472415fcf70f7f0bd1283c99cfc.1548165109.git.michal.simek@xilinx.com> References: <9ce2267083f41472415fcf70f7f0bd1283c99cfc.1548165109.git.michal.simek@xilinx.com> Cc: Tom McLeod Subject: [U-Boot] [PATCH 2/3] ARM: zynq: Convert Syzygy and Topic Miami to DM_I2C 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" Both boards have only controllers enabled that's why move to DM_I2C is easy. Add also i2c alias for Syzygy not to be shown as i2c bus -1 because alias doesn't exist. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-syzygy-hub.dts | 1 + configs/syzygy_hub_defconfig | 5 ++--- configs/topic_miami_defconfig | 5 ++--- configs/topic_miamilite_defconfig | 5 ++--- configs/topic_miamiplus_defconfig | 5 ++--- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/arch/arm/dts/zynq-syzygy-hub.dts b/arch/arm/dts/zynq-syzygy-hub.dts index a30d667146d1..0f25cbe60923 100644 --- a/arch/arm/dts/zynq-syzygy-hub.dts +++ b/arch/arm/dts/zynq-syzygy-hub.dts @@ -16,6 +16,7 @@ ethernet0 = &gem0; serial0 = &uart0; mmc0 = &sdhci0; + i2c0 = &i2c1; }; memory@0 { diff --git a/configs/syzygy_hub_defconfig b/configs/syzygy_hub_defconfig index 75139d93b346..793156520021 100644 --- a/configs/syzygy_hub_defconfig +++ b/configs/syzygy_hub_defconfig @@ -17,7 +17,6 @@ CONFIG_BOOTCOMMAND="run $modeboot || run distro_bootcmd" CONFIG_SPL_STACK_R=y CONFIG_SPL_OS_BOOT=y CONFIG_SYS_PROMPT="Zynq> " -CONFIG_CMD_EEPROM=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_FPGA_LOADBP=y CONFIG_CMD_FPGA_LOADFS=y @@ -36,8 +35,8 @@ CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FPGA_XILINX=y CONFIG_FPGA_ZYNQPL=y CONFIG_DM_GPIO=y -CONFIG_SYS_I2C_ZYNQ=y -CONFIG_ZYNQ_I2C1=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_CADENCE=y CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0xFA CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ZYNQ=y diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig index 70d07ac041ae..927ce9ad2848 100644 --- a/configs/topic_miami_defconfig +++ b/configs/topic_miami_defconfig @@ -34,9 +34,8 @@ CONFIG_DFU_RAM=y CONFIG_FPGA_XILINX=y CONFIG_FPGA_ZYNQPL=y CONFIG_DM_GPIO=y -CONFIG_SYS_I2C_ZYNQ=y -CONFIG_ZYNQ_I2C0=y -CONFIG_ZYNQ_I2C1=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_CADENCE=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ZYNQ=y CONFIG_SPI_FLASH=y diff --git a/configs/topic_miamilite_defconfig b/configs/topic_miamilite_defconfig index 387f4cae0865..e4d52f6a915e 100644 --- a/configs/topic_miamilite_defconfig +++ b/configs/topic_miamilite_defconfig @@ -34,9 +34,8 @@ CONFIG_DFU_RAM=y CONFIG_FPGA_XILINX=y CONFIG_FPGA_ZYNQPL=y CONFIG_DM_GPIO=y -CONFIG_SYS_I2C_ZYNQ=y -CONFIG_ZYNQ_I2C0=y -CONFIG_ZYNQ_I2C1=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_CADENCE=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ZYNQ=y CONFIG_SPI_FLASH=y diff --git a/configs/topic_miamiplus_defconfig b/configs/topic_miamiplus_defconfig index d820fff501d1..f742838d7c1f 100644 --- a/configs/topic_miamiplus_defconfig +++ b/configs/topic_miamiplus_defconfig @@ -33,9 +33,8 @@ CONFIG_DFU_RAM=y CONFIG_FPGA_XILINX=y CONFIG_FPGA_ZYNQPL=y CONFIG_DM_GPIO=y -CONFIG_SYS_I2C_ZYNQ=y -CONFIG_ZYNQ_I2C0=y -CONFIG_ZYNQ_I2C1=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_CADENCE=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ZYNQ=y CONFIG_SPI_FLASH=y