Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4425006ioa; Wed, 27 Apr 2022 03:41:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoeWa2iF+tMeunNHTBWLVm3qJlbWq6TaIOFHkzxGeNWhUUlyFYoM6IRiIzm9ySNeJVUYS7 X-Received: by 2002:a63:1b5e:0:b0:3aa:593c:9392 with SMTP id b30-20020a631b5e000000b003aa593c9392mr23517917pgm.470.1651056081680; Wed, 27 Apr 2022 03:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651056081; cv=none; d=google.com; s=arc-20160816; b=vhXpmC/uAjGirAY4vH8PbLSh8uow7ZdGxpvEHuJzG4PLvamh2rgf6HxRv7YWS8uxa6 twfWfF70gmwW7efVX0MgBadkDQq9nBxURatKq2WDVfhcTVJl2EUX5UKwoag2aa5zh2YJ YAPYTIt5QpEN03vC2lzC3IGBdY3gog0hYf4JBl3Ns+b9+XCxzaxLAq48Oybv9lSY6su1 xUKmErAvvw5uVxx4upeUrkUCHSZ5bCqV124UGCyDxH1/6CxX0vjds1crMKHlJI73Lewh mYqCrzOHZ091JkMIy3lv2flajN8ps+hp//5evUmFfhwsTkqFqOoRqLnCCMU8aBpR1PDX LmiQ== 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=T/sPS5R8c42sG18/wc/jZwxtetwmW4jL31JRnd7Vgew=; b=dPZlBjs8lVAGCr6MkzcHYQHmbZTUmQCwFmzhuoHE8RmpwWUaLwra+Zv7SPAf40DAsx ORU9sO6fpfgrRWappmGUU2a+DA/kK4nChlMYBWaQ0qEhpJyQ+UtMsNgwAHUylBmsKKo/ pLxUuKgtf8/wo9t+vXsghx2uOZlXre+92YLZeWAROZie+2AqcFBqjAvqQeoXDgHrAXP0 PaLGOFVGmHlFWRh1k4KrVFKMq4CHXIAaEkQOsLbNHXt5e/xpVlefDDSnOfj/3DKVZqDp 4F8j56DPuaUjb3FA9Dima8avbNVjR2hUnKHI5vyfdLwTMFW5Kf100dbRlC5ln/Gm+H6c qYYw== 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 z25-20020a056a001d9900b0050d3bc38396si895986pfw.206.2022.04.27.03.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:41:21 -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 8265832984; Wed, 27 Apr 2022 02:53:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354076AbiD0D63 (ORCPT + 99 others); Tue, 26 Apr 2022 23:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355542AbiD0D6V (ORCPT ); Tue, 26 Apr 2022 23:58:21 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E04D13F7A for ; Tue, 26 Apr 2022 20:55:10 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 23R3gSNV032327; Wed, 27 Apr 2022 11:42:28 +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, 27 Apr 2022 11:54:58 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , , CC: , Krzysztof Kozlowski Subject: [PATCH net-next v6 1/3] dt-bindings: net: add reset property for aspeed, ast2600-mdio binding Date: Wed, 27 Apr 2022 11:54:59 +0800 Message-ID: <20220427035501.17500-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220427035501.17500-1-dylan_hung@aspeedtech.com> References: <20220427035501.17500-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 23R3gSNV032327 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 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 Reviewed-by: Andrew Jeffery --- .../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