[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f86b43f0-bb72-e445-7bc0-254f07acda17@kernel.org>
Date: Thu, 8 Nov 2018 18:37:25 -0600
From: Timur Tabi <timur@...nel.org>
To: Andrew Lunn <andrew@...n.ch>,
Wang Dongsheng <dongsheng.wang@...-semitech.com>
Cc: yu.zheng@...-semitech.com, f.fainelli@...il.com, rjw@...ysocki.net,
linux-acpi@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [RFC PATCH 0/3] acpi: Add acpi mdio support code
On 11/8/18 5:23 PM, Andrew Lunn wrote:
> I don't know much about ACPI. I do know DT. MDIO busses can have
> multiple PHYs on them. Is the following valid to list two PHYs?
>
> Device (MDIO) {
> Name (_DSD, Package () {
> ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
> Package () { Package () { "ethernet-phy@0", PHY0 }, }
> })
> Name (PHY0, Package() {
> ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
> Package () { Package () { "reg", 0x0 }, }
> })
> Name (_DSD, Package () {
> ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
> Package () { Package () { "ethernet-phy@10", PHY1 }, }
> })
> Name (PHY1, Package() {
> ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
> Package () { Package () { "reg", 0x10 }, }
> })
> }
You can't have the same DSD twice. It would need to look like this:
Name (PHY1, Package() {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () { Package () { "reg", 0, 0x10 }, }
})
Powered by blists - more mailing lists