Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp24526pxb; Tue, 12 Apr 2022 15:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmcF8o744aSQTvD0bPsHsdKApPT1pEIKb0oWWYLHlZ4yZ79BfjBgh6IN3J6Fg5r5TUKtJW X-Received: by 2002:a17:902:d4c5:b0:158:74d6:fb43 with SMTP id o5-20020a170902d4c500b0015874d6fb43mr9244206plg.60.1649803529292; Tue, 12 Apr 2022 15:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649803529; cv=none; d=google.com; s=arc-20160816; b=XargS/ocTFGKgrLbkt1PmBIPAjXYJANwPeEX+lMFD39sXLI02/ZiXSTZ0qCfi7jUF6 frMsuHS/Hs2+dyA1kd/N4f94GpJjnEI0G0+jq0NwNvVS/XqzRD2jY3IN/bR6VXuQF2Ls lK3jJ/v7gY3ZB712Hr/JQUcwb2FCc3k0hxRmP3icbkLs4OIrFh+ngH7eQB3vR9pkqkyM r5r1slrkjh7ZavarphrVnPtK0+Mo/h2dk8zNf4/kSJcGK2ASCMqbEYPojif0YwNJze5n uqtLzdqaHRrwM744IFV+SHTarb5swZ6QI241G7ayZ9tK6koy2NL+N2F10ONDhOgfpGhF /nEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=dXHAm3z4tHh0Mh9DCwiFQXs0dDzLplgovQi8uTMwfCo=; b=VQ42XFvX68GlbXIOvL9OrgI4kP4C8dJlX08c1ehKCQpq74MGGCB+qlChTBg1eHnq41 ejHx7yos+5q8610kfn0puDI1QMGNXYCy2ez6ZvgHF0y3Lwx+Q3WZxsIhqXZJdkeeQSG2 5GHik+dpMc4Ad/Jz31m+QAHLlnOe2+BWx5rwB2ZcXMUX6VChKtcQ2jNBngyl+Q5qHeo5 7yecwcIE7fuo+l7I99Zv0zK1b3nGFmCdMMyDE6K6NwYlV8/TWF3C1sWNsXtRo7KZnL2N y5hm4DV0S3WJrZlNR+asm8elF7PqO4V5r21IVwo2SphLrft9pbOhxsVkRiKkLHhd8Con 0PCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=S8vxj8OP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eL9SkB6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j15-20020a170903024f00b00153b2d1651dsi13944534plh.293.2022.04.12.15.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=S8vxj8OP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eL9SkB6a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CA5C186E5; Tue, 12 Apr 2022 14:26:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235481AbiDKASO (ORCPT + 99 others); Sun, 10 Apr 2022 20:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235268AbiDKASM (ORCPT ); Sun, 10 Apr 2022 20:18:12 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EDB1704D; Sun, 10 Apr 2022 17:16:00 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0BE0B5C0170; Sun, 10 Apr 2022 20:15:57 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Sun, 10 Apr 2022 20:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=dXHAm3z4tHh0Mh9DCwiFQXs0dDzLplgovQi8uT MwfCo=; b=S8vxj8OPWf6SGtbLLFubtaYn6pEuq8jgI7De51ASehkIYH1X2DOqav 35x+Qq63Pi0USpZQw3+Mj/fSrQ+suiiQ6Xye+Byr4zHqj2Aoxr4LJWrW3u1ywHHt k3jzV0S73f1CCL/my5YXrpOPr6iXGde6bNXzfT/GvNavkCc/WQmXXN3bAsgnua9v aBYJ4pxmL2muJiPtyVDoQVijIbZL99J/4bsoEDdZN5/X3a/FG4+xRUhoxhc+zz9n w2vrFSVO5g/JvNPQqALOQ+OfDIg7QmYu+4f+HrCdfb2BWFtAdszxuUattwRbCCcO 72to41T1GN/TACfEZ1FHII3fB7dUIqYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=dXHAm3z4tHh0Mh9DC wiFQXs0dDzLplgovQi8uTMwfCo=; b=eL9SkB6aSP3VvVWAtHSve0LtgDqy6guq+ cq+unj2ZcoE7JdAziBx33SMlBgt5vO0btc332b4W+jftz9ptEsT63vtZ2dKn1Sln T+g5h5b84vq2OtONLN7OUF9RsDZvSuTUaL49Gt8+OyON+p70mOn/e5pKk+w6SPjb ZvLaux6HLb6pnvmbFzywZzKWYZz1oMh/6z5qCtO2hc8zVB8CtkiqhFaRt5WEPC6f QlOoVkIEHFyHRcQCvSPyI0GlebHcrALseV0QZ5bOuhTlEdQEj2v2QzKEUKICL8HD lZ3T3VDK/1x4yQwzUwF7mr3DNR3AFE8SADu1r3olZem+Q5YHerhMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekhedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhephefhfeekgfekudevheffheeihedujeefjeevjeefudfgfeeutdeuvdeh hfevueffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 040DF15A005F; Sun, 10 Apr 2022 20:15:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-386-g4174665229-fm-20220406.001-g41746652 Mime-Version: 1.0 Message-Id: <41242dce-15e6-471e-bb44-bf8659175045@www.fastmail.com> In-Reply-To: <20220407075734.19644-2-dylan_hung@aspeedtech.com> References: <20220407075734.19644-1-dylan_hung@aspeedtech.com> <20220407075734.19644-2-dylan_hung@aspeedtech.com> Date: Mon, 11 Apr 2022 09:45:23 +0930 From: "Andrew Jeffery" To: "Dylan Hung" , "Rob Herring" , "Joel Stanley" , "Andrew Lunn" , "Heiner Kallweit" , "Russell King" , "David Miller" , "Jakub Kicinski" , pabeni@redhat.com, "Philipp Zabel" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, netdev Cc: BMC-SW@aspeedtech.com, "Krzysztof Kozlowski" Subject: Re: [PATCH RESEND v3 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Dylan, On Thu, 7 Apr 2022, at 17:27, Dylan Hung wrote: > The AST2600 MDIO bus controller has a reset control bit and must be > deasserted before manipulating the MDIO controller. By default, the > hardware asserts the reset so the driver only need to deassert it. > > Regarding to the old DT blobs which don't have reset property in them, > the reset deassertion is usually done by the bootloader so the reset > property is optional to work with them. > > Signed-off-by: Dylan Hung > Reviewed-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git > a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml > b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml > index 1c88820cbcdf..7f43b4fe86a3 100644 > --- a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml > +++ b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml > @@ -20,10 +20,14 @@ allOf: > properties: > compatible: > const: aspeed,ast2600-mdio > + > reg: > maxItems: 1 > description: The register range of the MDIO controller instance > > + resets: > + maxItems: 1 > + > required: > - compatible > - reg > @@ -39,6 +43,7 @@ examples: > reg = <0x1e650000 0x8>; > #address-cells = <1>; > #size-cells = <0>; > + resets = <&syscon 35>; This is just the example but we should probably have it do the canonical thing and use ASPEED_RESET_MII from include/dt-bindings/clock/ast2600-clock.h Andrew