Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2121085rdg; Sun, 13 Aug 2023 10:04:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZ7TCzYG7hfaK2tJTT/sooFq5GzJ3BSjm6BMl35al4siAWcatWqXL14RnR0y+NEhVtFPsc X-Received: by 2002:aa7:c2d1:0:b0:523:4b92:9cf8 with SMTP id m17-20020aa7c2d1000000b005234b929cf8mr5060555edp.29.1691946293068; Sun, 13 Aug 2023 10:04:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691946293; cv=pass; d=google.com; s=arc-20160816; b=wuBf754429mA6vJLWZYkW0RHLIIJgNorptZyHm+YB+lDMDKmcQr3Ni6fFvFRAemCgY kMTYsshEDp7oHX9irrgEeQ0NLXiSAb6szilq+nFH9G0OZW4h9kUpOwNLjg6rLferBN/3 QgHR8ve0I11BgXy58rc1eJ9zRHTtAARci/tU8/8bqrUXHQpQZgNSCcSU8GFALZ69qRss OuBPZ2gIwdXmTbFxY6biLltjtOamqaVJhpT3bjdogKohaE0Kv6uq7wSULT53vLomWtec S4eNbDrNdxWX+ceCj/wF7QUQ176khF/tP182T25N5CBHYkrwZEY0rIPFN2V0+Hq0SSLr Ultw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=Xr4+S0vpdbjaiNNF/llD4Sx8PfSNTyDvnpd6CmUya5w=; fh=DTFsdy4WWhf+Xr8mIO0poDcBZD33pOFIjdpRvAFLsvI=; b=UtQygD/Pgmpw+xNcGHUg2M0SZcA4nB5GWmqgcHBXioOFVjebbFr81VFw/ZG0e/NHD8 f6ZKoYLSrfyymdbMWKWmaq/Dp4Pz5Ti+lgB8mPPx6oLpDEt6THBaHTkd+EB3cldYWGrw ok9XzKi2lowUr3SKrMWc23ImIHJk8ZnRk1BRx4MXW6ucuqK+TYHLIXdT84u9NPVhbthI 8s4mw9j4zos0gZniWvyzD9gwhTYMnSZYI3JjoqoFdJMIFZcfAeR4vHPtk/Q5R6U4MeQp h8M/8Ohzt1y7n8ri3587T47TNo4A0/MMpQ+czDh9YCro+y7+3BWkCUKKiBTOLThNUhaN TGSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail2 header.b=IAmvP4o3; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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=icenowy.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020aa7d28a000000b00523caf5cea7si4173360edq.520.2023.08.13.10.04.27; Sun, 13 Aug 2023 10:04:53 -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=@icenowy.me header.s=zmail2 header.b=IAmvP4o3; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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=icenowy.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231563AbjHMPnP (ORCPT + 99 others); Sun, 13 Aug 2023 11:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjHMPnO (ORCPT ); Sun, 13 Aug 2023 11:43:14 -0400 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D918E60; Sun, 13 Aug 2023 08:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691941341; cv=none; d=zohomail.com; s=zohoarc; b=GLYiWXgJUhEyoT+jjCbLCK9slf4xaJ7xtMTWn5gUpFBFM+eA6a7j3bZ1eaHrWRW9FyxaOZPOWCSxqe13UuWszYDLX0Y4XrE431HXoBMSG3Rg+igIZaJ9pK1OyVjFzHFQPXahLMzVC+ZsxJJz3CTnV4ZtWhfQMeQcaklUZg1nJjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691941341; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Xr4+S0vpdbjaiNNF/llD4Sx8PfSNTyDvnpd6CmUya5w=; b=G4+Wt4/Iv9lTdi/n6PPF375aXPJA6hHi2jvh5xpoLQrPy3an49bdDSRhXpJWYN59GrY17QkKYnEbYjJuIi/0EbNNsycxrzx6jPg6DjTsfYsgPZxpvb9gchehVwQkrE0jT09irJSk16iHZsUOv7m4TajgHPjKRUl0JhH1hWuz8OI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1691941341; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=Xr4+S0vpdbjaiNNF/llD4Sx8PfSNTyDvnpd6CmUya5w=; b=IAmvP4o3HLSyxr6TAhTszlBUsNFSbqY4YcI1LJffcojrGxCFZIvgReCKDYFW0OZd xEXM8fnn7qF85Sai3EJHhFKJl90nPvrubmvvInHN2rRRifntjh5Co+dpyBSLq4MxluI bbOisnPiR52F20aTxn4gaTbNUgz7EeiStafhH7V4URFhA80OVYmrkasFloDI55Ndf9s gZccyWkkUxJ0lgJdACb0uGBOcrd1io3+NmsYTZBQ2N1AheSOf8Byq5Z8DnwEhy+w63D wvKqZwJix8q+66MqVUqMHfY9QW1w4VLlCY+wFBsRtEiPODJo+haQ88piYGncMMtnTv4 rb9hCNrhGg== Received: from edelgard.fodlan.icenowy.me (120.85.97.224 [120.85.97.224]) by mx.zohomail.com with SMTPS id 1691941339762761.0310215430785; Sun, 13 Aug 2023 08:42:19 -0700 (PDT) Message-ID: <200cfafd7ba034d7620740c510c703f3acbeb721.camel@icenowy.me> Subject: Re: [PATCH v4 4/4] arm64: dts: allwinner: h616: Add BigTreeTech Pi support From: Icenowy Zheng To: Martin Botka , Martin Botka Cc: Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , Jami Kettunen , Paul Bouchara , Martin Botka , Andre Przywara , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Ludwig Kormann , Andrew Lunn , 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 Date: Sun, 13 Aug 2023 23:42:10 +0800 In-Reply-To: <09BFA974F83AB0E8+20230807145349.2220490-5-martin@biqu3d.com> References: <20230807145349.2220490-1-martin@biqu3d.com> <09BFA974F83AB0E8+20230807145349.2220490-5-martin@biqu3d.com> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no 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 =E5=9C=A8 2023-08-07=E6=98=9F=E6=9C=9F=E4=B8=80=E7=9A=84 16:53 +0200=EF=BC= =8CMartin Botka=E5=86=99=E9=81=93=EF=BC=9A > The BigTreeTech Pi is an H616 based board based on CB1. > Just in Rpi format board. >=20 > It features the same internals as BTT CB1 but adds: > =C2=A0=C2=A0=C2=A0 - Fan port > =C2=A0=C2=A0=C2=A0 - IR receiver > =C2=A0=C2=A0=C2=A0 - ADXL345 Accelerometer connector via SPI > =C2=A0=C2=A0=C2=A0 - 24V DC power supply via terminal plugs > =C2=A0=C2=A0=C2=A0 - USB to CAN module connector (The actual USB to CAN h= appens on > the external module) >=20 > List of currently working things is same as BTT CB1 but also: > =C2=A0=C2=A0=C2=A0 - IR receiver > =C2=A0=C2=A0=C2=A0 - ADXL345 connector >=20 > Signed-off-by: Martin Botka > Reviewed-by: Andre Przywara > --- > Changes in V2: > =C2=A0=C2=A0=C2=A0 - Add UART alongside aliases and chosen for it > =C2=A0=C2=A0=C2=A0 - Add model string > =C2=A0=C2=A0=C2=A0 - Enable IR receiver > =C2=A0=C2=A0=C2=A0 - Enable SPI0 for ADXL345 connector > Changes in V3: > =C2=A0=C2=A0=C2=A0 - Add missing semicolons > =C2=A0=C2=A0=C2=A0 - Add pinctrl for SPI0 >=20 > =C2=A0arch/arm64/boot/dts/allwinner/Makefile=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 |=C2=A0 1 + > =C2=A0.../allwinner/sun50i-h616-bigtreetech-pi.dts=C2=A0 | 70 > +++++++++++++++++++ > =C2=A02 files changed, 71 insertions(+) > =C2=A0create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616- > bigtreetech-pi.dts >=20 > 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) +=3D sun50i-h6-pine-h64- > model-b.dtb > =C2=A0dtb-$(CONFIG_ARCH_SUNXI) +=3D sun50i-h6-tanix-tx6.dtb > =C2=A0dtb-$(CONFIG_ARCH_SUNXI) +=3D sun50i-h6-tanix-tx6-mini.dtb > =C2=A0dtb-$(CONFIG_ARCH_SUNXI) +=3D sun50i-h616-bigtreetech-cb1-manta.dtb > +dtb-$(CONFIG_ARCH_SUNXI) +=3D sun50i-h616-bigtreetech-pi.dtb > =C2=A0dtb-$(CONFIG_ARCH_SUNXI) +=3D sun50i-h616-orangepi-zero2.dtb > =C2=A0dtb-$(CONFIG_ARCH_SUNXI) +=3D 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..b0d0386e8f13 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-pi.dts > @@ -0,0 +1,70 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2023 Martin Botka . > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616-bigtreetech-cb1.dtsi" > + > +/ { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0model =3D "BigTreeTech Pi"; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0compatible =3D "bigtreetech,pi= ", "allwinner,sun50i-h616"; As you say it's based on CB1 too, why no CB1 compatible here? (although the manta compatible won't apply) > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0aliases { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0serial0 =3D &uart0; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}; > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0chosen { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0stdout-path =3D "serial0:115200n8"; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}; > +}; > + > +&ehci0 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ehci1 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ehci2 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ehci3 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ir { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ohci0 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ohci1 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ohci2 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&ohci3 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +}; > + > +&spi0 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/* SPI connection for onboard = connector for ADXL345 > accelerometer */ > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pinctrl-names =3D "default"; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pinctrl-0 =3D <&spi0_pins>, <&= spi0_cs0_pin>; > +}; > + > +&uart0 { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pinctrl-names =3D "default"; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pinctrl-0 =3D <&uart0_ph_pins>= ; > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0status =3D "okay"; > +};