Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1809309rwb; Fri, 2 Dec 2022 01:09:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf47bpF+i+mUdDS6CEVwdSDb7mNtGQZQhP/QME93qQG9ocD4d3BV18e/TnEJ2JpOmiYe/qW7 X-Received: by 2002:a05:6402:3789:b0:467:7664:c7f4 with SMTP id et9-20020a056402378900b004677664c7f4mr20752346edb.99.1669972165310; Fri, 02 Dec 2022 01:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669972165; cv=none; d=google.com; s=arc-20160816; b=SdZgtpg65LhtPvVTFrPPRMAURBQ+ZXDzvsW+M6ZXpMqIowx1PoZySESYovTPBWsQyB u7kgkfeHFvnA3AW/dC0Ppbmy7ZsL6OylrQy9CT0rCaZJTZS+eqs/gdCaau6pbq3VS+M5 phDbh6QF6a+daH8Hc3Ycrq8QBrLlqhn4hmNbL3fO8hKPo/32ZaNe83JMhkV9Hv0bE6N8 nhHBYgNR0PkodoKCl88K4KfoXt8Ddv2RlK3x/sqHwoqznhIuRx/3ltqoLTgYEPUpjrzQ ZzPWv5cMIRyp1Uhd/+2xXihuyja6l9ri/v9H9Kv3WKuw8AOkg+KQYwKK93O48BQxL5SU 7Lhw== 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=4IdzLY27aCfwCW+1kAuSU/YopF0MIss2eIYe4Dhln+A=; b=biFr3cpgc0ycaLIE9U8wZQJw8adzl7Be9xnP5AuPZXiFU01aRdb3sp+L5Gii3VIUGz VFv4V50xiusrBBT+ib9ys8RMXMryLpOACElKOPAdTH8DE4hCtCUS1m8mzcTnvJDhoc1w QXYysm7TsLa3HGhvq3/c/uWzMDCWxfIYBb4HtNUbqII6dcsANHqxMPtu9PEi6lo/eRx7 ghi68EiCKN+uyDwKQZBvLhl2Qlf/J2GpCs/hQVysCKnEmTGLtpZakLT3XRknJ7Y6+5Xz FA3Qz7KctBiplGGSnEpAf/hsFkLK6Qz2Fyaewys85GcF3PKDw31qPs80AGxnKWWojO0R hfzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WwORmOy0; 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 x3-20020a05640226c300b0045caa1628c6si6577166edd.216.2022.12.02.01.09.03; Fri, 02 Dec 2022 01:09:25 -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=@linaro.org header.s=google header.b=WwORmOy0; 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 S232588AbiLBIDS (ORCPT + 82 others); Fri, 2 Dec 2022 03:03:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232530AbiLBIC7 (ORCPT ); Fri, 2 Dec 2022 03:02:59 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E7D15FA4 for ; Fri, 2 Dec 2022 00:02:57 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id bp15so6202645lfb.13 for ; Fri, 02 Dec 2022 00:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4IdzLY27aCfwCW+1kAuSU/YopF0MIss2eIYe4Dhln+A=; b=WwORmOy0PdSeZraQD4PW1wRX4DBbzps3+/13hXtqSupW3mVWggBYxzs0sl9NVLdSR3 SGeEXsKV58pwrZTUo0xD9oQKZOAoWVgCQ/pDd8C5UW9UJfhur8r2tV9ZgOs9deGme9w6 xdqGGLei8ZRlIT5wNI5qoPpnR9uRFUV2onDVarxh16nbs7nwN++8pES26K5EiXr3QsmL /dkCeM9ha1Z125/Xe/w8PXBjc6J3t8Q83TYtDlbJPVp8ObRJ3O8VCRW1e7cD792FgVv8 imvViUQyi4yU/4nWID4wMVr5YpA+Xdsg+8PWWt8rISVt3C2AKZYvUYg7RdpybprTPHb0 wWsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4IdzLY27aCfwCW+1kAuSU/YopF0MIss2eIYe4Dhln+A=; b=yBLLYIQn06pDlu7GI61Nm91wLP4qrUZxSwSyHP0WRroAC4pTAZo1mNkagSeEQIe6Rf Q2Ms0ja08h7pwbAjdovGgd4lRibKEwgBRCo2RefdGUBMMMIF7ruQX8o8ZBwAKDkwVOgk kU9HY+U+7SBXl2G9YrYwFcVETmV5TI9h0B4AvIdqwISq+JwKR1xof3hvnGz9+5jeV6Gr AIbEUwb75hx23QgrwhsaoOeQEo1AbhogmAHGa5vW0ViVmk1Lr1WpFNlo9iKLVjDsJQe8 92LdCW9nQzFi29Wk/FFmom8E5NrfqRb0oATmCE/1aJAr1d286niYqdQFGOx1Fpl1BcBh IrBg== X-Gm-Message-State: ANoB5pl0MfzuVr0RmP/37lcQXdP5oiQF92pCs6wZNsMuwMLRfmq5IaXr E+WLnNvzO96RC9NVGTCUPIYD+Q== X-Received: by 2002:a05:6512:4017:b0:4b1:be16:4a4a with SMTP id br23-20020a056512401700b004b1be164a4amr26683347lfb.0.1669968176004; Fri, 02 Dec 2022 00:02:56 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id x31-20020a0565123f9f00b00497a32e2576sm940879lfa.32.2022.12.02.00.02.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Dec 2022 00:02:55 -0800 (PST) Message-ID: <84d26a47-2d7a-bf7d-9e0b-fd9952262620@linaro.org> Date: Fri, 2 Dec 2022 09:02:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v1 3/7] dt-bindings: net: Add bindings for StarFive dwmac Content-Language: en-US To: yanhong wang , Conor Dooley Cc: linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20221201090242.2381-1-yanhong.wang@starfivetech.com> <20221201090242.2381-4-yanhong.wang@starfivetech.com> <36565cc1-3c48-0fa8-f98b-414a7ac8f5bf@linaro.org> <1d3f1334-b6bf-57cb-7f7e-48e3c08a5560@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <1d3f1334-b6bf-57cb-7f7e-48e3c08a5560@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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 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 02/12/2022 08:16, yanhong wang wrote: > > > On 2022/12/2 1:35, Conor Dooley wrote: >> On Thu, Dec 01, 2022 at 05:21:04PM +0100, Krzysztof Kozlowski wrote: >>> On 01/12/2022 10:02, Yanhong Wang wrote: >>>> Add bindings for the StarFive dwmac module on the StarFive RISC-V SoCs. >>> >>> Subject: drop second, redundant "bindings". >>> >>>> >>>> Signed-off-by: Yanhong Wang >>>> --- >>>> .../devicetree/bindings/net/snps,dwmac.yaml | 1 + >>>> +properties: >>>> + compatible: >>>> + oneOf: >>> >>> Drop oneOf. You do not have more cases here. >>> >>>> + - items: >>>> + - enum: >>>> + - starfive,dwmac >>> >>> Wrong indentation.... kind of expected since you did not test the bindings. >>> >>>> + - const: snps,dwmac-5.20 >> >> Disclaimer: no familiarity with the version info with DW stuff >> >> Is it a bit foolish to call this binding "starfive,dwmac"? Could there >> not be another StarFive SoC in the future that uses another DW mac IP >> version & this would be better off as "starfive,jh7110-dwmac" or similar? >> > > The StarFive JH8100 SoC in the future that uses the same mac IP version, so call this binding "starfive,dwmac". It's not a reason to make compatible generic. Best regards, Krzysztof