Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4637374iob; Sun, 8 May 2022 20:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ3nzd+7Ex45IsoYI7I4l9gnup6f1qnipJskXXaGUBpwgSb/HpBa/ZZKTcmsIoCEy4BSPo X-Received: by 2002:a05:6a00:1494:b0:50e:23d:831c with SMTP id v20-20020a056a00149400b0050e023d831cmr14200321pfu.31.1652065729991; Sun, 08 May 2022 20:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652065729; cv=none; d=google.com; s=arc-20160816; b=VuapDusSyZwM7tJ5txn01CA8yxZ0WYGYDpTLK1EvN1opKRhAL4xa5RcCzdXEfHEhiG 4V3bfEiaEW6tSe6fokJntlReh5Mm1QU+mJ+IpZuumdW3b1VjnSjgoRvjBJSrA4zBW7dc Llmr3MPYYfFMRPHHUsz3qgoVRXGc3Tb0WZq9sseVrdAieyhXQduKEKYXs4OWLAeVz5Bx v0zpR9nHAj3f6yE15t4XNnf92NGhI4eScBuJ0B6hwK7Ce+6vmyhR5XuA5LSfzzphfXWF Dz3+RlmGYbaeGXzVdJjMRTNZYPq5u9xteudEGxhCX5AITUVRumBlqP07T74ytr+/1Uv8 kRWA== 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=Nhiu0fngZGCp2SeeUlWWgcjMH+09fel050MQuuk+CH0=; b=KTH/s1KTlM669vqaQ7a2fRmuBIALE8xaOy0RPSGozKUHONO+qS/N+eJBZCSSo5BPRJ UXmAoQWcif7hOh6C32yD8q3tke/14NdRSP2Z3tJgSwwPpYddfkVR7qA1KDFhUXRHNG42 d/8uq2vvSmvfxiqwlhm2tR9xI8RYVzzT2QrOlBRFFVM5nmsr7osep5wGg/LPrqUGKeTK UX0rnvc+fhRDfY3i9Z0syINDkvOH8fXbxzGS7up5uYdYolRoQD38Q1iWqTPxsu4uvEhv jy4vh8bWN9Ig72Nqn5u5mH/vW3JOENXAAoaysQZzR4IftedPE6fSBuuS/8uKABzCp3vc XzxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c1oSeU4B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u13-20020a65670d000000b0039cbfcd3b1dsi12886552pgf.830.2022.05.08.20.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:08:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c1oSeU4B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36B268C7E8; Sun, 8 May 2022 20:08:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354028AbiEEUdQ (ORCPT + 99 others); Thu, 5 May 2022 16:33:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384948AbiEEUdO (ORCPT ); Thu, 5 May 2022 16:33:14 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 113CC5F8F5 for ; Thu, 5 May 2022 13:29:32 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id p7-20020a05600c358700b00393e80c59daso4482562wmq.0 for ; Thu, 05 May 2022 13:29:31 -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=Nhiu0fngZGCp2SeeUlWWgcjMH+09fel050MQuuk+CH0=; b=c1oSeU4BaXTY3ReYOr/uFAyO9izBH2dG1Qlnf+8Hr8Uw3vUsoKOHenuz7wpGz1G3lv ym40wpjP1R1uTQtgYd8gikEnTIRqUlXoWrvkAnzPHg8AGFpeocUHG2kgkwMQX9NL3etq +mxfkjnSDJDdW3HnR8hp/i6C1WPmJXk+LFZvFqsi3IRZIzWwmnN90bnnpRzXLIKPG6Zc eHtIJrBosNasWd3p+NDNF3vx4pBQ+ez3FTfArfU5wI/onzupOfKc35+xFiIfqWc6qqRh q7Ut2jUxdfhmab/DvgF8OIAbxIYnzwpEPb49AiYU/N0TsdomVI/zvfwD+IaQxuFI+dnI g5xw== 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=Nhiu0fngZGCp2SeeUlWWgcjMH+09fel050MQuuk+CH0=; b=VQvKR7CDIuvpPC310g7LVTJcqNUFWPKA0v/rK3jmF779qNKntzm97knR43Rb98WdFD 8z/UZv1JPTIooaSF96Ch2EG6lHJOmoRNUdQlFJLsnH7EZ4zdsfgQRF+Xi9FyNlZ/7TvJ mj28o3BZ/JPlqgo4wvCUUUan4HlqGEk3YfgL3NaOTZuJdyN3rzzYlbPzNltCQk4JTGyD 19GxKL3OT552DbnWxvLqD75Ihk6Uw5Ezl552u7LqW0M07/FqQVi1FPlS2pjNAFY09shj Siow6pka1MZpZ+eco2td0LfqWMWc/kaVfR6lcyJWnMSqZCBH/+V2M00ghTsgHQwjmIJc bRUA== X-Gm-Message-State: AOAM533kBH0upmTsQILSdnpeAqYqCZCXV720hzZ5hqznDpA4tDjG3a6V IjKtMTASQhOf+XYl/NDMfG4Jkg== X-Received: by 2002:a7b:cd15:0:b0:394:497d:ad1c with SMTP id f21-20020a7bcd15000000b00394497dad1cmr35505wmj.182.1651782570542; Thu, 05 May 2022 13:29:30 -0700 (PDT) Received: from [192.168.0.222] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n13-20020a056000170d00b0020c5253d911sm2035574wrc.93.2022.05.05.13.29.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 13:29:30 -0700 (PDT) Message-ID: <6d45f060-85e6-f3ff-ef00-6c68a2ada7a1@linaro.org> Date: Thu, 5 May 2022 22:29:28 +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] dt-bindings: net: dsa: convert binding for mediatek switches Content-Language: en-US To: Frank Wunderlich , linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Landen Chao , DENG Qingfang , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Greg Ungerer , =?UTF-8?Q?Ren=c3=a9_van_Dorst?= , Mauro Carvalho Chehab References: <20220505150008.126627-1-linux@fw-web.de> From: Krzysztof Kozlowski In-Reply-To: <20220505150008.126627-1-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 05/05/2022 17:00, Frank Wunderlich wrote: > From: Frank Wunderlich > > Convert txt binding to yaml binding for Mediatek switches. > > Signed-off-by: Frank Wunderlich Thank you for your patch. There is something to discuss/improve. > + const: 1 > + > + "#size-cells": > + const: 0 > + > + core-supply: > + description: | Drop | everywhere where it is not needed (so in all places, AFAICT) > + Phandle to the regulator node necessary for the core power. > + > + "#gpio-cells": > + description: | > + Must be 2 if gpio-controller is defined. Skip description, it's obvious from the GPIO controller schema. > + const: 2 > + > + gpio-controller: > + type: boolean > + description: | > + if defined, MT7530's LED controller will run on GPIO mode. > + > + "#interrupt-cells": > + const: 1 > + > + interrupt-controller: > + type: boolean > + > + interrupts: > + maxItems: 1 > + > + io-supply: > + description: | > + Phandle to the regulator node necessary for the I/O power. > + See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt > + for details for the regulator setup on these boards. > + > + mediatek,mcm: > + type: boolean > + description: | > + if defined, indicates that either MT7530 is the part on multi-chip > + module belong to MT7623A has or the remotely standalone chip as the > + function MT7623N reference board provided for. > + > + reset-gpios: > + description: | > + Should be a gpio specifier for a reset line. Skip description. > + maxItems: 1 > + > + reset-names: > + description: | > + Should be set to "mcm". Skip description. > + const: mcm > + > + resets: > + description: | > + Phandle pointing to the system reset controller with line index for > + the ethsys. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +allOf: > + - $ref: "dsa.yaml#" > + - if: > + required: > + - mediatek,mcm > + then: > + required: > + - resets > + - reset-names > + else: > + required: > + - reset-gpios > + > + - if: > + required: > + - interrupt-controller > + then: > + required: > + - interrupts > + > + - if: > + properties: > + compatible: > + items: > + - const: mediatek,mt7530 > + then: > + required: > + - core-supply > + - io-supply > + > + > +patternProperties: patternProperties go before allOf, just after regular properties. > + "^(ethernet-)?ports$": > + type: object Also on this level: unevaluatedProperties: false > + > + patternProperties: > + "^(ethernet-)?port@[0-9]+$": > + type: object > + description: Ethernet switch ports > + > + properties: > + reg: > + description: | > + Port address described must be 6 for CPU port and from 0 to 5 for user ports. This looks like not wrapped @80 character. > + > + unevaluatedProperties: false > + > + allOf: > + - $ref: dsa-port.yaml# > + - if: > + properties: > + label: > + items: > + - const: cpu > + then: > + required: > + - reg > + - phy-mode > + > +unevaluatedProperties: false Best regards, Krzysztof