From patchwork Mon Nov 7 20:55:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renze Nicolai X-Patchwork-Id: 16676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2288468wru; Mon, 7 Nov 2022 12:53:25 -0800 (PST) X-Google-Smtp-Source: AMsMyM5sVF+kxZdbZeWGFmmIHEf/ZQxgf44alJXNrxVe7cVDltLt9llknqv3kXW5UKzQuKy5lfJu X-Received: by 2002:a65:6d93:0:b0:42c:50ec:8025 with SMTP id bc19-20020a656d93000000b0042c50ec8025mr43662173pgb.62.1667854404712; Mon, 07 Nov 2022 12:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667854404; cv=none; d=google.com; s=arc-20160816; b=P8S6Q3QoZT0yqCKi2xTNMs2DyXtaXDKR8oZBvyoNeQ5XWYF4A+1gKM8ilHbVUPLdWj x4VxQtMSeBcxSKkUFpmZFwS4qeHPj6pic+ocGkhhjpaRbqBAuhi6/ilLQrsU1CCVAqQJ 4GycD549DWmKdHRxyZBZLpDOC7pvB/68ERnPIkhpyVm8sGDJ+hH+Hm7cOHjijuRmeWfl sPNsqmnHaONAihATf9x56hHiXBK/is+pBpI494fmnCuU00TY2fkaV32SeXQPvsFYK8fG LsK+8+zoZw3ngrVQM5e9hYzFZa3+++6REerURejanwaens7rZEwf1ecF8cyiB6QYZXUd 8+RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=lXWbFjHm7Ijj0zh0eDkF42D1UVPYB7S73P9hpAh2s9U=; b=x5H3tApMAjTggtSZ2IRE+2rt2MEpIKNQBl2k8HFZFKCmyE0Ohn+5WYYUV3Q/SIt7nb 9cneSvThaNLdNNuL2K5PwlnQQHq9kuajQm/3Biw9E5lUYywQXhF4F/YrZOZahEhL//dO OhVicpnV9/71dQa34OnTF+qixfletZ8pEZfgDSvN2n5m1ULuZ9jho2GlYj7QXJzguaKN p2ivispusohSQ8t+FlhT23w6W+eTQNzvPmcXQ/TweEP2z1PiQlZWJ6xg0s7rFP+waY/j SRTGhb/hYuODjGS5hIPCB1RIgilP8kTHFIWkaRmHvPx03HK96cEoNSLxqH7g9cRV7eBi Hxrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@rnplus.nl header.s=dkim header.b=Sx6Ui834; 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=rnplus.nl Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a056a001bc500b0056e4c9407d9si9660313pfw.97.2022.11.07.12.53.11; Mon, 07 Nov 2022 12:53:24 -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; dkim=fail header.i=@rnplus.nl header.s=dkim header.b=Sx6Ui834; 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=rnplus.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233033AbiKGUuS (ORCPT + 99 others); Mon, 7 Nov 2022 15:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232991AbiKGUuQ (ORCPT ); Mon, 7 Nov 2022 15:50:16 -0500 Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEE323BE0 for ; Mon, 7 Nov 2022 12:50:15 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.rnplus.nl (Postfix) with ESMTP id 0B34B378526 for ; Mon, 7 Nov 2022 20:55:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at rnplus.nl Received: from mail.rnplus.nl ([127.0.0.1]) by localhost (mail.rnplus.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUZ_zwlcCKE6 for ; Mon, 7 Nov 2022 21:55:09 +0100 (CET) Received: from mail.rnplus.nl (mail.rnplus.nl [178.251.25.70]) by mail.rnplus.nl (Postfix) with ESMTPSA id 19466377FDD; Mon, 7 Nov 2022 21:55:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rnplus.nl; s=dkim; t=1667854504; bh=j6/hl1Q/eLB5dfplzUEE3Y3Xcn8JgcBaeo5qHF07U1c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Sx6Ui834KnjajDINNMaoFkChSB9FS8NXlnkEeBY5rzPxCfrDtDn5EFVA3ubH/3b7e oq6cl58fNCblM17SfHJDJxA03nrHfs3iwPBErDgl3OLaX5rkRXcqI4zmaOK1nWMH+d Vp4BzvS8AGqFVec4tMIHmQfOIKnPjeB7oStdY8ZY= MIME-Version: 1.0 Date: Mon, 07 Nov 2022 21:55:04 +0100 From: Renze Nicolai To: Krzysztof Kozlowski Cc: linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Subject: [PATCH v2] arm64: allwinner: a64: add device tree for SoPine with clusterboard In-Reply-To: <334c5f69-2f25-aeb1-b87f-500cf2a6c205@linaro.org> References: <334c5f69-2f25-aeb1-b87f-500cf2a6c205@linaro.org> User-Agent: RN+ Webmail Message-ID: X-Sender: renze@rnplus.nl X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748784828765005415?= X-GMAIL-MSGID: =?utf-8?q?1748872100656544328?= Hello Krzysztof, Thank you for your feedback! I've fixed the indentation and I've added the compatible and model elements. Greetings, Renze Nicolai The Pine64 clusterboard needs a to have the tx delay changed to 500ps for ethernet to work. This solution was described by multiple people on the Pine64 forum years ago and nobody has submitted it. Add a device tree for SoPine with the clusterboard. Signed-off-by: Renze Nicolai --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../allwinner/sun50i-a64-sopine-clusterboard.dts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 6a96494a2e0a..15b011d1aaea 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -15,6 +15,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab-early-adopter.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-clusterboard.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a100-allwinner-perf1.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts new file mode 100644 index 000000000000..f75325d43d76 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-clusterboard.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (c) 2022 Renze Nicolai + +/dts-v1/; + +#include "sun50i-a64-sopine-baseboard.dts" + +/ { + model = "SoPine with clusterboard"; + compatible = "pine64,sopine-clusterboard", "pine64,sopine", + "allwinner,sun50i-a64"; +}; + +&emac { + allwinner,tx-delay-ps = <500>; +};