Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1616113 > unrolled thread
| Started by | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| First post | 2017-04-04 17:40 +0200 |
| Last post | 2017-04-04 19:50 +0200 |
| Articles | 13 — 4 participants |
Back to article view | Back to linux.kernel
[PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 4/8] ARM: dts: n8x0: Add vendor prefix to retu node Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 8/8] ARM: ux500: Add vendor prefix to tps61052 node Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 5/8] i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 6/8] dt-bindings: mfd: Add TI tps6105x chip bindings Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 3/8] mfd: retu: Add OF device ID table Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
[PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 17:40 +0200
Re: [PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings Rob Herring <robh+dt@kernel.org> - 2017-04-04 19:00 +0200
Re: [PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 19:10 +0200
Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it Rob Herring <robh+dt@kernel.org> - 2017-04-04 19:00 +0200
Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it Aaro Koskinen <aaro.koskinen@iki.fi> - 2017-04-04 19:40 +0200
Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it Tony Lindgren <tony@atomide.com> - 2017-04-04 19:50 +0200
Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it Javier Martinez Canillas <javier@osg.samsung.com> - 2017-04-04 19:50 +0200
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it |
| Message-ID | <tsyIO-6H1-7@gated-at.bofh.it> |
Hello, This series add OF device ID tables to mfd I2C drivers whose devices are either used in Device Tree source files or are listed in binding docs as a compatible string. That's done because the plan is to change the I2C core to report proper OF modaliases instead of always reporting a MODALIAS=i2c:<foo> regardless if a device was registered via DT or using the legacy platform data mechanism. So these patches will make sure that mfd I2C drivers modules will continue to be autoloaded once the I2C core is changed to report proper OF modalias. Users didn't have a vendor prefix in the used compatible strings, but since there wasn't a DT binding document for these drivers, it can be said that were working for mere luck and so this series fixes the users and add a DT binding doc for the drivers. Most patches can be applied independently, with the exception of patches 2 to 4 that should be applied in the same tree to keep bisect-ability. Best regards, Javier Changes in v4: - Use "dt-bindings: mfd:" prefix in subject line (Rob Herring). - Add information about what functions the device serve (Lee Jones). - Avoid using MFD in Device Tree (Lee Jones). - Drop -mfd suffix in compatible string (Lee Jones). - Avoid using MFD in Device Tree (Lee Jones). - Use "dt-bindings: mfd:" prefix in subject line (Rob Herring). - Add information about what functions the device serve (Lee Jones). Changes in v3: - Add a vendor prefix to the compatible string (Rob Herring). - Add a vendor prefix to the compatible string (Rob Herring). Changes in v2: - Don't use of_match_ptr() to avoid build warning when CONFIG_OF is disabled. - Don't use of_match_ptr() to avoid build warning when CONFIG_OF is disabled. Javier Martinez Canillas (8): dt-bindings: mfd: Add retu/tahvo ASIC chips bindings mfd: retu: Drop -mfd suffix from I2C device ID name mfd: retu: Add OF device ID table ARM: dts: n8x0: Add vendor prefix to retu node i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example dt-bindings: mfd: Add TI tps6105x chip bindings mfd: tps6105x: Add OF device ID table ARM: ux500: Add vendor prefix to tps61052 node .../devicetree/bindings/i2c/i2c-cbus-gpio.txt | 4 ++-- Documentation/devicetree/bindings/mfd/retu.txt | 21 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/tps6105x.txt | 17 +++++++++++++++++ arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 4 ++-- arch/arm/boot/dts/ste-hrefprev60.dtsi | 2 +- arch/arm/mach-omap1/board-nokia770.c | 4 ++-- drivers/mfd/retu-mfd.c | 12 ++++++++++-- drivers/mfd/tps6105x.c | 8 ++++++++ 8 files changed, 63 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/retu.txt create mode 100644 Documentation/devicetree/bindings/mfd/tps6105x.txt -- 2.9.3
[toc] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 4/8] ARM: dts: n8x0: Add vendor prefix to retu node |
| Message-ID | <tsyIO-6H1-27@gated-at.bofh.it> |
| In reply to | #1616113 |
The retu device node doesn't have a vendor prefix
in its compatible string, fix it by adding one.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi
index 1b06430c8013..91886231e5a8 100644
--- a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi
+++ b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi
@@ -16,7 +16,7 @@
#address-cells = <1>;
#size-cells = <0>;
retu: retu@1 {
- compatible = "retu";
+ compatible = "nokia,retu";
interrupt-parent = <&gpio4>;
interrupts = <12 IRQ_TYPE_EDGE_RISING>;
reg = <0x1>;
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 8/8] ARM: ux500: Add vendor prefix to tps61052 node |
| Message-ID | <tsyIO-6H1-19@gated-at.bofh.it> |
| In reply to | #1616113 |
The tps61052 device node doesn't have a vendor prefix
in its compatible string, fix it by adding one.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/ste-hrefprev60.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi
index 5882a2606ac3..3f14b4df69b4 100644
--- a/arch/arm/boot/dts/ste-hrefprev60.dtsi
+++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi
@@ -30,7 +30,7 @@
i2c@80004000 {
tps61052@33 {
- compatible = "tps61052";
+ compatible = "ti,tps61052";
reg = <0x33>;
};
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 5/8] i2c: i2c-cbus-gpio: Add vendor prefix to retu node in example |
| Message-ID | <tsyIO-6H1-23@gated-at.bofh.it> |
| In reply to | #1616113 |
The example contains a device node for a retu device, but
its compatible string doesn't have a vendor prefix.
While being there, drop the -mfd suffix since isn't correct.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4:
- Avoid using MFD in Device Tree (Lee Jones).
Changes in v3: None
Changes in v2: None
Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt b/Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt
index 8ce9cd2855b5..c143948b2a37 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-cbus-gpio.txt
@@ -20,8 +20,8 @@ i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
- retu-mfd: retu@1 {
- compatible = "retu-mfd";
+ retu: retu@1 {
+ compatible = "nokia,retu";
reg = <0x1>;
};
};
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 6/8] dt-bindings: mfd: Add TI tps6105x chip bindings |
| Message-ID | <tsyIP-6H1-33@gated-at.bofh.it> |
| In reply to | #1616113 |
There are Device Tree source files defining a device node for the
tps61050/61052 I2C chip but there isn't a binding document for it.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4:
- Use "dt-bindings: mfd:" prefix in subject line (Rob Herring).
- Add information about what functions the device serve (Lee Jones).
Changes in v3: None
Changes in v2: None
Documentation/devicetree/bindings/mfd/tps6105x.txt | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/tps6105x.txt
diff --git a/Documentation/devicetree/bindings/mfd/tps6105x.txt b/Documentation/devicetree/bindings/mfd/tps6105x.txt
new file mode 100644
index 000000000000..93602c7a19c8
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/tps6105x.txt
@@ -0,0 +1,17 @@
+* Device tree bindings for TI TPS61050/61052 Boost Converters
+
+The TP61050/TPS61052 is a high-power "white LED driver". The
+device provides LED, GPIO and regulator functionalities.
+
+Required properties:
+- compatible: "ti,tps61050" or "ti,tps61052"
+- reg: Specifies the I2C slave address
+
+Example:
+
+i2c0 {
+ tps61052@33 {
+ compatible = "ti,tps61052";
+ reg = <0x33>;
+ };
+};
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 3/8] mfd: retu: Add OF device ID table |
| Message-ID | <tsyIP-6H1-47@gated-at.bofh.it> |
| In reply to | #1616113 |
The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:<device>.
But this could change in the future so the correct approach is to have a
OF device ID table if the devices are registered via OF.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4:
- Drop -mfd suffix in compatible string (Lee Jones).
Changes in v3:
- Add a vendor prefix to the compatible string (Rob Herring).
Changes in v2:
- Don't use of_match_ptr() to avoid build warning when CONFIG_OF is disabled.
drivers/mfd/retu-mfd.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c
index 53e1d386d2c0..e7d27b7861c1 100644
--- a/drivers/mfd/retu-mfd.c
+++ b/drivers/mfd/retu-mfd.c
@@ -308,9 +308,17 @@ static const struct i2c_device_id retu_id[] = {
};
MODULE_DEVICE_TABLE(i2c, retu_id);
+static const struct of_device_id retu_of_match[] = {
+ { .compatible = "nokia,retu" },
+ { .compatible = "nokia,tahvo" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, retu_of_match);
+
static struct i2c_driver retu_driver = {
.driver = {
.name = "retu-mfd",
+ .of_match_table = retu_of_match,
},
.probe = retu_probe,
.remove = retu_remove,
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 17:40 +0200 |
| Subject | [PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings |
| Message-ID | <tsyIP-6H1-51@gated-at.bofh.it> |
| In reply to | #1616113 |
There are Device Tree source files defining a device node for the
retu/tahvo I2C chip, but there isn't a DT binding document for it.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
Changes in v4:
- Use "dt-bindings: mfd:" prefix in subject line (Rob Herring).
- Add information about what functions the device serve (Lee Jones).
- Avoid using MFD in Device Tree (Lee Jones).
Changes in v3: None
Changes in v2: None
Documentation/devicetree/bindings/mfd/retu.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/retu.txt
diff --git a/Documentation/devicetree/bindings/mfd/retu.txt b/Documentation/devicetree/bindings/mfd/retu.txt
new file mode 100644
index 000000000000..7df21a2b28ea
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/retu.txt
@@ -0,0 +1,21 @@
+* Device tree bindings for Nokia Retu and Tahvo multi-function device
+
+Retu and Tahvo are a multi-function devices found on Nokia Internet
+Tablets (770, N800 and N810). The Retu chip provides watchdog timer
+and power button control functionalities while Tahvo chip provides
+USB transceiver functionality.
+
+Required properties:
+- compatible: "nokia,retu" or "nokia,tahvo"
+- reg: Specifies the I2C slave address of the ASIC chip
+
+Example:
+
+i2c0 {
+ retu: retu@1 {
+ compatible = "nokia,retu";
+ interrupt-parent = <&gpio4>;
+ interrupts = <12 IRQ_TYPE_EDGE_RISING>;
+ reg = <0x1>;
+ };
+};
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2017-04-04 19:00 +0200 |
| Subject | Re: [PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings |
| Message-ID | <tszYd-7uN-5@gated-at.bofh.it> |
| In reply to | #1616125 |
On Tue, Apr 4, 2017 at 10:30 AM, Javier Martinez Canillas <javier@osg.samsung.com> wrote: > There are Device Tree source files defining a device node for the > retu/tahvo I2C chip, but there isn't a DT binding document for it. > > Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> > > --- > > Changes in v4: > - Use "dt-bindings: mfd:" prefix in subject line (Rob Herring). > - Add information about what functions the device serve (Lee Jones). > - Avoid using MFD in Device Tree (Lee Jones). > > Changes in v3: None > Changes in v2: None > > Documentation/devicetree/bindings/mfd/retu.txt | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/retu.txt > > diff --git a/Documentation/devicetree/bindings/mfd/retu.txt b/Documentation/devicetree/bindings/mfd/retu.txt > new file mode 100644 > index 000000000000..7df21a2b28ea > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/retu.txt > @@ -0,0 +1,21 @@ > +* Device tree bindings for Nokia Retu and Tahvo multi-function device > + > +Retu and Tahvo are a multi-function devices found on Nokia Internet > +Tablets (770, N800 and N810). The Retu chip provides watchdog timer > +and power button control functionalities while Tahvo chip provides > +USB transceiver functionality. > + > +Required properties: > +- compatible: "nokia,retu" or "nokia,tahvo" > +- reg: Specifies the I2C slave address of the ASIC chip Missing interrupts here. With that: Acked-by: Rob Herring <robh@kernel.org>
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 19:10 +0200 |
| Subject | Re: [PATCH v4 1/8] dt-bindings: mfd: Add retu/tahvo ASIC chips bindings |
| Message-ID | <tsA7U-7Nb-23@gated-at.bofh.it> |
| In reply to | #1616206 |
Hello Rob, On 04/04/2017 12:54 PM, Rob Herring wrote: > On Tue, Apr 4, 2017 at 10:30 AM, Javier Martinez Canillas > <javier@osg.samsung.com> wrote: >> There are Device Tree source files defining a device node for the >> retu/tahvo I2C chip, but there isn't a DT binding document for it. >> >> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> >> >> --- >> >> Changes in v4: >> - Use "dt-bindings: mfd:" prefix in subject line (Rob Herring). >> - Add information about what functions the device serve (Lee Jones). >> - Avoid using MFD in Device Tree (Lee Jones). >> >> Changes in v3: None >> Changes in v2: None >> >> Documentation/devicetree/bindings/mfd/retu.txt | 21 +++++++++++++++++++++ >> 1 file changed, 21 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mfd/retu.txt >> >> diff --git a/Documentation/devicetree/bindings/mfd/retu.txt b/Documentation/devicetree/bindings/mfd/retu.txt >> new file mode 100644 >> index 000000000000..7df21a2b28ea >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mfd/retu.txt >> @@ -0,0 +1,21 @@ >> +* Device tree bindings for Nokia Retu and Tahvo multi-function device >> + >> +Retu and Tahvo are a multi-function devices found on Nokia Internet >> +Tablets (770, N800 and N810). The Retu chip provides watchdog timer >> +and power button control functionalities while Tahvo chip provides >> +USB transceiver functionality. >> + >> +Required properties: >> +- compatible: "nokia,retu" or "nokia,tahvo" >> +- reg: Specifies the I2C slave address of the ASIC chip > > Missing interrupts here. > Right, sorry for missing that. I'll wait for Lee's feedback before posting a new version in case I missed something else. > With that: > > Acked-by: Rob Herring <robh@kernel.org> > Thanks a lot for your review and acks! Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2017-04-04 19:00 +0200 |
| Subject | Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it |
| Message-ID | <tszYe-7uN-25@gated-at.bofh.it> |
| In reply to | #1616113 |
On Tue, Apr 4, 2017 at 10:30 AM, Javier Martinez Canillas <javier@osg.samsung.com> wrote: > Hello, > > This series add OF device ID tables to mfd I2C drivers whose devices are > either used in Device Tree source files or are listed in binding docs as > a compatible string. For the series, Acked-by: Rob Herring <robh@kernel.org>
[toc] | [prev] | [next] | [standalone]
| From | Aaro Koskinen <aaro.koskinen@iki.fi> |
|---|---|
| Date | 2017-04-04 19:40 +0200 |
| Subject | Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it |
| Message-ID | <tsAAW-7Yu-21@gated-at.bofh.it> |
| In reply to | #1616113 |
Hi, On Tue, Apr 04, 2017 at 11:30:28AM -0400, Javier Martinez Canillas wrote: > This series add OF device ID tables to mfd I2C drivers whose devices are > either used in Device Tree source files or are listed in binding docs as > a compatible string. For patches 1-5 you can add: Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> A.
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-04-04 19:50 +0200 |
| Subject | Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it |
| Message-ID | <tsAKB-81K-9@gated-at.bofh.it> |
| In reply to | #1616113 |
* Javier Martinez Canillas <javier@osg.samsung.com> [170404 08:33]: > Most patches can be applied independently, with the exception of patches > 2 to 4 that should be applied in the same tree to keep bisect-ability. Probably best to merge this all via MFD or i2c: Acked-by: Tony Lindgren <tony@atomide.com>
[toc] | [prev] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-04-04 19:50 +0200 |
| Subject | Re: [PATCH v4 0/8] mfd: Add OF device table to I2C drivers that are missing it |
| Message-ID | <tsAKC-81K-33@gated-at.bofh.it> |
| In reply to | #1616258 |
Hello Tony, On 04/04/2017 01:43 PM, Tony Lindgren wrote: > * Javier Martinez Canillas <javier@osg.samsung.com> [170404 08:33]: >> Most patches can be applied independently, with the exception of patches >> 2 to 4 that should be applied in the same tree to keep bisect-ability. > > Probably best to merge this all via MFD or i2c: > I would prefer MFD since the changes in that subsystem are the ones that could cause issues. The changes for I2C is just a update to an example. > Acked-by: Tony Lindgren <tony@atomide.com> > Thanks! Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web