Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5747750rwb; Mon, 14 Nov 2022 08:56:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7e4fsrUHAj6nWMf1QMS3XOD/jNWNRrZUFbRr/UX/gE1fAehRgivsk0PwkOTlCz4O82tNMu X-Received: by 2002:a17:90b:1916:b0:218:3623:6ec5 with SMTP id mp22-20020a17090b191600b0021836236ec5mr5519058pjb.124.1668445005714; Mon, 14 Nov 2022 08:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668445005; cv=none; d=google.com; s=arc-20160816; b=mfsKL4YnoXfxWKklEM0O31BcdwH0HmsSas4y+586IEsBfssYDhkDVjgho+aXnrrqTr NCh5DoL6bosQNkm+c9uF8LyybR+F/Q3zvLz9vqKO4Y4JItpi352rdBYbJuRESWW/r1/B L2R7gnirHKp9rcCuBNJhq4CSxD7XGanBtsmWZIfJF4IpGyK+WnmGmYfSg8MMyuvldIl9 c3Ug/kA3Z4zhRYzy61mQGtflVRSrbe2I7YXkUdOjVH62w+wRq1mJkFuvlptETxsWEoi6 od8ASyCUnNy08minZBnZYdBxmrp6KS4ShDBWzp7yG/WsICM8w+N5Ys+pKpVMJQQjuL+E Ymtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date; bh=h4tb/C5UVXGGz3tw59H8/z7Qn5RIdLJFzdWCGBWtRug=; b=v3RRLc5tU4TIkVYd6vYkaV//6ZKog5ij/ZUXf2hZXoSectNKvFw0U6RU0UGFzSfWE2 nOTJ1WJcKMbzy6GQ4qOvS6claJfjnNUPp/M6U78jUD93M6s5w0CdcdSps0qlh3bmTshF kznbUgmpY9oSJry70eQqLn0fMB4tYMqIkWG8H50deP14Vtpb3TexR2p11c5EtUMB0GKZ mSz7Mz54VgfZR6zVRDD8hA2M+vU/VPgcAFLiBjch29+j1RI+t9nfnF6jvNH6RtMA7BO7 mANhv8DveAS6uvAHAKWsPbXcuqwkAJN3gemcnt5DnZXH7RfYIKyDRCiliZijM28RYT5T PX/A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a170902d19500b00186971db5fbsi8907350plb.220.2022.11.14.08.56.34; Mon, 14 Nov 2022 08:56:45 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237888AbiKNQjl (ORCPT + 87 others); Mon, 14 Nov 2022 11:39:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237865AbiKNQjX (ORCPT ); Mon, 14 Nov 2022 11:39:23 -0500 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B842F64D for ; Mon, 14 Nov 2022 08:37:02 -0800 (PST) Received: from [192.168.2.144] (bband-dyn193.178-41-216.t-com.sk [178.41.216.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 871CD40124; Mon, 14 Nov 2022 17:36:59 +0100 (CET) Date: Mon, 14 Nov 2022 17:36:53 +0100 From: Martin Botka Subject: Re: [PATCH] arm64: dts: Add basic support for BIQU CB1 To: Krzysztof Kozlowski Cc: martin.botka1@gmail.com, ~postmarketos/upstreaming@lists.sr.ht, Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , Jami Kettunen , Paul Bouchara , Yenda , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <4ce3199e-1c9c-2fca-804e-dadc87a85704@linaro.org> References: <20221114162547.1802689-1-martin.botka@somainline.org> <4ce3199e-1c9c-2fca-804e-dadc87a85704@linaro.org> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Yea my bad this was not supposed to be sent this soon. Well either way V2 will come soon On Mon, Nov 14 2022 at 05:29:31 PM +01:00:00, Krzysztof Kozlowski wrote: > On 14/11/2022 17:25, Martin Botka wrote: >> CB1 is Compute Module style board that plugs into Rpi board style >> adapter or >> Manta 3D printer boards (M4P/M8P). >> >> The board has: >> H616 SoC >> 1GB of RAM >> AXP313A PMIC >> >> And the actual boards that CB1 plugs in are just extension to it >> with ports and >> thus are not split in DT. >> >> Boards have: >> 4x (3x for Manta boards) USB and 1 USB OTG. >> SDcard slot for loading images. >> Ethernet port wired to the internal PHY. >> 2x HDMI 2.0. >> Power and Status LEDs. >> >> Currently working: >> Booting >> USB >> UART >> >> Signed-off-by: Martin Botka >> --- >> arch/arm64/boot/dts/allwinner/Makefile | 1 + >> .../dts/allwinner/sun50i-h616-biqu-cb1.dts | 191 >> ++++++++++++++++++ >> 2 files changed, 192 insertions(+) >> create mode 100644 >> arch/arm64/boot/dts/allwinner/sun50i-h616-biqu-cb1.dts >> >> diff --git a/arch/arm64/boot/dts/allwinner/Makefile >> b/arch/arm64/boot/dts/allwinner/Makefile >> index 6a96494a2e0a..223f1be73541 100644 >> --- a/arch/arm64/boot/dts/allwinner/Makefile >> +++ b/arch/arm64/boot/dts/allwinner/Makefile >> @@ -38,5 +38,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb >> 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-biqu-cb1.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-biqu-cb1.dts >> b/arch/arm64/boot/dts/allwinner/sun50i-h616-biqu-cb1.dts >> new file mode 100644 >> index 000000000000..2225a965dddc >> --- /dev/null >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-biqu-cb1.dts >> @@ -0,0 +1,191 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ or MIT) >> +/* >> + * Copyright (C) 2022 Arm Ltd. >> + */ >> + >> +/dts-v1/; >> + >> +#include "sun50i-h616.dtsi" >> + >> +#include >> +#include >> +#include >> + >> +/ { >> + model = "BIQU CB1"; >> + compatible = "allwinner,sun50i-h616"; > > That's not a proper board compatible. > >> + >> + aliases { >> + serial0 = &uart0; >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + leds { >> + compatible = "gpio-leds"; >> + >> + led-0 { >> + function = LED_FUNCTION_POWER; >> + color = ; >> + gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */ >> + default-state = "on"; >> + }; >> + >> + led-1 { >> + function = LED_FUNCTION_STATUS; >> + color = ; >> + gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */ >> + }; >> + }; >> + >> + reg_vcc5v: vcc5v { > > regulator prefix. Keep it consistent. > >> + /* board wide 5V supply directly from the USB-C socket */ >> + compatible = "regulator-fixed"; >> + regulator-name = "vcc-5v"; >> + regulator-min-microvolt = <5000000>; >> + regulator-max-microvolt = <5000000>; >> + regulator-always-on; >> + }; >> + >> + reg_usb1_vbus: regulator-usb1-vbus { >> + compatible = "regulator-fixed"; >> + regulator-name = "usb1-vbus"; >> + regulator-min-microvolt = <5000000>; >> + regulator-max-microvolt = <5000000>; >> + vin-supply = <®_vcc5v>; >> + enable-active-high; >> + gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */ >> + }; >> +}; >> + >> +&ehci0 { >> + status = "okay"; >> +}; >> + >> +&ehci1 { >> + status = "okay"; >> +}; >> + >> +&ehci2 { >> + status = "okay"; >> +}; >> + >> +&ehci3 { >> + status = "okay"; >> +}; >> + >> +&mmc0 { >> + vmmc-supply = <®_dldo1>; >> + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ >> + no-1-8-v; >> + bus-width = <4>; >> + status = "disabled"; >> +}; >> + >> +&ohci0 { >> + status = "okay"; >> +}; >> + >> +&ohci1 { >> + status = "okay"; >> +}; >> + >> +&ohci2 { >> + status = "okay"; >> +}; >> + >> +&ohci3 { >> + status = "okay"; >> +}; >> + >> +&r_i2c { >> + status = "okay"; >> + >> + axp1530: pmic@36 { >> + compatible = "x-powers,axp1530"; >> + status = "okay"; > > Drop. > >> + reg = <0x36>; >> + wakeup-source; >> + >> + standby_param: standby_param { > > Does not look like supported/documented/valid property. Test your DTS > with `make dtbs_check`. > > > Best regards, > Krzysztof >