Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp702156pxb; Wed, 13 Apr 2022 10:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3kVw+9dST3LCyPclVinW8zj5gxyuh+WrgiKOoIWukn2ThTF2P2WkhaPoIo8WB3TBIAr3k X-Received: by 2002:a05:6402:331c:b0:41d:9354:97c2 with SMTP id e28-20020a056402331c00b0041d935497c2mr9336306eda.300.1649870695752; Wed, 13 Apr 2022 10:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649870695; cv=none; d=google.com; s=arc-20160816; b=juD4FTt2DcidkjPoOyA1IxveFmcx0Py8zmiG3vJnz6FBFr06KSe1VHqR+glxk1Xi4j K5GbB0yNYr0PvK31TcFUv+n9G/o6CviXR/TU+FzFL5R14LwWTAbKloAJy0leXhmFIYhO /qt9bTRo4FmtYTyxWfGTsrTLnSM3b2g3HLoz5vZg3KkaA6HoLb5UQDhrk5WxdcAdEoZg OoiPClWUL9Zx3NsAS+cxCu0RaLoGThxn6zCbX3+qWZ+CfJ6V2QimWPXMQ7cvyx/32sS9 WUxSXfcCI3bja6UfzHETFzdrOvT56dedfDAumQKPJZ52oCcLS4PKUwX/Li0zsDgRLnQn 0JkQ== 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=SKmYZpraOcPLBxJh56VI6YTNDlUqQ6LYeMzVHZc6pwI+L92NHetX8bDg7plTGACeYR GMM+nTfUfYoEsTjjZsy4exsJ1PdKRy2PWtowxl2wiVllpJNdl/hwoWINt28tuxdLK9nf m4H7fnOahYTjVk5HpbGFvEftaKtBBW99uBNYp+mNfPDX4uW8xFNCp+vkeyNNGo6Jt9MI 46kYTVLuLqt57Y3n4oLdzNHMfwEGnkgbOV+FVD7BtZRL1GGCUjV9pFUbumLF0emaaD9n A5XsdiUIPJOg9GxMLdIMPaJWr9yZdaKlAfFVl91NGwjgpjywC/U89khXOvLFe8YS9osv JuEw== 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 p7-20020a170906838700b006e8793c1c88si350841ejx.238.2022.04.13.10.24.26; Wed, 13 Apr 2022 10:24:55 -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 S235424AbiDMMLU (ORCPT + 99 others); Wed, 13 Apr 2022 08:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235401AbiDMMLS (ORCPT ); Wed, 13 Apr 2022 08:11:18 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998405D1AE for ; Wed, 13 Apr 2022 05:08:55 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 23DBusoL017389; Wed, 13 Apr 2022 19:56:54 +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; Wed, 13 Apr 2022 20:08:38 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , , CC: , Krzysztof Kozlowski Subject: [PATCH v5 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Date: Wed, 13 Apr 2022 20:10:35 +0800 Message-ID: <20220413121037.23748-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413121037.23748-1-dylan_hung@aspeedtech.com> References: <20220413121037.23748-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 23DBusoL017389 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