Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2214966pxb; Fri, 25 Mar 2022 13:11:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd2JfNQyB9DSoVNmswhLASOqhEb0GH1T5o/JPKDJdDprRuga8ZoN/+JgOuEcd+lZR22wAu X-Received: by 2002:a17:902:ce91:b0:154:16c2:63b3 with SMTP id f17-20020a170902ce9100b0015416c263b3mr13761123plg.22.1648239097256; Fri, 25 Mar 2022 13:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239097; cv=none; d=google.com; s=arc-20160816; b=ad1dFDdqZ0nAZBhUhVKai7OYp6EeZ187+zN8BoresI5jYOKmvF6wobv4N0fsEcIWh0 Cc5hvzyiQUxRsp4Sgvp00OvE7odHiqFjjjL2iM2egRka2Y8Nw6lcXga9DiegVh8EgQH0 BNLuPSIj/kUmTsIYrz3o7Xv2NSQWLlF1ZsMMccUnEu38UyyNWb+BNJei0bEhie3jlf4j 4+P0aMDrS79IrLuJTue6nvVZCkFypE8K0WI87fwiZ/q2kTC9i3sUo2jfXB5F1u0/GLgG uny83khRCqlRXTnfF0F4bSAxp/r4sBkcMqArygIiHgQSXF69DReqtvtPt2gckGuamYVY DDkw== 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=5akwWiNJzV75dP6PqxDiGCyx+CPg6lEs2vDSI0cyx7g=; b=sqgfewwjoPojo5HkaSt2JVW6D3JWKfpFya4tH0XfMdwZ/W/nB0Ncn1mzzdxLJK1SJX ZCNScvXIkDwPky9Y/gfPzXPFOVIuPe7Jx/qm9LbSPclX/JDNKrnkYqq4IJTAXxrT8JU9 YfeplkJ91k4FuCdCJtMAemR6ktSh4XYdA94RkRSiphoJX2KbtNJHUNSnejZvtLiTxxt+ YVgxdjpYeu4DLI1MG7dGLWUfxtWdWjqZ5u7XWARcCV9ftAKjMYY1JO0kwNeE+kiAzLI/ vsanOOyy4fmhMPdqJpw8/2vWh4C1qoizx/EtuG/K2OuwuquocBTPlHCt15fH+Xk5179a IFIw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id om13-20020a17090b3a8d00b001bd14e03038si3831069pjb.16.2022.03.25.13.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:11:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A19483B7615; Fri, 25 Mar 2022 11:54:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358214AbiCYETK (ORCPT + 99 others); Fri, 25 Mar 2022 00:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348284AbiCYEST (ORCPT ); Fri, 25 Mar 2022 00:18:19 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0C36C6256; Thu, 24 Mar 2022 21:16:45 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 22P43YWj035810; Fri, 25 Mar 2022 12:03:35 +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; Fri, 25 Mar 2022 12:14:11 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , CC: Subject: [PATCH v3 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Date: Fri, 25 Mar 2022 12:14:49 +0800 Message-ID: <20220325041451.894-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220325041451.894-1-dylan_hung@aspeedtech.com> References: <20220325041451.894-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 22P43YWj035810 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 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 --- .../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>; ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.25.1