Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2478056rwo; Thu, 3 Aug 2023 09:56:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsBxktT+p/e1pSomryfB966YAA2xUXQ8lg9YZJjzZKJ833kO8ER3FArsQUuKohcG0tj5Oa X-Received: by 2002:a17:902:ea10:b0:1ac:5717:fd5 with SMTP id s16-20020a170902ea1000b001ac57170fd5mr22501771plg.60.1691081782230; Thu, 03 Aug 2023 09:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691081782; cv=none; d=google.com; s=arc-20160816; b=K7JqPjLNUiMGyKHZOLYYQcBNPlCBNIgdUV5ulyJEqyY+05wozCDf2sTN4uvaI3oeCM ZZs1onAs1eZt9Cd/liymPXv+MmuP3e1dbpEQplZzmYlj88NnHL3W3lperh72y0+p68VH JPR72skQGTsVbqnwGpsBuXsyhIFF19heB9c89PeVZ02vRiihbn4aXc+WdMYJuzINUZkB jDeWFQwUyR4qUAiwSuBgKThDwrZjgeFuvlShIk1yqMqJ2Nwlwym9aQ89XZiSeESRYUIA DshZcNvMkuxxm/gc+uVxvsRTKhpWZ8a8E1afR4cdG08tikdLhNQzXNZCCKJNPxvuIXaG lGAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=9itqY6Wgw5GgXR3xB++ndoCEbBsHTl393lPDnaxaAjY=; fh=x6C/p3liLHV+AVO/2vZdSO82k+52QeJ29nNe3HvZvAk=; b=cX4lmC2Taoo/KjbnEaHHti0At1rCzkNszysT6xnOOUJ8oww+gOMkjjaakX+9sB9X3g mrDKAgYOrQpEgU0CD7Y7OvTeX6VYyI7tNKaxGa2VVBBDFdkKCtHGBas41yR5mZjIL6LM hT4nHPa9JdGuAyQph5g13FOAo1AKkKbiKusMeHGI+VKalFdlZyCgu70vNQ7mCqyB6ElS WkPOOxrSGUvr2gJDVkD2+w3s1xwT72xohHm/Nx5J9KbAtzUtZ33/4kalpR6YODB+Otn4 8lHRIPVRa2elfeUfp1YSnYahd3dgh2ziXC1rrqgsZpj2zhg45mVXgrzrseVD15mZSZgl UPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@biqu3d.com header.s=tfld2305 header.b=iYwfmiuW; 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=biqu3d.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a170902be0400b001b87ecb0e5csi154685pls.126.2023.08.03.09.56.09; Thu, 03 Aug 2023 09:56:22 -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=@biqu3d.com header.s=tfld2305 header.b=iYwfmiuW; 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=biqu3d.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237226AbjHCPqX (ORCPT + 99 others); Thu, 3 Aug 2023 11:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236373AbjHCPqV (ORCPT ); Thu, 3 Aug 2023 11:46:21 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9528E2690 for ; Thu, 3 Aug 2023 08:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biqu3d.com; s=tfld2305; t=1691077561; bh=9itqY6Wgw5GgXR3xB++ndoCEbBsHTl393lPDnaxaAjY=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=iYwfmiuWdcR5dmGtbQHu3EKnLgL9Cmd0zQrOCoBrbzMTUvUwiZR7ttmFkcFAAhvHO nuMgvLYMolCryu93G5ZuF/qwIGAqVia8pnJZwwQtg8zYKVXNbBuADp7OWXdXPkPt3m Rg2ou1vrmqQ4MBQFZYfL1D44oKziuN2hdetthocE= X-QQ-mid: bizesmtp74t1691077514tkf8fhcb Received: from [192.168.2.144] ( [178.41.211.221]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 03 Aug 2023 23:45:02 +0800 (CST) X-QQ-SSF: 01400000000000402000000A0000000 X-QQ-FEAT: vLOCICHxEeD144kjiyvBVlfmmWfGFzD33ioHK7gbvaMUtB98c2fZL9ALtgsQj sPbxdlzg5ZAwV5zhTYQsO5Zu1Rt4NdK2Yk2BMZ3Yzd/unsCdZXyH7QWjoDriVgwnESOe2qL X+bDPh1/oCuWw2zO9E9bHHf8b/gX6BKSHQPd7eGFnHS33klwW/Z6XO5lBMfHewUxPkx/Bd+ 1c5D58Nis3gXxBD6PqaybSRR3WIjEw9M4asyIbr6y7rEMi+y4RBjRHYGYvH2r+ROg5EIGvd 6grOLc5hNf34cZVojQ8AlgqGKJ+nJOqfxHQEHOun+MAc3LScnBcRIQj4V9F33bwvJPGKfB/ BqWdjNrLdECJuMmFqwqyTqxkDlkfRWRkhE64xwzzcCkal4SOlJoAa/GdHg8bnA4uWRgm0tm Fx7jpH0LE5c= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 6842329673790885231 Message-ID: Date: Thu, 3 Aug 2023 17:45:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 6/6] arm64: dts: allwinner: h616: Add BigTreeTech Pi support Content-Language: en-US To: Andre Przywara 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 References: <20230802220309.163804-1-martin@biqu3d.com> <20230803133913.368d055d@donnerap.manchester.arm.com> From: Martin Botka In-Reply-To: <20230803133913.368d055d@donnerap.manchester.arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:biqu3d.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 8/3/23 2:39 PM, Andre Przywara wrote: > 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. Got it. > > And I think this "ADXL345 SPI" connector justifies enabling the respective > SPI node. Yea the accelerator. Sadly this is bit hard to actually test fully if not wired up to a printer. Tho i do have a spare board to serve as fake printer. Klipper will not know any better :) > >> - 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? OK so its not great but an USB port is also connected to 2x2 pin connector and secondary 2x2 pin connector slightly away. The USB to CAN module plugs into these 2x2 pin connectors where one serves as USB and the other one receives the CAN signal from the module and just wires it up to an XH2.54 3 pin connector with CAN+ CAN- and GND. > >> 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. YEP very much my bad on that one. Didnt add the file during git add :) > >> 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. It indeed does :) > Do you have access to the schematic to check what the power supply > situation is? Are all ports hardwired to a fixed 5V source? Correct just fixed 5V. Tho with the changes needed in CB1 DTSI file no change will be necessary here for this :) > > 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. Got it will do. Cheers, Martin > > Cheers, > Andre >