Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1434168lqz; Mon, 1 Apr 2024 06:28:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0blJtDfwmjhO2mcQ+WNQXXR4fGKBAM9W+trUvI6bPFBB0cN1upAeZ2Dfdl2bOROn4ijaYt7aCk6QoUewtjHBRnxQtcWoogxir5WQM5Q== X-Google-Smtp-Source: AGHT+IHeZd4SJb1Gmt2HK9vs9I3hHJUR3JNqtfG02j3/zs8zBohwJ80qNg5HJrDvwmeZb8gFNd95 X-Received: by 2002:a05:6a20:7a84:b0:1a3:5582:4ec0 with SMTP id u4-20020a056a207a8400b001a355824ec0mr6742623pzh.16.1711978117144; Mon, 01 Apr 2024 06:28:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711978117; cv=pass; d=google.com; s=arc-20160816; b=iWqJTJLtLAHd4nbzM5KeCT5S0ACKGfaT6prnxOAoJKmag5uDrCSiQH0vmZaTUgXyKI eUjbzTEqLc+/uxiLzrSS9ucybkfE5a0jiWip/ma8Pawj92V4JG7GH8onzvZxE0LZPA1q WMYefMRX8/eDkdVqea8Itfp6mBmdKFKm1t2uTVuSq35otE09EO0qFSbEHr1jGgIEsESt QlMPuhEF7lPt9KwJbl2OqRy7+GuN4w6DYipcpGWN1f13yfasVe+ibUBj6EgdCli4CWQd NcG5zDiEQAOjS1yC+CMwP2Ekpeli6gwxgBE9rjXfoLGlScQ1qAw2ee6N3ml30BdFiTnX rwlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=oGhJ4V2yDKtusjzSQjWAuQewc4y5aRN6k0toC9A0ZI0=; fh=VvbWB1auSSOgbBPItj4V+6AkMNdNYLx/x4GIa5Z/TqU=; b=xa9zOXFU6IP6AqtuzCqh53FUab64EdX5/auCCh+6/UJ+HghfC20Q6+YUDQBXcR9tws ks/v9TBX702w0WutFH07cuLsgwWkaMErFZqJnYKv3WmeCHtVXJoADYp9IB/fkN8nGP8X aL/deh7tqHlF/xPsYKF56vBll0Y5xQ67vnr5U4j1M14IKhQMC8fdg+alfuiC8UDnZZoZ mvD3DW6tctDu9vyf/HmkiOYPaesHxJ6JCahvXHM6D28pHzZxOcnEeBTXU3BlVrxNJBhL 2QCTt5BUVkvzWdp+fyc52CpdYlXkE6Iu/NqOFyFixan0f0qC9H1hvyO7/7cCGFb17OJ1 xasA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=YujIg3tM; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-126684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v11-20020a17090a898b00b002a20d2cf9e8si7919679pjn.157.2024.04.01.06.28.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=YujIg3tM; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-126684-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CB138281F8E for ; Mon, 1 Apr 2024 13:28:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40A293F9CE; Mon, 1 Apr 2024 13:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="YujIg3tM" Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC54B3F8F4 for ; Mon, 1 Apr 2024 13:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711978110; cv=none; b=jHDFPyDiXEAplTAhZWVSFGMazmu6qTbsarfFM2CG/45Liag8bl7FKvhbC9Q0wtT97oHI0K+e07pJF3o5PaGbzkQyJ9xQFfsQy9yS+VpqIue5qIdMeM0heaJTNnE2w6RXZ/8CRSsLWwwT20veMpR+DaCzWU5S7TunNNe9M+Aww2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711978110; c=relaxed/simple; bh=8z9zTWWaTWUGFIwjxk/XHKjKav7voFSwM/P26NH3VoI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KVR1djbIPkILxTvR+/J0wCzHkou1eqxlTcKZEu6Lx7IoBcU4Ak+f02WpHYY1ROA6eXvvztogGjMiViBPP4YYCPR8SBt7BCLG6Zjg0zpEuixQIWENE4Xftg581yF5pELKQMFL3+xmKmDOZkhMqFnZe9KjB5u3NMAZRW6asut7vKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=YujIg3tM; arc=none smtp.client-ip=185.125.188.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 83C8B42494 for ; Mon, 1 Apr 2024 13:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1711978101; bh=oGhJ4V2yDKtusjzSQjWAuQewc4y5aRN6k0toC9A0ZI0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YujIg3tMxjIAfv6g7L63frDu8e7WrvdfYmtLG/tPhE9EQ4YkDoUPGwRNOT3vFph9O 82VDjM1xc7MeWDaWZ6GvuK8s8dDPuSKC//Guhn/AQe1h/yZ6WPzusxLvXyu47wM4na IUFhfRu43TjsnHBFaj/8KQbsMijy6JMIkFlOQWvbm5UJlYaEYCbCqKsqH4r2ZF8UDG 3gStxNrd4mdC/YLrXI+e3c626LpVUi9CLWn6+16V90UWynxwS8vaBWetrrn+pya9fN gPcNpLmejmgn9IvBs8kTkU/bZOifgVi/VIOqQNvjrTyJX7+Y/jy3BOxPupZUBcAc6y 6VXNsA8U3IG2A== Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-41401eb321fso15390375e9.3 for ; Mon, 01 Apr 2024 06:28:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711978101; x=1712582901; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oGhJ4V2yDKtusjzSQjWAuQewc4y5aRN6k0toC9A0ZI0=; b=egmsAFxo/RiF8T95x+jXJu5I5jbm3sKb8VA1J5G6X1Q5E030GwhUBHbGUvTllcYH0/ VQ8hPoZF7259fKJ5mdYucL2Wcl0eR4hrWI6Rklyl/MDGB700p27FfhYi7uBJg8xtpb08 IRnHIZViCElpwae3qnwPDBkYJWddZv9vk6J2PC1s5BDMMohyW+Fnpv2OKxsSMcslVF0q PbjGpvQh5jVJ9JS7fw3BL+kib3DY8LizsWzCJIDylz5ZaDq/UN1lZJlOV7p7ixNaF37C 3kVGzmvJM4NV9MCsOEhAFVVC5cxGq6LSF01o2guLOILM2YHVHZtGp516hawR0HEK2+aO 1Zyw== X-Forwarded-Encrypted: i=1; AJvYcCW7HkU1YqpWIXgjJgAL20CubNCG+rxDekFbWSdP/84HEd/3oyLo/qEUJGWS009nFwwpEYCW/f+dlTdfTcj9rAjvkNWeU7wWwixwLX3z X-Gm-Message-State: AOJu0Yy0jK84Wz8QUhS4a+U98GKYXB/N74brlw+oH6sEi8k3/ki8g7W7 Ep0MVTmERckGIiyoU41ZQkLgZ5qRCxADwkFU24gKESy7Kc/e66zsuzKFR2jguFUD0PEqR7uEVDq rlNser9bdHeRSt3GT6fWRjqY9AYZlKYe3z0Nlb+E52KWC+JoxavIkB1ly9N/WD9Pl5RIj+CScz7 NmhA== X-Received: by 2002:a05:600c:518c:b0:412:e50f:acaf with SMTP id fa12-20020a05600c518c00b00412e50facafmr6537223wmb.24.1711978101147; Mon, 01 Apr 2024 06:28:21 -0700 (PDT) X-Received: by 2002:a05:600c:518c:b0:412:e50f:acaf with SMTP id fa12-20020a05600c518c00b00412e50facafmr6537199wmb.24.1711978100772; Mon, 01 Apr 2024 06:28:20 -0700 (PDT) Received: from [192.168.123.161] (ip-062-143-245-032.um16.pools.vodafone-ip.de. [62.143.245.32]) by smtp.gmail.com with ESMTPSA id r11-20020a05600c35cb00b004149530aa97sm14908053wmq.10.2024.04.01.06.28.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Apr 2024 06:28:19 -0700 (PDT) Message-ID: <013f6d51-7f78-4de0-945d-8902f32c850a@canonical.com> Date: Mon, 1 Apr 2024 15:28:33 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 6/6] riscv: dts: starfive: add Milkv Mars board device tree To: Jisheng Zhang Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Emil Renner Berthing , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley , Aurelien Jarno References: <20240131132600.4067-1-jszhang@kernel.org> <20240131132600.4067-7-jszhang@kernel.org> <20240206-magma-deem-2c88e45a545a@spud> <43918921-0d05-41d3-a19b-f137314e868d@canonical.com> Content-Language: en-US From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/29/24 03:31, Jisheng Zhang wrote: > On Thu, Mar 28, 2024 at 10:28:28PM +0100, Heinrich Schuchardt wrote: >> On 2/6/24 20:13, Conor Dooley wrote: >>> On Wed, Jan 31, 2024 at 09:26:00PM +0800, Jisheng Zhang wrote: >>>> The Milkv Mars is a development board based on the Starfive JH7110 SoC. >>>> The board features: >>>> >>>> - JH7110 SoC >>>> - 1/2/4/8 GiB LPDDR4 DRAM >>>> - AXP15060 PMIC >>>> - 40 pin GPIO header >>>> - 3x USB 3.0 host port >>>> - 1x USB 2.0 host port >>>> - 1x M.2 E-Key >>>> - 1x eMMC slot >>>> - 1x MicroSD slot >>>> - 1x QSPI Flash >>>> - 1x 1Gbps Ethernet port >>>> - 1x HDMI port >>>> - 1x 2-lane DSI and 1x 4-lane DSI >>>> - 1x 2-lane CSI >>>> >>>> Add the devicetree file describing the currently supported features, >>>> namely PMIC, UART, I2C, GPIO, SD card, QSPI Flash, eMMC and Ethernet. >>>> >>>> Signed-off-by: Jisheng Zhang >>> >>> Got a dtbs_check issue in the patchwork CI: >>> >>> +arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dtb: gmac1-rgmii-rxin-clock: 'clock-frequency' is a required property >>> + from schema $id: http://devicetree.org/schemas/clock/fixed-clock.yaml# >>> +arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dtb: gmac1-rmii-refin-clock: 'clock-frequency' is a required property >>> + from schema $id: http://devicetree.org/schemas/clock/fixed-clock.yaml# >>> >>> Can you fix that please? Also, I applied some patches the other day that >>> seem to conflict quite a bit with the common board dts patch. Would you >>> please do a rebase on top of that please? >>> >>> Cheers, >>> Conor. >>> >>>> --- >>>> arch/riscv/boot/dts/starfive/Makefile | 1 + >>>> .../boot/dts/starfive/jh7110-milkv-mars.dts | 35 +++++++++++++++++++ >>>> 2 files changed, 36 insertions(+) >>>> create mode 100644 arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts >>>> >>>> diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile >>>> index 0141504c0f5c..2fa0cd7f31c3 100644 >>>> --- a/arch/riscv/boot/dts/starfive/Makefile >>>> +++ b/arch/riscv/boot/dts/starfive/Makefile >>>> @@ -8,5 +8,6 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@ >>>> dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb >>>> dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb >>>> +dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb >>>> dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb >>>> dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb >>>> diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts >>>> new file mode 100644 >>>> index 000000000000..de600e799e7d >>>> --- /dev/null >>>> +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts >>>> @@ -0,0 +1,35 @@ >>>> +// SPDX-License-Identifier: GPL-2.0 OR MIT >>>> +/* >>>> + * Copyright (C) 2023 Jisheng Zhang >>>> + */ >>>> + >>>> +/dts-v1/; >>>> +#include "jh7110-visionfive2-mars-common.dtsi" >>>> + >>>> +/ { >>>> + model = "Milk-V Mars"; >>>> + compatible = "milkv,mars", "starfive,jh7110"; >>>> +}; >>>> + >>>> +&gmac0 { >>>> + starfive,tx-use-rgmii-clk; >>>> + assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; >>>> + assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; >>>> +}; >>>> + >>>> + >>>> +&phy0 { >>>> + motorcomm,tx-clk-adj-enabled; >>>> + motorcomm,tx-clk-10-inverted; >>>> + motorcomm,tx-clk-100-inverted; >>>> + motorcomm,tx-clk-1000-inverted; >>>> + motorcomm,rx-clk-drv-microamp = <3970>; >>>> + motorcomm,rx-data-drv-microamp = <2910>; >>>> + rx-internal-delay-ps = <1500>; >>>> + tx-internal-delay-ps = <1500>; >>>> +}; >>>> + >>>> +&mmc1 { >>>> + disable-wp; >> >> Due to which difference is 'disable-wp' necessary for the Mars board and not >> necessary for the VisionFive 2 board? > > Mars doesn't have wp pin, but dunno vf2 case since I don't have a VF2 > board ;) If the Milk-V Mars does not have a WP GPIO, we should be able to drop this property. The VisionFive 2 does not need it either. >> >>>> + cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>; >> >> On my VisionFive 2 1.2B, and 1.3A boards GPIO 41 reflects if an SD-card is >> inserted (as shown in U-Boot by gpio status -a). So shouldn't this value be >> moved to the common include "jh7110-visionfive2-mars-common.dtsi" and >> broken-cd removed from the VisionFive2 board? > > I tested the CD pin and can confirm it works on Mars, but I dunno whether > this works on VF2 since I have no VF2 board. > Could you please check whether it works or not on VF2? As mentioned in my prior mail the card detect GPIO is working on the VisionFive 2. StarFive acknowledged my U-Boot patch: https://lore.kernel.org/u-boot/SHXPR01MB086314C47C281B3DDDF7BAE9E63AA@SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn/ Best regards Heinrich > >> >> https://doc-en.rvspace.org/VisionFive2/PDF/SCH_RV002_V1.2A_20221216.pdf >> has a line >> >> GPIO41 | SD_SDIO0_CD_GPIO41 | Micro SD:J10 >> >> Best regards >> >> Heinrich >> >>>> +}; >>>> -- >>>> 2.43.0 >>