Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2381863rwo; Thu, 3 Aug 2023 08:35:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4bq9hTHytys/Tu6GMsvzBkjk3Y8TIb5xIfJv+acSXXZKLGWrzrxdniY+G3WFjly0R77jI X-Received: by 2002:a05:6a21:998e:b0:13d:315f:26b7 with SMTP id ve14-20020a056a21998e00b0013d315f26b7mr6776476pzb.1.1691076941937; Thu, 03 Aug 2023 08:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691076941; cv=none; d=google.com; s=arc-20160816; b=tzwVewVNTUTeW1ifT46deErVO5O329Z8BtXHVDKnd+OxwVni/ZqhKj/GaECLqpHAxL 7jwECSWZZzFS+UEhpCoqPeb0OjfBsDmg82Ru5iYonjZCC24DUZGSbgdxzf6/z49kkR8J 60qKU7pXbTVa+86u2reOEFnmCyildvKSqyuxG1MLN8DcXI9XI6lip/gGn9X9v7qrIslK zFKH9rIKqEcFGn6cTpSWm6nu1LjZk8jmoHrcZ8SRVaUCWmMrGLY1l5KI3ok5MJIHxF6e sLmsSzfJA3T4tOiLsjHl7rlMJOLohTyMNc2QCON/btWDf5Q6KLSr4PoCbtwiX3HguaQm ldFA== 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=weiD6oVC0iEXiHOI8NFlS6mGyklf2XyHE41bwoNh3OI=; fh=uInDs8a4T1RiaXgjbjRfUoEuYSfNF1GbKGXdLLEC9cg=; b=Qqrogn56X8cYZutG0vFoDIMR2u9Hkzyoda9uDH43D6ezWhzteZR6B2gJoPMh9/Ek9j 57Wxzn2JsnApRBth63jb1dMk4JvI/CEqfdFMzNRdU0c0EOh/Yn/EovlebgQAi6pg4tND 4ollooufRMId1U0lVn3R77qMflbIvcD8FroC9x5DfCW0SRv6BGaOpcqQyoudx4FCRzJA lmz2q4SkE4Gt9DbewW4KyapvF3qQOYmvbwUwyuzw/YvyCgBJL3YZ+2Xvb/jWA5/mi6iE kbBEzo9DDg+vEjXaGqHThYteq4UNPdi+WHET59UgKhfaO3nlU55Nfyr6OSqLd6Vm/v4Q vt1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@biqu3d.com header.s=tfld2305 header.b="TkT/Of0f"; 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 b13-20020a170903228d00b001bbabd5b14esi16698plh.608.2023.08.03.08.35.14; Thu, 03 Aug 2023 08:35:41 -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="TkT/Of0f"; 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 S236057AbjHCO4N (ORCPT + 99 others); Thu, 3 Aug 2023 10:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236158AbjHCO4K (ORCPT ); Thu, 3 Aug 2023 10:56:10 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B790173F for ; Thu, 3 Aug 2023 07:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biqu3d.com; s=tfld2305; t=1691074548; bh=weiD6oVC0iEXiHOI8NFlS6mGyklf2XyHE41bwoNh3OI=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=TkT/Of0fSxovWBIsD9tQF3Rg1MLSiZu3o6OXZCFkeezwX0bhQsM8Ng2O2gFfFRd+f EOubM3LIOMxCl2+HyL/YrZ+/TvDNxOIXjaZ3cElLufKbjHFc+tYVav8hZ0xhylRtRP GVzdS3Br21046qe9GvgYFjTvmT8fWbPSCRUoVt68= X-QQ-mid: bizesmtp67t1691074494tgyh43r1 Received: from [192.168.2.144] ( [178.41.211.221]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 03 Aug 2023 22:54:42 +0800 (CST) X-QQ-SSF: 01400000000000303000000A0000000 X-QQ-FEAT: IByDngDI/kEy5uTimwvjv38YisB2OlS+T+fSB0uFKFXdBpo0AQJHOMwCIv6ub jD+KxnNjTL4GJ5kAZxJrVgFbAC0tFTNkMdwxNxp/iitxV8wiFGPWt5y4z/XiRNnBM+4dRkk z18l/bEIOD4NPgNqPvtotdVVQfzO0rB5EXecv2FeZK2ySmOREuJOnI38gT7+LatjRkArC7h Gl8yV652Z/NWlfEwN035a4LQEawLxkyvKIJs4+x4/UMA7ROytyp2lvubH/HKGc7P3BDz6Uf 086wG5xDQHcWw76fPi6xTn/hAFNwj3O+UlrBKsBtvGK7H9t/QloXMOr06FrpjnWqulQR54i Uu9pX2PaZ1Ocd1jN+Iv35KMIR46L4R82/pTWXjhsNlv5dWbg8SiX5YfLi2oCgBdAfyUt8bs X-QQ-GoodBg: 2 X-BIZMAIL-ID: 3958402243013388895 Message-ID: <51B75CF14DC0F06B+430ea53b-0189-45bf-26e2-94c9925ea4b6@biqu3d.com> Date: Thu, 3 Aug 2023 16:54:39 +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 , Krzysztof Kozlowski 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> <17dec3fb-1bce-77ff-9917-7f565049954d@linaro.org> <20230803154921.0d42fc66@donnerap.manchester.arm.com> From: Martin Botka In-Reply-To: <20230803154921.0d42fc66@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 4:49 PM, Andre Przywara wrote: > On Thu, 3 Aug 2023 16:30:06 +0200 > Krzysztof Kozlowski 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 >>> --- >>> .../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 . >>> + */ >>> + >>> +/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 >