From patchwork Sun Dec 17 23:24:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 13496046 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 119A2C3DA6E for ; Sun, 17 Dec 2023 23:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kccbTpppFtXzB+mfEGHaf+NjYUPsPeHKVYd+YF7LGgc=; b=U/23DoFVlagbU+ SBmW/yvVibbREMZY+cKzCMpxvHDZPOQ/82DuAvgrFHoLmRKU0prfvg9Xuq3kDvg/VpLYKa6bJkuGd TVyU+iiY0yDoaWIz1RbL3GJw0Fz9MTWUMoBgUyOiQDPiy3sWJjgo9JTPDT3j3m62Ly3tl9gOjRGrA KYEtouGzGXXv1YwalIRde+mVGcLSTUECA3fnxZK493VannVdCdESE1b6uqli0yrS04MC8QfWXAyP6 0H2WEUQPELPPZMitQ0VdkwSXO8NlrHPoK8T2eWls7C1FcGEXwXOyPTxrwmiYb1bc23TsFPHL1hs1p /KA3iZSOc7IfqdG2HGlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rF0Ux-008dWT-2l; Sun, 17 Dec 2023 23:24:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rF0Up-008dSx-1g for linux-arm-kernel@lists.infradead.org; Sun, 17 Dec 2023 23:24:34 +0000 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 A3DEF1FB; Sun, 17 Dec 2023 15:25:08 -0800 (PST) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 70D473F64C; Sun, 17 Dec 2023 15:24:22 -0800 (PST) From: Andre Przywara To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/2] arm64: dts: allwinner: Add BananaPi M4 Berry Date: Sun, 17 Dec 2023 23:24:03 +0000 Message-Id: <20231217232405.302-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231217_152431_962943_BE3F51C3 X-CRM114-Status: GOOD ( 17.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BananaPi M4 Berry is a development board with the Allwinner H618 SoC. It comes with 2GB DRAM and 8GB eMMC flash, with the usual suspects like HDMI, SD card, GPIO headers. There are four USB ports connected via an on-board hub chip, and a Gigabit Ethernet socket. Also there is a USB WiFi chip soldered on the board. More details: https://linux-sunxi.org/Sinovoip_Banana_Pi_M4_Berry I don't have this board, so this is a "call for testing". One thing to consider: - The USB WiFi chip has a CHIP_EN pin, which can turn the chip off. It is pulled up by a resistor, so works out of the box, but is also connected to a GPIO (PC2), so the chip can be disabled or reset via this pin. Since this is a USB device, we don't have a DT node to announce this pin. Any ideas how this should be handled? At the moment I ignore it, but it could also be modelled as a USB VBUS regulator for USB port 1, to which it is connected. When testing this, please have a look at: - Does the eMMC work in HS200 mode? The vendor DT described that as a 3.3V controlled eMMC only, but clearly the schematic uses 1.8V, which allows faster transfer modes. "hdparm -t" should suffice for a quick test. - Do USB full-speed (aka USB v1.1) peripherals like keyboard or mouse work on the USB ports? I disabled the OHCI node, since the hub should not need this, but it would be good to double check. - Similarly the USB WiFi chip probably doesn't need USB 1.1 modes, so please check this still works. Apart from the missing audio and video support (which are due to missing bindings for the H616/H618 SoC), most of the peripherals are supported. Patch 1/2 adds the board compatible string to the bindings, patch 2/2 adds the actual .dts file. Please have a look! Thanks, Andre Andre Przywara (2): dt-bindings: arm: sunxi: document BananaPi M4 Berry board name arm64: dts: allwinner: h618: add BananaPi M4 Berry board .../devicetree/bindings/arm/sunxi.yaml | 5 + arch/arm64/boot/dts/allwinner/Makefile | 1 + .../sun50i-h618-bananapi-m4-berry.dts | 229 ++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-berry.dts