From patchwork Wed Jun 30 15:23:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 1498988 X-Patchwork-Delegate: uboot@andestech.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=google header.b=ko2IeLAT; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4GFQyF1Cd2z9sVb for ; Thu, 1 Jul 2021 01:59:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 333718317D; Wed, 30 Jun 2021 17:58:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="ko2IeLAT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AADFA83170; Wed, 30 Jun 2021 17:24:11 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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 9699D82DF8 for ; Wed, 30 Jun 2021 17:24:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zong.li@sifive.com Received: by mail-pl1-x634.google.com with SMTP id h6so525398plf.11 for ; Wed, 30 Jun 2021 08:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tvlc7WGXkAfcjhWhNvNd0UJxrm83lRPB82FPi5prNiM=; b=ko2IeLATbyDJRDOSLuyKVbhZ5uef+bL5VJ+sZkuATflNyEuJHUDygB9HxKAdSAgeyS 96bXB8i3GHokKt2XOJfwJRFIgC3UeTHKB8GfX6f53KQETM/+RVvUsyQ5YoaSRgeHOwED G91XHyJEoDUdt5wLa7qo7nl3q3p0L3A6JtxhlTobZsnXl8HoBlog2V1MK8O1b9TVNdE3 chg3Kz3nqI38MKYRIo4iOzfg4WrhWGAc5cH29wMnF6lk2lyVvryFFcgieo1xY22OFn8l HeNxBqvaGInUAKivuycm9RhJfMScTXrdRL8M7o+ICu8X17Q6k1pWVoMDU5/fFQFavBTp HSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tvlc7WGXkAfcjhWhNvNd0UJxrm83lRPB82FPi5prNiM=; b=DICLlLhkFLs9YSldRgGABZFBWBq/PhavVRhnKKvt3Gz5MW9dyzxcU815s/D6GhoBAs BZHIglpC0BElVZHJ7MR6WFUJbmnJeMIFtucDzyZR52RdOllKXyP0D9I9Vz4rgYDq1Wrw 0TJ/EZCMo8lzHhumzjpGNwR2XmjVZ7ZwJHDP+uKXVuyCQqvDg6vu3jzfOjfDtEB4lg6O rrlEOf/mVfEfvoB7cpFK/JLDbcHO/yhUc8ekzuqtUtv1mo+O22PCicHtblzJgTbENfHF dfl/2rKpxKcjuTtnAJk2AqX9OvnJafVmfgL9sTgdcO3DC9aNZ34A+F4sRe8mCScOJcvt 4ehA== X-Gm-Message-State: AOAM530CqwwLyM2rbg9ZHtoLOd1x5eZpz9bruUtNlPTB1Xqtv9R/Fj4O nl+VcSS0cKrtblCuWFBeAUc8iw== X-Google-Smtp-Source: ABdhPJxer5lctqp0FU1eUsSAu3fA9cGOGJVq9MJPt5bwhE0ArLk1rE/CBew2iRuKiwYwITye3huQYQ== X-Received: by 2002:a17:902:8f91:b029:128:e8f4:91aa with SMTP id z17-20020a1709028f91b0290128e8f491aamr12142941plo.13.1625066642990; Wed, 30 Jun 2021 08:24:02 -0700 (PDT) Received: from hsinchu16.internal.sifive.com (59-124-168-89.HINET-IP.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id m4sm6956970pjv.41.2021.06.30.08.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 08:24:02 -0700 (PDT) From: Zong Li To: paul.walmsley@sifive.com, green.wan@sifive.com, pragnesh.patel@sifive.com, sagar.kadam@sifive.com, rick@andestech.com, ycliang@andestech.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Cc: Zong Li Subject: [PATCH 3/6] riscv: sifive: fu740: Support i2c in spl Date: Wed, 30 Jun 2021 23:23:47 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 30 Jun 2021 17:58:19 +0200 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.103.2 at phobos.denx.de X-Virus-Status: Clean Enable SPL_I2C_SUPPORT for fu740, and add 'u-boot,dm-spl' property in i2c node. Signed-off-by: Zong Li Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/cpu/fu740/Kconfig | 1 + arch/riscv/dts/fu740-c000-u-boot.dtsi | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/arch/riscv/cpu/fu740/Kconfig b/arch/riscv/cpu/fu740/Kconfig index 1dc052ba31..8e54310b9c 100644 --- a/arch/riscv/cpu/fu740/Kconfig +++ b/arch/riscv/cpu/fu740/Kconfig @@ -37,3 +37,4 @@ config SIFIVE_FU740 imply PWM_SIFIVE imply DM_I2C imply SYS_I2C_OCORES + imply SPL_I2C_SUPPORT diff --git a/arch/riscv/dts/fu740-c000-u-boot.dtsi b/arch/riscv/dts/fu740-c000-u-boot.dtsi index a5d0688b06..a6f7a0873e 100644 --- a/arch/riscv/dts/fu740-c000-u-boot.dtsi +++ b/arch/riscv/dts/fu740-c000-u-boot.dtsi @@ -95,6 +95,10 @@ u-boot,dm-spl; }; +&i2c0 { + u-boot,dm-spl; +}; + ð0 { assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>; assigned-clock-rates = <125125000>;