From patchwork Tue Sep 1 10:32:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1354889 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=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=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=jULq28RL; 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 4Bgk1v1xlvz9sTS for ; Tue, 1 Sep 2020 20:33:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7C1982296; Tue, 1 Sep 2020 12:32:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="jULq28RL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5AD9E8229D; Tue, 1 Sep 2020 12:32:23 +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,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (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 C7BD582281 for ; Tue, 1 Sep 2020 12:32:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x741.google.com with SMTP id p25so428730qkp.2 for ; Tue, 01 Sep 2020 03:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bGImLtY9TIhsR22dAafPzW7OctGPl1GYdrCgEq/UliE=; b=jULq28RLdFXknIisCS0ZGu+AyGl8SpNiP85WQ0ioSjxx0W9cD38l02oeo6kSG0LvgO tyU1mUcdhXneRukC1jbcGx30vO/SHA6LF4j/tKkQuQ327LrJO44VDmyCWK2Qno9GxbQr L1TZAa1uyCCD0Uzq3bCpDcxT4SFrYOhZDoLCCqBCBNP1T6fjeei1br56tliKVd8ZX0uK ZsMH6aqsAItAE2bO53Dsa0s2cZEhMfP4gehkPVM2bzs1lAhB3SV7BGDCBnF8pdgsw3wz 52zSTE6usOUUv9vgo9LUNtAKsEaYZY3ooTTcHIvl5QVI0PuffVFVL2q8hV7VHgoo9CuH xeyA== 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=bGImLtY9TIhsR22dAafPzW7OctGPl1GYdrCgEq/UliE=; b=nKt3g8nOLTRpgROfeuLLqOBARsJGWRB6FTFupEyIdZeFDFgLOK1OXlSCbqJpbENWxq D8u52W2YjAV+I9PNjC3AKCQcNpA0iohc5+5OujQ+qh/VMu+YpA4AN3GMtfTQ60eyiNqp +yo3Ibnt8B8CP/OYx98M8V4sMPbGeOHQjyEzJdGgdSSJ0vF/uYRYq9eNODRqGPKAW6m3 BGDNFDWwR/pB2zpzw0ns2Y5t37yfSy8WvbPwpLAOOYALckCQige0RhFJ6SLd8j47f/rk aGPBcHbw1L7Fi3dl935ON5nyDoDSS1sZi423c8Wpuae2BgFNOH4HQy6afUXEqtYJsngz NXeg== X-Gm-Message-State: AOAM533CK18+OJrc94R0+pZUwhpIteZDw9h0lptdGjTDn5ot4F39eZOb MZDeLLLAf9nNt+oY3kN1FszP6GOtfC0+rg== X-Google-Smtp-Source: ABdhPJzuH89y8myZLhaRPm4VzdmUrR248hIspJe2PsEdau8PNMdIfSRrKSEXJN+G7DYcfkxNo9WPiw== X-Received: by 2002:a37:5646:: with SMTP id k67mr1140170qkb.476.1598956339621; Tue, 01 Sep 2020 03:32:19 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id q190sm1080348qkf.20.2020.09.01.03.32.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 03:32:19 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Rick Chen , Bin Meng , Pragnesh Patel , Sean Anderson Subject: [PATCH v3 7/7] riscv: Update SiFive device tree for new CLINT driver Date: Tue, 1 Sep 2020 06:32:08 -0400 Message-Id: <20200901103208.440316-8-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200901103208.440316-1-seanga2@gmail.com> References: <20200901103208.440316-1-seanga2@gmail.com> 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 We may need to add a clock-frequency binding like for the K210. Signed-off-by: Sean Anderson Reviewed-by: Pragnesh Patel --- This patch builds but has NOT been tested. Changes in v3: - Rebase Changes in v2: - Fix SiFive CLINT not getting tick-rate from rtcclk arch/riscv/dts/fu540-c000-u-boot.dtsi | 8 ++++++-- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi b/arch/riscv/dts/fu540-c000-u-boot.dtsi index 5302677ee4..a06e1b11c6 100644 --- a/arch/riscv/dts/fu540-c000-u-boot.dtsi +++ b/arch/riscv/dts/fu540-c000-u-boot.dtsi @@ -55,9 +55,13 @@ reg = <0x0 0x10070000 0x0 0x1000>; fuse-count = <0x1000>; }; - clint@2000000 { + clint: clint@2000000 { compatible = "riscv,clint0"; - interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7 &cpu2_intc 3 &cpu2_intc 7 &cpu3_intc 3 &cpu3_intc 7 &cpu4_intc 3 &cpu4_intc 7>; + interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 + &cpu1_intc 3 &cpu1_intc 7 + &cpu2_intc 3 &cpu2_intc 7 + &cpu3_intc 3 &cpu3_intc 7 + &cpu4_intc 3 &cpu4_intc 7>; reg = <0x0 0x2000000 0x0 0xc0000>; u-boot,dm-spl; }; diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index 5d0c928b29..1996149c95 100644 --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -34,6 +34,10 @@ }; +&clint { + clocks = <&rtcclk>; +}; + &qspi0 { u-boot,dm-spl;