Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp566780rdh; Thu, 23 Nov 2023 11:37:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcQmwau9FhQ6Z8N1exfcDAMXYQmm0P0OXAmvcIZMTSURbYPfifE7IcTMLVG+gjNZnpuz/C X-Received: by 2002:a05:6830:1e68:b0:6b9:1473:7fa3 with SMTP id m8-20020a0568301e6800b006b914737fa3mr526465otr.27.1700768272144; Thu, 23 Nov 2023 11:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700768272; cv=none; d=google.com; s=arc-20160816; b=AVlgAGAauRXJx1u1KfaOOkB/kmOlrcGFynW+z3N1JoXV65mfTAhqbwbR+EeSUBNxrV nWDo8/nGumY679fpWnBNIr26bpssbh7T4hRG3rIARVWM/dMdF0fYiGWBFYE8irs1AFus CxsgTgvpTEFsCyt3OCYuREUURCGui8N79putOnrUQeJYc5FNGp3iqUpcczekSBrE77Qj iefiiV8/C1Mf+Rf2t9wAKUNJb8o5ZPYWE4ofdxZI6NobiT0gOD87VIQ+TTOWHOLLfGL9 ggSG+Enzij9ok8Y1+NhnDiI91ukrIe5UbCp7D+tDhDySglc5PgymVUUGMnVGgYL3sBtO hSsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:subject:cc:to:from:date:message-id:dkim-signature; bh=QW6tI0VHpBIjgHCH5Ff0+qLlXVxkpAX7d83oOLeIsRI=; fh=mKUd5P6FFOhKVbeZzetl909dhmfzIPH0jvgbY2dorcg=; b=aLleLuQwuHyNR3BWI8Lsso7v5cGeyW6qKdQ3xND/5Mt8OEI7rws96rOv3kl1Ywly2l phLvaY3a2njaWSvGUsnJwd/5mZVx4PuGsNg5wqgz5ktqSBnV5els5Vc+X5G1G3N097eN wLVod1qiWIz71UQj+rf0i/AUgZ45vYdg+7xwH8KZfHdLLhJbXPsIkcpE2t4NzYXuq3gj WKNBhSCF9AaMqFcdsNX+3vLnB1Vx3Ux3N+1sgCFO2MjCnOtrTaAUVirW9wdZKoo4ky3m Y258vmeQeYQ/6jZojgzQiTrtyoBaqV4UFecDjQIcPXVFUy3RgupZNE6/kMaoGI2ac96U sy2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VVoD2rHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id g28-20020a63201c000000b005aad5164a40si1818178pgg.246.2023.11.23.11.37.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:37:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VVoD2rHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8308B8095820; Thu, 23 Nov 2023 11:37:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230290AbjKWTha (ORCPT + 99 others); Thu, 23 Nov 2023 14:37:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230294AbjKWThP (ORCPT ); Thu, 23 Nov 2023 14:37:15 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA401FF6; Thu, 23 Nov 2023 11:36:07 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-32deb2809daso783629f8f.3; Thu, 23 Nov 2023 11:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700768164; x=1701372964; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=QW6tI0VHpBIjgHCH5Ff0+qLlXVxkpAX7d83oOLeIsRI=; b=VVoD2rHpP/xg5wqXa/vJa8LYEmWtbTEu8hDlYL6wYWFaZOko0n6Ib9FPi35TvP4ocI A1s8Gg3wGfGijeadt0LMFjde6PclDduAbG1JrJj2dCAMubt9gpQYX0kARADuhgbFgBWR NoWD68pk0gNYMv7DzrVRMyo3ZajKxBsBk7SvTPXcJNt9QpBuHvHImCrokZkj7KJFtij2 qnntrtaMFWkfDg0k3kgj6nrIee9gfSFnSDH+nE3NG9DGhaugRmz4ZOYZw9+fpyr9ajG8 brLzTdsRV6P2lRuD+4BpnUxtF7mjoH5VT5VV2WWEUYb2trvhOHk+KLE/9F6cTqpWhvg9 PKpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700768164; x=1701372964; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QW6tI0VHpBIjgHCH5Ff0+qLlXVxkpAX7d83oOLeIsRI=; b=kQL2dMEZzygiZwwzDpYgI5BWED8ASYkHUjrarHFmNyWGPVsi6Z7rYLEZ+4f0ZliZZe BehPk9IugmIADnODcVqioHIpaW7HIcAbu08P0k0NFUSRH7aAdVp5T068bMiSz/Z7QOEV Kxp3Z7hEbjxBbDogZu4Z0/8Yzy9jlVStefG5/UZ3UlAkAWvcxqXsjZzAF/WjjGLJ+vD5 PXv5fi+2DE+RlTIw5rcmHa5MEtEqbhkcm/QoB1Xyj5xUVLmW3d3c7bNy4icW9UmA0vm0 Lv0vxiUAenLchsWsF6Wy2xUEeSZc2gYrFQhkx2pKj78hu9YkUVrZalY5eLaEEas0NyKf t33w== X-Gm-Message-State: AOJu0YzdkNIDRZByohNng65C57wAiYoF74czB8XArP7Nkr0+XBueIHzt ilL5Qy2QgqCJpWUxnSy2oXL4JOtnjR/PNQ== X-Received: by 2002:a5d:5384:0:b0:332:cc7b:8484 with SMTP id d4-20020a5d5384000000b00332cc7b8484mr377488wrv.48.1700768164315; Thu, 23 Nov 2023 11:36:04 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id e2-20020a5d4e82000000b00323293bd023sm2465891wru.6.2023.11.23.11.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:36:04 -0800 (PST) Message-ID: <655fa9a4.5d0a0220.b01e8.7f5b@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 23 Nov 2023 20:36:01 +0100 From: Christian Marangi To: Andrew Lunn Cc: Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , "Russell King (Oracle)" , Harini Katakam , Simon Horman , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 03/14] dt-bindings: net: document ethernet PHY package nodes References: <20231120135041.15259-1-ansuelsmth@gmail.com> <20231120135041.15259-4-ansuelsmth@gmail.com> <20231121144244.GA1682395-robh@kernel.org> <655e4939.5d0a0220.d9a9e.0491@mx.google.com> <6a030399-b8ed-4e2c-899f-d82eb437aafa@lunn.ch> <655f2ba9.5d0a0220.294f3.38d8@mx.google.com> <6eb2e061-5fcb-434a-ad43-370788075597@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6eb2e061-5fcb-434a-ad43-370788075597@lunn.ch> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:37:49 -0800 (PST) On Thu, Nov 23, 2023 at 04:07:14PM +0100, Andrew Lunn wrote: > > compatible = "ethernet-phy-package", "qca807x-phy-package"; > > > > With "ethernet-phy-package" a must and "qca807x-phy-package" used only > > if additional property are used. > > > > My current idea was to use select and base everything on the possible > > PHY compatible (and it does work, tested by adding bloat in the DT > > example and seeing if the schema was rejected). Had this idea since the > > compatible would never be used. > > The DT people are unhappy with PHYs don't use compatibles, so > validation does not work. It probably too late to add compatibles to > very PHY driver. But this is new development work, we don't have any > history. So we can add a compatible per package to make the validation > tools work. > > So for parsing the tree in the kernel we look for > 'ethernet-phy-package'. For validating the tree using the yaml tools > we use the 'qca807x-phy-package'. > Ok clear, what about the generic ethernet-phy-package.yaml? Idea was to describe common properties there and then specific PHY package would add every common property with $ref and add their special ones on top of that. Would that be ok? (similar to the current implementation with ethernet-phy-package and qcom,qca807x with the only difference that qcom,qca807x.yaml would also have the compatible set (currently missing from this RFC) -- Ansuel