Re: [RFC PATCH 0/3] acpi: Add acpi mdio support code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 }, }
         })



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux