Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1011210rwd; Sun, 14 May 2023 10:34:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71X30Zyu22k0bOFWk+Zzts5lVIBF2ukmFmLVjN/ZTmU2nvs+j2Zo2It54ibMjAqI4XqqAd X-Received: by 2002:a17:902:d50d:b0:1ac:5382:6e24 with SMTP id b13-20020a170902d50d00b001ac53826e24mr35928241plg.10.1684085642943; Sun, 14 May 2023 10:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684085642; cv=none; d=google.com; s=arc-20160816; b=OgtIq5GbS8jZNdFDdCYgSDJTRRyyOAKCV1Gj21ZVHLZX5O8ZLr1B8dmxCnzvCs06Rz xVxalsHlkqjoFmwrIyJ569ZCm5xr1GnFSj0E/joN3K6Trmcao0RLIyvHEKBcTnSxf44t wNaBvrjYkhn9UXAsJvNJk26DYXZ9rrw+e/Ktz4hoWwF787Hh1IpoOirbae4j5XNa9CRq YUOdPJWGJWyl1LAuYgID2+yXwE33CA0uGdmIyTCJx+gf9XalWlFfKnE5jACKbZUWOyUP 1Dqb2h6QeY8gT7nj1GbOgrI0fwD7CfOD8UcncHRJ0TPPVEWglJUZJuS9ig2FqMoX+8K+ SvNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hAg9m9b5bbuqokDT3+nLnArkQbsszyNus0GGmduwypI=; b=sFDljUM8qMyBNGv7Bat2t9dvNbGLbs/m620FwE3KgRJoMssd3QiRypUb+BCzexXaiz 2Gzq/lpJ/5HMOSIK9a/UbcSeCt9hNsEFjp6JGPSmvMzolcJqE8WJsp5JxD/v4FcWmmJJ cBrEWxvYc2PEsuLIiiHx8zwtbu2cjLxRq5lEbgtDkhb9lY7V8mGuHIBbBc9v6RIuJfX2 1zWuqsd444YOF6WMkuqYKztS+0Hb6Y0Zp/tc4a5JZRALs2DQH0wDvnOBGlOCzVXnIka/ KN8O/nLAERaNCwuxHKbptcab1wO612+q01TAcfVQGMH0+n0Q4gkOe1kzFpc1Ypp1j/hc WgZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CDyTcj12; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a17090332d200b001a4ee96c00bsi15493323plr.357.2023.05.14.10.33.48; Sun, 14 May 2023 10:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CDyTcj12; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238010AbjENRJP (ORCPT + 99 others); Sun, 14 May 2023 13:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234828AbjENRIv (ORCPT ); Sun, 14 May 2023 13:08:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A598E4C0D; Sun, 14 May 2023 10:08:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 14D0861147; Sun, 14 May 2023 17:08:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C8C1C433A0; Sun, 14 May 2023 17:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684084108; bh=BOyxLfrCWvSizG1Nhwu7D7DzYq+zL8tuApgSf+neFXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CDyTcj12XWqlEfQ3Lv0lUbrwtVy+ojFxGHoqe8wVFrA6mtSq7WPfP88clO7mgZ3gi 7BGaNooqq7a4D6qgpX8imo9s6zO79ovmS3gKEo1CEMmJFbEW/iHNmFv1kc3e9S1m5f FzEI0bXQaHHq0Nap1NoBQcFyrcm7hRvZ4R/PvaJHcEZsTsB0Jx7In6aBw2Fl/CaNwQ kiHEbDlDtGcA9pI+mHZxHW4BuChSNc3Y/IfaQbOCMsjQgmy1/GbTmG1GzpVkJGHMm5 kR82BJrCkCodw0QqPGG0mhQKqjOC7VY54TcyC+2CaI+4E9RpTm6d7Oo2JuvFmDWLtD XvW7BcwH1OFtg== From: Jisheng Zhang To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Greg Kroah-Hartman , Jiri Slaby Cc: Samuel Holland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Palmer Dabbelt Subject: [PATCH v3 07/10] riscv: dts: bouffalolab: add the bl808 SoC base device tree Date: Mon, 15 May 2023 00:56:48 +0800 Message-Id: <20230514165651.2199-8-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230514165651.2199-1-jszhang@kernel.org> References: <20230514165651.2199-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a baisc dtsi for the bouffalolab bl808 SoC. Signed-off-by: Jisheng Zhang Acked-by: Palmer Dabbelt --- arch/riscv/boot/dts/bouffalolab/bl808.dtsi | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808.dtsi diff --git a/arch/riscv/boot/dts/bouffalolab/bl808.dtsi b/arch/riscv/boot/dts/bouffalolab/bl808.dtsi new file mode 100644 index 000000000000..b1132b8cf9e8 --- /dev/null +++ b/arch/riscv/boot/dts/bouffalolab/bl808.dtsi @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2022 Jisheng Zhang + */ + +#include + +/ { + compatible = "bouffalolab,bl808"; + #address-cells = <1>; + #size-cells = <1>; + + cpus { + timebase-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "thead,c906", "riscv"; + device_type = "cpu"; + reg = <0>; + d-cache-block-size = <64>; + d-cache-sets = <256>; + d-cache-size = <32768>; + i-cache-block-size = <64>; + i-cache-sets = <128>; + i-cache-size = <32768>; + mmu-type = "riscv,sv39"; + riscv,isa = "rv64imafdc"; + + cpu0_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + }; + + xtal: xtal-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board */ + clock-frequency = <0>; + }; + + soc { + compatible = "simple-bus"; + ranges; + interrupt-parent = <&plic>; + dma-noncoherent; + #address-cells = <1>; + #size-cells = <1>; + + uart3: serial@30002000 { + compatible = "bouffalolab,bl808-uart"; + reg = <0x30002000 0x1000>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&xtal>; + status = "disabled"; + }; + + plic: interrupt-controller@e0000000 { + compatible = "bouffalolab,bl808-plic", "thead,c900-plic"; + reg = <0xe0000000 0x4000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <2>; + riscv,ndev = <82>; + }; + }; +}; -- 2.40.0