Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3224751iob; Sun, 1 May 2022 10:10:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWX5oRI9NDFKFRr/cyboDXUr7sRyjJhlRQrc7fFL18BFPfpBdfnE/jmace+4tHaExNzMrL X-Received: by 2002:a2e:91cf:0:b0:24f:11ea:d493 with SMTP id u15-20020a2e91cf000000b0024f11ead493mr5777411ljg.408.1651425042476; Sun, 01 May 2022 10:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651425042; cv=none; d=google.com; s=arc-20160816; b=g9Fn08gMpMh5RVF6orPiZ6WynM8hr1Zm3IhositwL8/jbLlRztwieNTVj02O44AQSL Q3AXX/VVrBZfLPbizMteaiG3NBab99TJOd4QTZ8GmG2xDxnm2xiaIQ2GaKNu8IK8EL/X Wx6/rSHW+nAK7eGxXNBE+XYngyIQ6nCyxaMwuHjlKVkB3e90YWxNWbBF55h72Pun8n8q dbWPXruT+q7dMb6hM01MBmRxs4tlbfhdJWPS2ez0jL4wWI71S+DaP44T9ps53rw0+Y4h ekic8NF0nruslA1ngXSnc/FWGYUuMGiddcdWTEear37tUW6qpZPMEXulprT6aAKqAzh6 /hrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=X+TH5SKck4yWzLo1Cg2jnvVaiWnIEj/UD97CyPselfw=; b=bdejjha56X9n5auvuJELiPUsiP+p0jzOFCEf2+TU3dun0dtUoRwt5kEeKMvC4xm6cy 5R6Chmo4GxT6zyHhW7YVMhn5j9vm17D3G4pqxX1jwkqI8bx9DSs+3i+DMTI9u2R3zBE3 71jMqZF0/a/FT2ymg38g1IeYqV1dzaASwyIgMhMpi/KzbyBQ+W4GwpfiuS337BqzaSfv usqQQv7uffvTk5/oHWgKf50DvnSTYhmIWtFAaVfAt7wMC2Sz9wu1JJeXlWjAVq69Ip5l Pgm021QMievc+5wGogmZE6NcG+b2zMBHASJKA04OvGegI/xh6Hvn5SleRs17NVhgfHVb blsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G637iZTS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a2ea166000000b0024f155287bbsi11970436ljl.558.2022.05.01.10.10.16; Sun, 01 May 2022 10:10:42 -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=@gmail.com header.s=20210112 header.b=G637iZTS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345756AbiEALvl (ORCPT + 99 others); Sun, 1 May 2022 07:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231791AbiEALvj (ORCPT ); Sun, 1 May 2022 07:51:39 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46CCAE6F; Sun, 1 May 2022 04:48:13 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2f7d621d1caso123879057b3.11; Sun, 01 May 2022 04:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=X+TH5SKck4yWzLo1Cg2jnvVaiWnIEj/UD97CyPselfw=; b=G637iZTSMYRktzcyEfCLLTQr68TFiujVx0g9ZLDuLlYOXeolr+6zY3ANU9Tq31YJM1 Dz0iXCcm1Zlq0KZJU8z/IcLcRMyWYK8IFL/QeVO5AgUw7rRrdKnPZhlR7gUkK81XQyJP 4pr3FaNFM9kha/bKW9viy78IsH+Pj7NSfZ4TIlWkHRSHWGbsGLScKZc4zEiU1TCgkscs v90aMXuygSHGWaYB6CgQhetC8jPrw86TQd742sRciFIGcWBRymV9LSmBitistgGfF8GR Uh09K7dV+ri4UXHO2E3EzNLV0aJIJMLHvNIVemHxXbTtmSOjh2vEwLn7zJnrBkLrnzN4 RzmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=X+TH5SKck4yWzLo1Cg2jnvVaiWnIEj/UD97CyPselfw=; b=Q4/q0HpfeDy0jFwaHhdNsnXt0l8KsnQrSTBYrRohbSSDNQgOW12EkgLqZ6ubSGUbsi 3EX7hxYdMdgH53m0B3nPudI9qYtPrF/4BEtUm5AFs0lzDgIZ9ZBEuQKGvgFDB5Chv7pw w9+30FYqGwy3xJFoLOxS1Hhjl1AkuWrl3yJR9vUlaNuOmV6NiM3cmbVVizx9/8hOqAH9 g/VGRq6nXp2x7fXs0f2E6JNPQ09WY/jGkoYKoP7/q6ttdKXQKUuJioWSRzoaYs4uic7k kDjunLmHE2hHc60hEdBOSASoWdAsOfOBH3dKI6ZaUeapsv7Ky3xIaR2JrrFPJgXJuwIL Ytyg== X-Gm-Message-State: AOAM531He//xaE0QWBKrmSVwV/Kzv+202mRYfU1pi05fbjfQvSz2+DJi Pj3SrNR8cyX8lYiPstYBdoGxgfJ7frcwXv6mec4= X-Received: by 2002:a05:690c:89:b0:2d7:fb7d:db7 with SMTP id be9-20020a05690c008900b002d7fb7d0db7mr7787106ywb.219.1651405692862; Sun, 01 May 2022 04:48:12 -0700 (PDT) MIME-Version: 1.0 References: <20220429115252.2360496-1-pgwipeout@gmail.com> <20220429115252.2360496-6-pgwipeout@gmail.com> <46548c93-4e6d-858c-8b79-03be9326c92a@gmail.com> <3428030.iIbC2pHGDl@diego> In-Reply-To: <3428030.iIbC2pHGDl@diego> From: Peter Geis Date: Sun, 1 May 2022 07:48:02 -0400 Message-ID: Subject: Re: [PATCH v2 5/7] arm64: dts: rockchip: add Pine64 Quartz64-B device tree To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: "open list:ARM/Rockchip SoC..." , Rob Herring , Krzysztof Kozlowski , Johan Jonker , devicetree , arm-mail-list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sun, May 1, 2022 at 7:31 AM Heiko St=C3=BCbner wrote: > > Am Sonntag, 1. Mai 2022, 09:06:33 CEST schrieb Johan Jonker: > > > > On 4/29/22 13:52, Peter Geis wrote: > > > Add a device tree for the Pine64 Quartz64 Model B single board comput= er. > > > This board ouputs debug on uart2 and supports the following component= s: > > > Gigabit Ethernet > > > USB2 x2 (one port otg capable) > > > USB3 > > > PCIe/SATA M2 > > > HDMI > > > DSI (RPi compatible pinout) > > > CSI (RPi compatible pinout) > > > A/B/G/N WiFi > > > Bluetooth > > > SDMMC > > > eMMC > > > SPI Flash > > > PI-40 compatible pin header > > > > > > Signed-off-by: Peter Geis > > > --- > > > arch/arm64/boot/dts/rockchip/Makefile | 1 + > > > .../boot/dts/rockchip/rk3566-quartz64-b.dts | 615 ++++++++++++++++= ++ > > > 2 files changed, 616 insertions(+) > > > create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dt= s > > > > > > diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/= dts/rockchip/Makefile > > > index 4ae9f35434b8..252ee47b8a1d 100644 > > > --- a/arch/arm64/boot/dts/rockchip/Makefile > > > +++ b/arch/arm64/boot/dts/rockchip/Makefile > > > @@ -59,5 +59,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399pro-rock-pi-= n10.dtb > > > dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3566-pinenote-v1.1.dtb > > > dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3566-pinenote-v1.2.dtb > > > dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3566-quartz64-a.dtb > > > +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3566-quartz64-b.dtb > > > dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-evb1-v10.dtb > > > dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-bpi-r2-pro.dtb > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts b/arc= h/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts > > > new file mode 100644 > > > index 000000000000..184ab7e1d178 > > > --- /dev/null > > > +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts > > > @@ -0,0 +1,615 @@ > > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > > +/* > > > + * > > > + */ > > > + > > > +/dts-v1/; > > > + > > > +#include > > > +#include > > > +#include "rk3566.dtsi" > > > + > > > +/ { > > > + model =3D "Pine64 RK3566 Quartz64-B Board"; > > > + compatible =3D "pine64,quartz64-b", "rockchip,rk3566"; > > > + > > > > [..] > > > > > + > > > +&mdio1 { > > > > > + rgmii_phy1: ethernet-phy@0 { > > > + compatible =3D "ethernet-phy-ieee802.3-c22"; > > > + reg =3D <0x1>; > > > > Hi, > > > > The reg value doesn't match the node name. > > Other 2 boards use "reg =3D <0>" with label "rgmii_phy1". > > Could you check? > > I do have an older Quartz-B in my boardfarm and in that older > devicetree the phy-reg also is "0" instead of the "1" used here. > > Is that a hardware-change? The ethernet maintainers previously brought up that 0x0 is the broadcast address for the mdio-bus. They requested we put the actual bus id of the phy even on single phy busses. This is the first one I've confirmed the bus address on. Though I realized ethernet-phy@0 should be ethernet-phy@1 since you mentioned this. Strange dtbs-check doesn't catch this, would you fix it in line Heiko or do you want another revision? > > Thanks > Heiko > >