Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2891083pxb; Mon, 18 Apr 2022 10:23:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRcD0VpEe2JKJ4eBk+oWMurUMhTl2I4t3FbtbzhJKGT5tHQ/ayTCKS0qjqQty4JL33b13M X-Received: by 2002:a17:907:7f19:b0:6ef:a121:ff36 with SMTP id qf25-20020a1709077f1900b006efa121ff36mr5664100ejc.214.1650302608963; Mon, 18 Apr 2022 10:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650302608; cv=none; d=google.com; s=arc-20160816; b=VBBZVwdw7qtZe6/aNbrDIdfkJZvdD6x8uS+CrjcUd6YqSbwbU6vs2GULhMJ17Pe7NK AIocPwjpbNQZgO1PizfMUu4Ek6kblFzfb15x3+ygoDaDygXsqNKeGeLIRQxLDW0wvbix helFVqmUNrHHZ/SlJXfCx5HvPd/3fDtCHy4HgdaTvJPCCC4+RwmSlZEbmw/AsI/5fzEs xEQP7PlOlxqi7bIeAr0a7iJ786MwZUni6Vv62Opr6sOXoAJmr2zeSiGMPVeurw+/hVHk CbkiHR37lPYkuXjYdQmWF2l3S4RCKSJl4GrXrQOygx8suwxuDaWRuiHjHNwCfgtqkzHp PV+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=q0lEOu734Nfx6Bif/ezwoxRSeqRpcEWX2su1awajNiA=; b=COJh06EVGyJwdV6H7zbZ2s4D0esg9VLlcX6ZG7hF7EiA53kbEjTyOxxS2uQs7r6IZ/ bhd4eWQ2YTZl9cEhh4gXBXhnlFH4VgPqwsh6wxsPq6XRcIclA2xiH65K4oiw9W1L5Dw+ eyvjtQsNhgOtAa2OuyuB8PnbaWnELtw+aKrJ9/C1BaZQnU2p1AjKSU/pz3ZzsJCWTV2n VXS2QMIiN2mPqFWY88Qz59nW2WV+d6QtHfTqxVgdfYju988mnyp9KZKyD5fOPdiBmYKJ 2cFGXQdtPVI0F99D10DBnkrjdG2NWyC7H0IRt0cK95BgOvWL5quh+6h++2h+hNSOLMgl LYHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a170906130e00b006e8bde3bb23si6262028ejb.208.2022.04.18.10.23.04; Mon, 18 Apr 2022 10:23:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235637AbiDRBl1 (ORCPT + 99 others); Sun, 17 Apr 2022 21:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235631AbiDRBl0 (ORCPT ); Sun, 17 Apr 2022 21:41:26 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2E2FB87C for ; Sun, 17 Apr 2022 18:38:49 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 23I1QgQm071541; Mon, 18 Apr 2022 09:26:42 +0800 (GMT-8) (envelope-from dylan_hung@aspeedtech.com) Received: from DylanHung-PC.aspeed.com (192.168.2.216) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Apr 2022 09:38:41 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , , CC: , Krzysztof Kozlowski Subject: [PATCH net-next RESEND v5 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Date: Mon, 18 Apr 2022 09:40:57 +0800 Message-ID: <20220418014059.3054-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418014059.3054-1-dylan_hung@aspeedtech.com> References: <20220418014059.3054-1-dylan_hung@aspeedtech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.2.216] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 23I1QgQm071541 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml index 1c88820cbcdf..f81eda8cb0a5 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 @@ -34,11 +38,13 @@ unevaluatedProperties: false examples: - | + #include mdio0: mdio@1e650000 { compatible = "aspeed,ast2600-mdio"; reg = <0x1e650000 0x8>; #address-cells = <1>; #size-cells = <0>; + resets = <&syscon ASPEED_RESET_MII>; ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.25.1