Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp344282rdb; Fri, 6 Oct 2023 05:27:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0v0B2RaVNTsWzw20dKkUS776XXot0uSZ1Q/ZtXHZbloLSDQ8lPheUmeZ6sRq2qBs1fedb X-Received: by 2002:a17:902:7207:b0:1bd:ca80:6fe6 with SMTP id ba7-20020a170902720700b001bdca806fe6mr6973383plb.41.1696595264792; Fri, 06 Oct 2023 05:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696595264; cv=none; d=google.com; s=arc-20160816; b=NLr8tDC81PAah9FSlHbM/vpq6aPRLo25SgvYRUnY7ZTikqW+pRLdX4SlUiVFnvLwSR A21BM0PwM2InfqZzRRe7jXcZVmG2GXLbsca5FTpEqtFdZsTTF4Fp6OrWDyMsurwuk8rI z3SZFLzYxyeeXmq9nha8V/XYzx0myQwCbqo6kpn2CBWY9HjKk+MsglnWJ+7B1bipQ8lQ vCLEF+P4SHF5MmFlnlhuB7tPEseF2sG0WtlzQ4QI8/9czhSNyYyrjr55Bv92gOhlPX/i Qu5fP98p2aDzXqb6x5JsR319Dqo7t3S6yShXjvTVKcv98Eklr52/dwhfYJDW8NC0I7uS WLKA== 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=3nFlmgg7pVw6TYc7R34xU9m2crBJy7a0tNMmZfbhaNw=; fh=PL+jw543japD/FEzQT69fH7KXjCzGKmFUDOoJdIQErQ=; b=sR1iVfiOm9xSJUx5mQkoozWkJZZtE1AHg9xPkw/q6civW4KQhxQyRt13zXIsQ+ILQc cSkijwDi0G4LrXRDiUdTErzZnlzrmeKHIT0aLLZywjwCEyGgHtFkuRLtRgvp11NlvJVH /Kt36bUDqqv/qM4Pu5Ugi8wh+MxR6zifY7wuiaLussVUguqP8/HGpWswy3i0hWIKd0Kw 1Th+rW55ZZ7dhVxInRuAo6nBEyieeSIOA1XiuprNFaD8/j4y8s2oF+xCnRo6x/10fCiX pCa0f2FxLJNYWWHg3o8GXOLyLSr5fNUhdkLtxzQRnUZG2GI27PWKM7UbLovYPbyR9Bfj OUHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l9Zm4Xpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d10-20020a170903230a00b001c5db1e47c3si3822352plh.553.2023.10.06.05.27.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 05:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l9Zm4Xpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 169B6802B178; Fri, 6 Oct 2023 05:27:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232283AbjJFM1U (ORCPT + 99 others); Fri, 6 Oct 2023 08:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232257AbjJFM1Q (ORCPT ); Fri, 6 Oct 2023 08:27:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903DEE9 for ; Fri, 6 Oct 2023 05:27:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3600EC116A7; Fri, 6 Oct 2023 12:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696595233; bh=RtdMEoqo8nayEQ4k8BfxK/6NPIxdjeCli2iRVgA15Qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l9Zm4XpqcRXxtoKBJ04/OP2WV4jBlgdVOmS+pJWo0bE4lEilHOgidYWUHIXLM6bHS IzwlrGHDYYQg4jsC7LSgmgWQ/WnB4i62BF9L8muVDrWTRqsURMvOM2oJvCnWRXJ18j T/ukWIQtJ/2wYXWptjfh1DluHgU7a51xfTo6oyEbnLnE/zEYEi6MRcDtKKK3NU6Pmf Smm4b938sKDqReI6BKx5sOe+bwcR6RHz30msy9DW9c0slSSSq1qgmYnBnqUT7Nk8SC MLIr3hBjTtrQb3W8HSoLrwcKKDQIsYQoy7HzmeArK3UUxC5lKEeUuC7UVOky8jqkC7 /eCzsLbTMzZAA== From: Jisheng Zhang To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Inochi Amaoto Subject: [PATCH v2 5/5] riscv: dts: sophgo: add Milk-V Duo board device tree Date: Fri, 6 Oct 2023 20:14:49 +0800 Message-Id: <20231006121449.721-6-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20231006121449.721-1-jszhang@kernel.org> References: <20231006121449.721-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 06 Oct 2023 05:27:42 -0700 (PDT) X-Spam-Level: ** Milk-V Duo[1] board is an embedded development platform based on the CV1800B chip. Add minimal device tree files for the development board. Support basic uart drivers, so supports booting to a basic shell. Link: https://milkv.io/duo [1] Signed-off-by: Jisheng Zhang --- arch/riscv/boot/dts/sophgo/Makefile | 2 +- .../boot/dts/sophgo/cv1800b-milkv-duo.dts | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile index 5a471b19df22..3fb65512c631 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb - diff --git a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts new file mode 100644 index 000000000000..3af9e34b3bc7 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 Jisheng Zhang + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo"; + compatible = "milkv,duo", "sophgo,cv1800b"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x3f40000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&uart0 { + status = "okay"; +}; -- 2.40.1