Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp642477rwl; Sun, 25 Dec 2022 04:30:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXtvKXPl5vHQuHs2p1pfSYO8umNzfH8zcsfY5ygUzBhYpJErtDnKZCjuL8EbWV95cCZ3w4C1 X-Received: by 2002:a05:6a20:e615:b0:a3:5864:e0c5 with SMTP id my21-20020a056a20e61500b000a35864e0c5mr21576221pzb.9.1671971429996; Sun, 25 Dec 2022 04:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671971429; cv=none; d=google.com; s=arc-20160816; b=r1ehXGOrmuTF8C0jr4CgK8RHls4wnZWsh8KgCRgOnKs60N2Xd2Yz3KyRHmVsYRHj9N IsiYrTcDDUcl3xzLtFluDynM2A3P1P6S/WTxxRq32i+l4CvF56Ob8Jv+JtQRHpWlBwIR eyZFxm+FIU4RY+U8KGhpOsfo9mZZh61RioYk1SN1wpC40x1kcKp0IE66lXbK2pNvJWdl 5pU6OdNpIbNkGLLKaCB5qPgnxjd3wWxj7or6dafU6or7leGul3AQgZ/10JuoCoLxd3XJ 9VJzeO1JteUeHcpp4ee9DtLRtEFgdVugHJq4MD1rqmowY73WBfMURljOS3ZW31yKgxbi O80g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :references:in-reply-to:sensitivity:importance:date:subject:cc:to :from:message-id:mime-version:dkim-signature; bh=G2/SmOJW+fkk74tqypiaCsSzjv667+pDRrZxpdHI4jg=; b=ByFhDabyCDBhGxoABl1RZdei/dlh0VJrVCuTQ+nP2Mhe+aV7Y0VTk9V2mzaoq7i+MC 4hE4VvT9M9Dr8k1nWP+/MOAlcBtCPd2Pkik/KdZFDLdialkOHT6Q4IW2FCblsQusO3GT 5o/OgKqe86MMKy38jvMNjzI/Ai/8/AWM0qA3ZecBSdhBbM+kxJAXFh3tAKcmGo4ofMBr 9HN38s5dVzo8i8DgH6QCKkIzDpikly6rdu9n4FNQtmKhhmMpUc+woXZFH6iMv3lYUb0X Giwx/Gu0KoAOaINKXdQYMzrK9/V1VNWQn1ejviYolec+FhysMk9URBKzNX+MORhpmpsq d6UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b="Ma/xkta6"; 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 y193-20020a638aca000000b004976cc1f412si4639242pgd.288.2022.12.25.04.30.21; Sun, 25 Dec 2022 04:30:29 -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=pass header.i=@public-files.de header.s=s31663417 header.b="Ma/xkta6"; 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 S230383AbiLYLvK (ORCPT + 66 others); Sun, 25 Dec 2022 06:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiLYLvA (ORCPT ); Sun, 25 Dec 2022 06:51:00 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88F81BA0; Sun, 25 Dec 2022 03:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1671968822; bh=cigTGUVAg3Yj9PBuOXrP7a8GktisvMkb4W/saccjwJQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Ma/xkta6H/Vvu8O4rhc4uZyrSkGoLzcj0u3e+4+TsD4ecPjO4RdiTm8nzUIpHBg8t yODU1TLBIFTfdJLVBlQPzfNkaUw4INHVjuJ4gklf1gC+4NS7bQxFhZdLTJComCawxT FoNsX+YKxX2QusrfdnIZzotnf9ovGBKNZvqERLVsG8XKa+QpTP+3jnz5cduXBc6ZJb XDpzyAP8rRElSmXpRYqE6Flyu5JYhkA9jbHoa88IAt8F0oKr/i8WXIlnG/A1H+x37k jIamcERWlvttUqlamw9zawJZdLhlNurOM2MxVzlYyQE7NYgmOINTAzmtKMDzqbr6AT fINsT6KW8DG/g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [157.180.225.172] ([157.180.225.172]) by web-mail.gmx.net (3c-app-gmx-bap38.server.lan [172.19.172.108]) (via HTTP); Sun, 25 Dec 2022 12:47:02 +0100 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Daniel Golle Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Kishon Vijay Abraham I , Rob Herring , Ryder Lee , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Greg Kroah-Hartman , Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Jianjun Wang , Chunfeng Yun , Vinod Koul , linux-usb@vger.kernel.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-pci@vger.kernel.org, Bjorn Helgaas , devicetree@vger.kernel.org Subject: Aw: Re: [next v7 8/8] arm64: dts: mt7986: add Bananapi R3 Content-Type: text/plain; charset=UTF-8 Date: Sun, 25 Dec 2022 12:47:02 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: <20221127114142.156573-1-linux@fw-web.de> <20221127114142.156573-9-linux@fw-web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:10CT/kHfUVpSwqOqwS7PiCBR0/UkRQWI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05FKDuBggiU2hqUxx5Q6lGPoMFa94cU4cBp5hYxx4dU5WsG6eYssc0MUJe v7pKBoXRZTACH/SOAAOVa4uzu3j406KqJjqu430gP7Hiw= Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi > Gesendet: Samstag, 24. Dezember 2022 um 20:00 Uhr > Von: "Daniel Golle" > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-emmc.dtso > > @@ -0,0 +1,30 @@ > > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > > +/* > > + * Copyright (C) 2021 MediaTek Inc. > > + * Author: Sam.Shih > > + */ > > + > > +/dts-v1/; > > +/plugin/; > > + > > +/ { > > + compatible =3D "bananapi,bpi-r3", "mediatek,mt7986a"; > > + model =3D "Bananapi BPI-R3 (emmc)"; > > Why do you set the model string here? seems to be a left over from testing where i wanted to see which base-dtb = was loaded without comparing mmc-node settings. Was easier to see with model-s= tring :) > > + > > + fragment@0 { > > + target-path =3D "/soc/mmc@11230000"; > > + __overlay__ { > > + bus-width =3D <8>; > > + max-frequency =3D <200000000>; > > + cap-mmc-highspeed; > > + mmc-hs200-1_8v; > > + mmc-hs400-1_8v; > > + hs400-ds-delay =3D <0x14014>; > > + non-removable; > > + no-sd; > > + no-sdio; > > + status =3D "okay"; > > + }; > > + }; > > +}; > > diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts = b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts > > new file mode 100644 > > index 000000000000..618d3bb2f32f > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts > > +&mdio { > > + switch: switch@31 { > > + compatible =3D "mediatek,mt7531"; > > + reg =3D <31>; > > + reset-gpios =3D <&pio 5 GPIO_ACTIVE_HIGH>; > > Please add: > > interrupt-controller; > #interrupt-cells =3D <1>; > interrupt-parent =3D <&pio>; > interrupts =3D <66 IRQ_TYPE_LEVEL_HIGH>; > > to have IRQ driven phy status instead of having to poll the link status > of the 5x rj-45 ports. > The value comes from schematics (pin AD24, GPIO66, 7531_INT) and I've > tested this on my board. ok, if you have it tested i add these properties in next version (and test= it too). I wait for tphy-binding to be applied to next (pcie and xhci already in to= rvalds/master). > > + }; > > +}; > > + > > +&spi0 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&spi_flash_pins>; > > + cs-gpios =3D <0>, <0>; > > I don't think those bogus cs-gpios here and for spi1 below are needed. can drop them in next version > > + status =3D "okay"; > > +}; > > + > > +&spi1 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&spic_pins>; > > + cs-gpios =3D <0>, <0>; > > + status =3D "okay"; > > +}; > > + regards Frank