Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp149484lqb; Thu, 23 May 2024 13:37:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWL5V85l+xW4ov7MML51H4rhQnt8C6wZLWMPWQgzDWhExLPZAmSOl7Uuuv56liNcKfMYkI+NzmnwAPAuw2WPvQ2bMqEUXAopBdP8A6UFA== X-Google-Smtp-Source: AGHT+IHn6oOl1KaQRhpl+dp0freDk8e3fgJ9lKlpo/mnhezjrBY3dQ/6zVAf1mKyYiSrvRHdnIPT X-Received: by 2002:a19:381d:0:b0:523:889a:ebd with SMTP id 2adb3069b0e04-52964ea947bmr103852e87.24.1716496663602; Thu, 23 May 2024 13:37:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716496663; cv=pass; d=google.com; s=arc-20160816; b=MTeK1X9B4kN2dn4XFQVPu/imF7gjCspneqtgBISOpTIjgV09P+pY5oeSGYBz+qfTHb FrlIUBP3nBs0FTiwlXdpCy28epUoApv4AwKaR9ATXgLzmMwwngnEIj1k8IrbawGNIk7Y E3iIsm1Ph6XLgy9eWh/VLINPiu4DdZhFDb850FjhSpI2+rRDCRxGdtHQcCt6Fzr9Tek9 a7vXeVtiejgeqHDP0hd3niCIheQXSVxIPOqMypZRqeU3a7RXHeeASNxkO0vFvjOxtstW u44boc5VkYS0Aodi/xODH9Fge/PXCp336ipZ2oDJZOHx7oKVskcMm50HbuWy1a/X4IJu JbHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4mCYQOucXHkzPzuxeSXoj7RNoEsjBU+3ZqxpnS0/TLs=; fh=alrgzByb+uG7Ym6YaBhHUclCrmJdU8FIyGu3EHzj0vA=; b=dK0SydFvKmpiQNUrJPXOkSd1RUKjypbLFCUbGoZkFZnhNt9s/ZkvOgWmp/k7x/4H83 XM8sDVzavCgHIF8e/wHwXmO2vVixE4hYEyzmkplJ8rAO7zj4FrsOz32EPE047IMg8OA8 Rc7TzoC5l/esAq3TTeRlcxDQF2eQbxFY27Zh0OWVUCn6uk6rhRyUWRHXpIFgwS/aUfMb HMa/g2OH4oxkgoIUdKMV1UV9Gfys3v10bgh5wBOMfuzk8mEa50Btj6lSEAY5tZwkJPG9 Qk/D+9jwozH+74l4JvduGR9uC0XsTjSN4SrzA3eZoj/dZP9F29VFFQaPtyJF0oWp4Edg s9Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZ65mTBD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-187970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd964e1si4159266b.710.2024.05.23.13.37.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 13:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZ65mTBD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-187970-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 694091F24A0A for ; Thu, 23 May 2024 20:27:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0264484DE2; Thu, 23 May 2024 20:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HZ65mTBD" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B65280632 for ; Thu, 23 May 2024 20:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716496055; cv=none; b=BD9TWhP0Kka02wTdTigywvbc8rYWoUw7AkCUJwspGIvZea83LB5N7eK0ZU5Hpha8r2HVydeqLK/HTrAVQJSBrO/ONQiKDsVujqkjxIO+PUKsm4zUzHUPAsRrj86bd+pi9NWXMgQyksQMqXv477zsR+2SEJWvbPvpo7G3rTqKKnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716496055; c=relaxed/simple; bh=c2lXC7rZq0RgDOLyx0NsOE+TDxw1lwT1aLua6AP15yo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=TdwT2FVfpYpTaV0czTSyjOncxT06IKBJ74Qt72MiWaCMLaiuntivqURI5CinLO3aQPPtDOZu5xTDnJvQd1KdKGEW+Y22GNUfL8h3lvcnrj/0we6xTRwe5ZJ5Av/rY5Y92OQ/QNg8htpX8sfLb6hAZVpvJI6DGmIzh0I+PJXqmto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HZ65mTBD; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-354dfe54738so1772087f8f.3 for ; Thu, 23 May 2024 13:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716496052; x=1717100852; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4mCYQOucXHkzPzuxeSXoj7RNoEsjBU+3ZqxpnS0/TLs=; b=HZ65mTBDTmhstLav8ffJ81eEeyt+6SLLAXi3YLzw4EGONMsTYCheZslQpnl0GYjRA2 CftKAQ90zTff3G7cQqkTH6ISy6BQCqFnU4nXRcSAFCCWSjOvP6vxr+WMud5knt3FRQI5 pX4GxK5kG/vMBZ8lj8rUOblNR7e8DkhH1BLFtpWuTA6E3MxWqLGwASWPUVlCTksJgTzz japRxS1anao7Jf5I3+PwOslM3HO6Rjytp8OA9Vr+Mpfjr41+qi3F0/H4/CttJitYVXa/ /kfhybNpWEEtWGzT3pWZNDnC/fBqkd5x0YSDjFa3mjs62O2fcBMn7OWjo2ozs9WIzeml bhcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716496052; x=1717100852; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4mCYQOucXHkzPzuxeSXoj7RNoEsjBU+3ZqxpnS0/TLs=; b=vqm1g7So1MVO1lXUV3EsR/xOFAGjTwca0e90eX+pQTH2PO4vktImIgrkFILk1/Svs/ Kjl4fUuBp84oC7s/inRckbY6wvWmXkd9UlA8508akKlS1fmPKX724S+PKIhF2tJp+cSd 82fbHKaY42NMW+XM/I+m9orRNcO76ffR/6KSunNX44Wgaa7okxV86MG1b8ykHS4+Oj/I oSSSJqF0FUZ+Hr+afrf0CvoDgwMAnZ1ZZ7o/e3jDDKSiycyKNia9B0sBYeDYy3KXCOro nVIIb+78eWOiscgDy671qPOXcqie6GiM5EJzrSJo6oBTmgFfONFxwg6FFDCbfAqym/lJ Wj4w== X-Forwarded-Encrypted: i=1; AJvYcCXXxyG2FZOac2jh1CMcQOnPbIyT0pf6/dl5TES6zTamxFAo8OLGeqGh5e0sHRqIHKXQcmXVlFVwHCZr37UimZkI877ltvKRnPpgqrpU X-Gm-Message-State: AOJu0YyE8HLH5V+Heg7yw2TDMPnxZ1LzDKLWRUtGj1yNb2Q+Amdt3gCg ZmSUKyvnGG0B0TlU7+t9S8gOL94+CquXQpYYlt9Xo+iGr1PRhcVdeTdTYZi0mYc= X-Received: by 2002:a7b:c40e:0:b0:41e:1bc1:36de with SMTP id 5b1f17b1804b1-42108a03095mr1484915e9.26.1716496052347; Thu, 23 May 2024 13:27:32 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c817974sm6629166b.25.2024.05.23.13.27.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 May 2024 13:27:31 -0700 (PDT) Message-ID: <0ccbc35a-434a-47cd-b54c-02fec2cd9ccb@linaro.org> Date: Thu, 23 May 2024 22:27:30 +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] RISC-V: add Star64 board devicetree To: H Bell , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , "devicetree@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b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ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23/05/2024 21:06, H Bell wrote: > The Pine64 Star64 is a development board based on the Starfive JH7110 SoC. > The board features: > > - JH7110 SoC > - 4/8 GiB LPDDR4 DRAM > - AXP15060 PMIC > - 40 pin GPIO header > - 1x USB 3.0 host port > - 3x USB 2.0 host port > - 1x eMMC slot > - 1x MicroSD slot > - 1x QSPI Flash > - 2x 1Gbps Ethernet port > - 1x HDMI port > - 1x 4-lane DSI > - 1x 2-lane CSI > - 1x PCIe 2.0 x1 lane > > Signed-off-by: Henry Bell > Cc: Conor Dooley > --- > arch/riscv/boot/dts/starfive/Makefile | 1 + > .../dts/starfive/jh7110-pine64-star64.dts | 62 +++++++++++++++++++ > 2 files changed, 63 insertions(+) > create mode 100644 arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts > > diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile > index 2fa0cd7f31c3..7a163a7d6ba3 100644 > --- a/arch/riscv/boot/dts/starfive/Makefile > +++ b/arch/riscv/boot/dts/starfive/Makefile > @@ -9,5 +9,6 @@ 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-pine64-star64.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-pine64-star64.dts b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts > new file mode 100644 > index 000000000000..c70fffd51181 > --- /dev/null > +++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts > @@ -0,0 +1,62 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT > +/* > +* Copyright (C) 2022 StarFive Technology Co., Ltd. > +* Copyright (C) 2022 Emil Renner Berthing > +*/ > + > +/dts-v1/; > +#include "jh7110-common.dtsi" > + > +/ { > + model = "Pine64 Star64"; > + compatible = "pine64,star64", "starfive,jh7110"; Please run scripts/checkpatch.pl and fix reported warnings. Then please run `scripts/checkpatch.pl --strict` and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. It does not look like you tested the DTS against bindings. Please run `make dtbs_check W=1` (see Documentation/devicetree/bindings/writing-schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ for instructions). > + aliases { > + ethernet1 = &gmac1; > + }; Messed indentation. > +}; > + > +&gmac0 { > + starfive,tx-use-rgmii-clk; > + assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; > + assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; > +}; > + > +&gmac1 { > + phy-handle = <&phy1>; > + phy-mode = "rgmii-id"; > + status = "okay"; Status is the last property. Please read DTS coding style. Best regards, Krzysztof