Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: add reset property for aspeed, ast2600-mdio binding

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 <dylan_hung@aspeedtech.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Dylan Hung and committed by
Paolo Abeni
65e42ad9 50c6afab

+6
+6
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
··· 20 20 properties: 21 21 compatible: 22 22 const: aspeed,ast2600-mdio 23 + 23 24 reg: 24 25 maxItems: 1 25 26 description: The register range of the MDIO controller instance 27 + 28 + resets: 29 + maxItems: 1 26 30 27 31 required: 28 32 - compatible ··· 38 34 39 35 examples: 40 36 - | 37 + #include <dt-bindings/clock/ast2600-clock.h> 41 38 mdio0: mdio@1e650000 { 42 39 compatible = "aspeed,ast2600-mdio"; 43 40 reg = <0x1e650000 0x8>; 44 41 #address-cells = <1>; 45 42 #size-cells = <0>; 43 + resets = <&syscon ASPEED_RESET_MII>; 46 44 47 45 ethphy0: ethernet-phy@0 { 48 46 compatible = "ethernet-phy-ieee802.3-c22";