Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2345204iob; Fri, 6 May 2022 00:01:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjUJcgQvAEJYvsA02XFu6evdLmGTnEAfI3NBUcXsXsNvFow6is8SJIxLsG0p1Cfk/m1+ew X-Received: by 2002:a63:5c6:0:b0:3ab:a0ef:9711 with SMTP id 189-20020a6305c6000000b003aba0ef9711mr1621271pgf.426.1651820490291; Fri, 06 May 2022 00:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651820490; cv=none; d=google.com; s=arc-20160816; b=ifL9IXChgeCJzT2j2HfFhlSPyHnLm0QmzW9k25wboSc3j+gDiToAVdHrQFhQUBWGjF UCkHqKeSwjY16enommub4qrYPqw472b1rPhjo777uuyUhUbc+hA408jw/PBYdO2TQkVC ks+lshvRJRNldZeAySy3dUdvwiIpI6Ulvc6e4IcAxH1YFud/l+YTBZ8havQxy269KasE pVriQ7jM9GLJpxiFmQICljoYoF901XcjL0MZHmrRJ0ZORVfMa9GPIT5gXhluRce37IrU CdgU/mpny/Oat74TRjXaIjGkArvSKGnxSoXLC+m+MAmDxaJ4aKdE3qUc7KNCutHF92jc zwcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KAi9SgYYEJZdQCddUzbx52lypx3cIglFyl/qHafebhw=; b=miBpBG1NqH0rTi56sFhd3qgLNXyKdDuTcZPhOCDD5wWt3XDUosb45ToRAey+MLvPBf 1uybG97SNfHzwDZ0MFMr13JQKLGwFKtTgDLlveFuMhTImfKI2prM/vTn23bmlHrfYBeo KkKLpp3Ce3vxC4l5UYigQrnQ92FU4NuQUYvfs3SOFFhh9VH+UfslQjr0HAoHxVv0XEo+ LDz/dEjIKhFZDuEStOSKCNKGITeu5cKh9cXldb5ZUNLZsMTr8c4bEPjH/wDqPrVWiDSV jG3Vjp49gKl4+P5f817vO12dhEiBd6Gcx5pDrUxjqObXiV8NKL/vz9mZeh4rIVh25WDd mRCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tkNfdzaa; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170902f54700b0015b2d35b05dsi1530560plf.365.2022.05.06.00.01.15; Fri, 06 May 2022 00:01:30 -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=@linaro.org header.s=google header.b=tkNfdzaa; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344203AbiEEIuj (ORCPT + 99 others); Thu, 5 May 2022 04:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235438AbiEEIuh (ORCPT ); Thu, 5 May 2022 04:50:37 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02F3D49F35 for ; Thu, 5 May 2022 01:46:59 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id i5so5115969wrc.13 for ; Thu, 05 May 2022 01:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=KAi9SgYYEJZdQCddUzbx52lypx3cIglFyl/qHafebhw=; b=tkNfdzaaxw1oNzzHEFi5PsCP9pSRB2g18WUgVkc6DnnNJz4opSwgzEVFoUUkq98Kud DmFNXaVYExw1NuJr8DqujznLa2az0lWDiTc0qWvNUCAP5r5OW9iSR8QEqSlWZJONTS4P F30VkUEk9v9uHoJqLqcvFr87lcceheNYz87udcrXOAHtFnIyEOvlcZaxaIZkOdNhT30Y dB4ud6EWIxegH+EYbtLr/2s0zJ21Uw2TaCRSfxNT1dPyuAPqkA2Ti2WZXu8bcR/8mxNC eMgh7vO/iGZwuEnOROZ+GPB0E6E/imyXgauO3i4m/vz/qEwWxwP3ttMVK1mz2Ist0shg sbpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KAi9SgYYEJZdQCddUzbx52lypx3cIglFyl/qHafebhw=; b=aV6mdcw+/rBxSXL815qPXnUMra4mY37Qg1/aVJt8GIkJFpDv+hvca1hqONe5e5sV01 JjVbQIlItWJf05zlGWYsa/5k3wE0YXfowFKZEsuS/ZSLIYPNGiPTfIXhwHRYWy57k8wP PB3jE3IrN1KS9NDvNpyQ/mZ4AWBX1YmP5iZKLGdDgkMhxG5yZmoCUReLC09IKIvLQHUz 4cx3oTolMjC0zzfTtfCmrwDymKRUWZE4GPIA4CVSB+oBIAloTr769TypKK3LV6L6OIMF XKirYkFExsql/R1pdIMH4R7Ii5eT7L/++EtFxbUY0LdSzsZFU9IkEJ8SIK1nAsCBUmF5 6ZSw== X-Gm-Message-State: AOAM530iKD2ggYtBDiOPESOtIWU6ljXGBKRX33twv7yvtI5WaYF0yIBV U2oblTVbTmdvw02NnAsU9uqszQ== X-Received: by 2002:a5d:6551:0:b0:20a:e23c:a7fa with SMTP id z17-20020a5d6551000000b0020ae23ca7famr19657153wrv.535.1651740417622; Thu, 05 May 2022 01:46:57 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id 67-20020a1c1946000000b003942a244f2csm6771728wmz.5.2022.05.05.01.46.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 01:46:57 -0700 (PDT) Message-ID: <313a5b2e-c571-a13f-3447-b1cd7200f4c9@linaro.org> Date: Thu, 5 May 2022 10:46:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [RFC v2 4/4] arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board Content-Language: en-US To: Vladimir Oltean , Frank Wunderlich Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20220430130347.15190-1-linux@fw-web.de> <20220430130347.15190-5-linux@fw-web.de> <20220504152450.cs2afa4hwkqp5b5m@skbuf> <20220504154720.62cwrz7frjkjbb7u@skbuf> From: Krzysztof Kozlowski In-Reply-To: <20220504154720.62cwrz7frjkjbb7u@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 04/05/2022 17:47, Vladimir Oltean wrote: >> >> current device-tree nodes using "switch" and "ports" >> >> see discussioon here about make it fixed to "ports" property instead of PatternProperties including optional "ethernet-" >> >> https://patchwork.kernel.org/project/linux-mediatek/patch/20220502153238.85090-1-linux@fw-web.de/#24843155 > > Hmm, I don't get why Krzysztof said to just keep what is used in > existing device trees. The schema validator should describe what is > valid, These were talks about bindings which describe hardware. The node name, except Devicetree spec asking for generic names, does not matter here actually. > and since the mt7530 driver does not care one way or another > (some drivers do explicitly parse the "ports"/"ethernet-ports" node), > then whatever is valid for the DSA core is also valid for the mt7530 > bindings. And "ethernet-ports" is valid too, so I think it should be > accepted by mediatek.yaml... You can make it "(ethernet-)?ports" as well. My comment was purely to make it simpler, for bindings (goes into properties, not patternProperties) and for us. If you prefer to keep it like DSA core, also fine. Best regards, Krzysztof