From patchwork Tue Sep 15 14:17:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1364388 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=hv2DSG2o; 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 4BrQNH1ypNz9sTN for ; Wed, 16 Sep 2020 00:19:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E162A82341; Tue, 15 Sep 2020 16:17:59 +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="hv2DSG2o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0AFB882338; Tue, 15 Sep 2020 16:17:51 +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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) (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 C606882320 for ; Tue, 15 Sep 2020 16:17:46 +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-qv1-xf42.google.com with SMTP id di5so1741918qvb.13 for ; Tue, 15 Sep 2020 07:17:46 -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=kklbT7TtQipnusqyJ/jUfVy8CIrlv2Vu/1HYeZN2/L8=; b=hv2DSG2oWzLK5U7Nad87Qkoqv9U5wdUesWrzfoXXe6RGu/sTzBU/Xu650ao77V1zH/ z4JWWHsH9x3ADE7tSQl8E3wvlZLb0G9TaBk/Aiu4P58tEYQdf7MYjC/edmcbCobU3wm1 xEncpSDE64BNJK31ZUIJR4euyKzai005pu3n8uRMTfrra4CD2j4N/U+l58j7znFRAn+C LU22z8rjgZZnmKLhwN8BzbsaGbf22iMbZl/VW6PzAehsaQdFWJkJ1WQ+uADPzBd7Sgls qG3tHAG+/bbMdqcD+ojWfBCm8scl+xBWwbDk+yJomSygOyhpNHL5AeYxhnQz5xmvxuyt W8lw== 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=kklbT7TtQipnusqyJ/jUfVy8CIrlv2Vu/1HYeZN2/L8=; b=j0/px/OTxIt3URYPjyIx70n3PvB36WIz2g8348lR50Aml3MEyqPg8yYmgQqo1/lTLg u07x/pFYg5n/N0WGhWk7SAL6TjtPKF88hKZXcXq/9/cwIEuwRhdagF2dyIB3u8ye0fNc DvDy77a9whOKrZCoOB1NuFJ/sa17fWMKUNbGLtVFdCJalwMRlzGkFgH01iif7APrcqBW LgjC3jdzD3p67vWMuL9HuaMJccmNT99O1eyxX+aldtfFy8/ij0VldQieVKptuEzUkqUm oZBuZpJl8Omy7g9QzK3Pe15t2+HhwIq6ieD7fsrJvFsyrMAOVYwRuydhudZQFjbv10tH pluA== X-Gm-Message-State: AOAM5320mX1Je5Tb0oQeFLtow3QFHjTG9G8X8vMQ65Z7dlNSEf9kOCtF 2iUAmJIozPrG6+L/7kA5fBq+uuCKXBQ4vmJ/ X-Google-Smtp-Source: ABdhPJwayaQ+Fc44jmUfqS498V1/FonYlldGz9WXMxK5gBtFMZd71nczof7ZO5DdRfNyyo4/btC0NQ== X-Received: by 2002:ad4:5565:: with SMTP id w5mr17821020qvy.24.1600179465598; Tue, 15 Sep 2020 07:17:45 -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 r78sm17600839qka.95.2020.09.15.07.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 07:17:45 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Bin Meng , Pragnesh Patel , Anup Patel , Rick Chen , Sean Anderson , Pragnesh Patel , Bin Meng Subject: [PATCH v5 9/9] riscv: Update SiFive device tree for new CLINT driver Date: Tue, 15 Sep 2020 10:17:24 -0400 Message-Id: <20200915141724.503929-10-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915141724.503929-1-seanga2@gmail.com> References: <20200915141724.503929-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 currently do this in a u-boot specific dts, but hopefully we can get these bindings added in Linux in the future. Signed-off-by: Sean Anderson Reviewed-by: Pragnesh Patel Reviewed-by: Bin Meng --- This patch builds but has NOT been tested. (no changes since v2) 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;