Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3641284rwo; Fri, 4 Aug 2023 07:50:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQJWYS6LDDeU1C8OOvmTKn9LHmRzCzp63r+5joCpOagrMfmgtAlxibpwA0Ff8n0GCEaZdU X-Received: by 2002:a17:90a:2a8d:b0:265:8184:5903 with SMTP id j13-20020a17090a2a8d00b0026581845903mr1589341pjd.40.1691160604359; Fri, 04 Aug 2023 07:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691160604; cv=none; d=google.com; s=arc-20160816; b=BxaRJ9RdRoR/6epVx+jvd1x/Sge2kZynb/Op9ZS77M2mTuJcJxOmU4RmMXzZbfH16z ugZg3lZdHTg1DGH1vkvhnToZ5yT0qa4OyOrdAQilOUxcm7ydflF7BgXSEcWsiAh6Hmww Fhkusydc6xXeE12RpVmwli9WkG2OreSN4kDZpO67dtDVbiKfjedIvbdqRghS8978uxsG 5Xlqlk9GDXzgWMaFp2Adu46G2MNaEekIA8a7hdp+fpkoPd7qc7sQpSntmJgn6RTj4o/o VmkSWA3VrVce+pthxmANDhUU6W/kr80Yt/hz1K26qtcZ9q2PoTnGMWS6bXYnwfkj5NqQ a8XQ== 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=mwp/mDt3cIOHC0JbGPVwJCwbgWvN/Tmz0xup/PClwYw=; fh=TJ0iUSffRyPWm7UJnCzE/phlNjmsFRqcBpbYFYYvQFA=; b=io0WFhCXVfdTkAKYPkuY48SihDHFbga6sotnFZIdROKeDkhclIwaTN+f9a+2zJ/pLU 6f6qCfvTmkWsn/bS2ZWnJpbVi766UX4wgOYSzZ4QGoQ3bVhlXxaeAkw7ZlbyUrcOHL8I FfRCkyLPOXR2DY30x21vVc/3AsG9SUx4d+J8bL9QKP/SwcDRNHk5/mWiaIG/h3/abIY4 JRsF5j6XmUDSFsAdQLIvHbiTluTPgVKR4M26+/sGyDet+vuRHq89YmHWJurTZVjLbE1M 1ADV3TmQWJ84qBBX+u58LQWiElf3UI6sJVcGGwXYB0Xs9t8L2PjfGiRhvHsO6HHdpAHG 065g== 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 kk5-20020a170903070500b001b87bd2f7b0si1705772plb.402.2023.08.04.07.49.31; Fri, 04 Aug 2023 07:50: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; 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 S231229AbjHDNhV (ORCPT + 99 others); Fri, 4 Aug 2023 09:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbjHDNhE (ORCPT ); Fri, 4 Aug 2023 09:37:04 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28510524D; Fri, 4 Aug 2023 06:36:29 -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 6705A1007; Fri, 4 Aug 2023 06:36:25 -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 653133F5A1; Fri, 4 Aug 2023 06:35:39 -0700 (PDT) Date: Fri, 4 Aug 2023 14:35:37 +0100 From: Andre Przywara To: Martin Botka Cc: martin.botka1@gmail.com, 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 v2 4/4] arm64: dts: allwinner: h616: Add BigTreeTech Pi support Message-ID: <20230804143537.0c91e802@donnerap.manchester.arm.com> In-Reply-To: <92B0AD8F9717BDE3+20230804090102.273029-5-martin@biqu3d.com> References: <20230804090102.273029-1-martin@biqu3d.com> <92B0AD8F9717BDE3+20230804090102.273029-5-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 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 Fri, 4 Aug 2023 11:00:32 +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 > - ADXL345 Accelerometer connector via SPI > - 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 same as BTT CB1 but also: > - IR receiver > - ADXL345 connector > > Signed-off-by: Martin Botka > --- > Changes in V2: > - Add UART alongside aliases and chosen for it > - Add model string > - Enable IR receiver > - Enable SPI0 for ADXL345 connector > > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../allwinner/sun50i-h616-bigtreetech-pi.dts | 68 +++++++++++++++++++ > 2 files changed, 69 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index 7b386428510b..0b6232a7f328 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -39,5 +39,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > 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..cbeedf147ab6 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > @@ -0,0 +1,68 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2023 Martin Botka . > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616-bigtreetech-cb1.dtsi" > + > +/ { > + model = "BigTreeTech Pi" missing semicolon > + compatible = "bigtreetech,pi", "allwinner,sun50i-h616"; > + > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&ehci2 { > + status = "okay"; > +}; > + > +&ehci3 { > + status = "okay"; > +}; > + > +&ir { > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&ohci1 { > + status = "okay"; > +}; > + > +&ohci2 { > + status = "okay"; > +}; > + > +&ohci3 { > + status = "okay"; > +}; > + > +&spi0 { > + /* SPI connection for onboard connector for ADXL345 accelerometer */ You need to specify the pinctrl properties here, since there is no default. I guess it's PortC? Then you can copy from the OPiZero2, just check the CS situation. > + status = "okay"; > +} missing semicolon; Rest looks fine. Thanks, Andre > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_ph_pins>; > + status = "okay"; > +};