Message ID | DFE9B2F1349F69AE+20230802220309.163804-7-martin@biqu3d.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp762725vqx; Wed, 2 Aug 2023 15:22:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlErAjgsQ8PlIBy1xt7mm9UQ/m6zbD96qAmBl0ZO1iWf5Nmq07Uil3g41zIrLeTKmDMU6mpe X-Received: by 2002:a17:90a:4104:b0:25c:1ad3:a4a1 with SMTP id u4-20020a17090a410400b0025c1ad3a4a1mr13309464pjf.1.1691014924901; Wed, 02 Aug 2023 15:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691014924; cv=none; d=google.com; s=arc-20160816; b=UI+optCiaeXOw1exV8OAiTfGuvkmyYUkxRGqR+KAPct90REiH+MWKzxaHy/a4ICDqV DfLtIed3l0B4mSepddVT5Lqzg88EEHzVWB+A3BjvFaW+OA+hGcEiCOG6ROsL1v6oaMgz awU4aNJ9cGM8Dhv9QdaeRUldISuKqdx3hMohfq93lTjFY51mE09bre8OQw7Suve08W88 Ht0xxolFlC0YczAZqxHuGDhhsXiLwF6YCDMCj91DJZsibwe2hwNAL4pTJ3cZ2XYu3A1T 9CZyuGj1V4UbvIl+10mg5rtdohWEGXF5w8pNJFH8svM0DNebFgnbEWkOBtSC/Qw1r3b6 LOXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=biEvRZtAy9JobJPGeIzHyKFJl4/+oPo0y3sPVz51oy4=; fh=ERi6k17wXahUsDPu8aMTdZ0TgED3UGe32dPsS/gBfEo=; b=ed94vXdJLSZ2OVqdnqOafDFsaNrAHKG9Ux4PeGnnhJn6uG+ihygzKc+kNxi/VV9yjj 2tQOQmC7nUf/kZCWqUVFy62yYw5mIucT9RTZevSdZl+32YnZtcGY/4peYqFESexaPA0A czXMrz+HLEdRxiy7kqxv7HvxvcEp7J9lo1x5rQuKqPAeRH4GOMe1oCi/7faUqyetJGJk OXEP5mwBt0WGbxoTSTVctu2nXBhsXNhdr2kOPHydy/Ou1N4ZfPoQyaNTghrDwsJdNb8y cFF5XA9vbVXDa3efjh1Q6KTjhFIOjvL+7VG46FpUwp1tu/PAupl/WYMWywSGex7MMcqO Y8GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@biqu3d.com header.s=tfld2305 header.b=niPcKmfN; 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=biqu3d.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f88-20020a17090a706100b002639394cfcdsi1779059pjk.145.2023.08.02.15.21.50; Wed, 02 Aug 2023 15:22:04 -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=fail header.i=@biqu3d.com header.s=tfld2305 header.b=niPcKmfN; 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=biqu3d.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233819AbjHBWHC (ORCPT <rfc822;cambridge8321@gmail.com> + 99 others); Wed, 2 Aug 2023 18:07:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbjHBWG5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Aug 2023 18:06:57 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB2B9269E for <linux-kernel@vger.kernel.org>; Wed, 2 Aug 2023 15:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biqu3d.com; s=tfld2305; t=1691013996; bh=biEvRZtAy9JobJPGeIzHyKFJl4/+oPo0y3sPVz51oy4=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=niPcKmfNXbrrj6CnlySEXx2/viA1v80OjikgqxKua6Eo1iX/+R4q9hOKpOJ7KEvTd x6uukCYnvDAEh1LGu6/89p/nuqTSuehcJZkZIJdqLvRVA4s3LjxmNTsM6I95NHAye5 7WIoeyjghtz24yHfrL4fk1J55dxLLluU5IBS1fyo= X-QQ-mid: bizesmtp89t1691013911t5qhiqcn Received: from TimeMachine.lan ( [178.41.211.221]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 03 Aug 2023 06:04:57 +0800 (CST) X-QQ-SSF: 01400000008000301000B00A0000000 X-QQ-FEAT: ILHsT53NKPjBkPxVUesfz0lluzQZMjsfUmpeg7ogF8xBcSFqv4AAli17hKtgg 2oRRAAw9ZlWlpoFqq/6/Os2nmroIVgigJI80z/bv2lQrk/DRnofaOqNr6BtP86m3WRwv84B 13JAtfYUj1NKB1DS9wAHbtIRfO9FbBdRDcAGdNqlcDbNGddp8xgT7aFqxhCN676bDUQvHkV 9SQNzF10moPjCqHtn5lo3/AJANAJkpHxE22TapC5iB1T+iF11Ux8EQdCh6AM5n/QbHTLGYu sOvWZ+yNs72KT57f7EezxKhIR+az1xLhNd1t0evt/6mbVQIRNhPFo+TbOH6KATeJjwPPXZl XJd7H5T2FskHLMivZr1KD2jvpGAVj88Evq1nJbLnCRw7Vgcw5no1HQHavBcmA== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 11005468934301047537 From: Martin Botka <martin@biqu3d.com> Cc: Konrad Dybcio <konrad.dybcio@somainline.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>, Marijn Suijten <marijn.suijten@somainline.org>, Jami Kettunen <jamipkettunen@somainline.org>, Paul Bouchara <paul.bouchara@somainline.org>, Martin Botka <martin.botka@somainline.org>, Andre Przywara <andre.przywara@arm.com>, Martin Botka <martin@biqu3d.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Andrew Lunn <andrew@lunn.ch>, Icenowy Zheng <uwu@icenowy.me>, Ludwig Kormann <ludwig.kormann@ict42.de>, Heiko Stuebner <heiko@sntech.de>, Shawn Guo <shawnguo@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Chris Morgan <macromorgan@hotmail.com>, Jagan Teki <jagan@edgeble.ai>, Maxime Ripard <mripard@kernel.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v1 6/6] arm64: dts: allwinner: h616: Add BigTreeTech Pi support Date: Thu, 3 Aug 2023 00:02:39 +0200 Message-ID: <DFE9B2F1349F69AE+20230802220309.163804-7-martin@biqu3d.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230802220309.163804-1-martin@biqu3d.com> References: <20230802220309.163804-1-martin@biqu3d.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:biqu3d.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773157665804083792 X-GMAIL-MSGID: 1773157665804083792 |
Series |
[v1,1/6] dt-bindings: vendor-prefixes: Add BigTreeTech
|
|
Commit Message
Martin Botka
Aug. 2, 2023, 10:02 p.m. UTC
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
- 24V DC power supply via terminal plugs
- USB to CAN module connector (The actual USB to CAN happens on the external module)
List of currently working things is the same as BTT CB1.
Signed-off-by: Martin Botka <martin@biqu3d.com>
---
.../allwinner/sun50i-h616-bigtreetech-pi.dts | 44 +++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts
Comments
On Thu, 3 Aug 2023 00:02:39 +0200 Martin Botka <martin@biqu3d.com> 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 <martin@biqu3d.com> > --- > .../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 <martin@biqu3d.com>. > + */ > + > +/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
On 03/08/2023 00:02, Martin Botka wrote: > 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 > - 24V DC power supply via terminal plugs > - USB to CAN module connector (The actual USB to CAN happens on the external module) > > List of currently working things is the same as BTT CB1. > > Signed-off-by: Martin Botka <martin@biqu3d.com> > --- > .../allwinner/sun50i-h616-bigtreetech-pi.dts | 44 +++++++++++++++++++ > 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 <martin@biqu3d.com>. > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616-bigtreetech-cb1.dtsi" If this is using CB1 DTSI, does it mean it uses CB1 SoM? If so, I think this should be reflected in the compatibles. It's a bit confusing because in previous patch you call it "CB1 board" but then with name "Manta"... So what is CB1? Best regards, Krzysztof
On Thu, 3 Aug 2023 16:30:06 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 03/08/2023 00:02, Martin Botka wrote: > > 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 > > - 24V DC power supply via terminal plugs > > - USB to CAN module connector (The actual USB to CAN happens on the external module) > > > > List of currently working things is the same as BTT CB1. > > > > Signed-off-by: Martin Botka <martin@biqu3d.com> > > --- > > .../allwinner/sun50i-h616-bigtreetech-pi.dts | 44 +++++++++++++++++++ > > 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 <martin@biqu3d.com>. > > + */ > > + > > +/dts-v1/; > > + > > +#include "sun50i-h616-bigtreetech-cb1.dtsi" > > If this is using CB1 DTSI, does it mean it uses CB1 SoM? If so, I think > this should be reflected in the compatibles. > > It's a bit confusing because in previous patch you call it "CB1 board" > but then with name "Manta"... So what is CB1? That's indeed a bit confusing, but from what I got from the BTT webpage: "CB1" is the SoM. M8P (and its M4P/M5P siblings) are carrier boards with extra hardware for 3D printer support, taking the CB1 SoM. The "Bigtreetech BTT Pi" is embedding the same hardware as the SoM, but without actually using the SoM, directly on a PCB, so similar to what we have with the Pine64 SoPine and the Pine64 LTS board. It doesn't come with the extra goodies of the more 3D printer related boards. I *think* the "BIGTREETECH PI4B Adapter" is a normal dev board using the actual SoM, but with an otherwise identical(?) functionality software wise - so it can run with the same DTB. I wonder if we should have a separate .dts for this, though, since I believe it's not really identical in every aspect - starting with the USB ports, for instance. But for this board and patch here I think it's fine to include the cb1.dtsi, but not using the CB1 name in the compatibles list. Cheers, Andre
On 8/3/23 4:49 PM, Andre Przywara wrote: > On Thu, 3 Aug 2023 16:30:06 +0200 > Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > >> On 03/08/2023 00:02, Martin Botka wrote: >>> 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 >>> - 24V DC power supply via terminal plugs >>> - USB to CAN module connector (The actual USB to CAN happens on the external module) >>> >>> List of currently working things is the same as BTT CB1. >>> >>> Signed-off-by: Martin Botka <martin@biqu3d.com> >>> --- >>> .../allwinner/sun50i-h616-bigtreetech-pi.dts | 44 +++++++++++++++++++ >>> 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 <martin@biqu3d.com>. >>> + */ >>> + >>> +/dts-v1/; >>> + >>> +#include "sun50i-h616-bigtreetech-cb1.dtsi" >> >> If this is using CB1 DTSI, does it mean it uses CB1 SoM? If so, I think >> this should be reflected in the compatibles. >> >> It's a bit confusing because in previous patch you call it "CB1 board" >> but then with name "Manta"... So what is CB1? > > That's indeed a bit confusing, but from what I got from the BTT webpage: > "CB1" is the SoM. M8P (and its M4P/M5P siblings) are carrier boards with > extra hardware for 3D printer support, taking the CB1 SoM. > The "Bigtreetech BTT Pi" is embedding the same hardware as the SoM, but > without actually using the SoM, directly on a PCB, so similar to what we > have with the Pine64 SoPine and the Pine64 LTS board. It doesn't come with > the extra goodies of the more 3D printer related boards. > > I *think* the "BIGTREETECH PI4B Adapter" is a normal dev board using the > actual SoM, but with an otherwise identical(?) functionality software wise > - so it can run with the same DTB. I wonder if we should have a separate > .dts for this, though, since I believe it's not really identical in every > aspect - starting with the USB ports, for instance. > > But for this board and patch here I think it's fine to include the > cb1.dtsi, but not using the CB1 name in the compatibles list. > You got it perfectly Andre :) Yes CB1 is an SoM and Manta boards and BTT Pi4B adapter board are just carriers of this SoM. PI4B board uses the same DTB as manta boards. It also has the same USB hub and etc. BTT Pi on the other hand is CB1 hardware but actually comes in Pi format with the CB1 hardware embedded on the boards directly. BTT Pi wires up the USB ports to their respective ports on SoC and thus the separate DTS (Also ofc the extra stuff like IR and fan port which will be enabled in the future) Cheers, Martin > Cheers, > Andre >
On 8/3/23 2:39 PM, Andre Przywara wrote: > On Thu, 3 Aug 2023 00:02:39 +0200 > Martin Botka <martin@biqu3d.com> 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 <martin@biqu3d.com> >> --- >> .../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 <martin@biqu3d.com>. >> + */ >> + >> +/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 >
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 <martin@biqu3d.com>. + */ + +/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"; +};