Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5684970ioo; Wed, 1 Jun 2022 10:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOz3UZQpsy85Q4YW2G8xxTSMGz3s2UmFqPpufz1mSE+4RgwvCLG0fSmGxptR6/hGcKdMXO X-Received: by 2002:aa7:d4c6:0:b0:42e:561:8c70 with SMTP id t6-20020aa7d4c6000000b0042e05618c70mr726099edr.131.1654103940811; Wed, 01 Jun 2022 10:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654103940; cv=none; d=google.com; s=arc-20160816; b=StyFbqRVs4ROQSdbRrG4yDr9cJ4e1EQlmiVYiVdOHfCTqsHuCHHrrReaCP2IzG2+YH RSrhbInc0LwJGEP7KFHW3oOxVZ77TbnY5/P4Y19icjCw62tizAPWKrrw2QWW9Xj0eAzr rq3uSJZPNL0wPzhvjcLyREMsnuj4Z6HWyVVCvGCXiWUhuaBXSj8yuCA9ereUIW0O35SB eVPkpRtIzSwfHuvD20wLnHZ8ZPjDboaRC7mLfUrlte8UYf6h/3Ao1LNocoKj4VLwmJrR sLEW9DqMgbViTh8bDPnRRuNT38D2GrBFoYZM6v+a13NM8V7FfZVLaTWS23q+6EXJ0mkR /9wA== 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=9rheSKGCTBtpKVSuVWbfcC85G3s1vKpAYLbNOEGXq2w=; b=nFkdNDP/UW3fxfddDaqnymVsDwJP1wmXzTdnPHxeieqSo5XJw+Bh/HgbmjashyIAoc 7ATy9JgVbVLJHHbMquXPr2wG68I9H4gzAEk5gV8Hps5AADC++ZBnVlDyBHtlfNFVQ+Nc RIudsJC1GNBVyxwnUwWPRyWdxYEQucYMxaxfXV9fDUknf5V+qGrksisarvKJbpar1EsJ 8OLbenfN9evS26N636A1skXwU+poAA8P6J4zvvm5Nr2BewagJplOkt+Y0eEGFvlqLhml UMyGT37chcSrQ+of46ZyzbmpfWs7Edzg+pTJe14tcJY7ucoRNDb/jFXVyCe24Uhq/1yB hYEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=E9sAJi+x; 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 d11-20020aa7ce0b000000b0042def52a009si1994004edv.438.2022.06.01.10.18.34; Wed, 01 Jun 2022 10:19:00 -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=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=E9sAJi+x; 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 S1350285AbiFAHlK (ORCPT + 99 others); Wed, 1 Jun 2022 03:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347748AbiFAHlG (ORCPT ); Wed, 1 Jun 2022 03:41:06 -0400 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE46941A8 for ; Wed, 1 Jun 2022 00:41:05 -0700 (PDT) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-306b5b452b1so9407977b3.1 for ; Wed, 01 Jun 2022 00:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9rheSKGCTBtpKVSuVWbfcC85G3s1vKpAYLbNOEGXq2w=; b=E9sAJi+xs2Mm03yGA6s/AoSrSPevJMqIGT2BQTUevPEAEGTCsIxg0a/Iuc+b0bBBwY 2vlAWzqS5LyF/jTeTR1Uq2qqIhOt/UX8kSVWTx7ZwHWH+f4CClYERQzkOilRpQWjco8S /sPjedyjBxMLf79M6ixkpwryNB/ul+E7heP3Mgrqe0t3QcOQNywRp644FUBDU0stO3no ex63/anNFl6HSZkzeOQXZPPjvBhXCupe/xz/vZOrKFEE8ZSjwb/+odbCYE0LJu73dJVm dzP1Pd9gSGm9sf8HqAyyoaoNrhxN6NuexXeYCYx376Z1oNH2LQhLOGNAK9HXVs5FTOlt 9siw== 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=9rheSKGCTBtpKVSuVWbfcC85G3s1vKpAYLbNOEGXq2w=; b=PFAQJBfnZ2KdaUj51LzYFJvFiGPViioBgysWJ1ZXG08X03JYc/BVhkmgkSJMNQWYQw z7BLCAwgMvp/7wqcUUeas9b9Ff6l0XpW+TTMq81OMxyDCBNySWkcK7mAhttSasGgesuu bBYRPpy9T/9whBXVNSiV4gsRcauFdQSLRvFmbRK6aIrc1SdylWJKzH7APtTNiDMbIfnb KczcqRVFnd5F5PzXDk2a7er47kTozt3/a9a7jfhSKxM8VJad0nXVvJvyb8i8mZc+o9Dd gKxm1wlp5UAek5Lf45NYhpXuimB/e7cQO7OIyhfdF7itoJf6eloZ5+z6y2QWpVDCIULb xkUA== X-Gm-Message-State: AOAM533JjuMPFjnONq5GPflT72qgY14z6F/T+EBfQ4fYsbth+AiSV+MJ fTXADf4bSnT4OuVD7unIvNsnwzqzXa+cG7ftfUnJCg== X-Received: by 2002:a0d:cd04:0:b0:300:4784:caa3 with SMTP id p4-20020a0dcd04000000b003004784caa3mr39945959ywd.231.1654069264520; Wed, 01 Jun 2022 00:41:04 -0700 (PDT) MIME-Version: 1.0 References: <20220530130839.120710-1-pan@semihalf.com> <20220530130839.120710-3-pan@semihalf.com> In-Reply-To: From: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Date: Wed, 1 Jun 2022 09:40:53 +0200 Message-ID: Subject: Re: [PATCH 2/3] dts: socfpga: Add Google Chameleon v3 devicetree To: Krzysztof Kozlowski Cc: Alexandru M Stan , SoC Team , "moderated list:ARM/Mediatek SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Arnd Bergmann , Olof Johansson , Rob Herring , krzysztof.kozlowski+dt@linaro.org, Dinh Nguyen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Tue, May 31, 2022 at 5:36 PM Krzysztof Kozlowski wrote: > > On 31/05/2022 16:47, Pawe=C5=82 Anikiel wrote: > > On Tue, May 31, 2022 at 11:11 AM Krzysztof Kozlowski > > wrote: > >> > >> On 31/05/2022 03:20, Alexandru M Stan wrote: > >>> Hello Krzysztof > >>> > >>> On Mon, May 30, 2022 at 11:56 AM Krzysztof Kozlowski > >>> wrote: > >>>> > >>>> On 30/05/2022 15:08, Pawe=C5=82 Anikiel wrote: > >>>>> Add devicetree for the Google Chameleon v3 board. > >>>>> > >>>>> Signed-off-by: Pawe=C5=82 Anikiel > >>>>> Signed-off-by: Alexandru M Stan > >>>> > >>>> Your SoB chain looks odd. Who did what here? > >>> > >>> Sorry about this. > >>> > >>> It was mainly Pawel but I did some small changes at some point before > >>> it landed in our tree (particularly the GPIOs). > >> > >> Then usually Pawe=C5=82 should be the owner of the patch, not you. > >> Alternatively it could be also co-developed. > >> > >>> > >>>> > >>>>> --- > >>>>> arch/arm/boot/dts/Makefile | 1 + > >>>>> .../boot/dts/socfpga_arria10_chameleonv3.dts | 90 +++++++++++++++= ++++ > >>>>> 2 files changed, 91 insertions(+) > >>>>> create mode 100644 arch/arm/boot/dts/socfpga_arria10_chameleonv3.d= ts > >>>>> > >>>>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefil= e > >>>>> index 023c8b4ba45c..9417106d3289 100644 > >>>>> --- a/arch/arm/boot/dts/Makefile > >>>>> +++ b/arch/arm/boot/dts/Makefile > >>>>> @@ -1146,6 +1146,7 @@ dtb-$(CONFIG_ARCH_S5PV210) +=3D \ > >>>>> s5pv210-torbreck.dtb > >>>>> dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) +=3D \ > >>>>> socfpga_arria5_socdk.dtb \ > >>>>> + socfpga_arria10_chameleonv3.dtb \ > >>>>> socfpga_arria10_socdk_nand.dtb \ > >>>>> socfpga_arria10_socdk_qspi.dtb \ > >>>>> socfpga_arria10_socdk_sdmmc.dtb \ > >>>>> diff --git a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts b/ar= ch/arm/boot/dts/socfpga_arria10_chameleonv3.dts > >>>>> new file mode 100644 > >>>>> index 000000000000..988cc445438e > >>>>> --- /dev/null > >>>>> +++ b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts > >>>>> @@ -0,0 +1,90 @@ > >>>>> +// SPDX-License-Identifier: GPL-2.0 > >>>>> +/* > >>>>> + * Copyright 2022 Google LLC > >>>>> + */ > >>>>> +/dts-v1/; > >>>>> +#include "socfpga_arria10_mercury_aa1.dtsi" > >>>>> + > >>>>> +/ { > >>>>> + model =3D "Google Chameleon V3"; > >>>>> + compatible =3D "google,chameleon-v3", > >>>> > >>>> You miss here enclustra compatible. > >>> > >>> Does this make sense? I don't expect this device tree to boot/work on > >>> an enclustra motherboard. It's only really compatible with a > >>> "chameleon-v3". > >> > >> You also do not expect it to boot on altr,socfpga, do you? > >> > >> If I understood correctly, this board has physically Mercury AA1 SoM, = so > >> that compatible should be there. > > > > Yes, you understood correctly. > > I looked at a similar device - the Cyclone V MCV (SoM) and the MCVEVK > > (base board): > > arch/arm/boot/dts/socfpga_cyclone5_mcv.dtsi > > This one is clearly incorrect, so using it as example is wrong. > > > arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts > > Since it is based on wrong MCV, then no wonder it's the same. > > > And there is no denx,mcv compatible anywhere, only denx,mcvevk. > > Also, devicetree bindings documentation lists denx,mcvevk under > > "Cyclone 5 boards", and, unless you consider the MCV to be a board, > > there isn't a good place to put denx,mcv (same story with mercury+ > > aa1/chameleon). > > socfpga are not the best example... upstreaming looks incomplete or even > incorrect, like this case of Enclustra SOM. Much better examples are > FSL-based SoMs. Although some of them are also not in the best shape. > > Still someone might prefer to skip SoM compatible arguing that it cannot > be a separate final product. Sure, but also SoC cannot be a separate > product. Having SoM compatible allows to match against it and find > common hardware parts. Ok, I understand. Thanks for the explanation, I will add the SoM compatible= . > > In any case you want to remove here parts of bindings (so affect ABI), > to which I do not agree. > > >> Let me clarify - please use generic node names, as asked by Devicetree > >> specification (2.2.1. Node Name Requirements). There is also list of > >> some examples in the spec, but you can use some other generic node nam= e. > >> > >> Several bindings also require it. > > > > Do you mean something like this? > > ssm2603: audio-codec@1a { > > u80: gpio@21 { > > Yes. > > > Best regards, > Krzysztof