Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3090501rdb; Wed, 13 Sep 2023 01:24:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF98JeQLFyOZMD9Tfvy/h+qNCefbuytdjKYuUxl7QC6DjmJ/sJINtLXXp2z1W+WsJ5yaaQt X-Received: by 2002:a17:902:cec1:b0:1bb:35b6:448f with SMTP id d1-20020a170902cec100b001bb35b6448fmr2309824plg.15.1694593493382; Wed, 13 Sep 2023 01:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694593493; cv=none; d=google.com; s=arc-20160816; b=v8+4nlNj80uld5yhbnEr9IGrrSG+wfwuWP6xyiAKGqX9fqQb4Hxk0BdjJcCjrrMHgt xc99Ktax28WaHnYRjZe51xjusNI2El6aV6FKHMr6tE3+yG0ZgRKBoECn/XEyfr2zIu8g vflhHcXJsVfYRqAIMMe4OfNJ0pOpMKWxBk1GWmUQqr6sqoQo8BvjN5pPhjfo+PMhv//6 f60LZyjSFbXZrErI11gywRRXCh2qunZ6V6B7qpPAvmuX34kI0gI1GQDB35t7k2jPVkgl YaEZcD9ZrDck3b+kMyHppAgEAi++v8uBrTc7boVcJ9KpYi1KzmPGwSl6gcN4nU4uPapl g2YA== 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=gBOOTYnIbc7jXGk6LLtBsEP6Hing17bwVORuVZHF9dw=; fh=JRayuRdi9aZFyYlMi6y4sg36k02PQVD57mFgmCSYApo=; b=VCnGC9LxoN8M4iNwFabao07A0BDLAQpAG0ij2iDyYgx/JE8g0kCEE6z56gePQJJPuF qaZdptzAx1JwvdxmDMUVcVkIz9M+9ptXVk5FKncQF8RVFN3R/Oyk9Vl1AN4WoiAP/mlF /Bmu3HhtmWUJDKxjPfvzlLxZfKDSM/vQaXU3GI42M0jpvCtV6ZSkGUUAazqy1/m5hygl g/zflXwdGFAGmSoNrY8AWWhQ0HqnK/AY/9oblh9W07gX/BAPsKEkE467mLlJZMLIQ46j /hRqS1WvJQx086MfY9zPSAp+cWHg1uXCrXXGGkXj3nHWG0NiSoknemTMnAs6RcUPcB0Q zikA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=BsCbKNsa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id kx14-20020a170902f94e00b001c38199b8bdsi9390514plb.431.2023.09.13.01.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=BsCbKNsa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1018081DE20B; Tue, 12 Sep 2023 04:02:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233901AbjILLBo (ORCPT + 99 others); Tue, 12 Sep 2023 07:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234054AbjILLBN (ORCPT ); Tue, 12 Sep 2023 07:01:13 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56C510D3 for ; Tue, 12 Sep 2023 04:01:08 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-52e64bc7c10so7140922a12.1 for ; Tue, 12 Sep 2023 04:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1694516467; x=1695121267; darn=vger.kernel.org; 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=gBOOTYnIbc7jXGk6LLtBsEP6Hing17bwVORuVZHF9dw=; b=BsCbKNsaHIKCI3UDtRCG1EjV6JYtUL6G7mk4P3SjbvqP553bIVjucSFHeRVVPGizqv JjEDX6qlFYY6skYeDxsQmkd8tumGmrpMzCyWBl5I7fnBYJpDqB5f7B8MlhzBW8l9hLYS PvzuMhPoCvQwuz/CdOdIPbya56YJTvwOA/G8Ko8zeqNOGtWb6IWM+783sxgJ0sOiQhst YTjOA68Ys89Z9CWAhtTYtrThc4xkAqy7U78d3NY8DfH5s6C5kjJz7PzqHIlAUieRh5M4 WhHQn6pqYPcC1TiuPsKtQGcofBHzHGnqUIO9UaTRczSI7iWPrXGCySFAGHWn8AxH0kTX IBDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694516467; x=1695121267; 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=gBOOTYnIbc7jXGk6LLtBsEP6Hing17bwVORuVZHF9dw=; b=XaiYaf8u3pBwZ4C69lOx3/PEmpfdJyCwU0ogiubPOcKg9Q+Ido1uFwETdi9oj8m+OW pGniSsuupxvJ2FL3t+xLqChDGtY61FbhmeWWi1nxIFZ0Eys5RA5Y3REmnDV2mI844ApB 0tWnuhOA9dgqWeAIdL0mxlMrbqrV1F9sIHJSJxQtwi/1MAze/KvBNz7oX1PgfiSUMEFa 3/9FERrsPZj9mhvxgph1p2mCUrLQwD2aP9YAfD2xJvgidGJKC+jSFQVnGLahj/w9NpW8 xrLDhLMb8SNHt6SAVi1V4zWIts8vrHdFAeztq1PP7a0m3EFHPfxMeEQRZ3S7lkSwotGp CgBw== X-Gm-Message-State: AOJu0YzX/tCrdVJP7QA4TXc37ME3Iij3wg9Xrd86biS0Nougwb4/QFB4 ZJGQUCxj4k0y74Yf96t84zK7zg== X-Received: by 2002:aa7:c74c:0:b0:528:90d7:a1f with SMTP id c12-20020aa7c74c000000b0052890d70a1fmr10961153eds.10.1694516467067; Tue, 12 Sep 2023 04:01:07 -0700 (PDT) Received: from [192.168.32.2] ([82.78.167.145]) by smtp.gmail.com with ESMTPSA id be6-20020a0564021a2600b005224d960e66sm5724607edb.96.2023.09.12.04.01.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Sep 2023 04:01:06 -0700 (PDT) Message-ID: <151c12f5-dc5b-3a25-f644-bd65775ae787@tuxon.dev> Date: Tue, 12 Sep 2023 14:01:04 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 2/2] ARM: dts: at91: sama5d29_curiosity: Add device tree for sama5d29_curiosity board Content-Language: en-US To: Nicolas Ferre , Mihai.Sain@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alexandre.belloni@bootlin.com, andre.przywara@arm.com, Andrei.Simion@microchip.com, Jerry.Ray@microchip.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Cristian.Birsan@microchip.com References: <20230801111151.6546-1-mihai.sain@microchip.com> <20230801111151.6546-2-mihai.sain@microchip.com> <14d628cf-a40c-11e6-7743-e3ba3bd8aa2d@tuxon.dev> <9ce18601-02d8-686e-ebe0-04c5dc29f6c9@tuxon.dev> <18943157-a1fb-0fda-e3d4-e0478d18a849@microchip.com> From: claudiu beznea In-Reply-To: <18943157-a1fb-0fda-e3d4-e0478d18a849@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 04:02:06 -0700 (PDT) Hi, Nicolas, Mihai, On 11.09.2023 19:01, Nicolas Ferre wrote: > Hi Mihai, Claudiu, > > First of all, thanks a lot for your help on this board DT, that's great! > > On 03/08/2023 at 11:09, claudiu beznea wrote: >> Hi, Mihai, >> >> On 02.08.2023 15:19,Mihai.Sain@microchip.com  wrote: >>>> +&macb0 { >>>> +     pinctrl-names = "default"; >>>> +     pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>; >>>> +     #address-cells = <1>; >>>> +     #size-cells = <0>; >>>> +     phy-mode = "rmii"; >>>> +     status = "disabled"; >>> Should any phy/mdio container be placed here? Also, any reason this node >>> is disabled? >>> The board has no phy. >>> We will add external phy boards to macb interface and they will be >>> present in dt-overlay. >>> >> Then remove the macb0 node from here and keep it in overlay. > > What about choosing a phy and making it enabled by default. Because I doubt > people will use this board without a phy under Linux, honestly. > Overlays would remove this "by default" node and add the replacing phy if > hardware plugged-in is different. The only thing about it (FMPOV) is that there might be people expecting the default bindings to work with every PHY. > > By doing this we avoid having difficult situations where the most used phy > with this board is disabled or non existant and that we absolutely need an > overlay for such a basic thing as having Ethernet working out-of-the-box... I undestand your POV but DTS should describe the hardware. At least, is there any PHY shipped with the board to be considered the default one? SAMA5D3 EDS uses the same approach: it defines individual overlays for each supported ethernet PHYs. Thank you, Claudiu Beznea > > Just my $0.02, but it might simplify our life in the long run... > > Best regards, >   Nicolas