Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2184115rwo; Thu, 3 Aug 2023 06:04:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlF54brEjp2iAVd1Rm9Ue8gLD19j1CBQYHhU5Q1RckK8ygJZmAI+bHgYe0eJiwxkglCCzvNe X-Received: by 2002:a17:90b:4f45:b0:268:3ea0:7160 with SMTP id pj5-20020a17090b4f4500b002683ea07160mr17481430pjb.0.1691067899550; Thu, 03 Aug 2023 06:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691067899; cv=none; d=google.com; s=arc-20160816; b=VRVLgccxhSXmTtg6y1cXwXN9BQudpLGj2JYDLeNwafLLlDCUhtgzz7sUQCoOA55dk4 anC5uAG/4uUoU6cKppwM90zfbn8u5R9JAY4VotwqRUULmQ3dgMRTmHg1A6cVQg7c5HVe 8lclvoIDzAB9Vim9xEuRVUqA33mck1XbR28HSIrvhbHXDJMe419Ro/N7h8QBk1eawnYT rbgs8LIDfQppffbM2FW6yxw4oPJFZKAiVFkPI+5nLfT8XjVS0NjgRez7zsf3IsqVQL9k 12ofMkjgEkl0nUhvN7P0cAJ58svxMbxS6vmgp3wadL54zkhKhKI+dY8n12jaacQTfO5F CIMA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=85F1Xw0hMI6gvIBizDtI/3lOUtuWk75cE7hLiZL+tJ8=; fh=G2BgqHdpegCB6i0qFv/cguR5CAj6JXn1/NKV8j9K6kg=; b=kkl+HY3qjcLrHJ5MSHIo80dF1jIPYpC8kMPwAYUkojJ2kxY7OW11vvFTWYQhWPLMZl 8jacwdP5nU9pT3+Jeeof8ysJ0cs1eIPZDwaBELfeHB/NeDIFNca1WQArhVyc76u9TP9s M1EeUrfWJQ/j93AHBFAQxxGQkBA4weMyvJvZJT77BsD+xDtYqeLrnddhLPWcUk/5ULNH Doqt+0m5jX5VzBIK0jy+jXJ3cQKJwCIYa6mYuIxjWWOJ3+aBnV2qFaAV4ESR6AgBbUId btXuHv+STudvvfZArMMGUn5gMBCjNx1wUmmqQtOMbSnCHwEtsuyH3vCqUCSmJ+Q6RxQd EAIg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s61-20020a17090a2f4300b00263fa42fdcbsi3078263pjd.107.2023.08.03.06.04.39; Thu, 03 Aug 2023 06:04:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234086AbjHCMjV (ORCPT + 99 others); Thu, 3 Aug 2023 08:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjHCMjU (ORCPT ); Thu, 3 Aug 2023 08:39:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DAD543586; Thu, 3 Aug 2023 05:39:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 92CB7113E; Thu, 3 Aug 2023 05:40:01 -0700 (PDT) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6CB4E3F6C4; Thu, 3 Aug 2023 05:39:15 -0700 (PDT) Date: Thu, 3 Aug 2023 13:39:13 +0100 From: Andre Przywara To: Martin Botka Cc: Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , Jami Kettunen , Paul Bouchara , Martin Botka , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andrew Lunn , Icenowy Zheng , Ludwig Kormann , Heiko Stuebner , Shawn Guo , Bjorn Andersson , Chris Morgan , Jagan Teki , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 6/6] arm64: dts: allwinner: h616: Add BigTreeTech Pi support Message-ID: <20230803133913.368d055d@donnerap.manchester.arm.com> In-Reply-To: References: <20230802220309.163804-1-martin@biqu3d.com> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On Thu, 3 Aug 2023 00:02:39 +0200 Martin Botka wrote: Hi, > The BigTreeTech Pi is an H616 based board based on CB1. > Just in Rpi format board. > > It features the same internals as BTT CB1 but adds: > - Fan port > - IR receiver You would then need to enable the "ir" node, check the X96 Mate .dts. And I think this "ADXL345 SPI" connector justifies enabling the respective SPI node. > - 24V DC power supply via terminal plugs > - USB to CAN module connector (The actual USB to CAN happens on the external module) Still confused how this works. So you would need to connect an USB->CAN adapter to one of the USB ports, but how do you feed the CAN signal back to the board? Or if this is done via this port, where does it go then? To the GPIO header? > List of currently working things is the same as BTT CB1. > > Signed-off-by: Martin Botka > --- > .../allwinner/sun50i-h616-bigtreetech-pi.dts | 44 +++++++++++++++++++ Please wire this up in the Makefile as well, otherwise we will miss out on the build testing and DTB checking. > 1 file changed, 44 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > new file mode 100644 > index 000000000000..05f39b3606ba > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > @@ -0,0 +1,44 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2023 Martin Botka . > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616-bigtreetech-cb1.dtsi" > + > +/ { > + compatible = "bigtreetech,pi", "allwinner,sun50i-h616"; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&ohci1 { > + status = "okay"; > +}; > + > +&ehci2 { > + status = "okay"; > +}; > + > +&ohci2 { > + status = "okay"; > +}; > + > +&ehci3 { > + status = "okay"; > +}; > + > +&ohci3 { > + status = "okay"; > +}; Oh wow, it really connects all four USB ports directly to the SoC? Nice. Do you have access to the schematic to check what the power supply situation is? Are all ports hardwired to a fixed 5V source? And you would of course need to adjust this file according to the changes requested in the previous patch, so that you have the UART, stdout-path and other moved nodes in here. Cheers, Andre