From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EB3BC43217 for ; Fri, 15 Apr 2022 16:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355809AbiDOQWb (ORCPT ); Fri, 15 Apr 2022 12:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234081AbiDOQW3 (ORCPT ); Fri, 15 Apr 2022 12:22:29 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A51C197B9B; Fri, 15 Apr 2022 09:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=AD7y6t2FutZNo1iQOFDe7kMGydOzNTbvIMGGb73fJwc=; b=IsUPJRGn6OPxvSAfo8oh365+38 KRuGWw3/46cDX/h4srLR9RLzY0wFgH9PGJhHtQG9VTHIujzL3S7c3Hl1nBUU7CB3gw0miFUjmKomR koW3L8q1IGnkC3A4uPFEaRO3f/4SrQDFeNGbCWb7uEZJZCOa97p/4WID+kJeECjYtTBM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nfOfi-00FziH-F0; Fri, 15 Apr 2022 18:19:46 +0200 Date: Fri, 15 Apr 2022 18:19:46 +0200 From: Andrew Lunn To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Russell King , Thomas Petazzoni , Herve Codina , =?iso-8859-1?Q?Miqu=E8l?= Raynal , Milan Stevanovic , Jimmy Lalande , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 09/12] ARM: dts: r9a06g032: describe MII converter Message-ID: References: <20220414122250.158113-1-clement.leger@bootlin.com> <20220414122250.158113-10-clement.leger@bootlin.com> <20220415102453.1b5b3f77@fixe.home> <20220415163853.683c0b6d@fixe.home> <20220415172954.64e53086@fixe.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220415172954.64e53086@fixe.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I think it would be good to modify it like this: > > eth-miic@44030000 { > ... > converters { > mii_conv0: mii-conv@0 { > // Even if useless, maybe keeping it for the sake of coherency > renesas,miic-input = ; > reg = <0>; > }; This is not a 'bus', so using reg, and @0, etc is i think wrong. You just have a collection of properties. > mii_conv1: mii-conv@1 { > renesas,miic-input = ; > reg = <1>; > }; > mii_conv2: mii-conv@2 { > renesas,miic-input = ; > reg = <2>; > }; > mii_conv3: mii-conv@3 { > renesas,miic-input = ; > reg = <3>; > }; > mii_conv4: mii-conv@4 { > renesas,miic-input = ; > reg = <4>; > }; > }; > > This way, it remains tied to the MII converter output port definition. I > guess that the yaml definitions would still allow to restrict the values > available per nodes. Validation for the final combination is probably > more difficult to do using yaml. I doubt you can do full validation in YAML. But you can at least limit some of the errors. You need to do full validation in the driver anyway. Andrew