[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqL5xk3mH=h-m8nU8xTYbRjgMWt3p7BzYWj6vBUq4OpqMg@mail.gmail.com>
Date: Tue, 16 Aug 2016 08:29:51 -0500
From: Rob Herring <robh@...nel.org>
To: Timur Tabi <timur@...eaurora.org>
Cc: netdev <netdev@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
Sagar Dharia <sdharia@...eaurora.org>,
Shanker Donthineni <shankerd@...eaurora.org>,
Vikram Sethi <vikrams@...eaurora.org>,
Christopher Covington <cov@...eaurora.org>,
Gilad Avidov <gavidov@...eaurora.org>,
Andrew Lunn <andrew@...n.ch>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Mark Langsdorf <mlangsdo@...hat.com>,
"jcm@...hat.com" <jcm@...hat.com>,
Andy Gross <agross@...eaurora.org>,
David Miller <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>,
Lino Sanfilippo <LinoSanfilippo@....de>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Al Stone <al.stone@...aro.org>
Subject: Re: [PATCH] [v7] net: emac: emac gigabit ethernet controller driver
On Mon, Aug 15, 2016 at 3:06 PM, Timur Tabi <timur@...eaurora.org> wrote:
> + Rafael and Al, for ACPI help.
>
> Rob Herring wrote:
>>>
>>> >+Optional properties:
>>> >+- phy-version : the version of the integrated emac phy, either 1 or 2.
>
>
>> Sounds like 2 different h/w. The compatible property should distinguish
>> this.
>
>
> So I implemented this in v8 of my driver, but it is causing problems for
> ACPI.
>
> In ACPI, the equivalent to a compatible string is the HID, which is QCOM8070
> for the EMAC. The problem is that it's very difficult, if not impossible,
> to create new HIDs for different versions of the same device.
Different versions are different devices IMO.
> The driver will primarily (if not exclusively) be used on ACPI platforms,
> not DT. In Qualcomm, DT is for mobile chips, and ACPI is for server. To my
> knowledge, there are no plans to use this driver on an actual DT-enabled
> platform, but I want to support DT anyway.
>
> The other problem is that the "internal PHY" of the EMAC is technically a
> separate device, and it's interchangeable. Future versions of our chips
> will use different internal PHYs, but the EMAC will stay the same.
How do you know? EMAC could just as easily change. It's Gigabit today,
10G tomorrow.
But if it is separate, then maybe you should model it as a separate
device using the phy binding.
> So I would like a solution that works on DT and ACPI. I suppose I could use
> compatible strings on DT, and a "phy-version" DSD (property) on ACPI. If
> that's acceptable to everyone, then I can do that. It seems clunky to me.
On one hand, why should I care about ACPI for defining DT bindings?
OTOH, having a phy-version property alone would not be a big deal, but
you still need distinct compatible strings regardless.
Rob
Powered by blists - more mailing lists