Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp58718pxh; Thu, 7 Apr 2022 13:56:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6HbU7Yko9F/O5c63aTB/57ldE64wWSUo7ExN1Y+X9NYeAqipd9LIruqABXi04GbsdJbqU X-Received: by 2002:a63:d955:0:b0:398:b864:ab71 with SMTP id e21-20020a63d955000000b00398b864ab71mr12899663pgj.515.1649364970684; Thu, 07 Apr 2022 13:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364970; cv=none; d=google.com; s=arc-20160816; b=NY0VLPlQt6844zGpoQjTMOabC7eWxBp3GJ/40yBr80HZtjplPNPo0Tf0+2nQjAamBq HpzxcyNaTawFc4NmaJyhoBwQc/yZZ6NCLEmHBYHpD4hi7Zn/dcP3p8OmyrdXCTn5RWAb zOCE+R/mgEbINEyN0PFfSEzzAOYjnnBXMYWkWseTF9cz/TZKojej0m3n3EX+kBAiIV4L OCVhR13PC+CGOiVkseAcB+oBuZpWCWE8ctAkzTKQajwFega9plhs+Qa+IAYth/XH8lgd OiWeA0R75eVZceo/928dSMevsyG5ATZwru4aaWwvuDCK+/yMXrYo0Rfl1knRWr+z9dtL adzg== 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=G3EvyHVftcVcSe1Im0hOX6FTSDUC0uPGNArZxAQSXts=; b=qwLB+8zxQte8Ql3RN4ZZtXGoN4IwK74e36hFo92avAPpqpySppVg+ZcOBNH8vUf8hJ hsMjrq+aNnqkouBA97xg7C3mPw7X2BZBqrEmfZcCro9eOSRabzhF7zm8cKfBz+AqNdu6 OV6t/nuuTJK3w1A3rrHqJqjRiFmsPZHKDixOJdeOfj02zTAjPtZyPRunp4yy5vN/v72Z NFTaSZiF/yD6+ICeHvc+YD2Bxzakd+ZTe6wXK2b0IN8bTMITwlWIug8CcUiSJVTW/zX6 epfO+eZ29pc7VWdddc+s9frIbmo2ieuwDxrWom6CRIzEyfIA65Vyc92F1sKitbxBqaWd vYMw== 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: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 z3-20020aa78883000000b004fa3a8e0097si22001967pfe.334.2022.04.07.13.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:56:10 -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; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC17B40278B; Thu, 7 Apr 2022 12:59:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242443AbiDGH6h (ORCPT + 99 others); Thu, 7 Apr 2022 03:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242596AbiDGH6N (ORCPT ); Thu, 7 Apr 2022 03:58:13 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61FFB12748 for ; Thu, 7 Apr 2022 00:56:14 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2377id24045433; Thu, 7 Apr 2022 15:44:39 +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; Thu, 7 Apr 2022 15:56:00 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , CC: , Krzysztof Kozlowski Subject: [PATCH RESEND v3 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Date: Thu, 7 Apr 2022 15:57:32 +0800 Message-ID: <20220407075734.19644-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220407075734.19644-1-dylan_hung@aspeedtech.com> References: <20220407075734.19644-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 2377id24045433 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 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>; ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.25.1