From: Lee Jones <lee.jones@linaro.org>
To: Vadim Pasternak <vadimp@mellanox.com>
Cc: robh+dt@kernel.org, pavel@ucw.cz, devicetree@vger.kernel.org,
jacek.anaszewski@gmail.com, linux-leds@vger.kernel.org,
jiri@resnulli.us, gregkh@linuxfoundation.org,
andy.shevchenko@gmail.com, platform-driver-x86@vger.kernel.org
Subject: Re: [patch v5 2/2] dt-bindings: mfd: Add Device Tree bindings for Mellanox programmable devices
Date: Thu, 14 Sep 2017 13:51:40 +0100 [thread overview]
Message-ID: <20170914125140.2a7cwmgm7pzk6zuk@dell> (raw)
In-Reply-To: <20170914123824.us56wefi3di345mh@dell>
On Thu, 14 Sep 2017, Lee Jones wrote:
> On Thu, 14 Sep 2017, Vadim Pasternak wrote:
>
> > The mlxreg a multifunction device driver handling LEDs, events, exposing
> > through sysfs reset signal, and reset causes info. These components share
> > a common register space.
> >
> > Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> > ---
> > v4->v5:
> > Comments pointed out by Rob:
> > - Avoid duplications in reg;
> > - Remove unnecessary details in description;
> > - Do not use names like phandels;
> > Changes added by Vadim:
> > - Combine hotplug nodes interrupt aggregation, register offset and mask
> > properties into hotplug-spec properties;
> > - Combine reset, cause, etc subnodes register offset, mask and effective
> > bit properties into attr-spec properties;
> > v3->v4:
> > Comments pointed out by Rob:
> > - Make a separate patch /devicetree/bindings/vendor-prefixes.txt;
> > - Add .txt to Documentation/devicetree/bindings/mfd/mellanox,mlxreg-core
> > and send it within this series;
> > - Modify "compatible" property;
> > - Modify explanation for "deferred" property;
> > - Describe each subnode by its own section;
> > - Don't use underscore in attribute names;
> > ---
> > .../bindings/mfd/mellanox,mlxreg-core.txt | 165 +++++++++++++++++++++
> > 1 file changed, 165 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/mfd/mellanox,mlxreg-core.txt
>
> Wow! I have never seen a binding like this before.
>
> > diff --git a/Documentation/devicetree/bindings/mfd/mellanox,mlxreg-core.txt b/Documentation/devicetree/bindings/mfd/mellanox,mlxreg-core.txt
> > new file mode 100644
> > index 0000000..1e3cce5
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mfd/mellanox,mlxreg-core.txt
> > @@ -0,0 +1,165 @@
> > +Mellanox programmable device control.
> > +-------------------------------------
> > +This binding defines the device control interface over for Mellanox BMC based
> > +switches.
> > +
> > +Required properties:
> > +- compatible = "mellanox,mlxreg-i2c" or
> > + "mellanox,mlxreg-i2c-16"
> > +
> > +- #address-cells : must be 1;
> > +- #size-cells : must be 0;
> > +- reg : I2C address;
> > +
> > +Optional properties:
> > +- interrupt-parent : phandle of parent interrupt controller;
> > +- interrupts : interrupt line;
> > +- deferred : I2C deferred bus phandle;
> > + I2C bus activation order enforce for the cases when hot-plug
> > + devices are attached to I2C bus, which is initialized after the
> > + I2C bus, where programmable device is attached;
>
> Dependencies aren't usually expressed in DT.
>
> Why can't this be done pragmatically?
>
> Usually we try to interrogate a device that we depend on and if it's
> not present, we return -EPROBE_DEFER and try again latter.
Actually, thinking about this. Are these hierarchical?
If so, they would be better represented as a sub-node.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2017-09-14 12:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-14 6:48 [patch v5 0/2] Introduce support for mlxreg mfd core driver Vadim Pasternak
[not found] ` <1505371738-128683-1-git-send-email-vadimp-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-09-14 6:48 ` [patch v5 1/2] mfd: Add Mellanox regmap " Vadim Pasternak
2017-09-14 9:43 ` Lee Jones
2017-09-14 11:13 ` Vadim Pasternak
2017-09-14 12:12 ` Lee Jones
2017-09-14 6:48 ` [patch v5 2/2] dt-bindings: mfd: Add Device Tree bindings for Mellanox programmable devices Vadim Pasternak
[not found] ` <1505371738-128683-3-git-send-email-vadimp-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2017-09-14 12:38 ` Lee Jones
2017-09-14 12:51 ` Lee Jones [this message]
2017-09-14 13:30 ` Vadim Pasternak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170914125140.2a7cwmgm7pzk6zuk@dell \
--to=lee.jones@linaro.org \
--cc=andy.shevchenko@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jacek.anaszewski@gmail.com \
--cc=jiri@resnulli.us \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=platform-driver-x86@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=vadimp@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox