Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1504524rwb; Fri, 19 Aug 2022 05:02:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR59Q/T0QFjDJd2EGRy9tTNtn4J+kpDdou6KDnhlWe2Y6KNXiXu8a1PXGX4VOEdWPVxisUEI X-Received: by 2002:a05:6402:14d5:b0:446:22b8:8da1 with SMTP id f21-20020a05640214d500b0044622b88da1mr4352056edx.214.1660910559391; Fri, 19 Aug 2022 05:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660910559; cv=none; d=google.com; s=arc-20160816; b=JOWM2Go3y21Ab8c6e2UFPexUilv/HfWg9OlYJbu4BJzHNGVDksBve8FVJYmFFbnLAR nd65IHvxRacuJtljzFaaS7s1a78J6rYGExjcCUOUnrXkTL7mLQzngnDY6fNGcX+Wh4r0 gqUqCjDWwSjRIvotu5n/+9ormZ1fn8ssBvX5uYDGF/p9UpbkF+6seQi/Dgln0X2oqSbD kBumIx44UqVNXyiQ9AT7JAez7sdbMeccKMQjSF3QAhJ0iry70bX0NlRa41QN2bD+YZOW QPSYfSFHrOKzFor47fhP+TzRE1FNYdKNc+C/6aJKbD2NYlcwhO7Lmgpshz4o0uFLtxEP ePUQ== 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=lHgy8XrEK9EH8gMtXevMZ8OhZpXuFAeH18nZ4CtlnC0=; b=T8EQoCXWja74aaUg+2BIDMH8PORBJC74+QqPH5eNbopTxmJjU2u0OI1B0xcpJybG03 jygYGSi+lv0vp+hpLvOEgQXZbsh/jTOkDnGpiEuW/P0FWk6FWMaeegFOIimOPHAj/+jq R+9/h6PfpNk9guVzSrhN+ED2AF7VQtYQT760Ziik0IN2EJE5r/DZdPfNGZYBBsY9W9zs 675VXxWXp4uXbR6x7fZB2iVSNyLcJUklwf5taS9GjrSDLgnygrMFgsvFtoCdZsbvxj7x am12VoqvYQDBfS47jjTo+xAU10H/uN4uo6KjWzesvuuGRjSkjV3EeHhUz6Ss52xlqUTE nFgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JsXFK+7t; 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 z14-20020a50cd0e000000b0043de91de57asi3150811edi.270.2022.08.19.05.02.12; Fri, 19 Aug 2022 05:02:39 -0700 (PDT) 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=JsXFK+7t; 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 S1348427AbiHSLho (ORCPT + 99 others); Fri, 19 Aug 2022 07:37:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347971AbiHSLhm (ORCPT ); Fri, 19 Aug 2022 07:37:42 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECDE9F0745 for ; Fri, 19 Aug 2022 04:37:40 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id o2so5783689lfb.1 for ; Fri, 19 Aug 2022 04:37:40 -0700 (PDT) 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; bh=lHgy8XrEK9EH8gMtXevMZ8OhZpXuFAeH18nZ4CtlnC0=; b=JsXFK+7tESqFY4cci/SkxtZOAcPIBWE3n4jatcpJefKHiKqYECX12eyujyt4Y2mK8Q kNid1iKfa8yy6jx5UpG1yFsBQ06r9bXlP1JxaSahMSMSHi08qaHrMULxTP3SkxnHMeLQ KLe6BnLE1nKX8B+AQoQjlddQic+DzaHDTWMTSm3r4Vpv9G7M6E9aLzLyTg/JKg7huXDt 8dEF5lKGv4uddEWErzzzDyaAFk3ekHA7mo4QYtryGdfULSQlPzfcaxKkNH9KBLQixNPZ 2+3F4nJ+lq+xRtYJLiJS8Yqq3uChIlB5Ju/XpqdLE8t5t2NSSdURgPIqDHH9JzQNULFk zDLg== 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; bh=lHgy8XrEK9EH8gMtXevMZ8OhZpXuFAeH18nZ4CtlnC0=; b=WtrqEeTnPbqOsPHm7lJDHYEvo/bKch7QoQB9LtA2xLwXbKAr0feueCukwuCTo3eXWa yEkY0oxacx0CG7IwlR9Bknj9fcOLffnxnS4wzNNkFqbwXLvBjv8MR2Rn6tF5NXZkTrtO 01MIKRm8yB1/X45Q0nmsdPk0eBJYN44LEHR1jROpisae5kmRjkyPEOhSNgz9Jx1buuOe fzrrsLh6qoHpS9+7ydgNbWfLGtSvpWHW+0nz7lujjQyxB2LudOoGUWq0FfHN6wLQ+E9J ur8uhF5M4s4/SovUGLCp56LXScqu0xhZnms39eP4tPbSIhntTC92z5sBgpJIrmTPvGmn ABlQ== X-Gm-Message-State: ACgBeo2wsl6AsXQTXkZmNJk6+sQRJZUT5AWRIM5ZEfl7Nnsls+YQoSdB 8/CyuAMdQDhrEfrcPt0Otk10JA== X-Received: by 2002:a05:6512:2589:b0:48a:f56d:2912 with SMTP id bf9-20020a056512258900b0048af56d2912mr2573221lfb.370.1660909059296; Fri, 19 Aug 2022 04:37:39 -0700 (PDT) Received: from ?IPV6:2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5? (d1xw6v77xrs23np8r6z-4.rev.dnainternet.fi. [2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5]) by smtp.gmail.com with ESMTPSA id v15-20020ac2560f000000b0048af4dc964asm610445lfd.73.2022.08.19.04.37.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 04:37:38 -0700 (PDT) Message-ID: <9ec575ba-784d-74f7-8861-da2f62fe0773@linaro.org> Date: Fri, 19 Aug 2022 14:37:36 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH net-next 1/2] dt-bindings: net: tja11xx: add nxp,refclk_in property Content-Language: en-US To: Wei Fang , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" Cc: "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20220819074729.1496088-1-wei.fang@nxp.com> <20220819074729.1496088-2-wei.fang@nxp.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE autolearn=ham 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 19/08/2022 12:37, Wei Fang wrote: >> >>> + in RMII mode. This clock signal is provided by the PHY and is >>> + typically derived from an external 25MHz crystal. Alternatively, >>> + a 50MHz clock signal generated by an external oscillator can be >>> + connected to pin REF_CLK. A third option is to connect a 25MHz >>> + clock to pin CLK_IN_OUT. So, the REF_CLK should be configured >>> + as input or output according to the actual circuit connection. >>> + If present, indicates that the REF_CLK will be configured as >>> + interface reference clock input when RMII mode enabled. >>> + If not present, the REF_CLK will be configured as interface >>> + reference clock output when RMII mode enabled. >>> + Only supported on TJA1100 and TJA1101. >> >> Then disallow it on other variants. >> >> Shouldn't this be just "clocks" property? >> >> > This property is to configure the pin REF_CLK of PHY as a input pin through phy register, > indicates that the REF_CLK signal is provided by an external oscillator. so I don't think it's a > "clock" property. clocks, not clock. You just repeated pieces of description as an counter-argument, so this does not explain anything. If it is external oscillator shouldn't it be represented in DTS and then obtained by driver (clk_get + clk_prepare_enable)? Otherwise how are you sure that clock is actually enabled? And the lack of presence of the external clock means it is derived from PHY? Best regards, Krzysztof