* [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil
@ 2014-12-16 0:21 Arnaud Ebalard
2014-12-16 0:22 ` [PATCHv1 2/7] rtc: isl12022: deprecate use of isl in compatible string for isil Arnaud Ebalard
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:21 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
As suggested by Jason on a v0, I made a specific series for that work,
which intend to remove all remaining 'isl' prefix for Intersil to only
have 'isil'. More details below.
When Intersil ISL12057 driver was introduced by commit 70e123373c05
("rtc: Add support for Intersil ISL12057 I2C RTC chip"), the vendor
prefix 'isl' was used instead of the expected 'isil' (Intersil
NASDAQ symbol) and documented in vendor-prefixes.txt.
Recently, a patch from Philip Zabel (7a6540ca856a, "ARM: mvebu:
Change vendor prefix for Intersil Corporation to isil") fixed that
prefix in ReadyNAS devices .dts files (AFAICT, the only users of
the driver).
Then, commits 7c75c1d5e72b ("dt-bindings: Document deprecated device
vendor name to fix related warning") and b2ea3f82e798 (dt-bindings:
Document correct and deprecated vendor-prefix with device isl29028)
decided to go the other way and deprecate isil in vendor-prefixes.txt
and in isl29028.c staging driver.
While trying and merge a fix I wrote for ISL12057 drivers to finish
Philip's work, it conflicted with the two recently introduced commits,
and revealed the issue: at the moment, there are various compatible
strings in drivers and .dts files for Intersil products which use
either isl or isil:
$ grep -R "isil," .
./Documentation/devicetree/bindings/i2c/trivial-devices.txt:isil,isl29028 (deprecated, use isl)
./drivers/staging/iio/light/isl29028.c: { .compatible = "isil,isl29028", },/* deprecated, don't use */
./drivers/staging/iio/light/isl29018.c: { .compatible = "isil,isl29018", },
./drivers/staging/iio/light/isl29018.c: { .compatible = "isil,isl29023", },
./drivers/staging/iio/light/isl29018.c: { .compatible = "isil,isl29035", },
./arch/powerpc/boot/dts/p1022rdk.dts: compatible = "isil,zl6100";
./arch/powerpc/boot/dts/p1022rdk.dts: compatible = "isil,zl6100";
./arch/powerpc/boot/dts/p1022rdk.dts: compatible = "isil,zl6100";
./arch/powerpc/boot/dts/p1022rdk.dts: compatible = "isil,zl6100";
./arch/arm/boot/dts/exynos5800-peach-pi.dts: compatible = "isil,isl29018";
./arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi: compatible = "isil,isl1208";
./arch/arm/boot/dts/tegra20-ventana.dts: compatible = "isil,isl29018";
./arch/arm/boot/dts/tegra20-seaboard.dts: compatible = "isil,isl29018";
./arch/arm/boot/dts/armada-xp-netgear-rn2120.dts: compatible = "isil,isl12057";
./arch/arm/boot/dts/armada-370-netgear-rn104.dts: compatible = "isil,isl12057";
./arch/arm/boot/dts/exynos5420-peach-pit.dts: compatible = "isil,isl29018";
./arch/arm/boot/dts/armada-370-netgear-rn102.dts: compatible = "isil,isl12057";
$ grep -R "isl," .
./Documentation/devicetree/bindings/regulator/isl9305.txt:- compatible: "isl,isl9305" or "isl,isl9305h"
./Documentation/devicetree/bindings/regulator/isl9305.txt: compatible = "isl,isl9305";
./Documentation/devicetree/bindings/i2c/trivial-devices.txt:isl,isl12057 Intersil ISL12057 I2C RTC Chip
./Documentation/devicetree/bindings/i2c/trivial-devices.txt:isl,isl29028 Intersil ISL29028 Ambient Light ....
./drivers/regulator/isl9305.c: { .compatible = "isl,isl9305" },
./drivers/regulator/isl9305.c: { .compatible = "isl,isl9305h" },
./drivers/staging/iio/light/isl29028.c: { .compatible = "isl,isl29028", },
./drivers/rtc/rtc-isl12057.c: { .compatible = "isl,isl12057" },
./drivers/rtc/rtc-isl12022.c: { .compatible = "isl,isl12022" },
./arch/arm/boot/dts/tegra30-cardhu.dtsi: compatible = "isl,isl29028";
./arch/arm/boot/dts/zynq-parallella.dts: compatible = "isl,isl9305";
AFAICT, it seems it makes sense to *definitively* settle for isil as the
vendor prefix for Intersil, as Philip did in 7a6540ca856a: it's the NASDAQ
symbol and this choice requires less changes than opting for isl.
So, this series changes compatible strings in .dts files to use isil where
isl was found before, and modify drivers w/ compatible strings using isl
to add one using isil. In those cases, a comment is made that the old
compatible string is kept for backward compatibility (w/ out-fo-tree users
of those drivers). Additionally, it leaves only isil as prefix in
vendor-prefixes.txt. Those changes should prevent any new inclusion of
isl compatible strings for Intersil devices due to copy-and-paste.
Arnaud Ebalard (7):
dt-bindings: use isil prefix for Intersil
rtc: isl12022: deprecate use of isl in compatible string for isil
rtc: isl12057: deprecate use of isl in compatible string for isil
staging: iio: isl29028: deprecate use of isl in compatible string for isil
regulator: isl9305: deprecate use of isl in compatible string for isil
arm: dts: zynq: update isl9305 compatible string to use isil vendor prefix
arm: dts: tegra: update isl29028 compatible string to use isil vendor prefix
Documentation/devicetree/bindings/i2c/trivial-devices.txt | 5 ++---
Documentation/devicetree/bindings/regulator/isl9305.txt | 4 ++--
Documentation/devicetree/bindings/vendor-prefixes.txt | 3 +--
arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +-
arch/arm/boot/dts/zynq-parallella.dts | 2 +-
drivers/regulator/isl9305.c | 6 ++++--
drivers/rtc/rtc-isl12022.c | 3 ++-
drivers/rtc/rtc-isl12057.c | 3 ++-
drivers/staging/iio/light/isl29028.c | 4 ++--
9 files changed, 17 insertions(+), 15 deletions(-)
--
2.1.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCHv1 2/7] rtc: isl12022: deprecate use of isl in compatible string for isil
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
@ 2014-12-16 0:22 ` Arnaud Ebalard
2014-12-16 0:23 ` [PATCHv1 3/7] rtc: isl12057: " Arnaud Ebalard
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:22 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version). The old compatible string is kept for backward compatibility.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
drivers/rtc/rtc-isl12022.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-isl12022.c b/drivers/rtc/rtc-isl12022.c
index ee3ba7e6b45e..f9b082784b90 100644
--- a/drivers/rtc/rtc-isl12022.c
+++ b/drivers/rtc/rtc-isl12022.c
@@ -275,7 +275,8 @@ static int isl12022_probe(struct i2c_client *client,
#ifdef CONFIG_OF
static const struct of_device_id isl12022_dt_match[] = {
- { .compatible = "isl,isl12022" },
+ { .compatible = "isl,isl12022" }, /* for backward compat., don't use */
+ { .compatible = "isil,isl12022" },
{ },
};
#endif
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv1 3/7] rtc: isl12057: deprecate use of isl in compatible string for isil
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
2014-12-16 0:22 ` [PATCHv1 2/7] rtc: isl12022: deprecate use of isl in compatible string for isil Arnaud Ebalard
@ 2014-12-16 0:23 ` Arnaud Ebalard
2014-12-16 0:23 ` [PATCHv1 4/7] staging: iio: isl29028: " Arnaud Ebalard
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:23 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version). The old compatible string is kept for backward compatibility.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
drivers/rtc/rtc-isl12057.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c
index bd76c5e35fa5..cd6d8cc8c2c9 100644
--- a/drivers/rtc/rtc-isl12057.c
+++ b/drivers/rtc/rtc-isl12057.c
@@ -644,7 +644,8 @@ static SIMPLE_DEV_PM_OPS(isl12057_rtc_pm_ops, isl12057_rtc_suspend,
#ifdef CONFIG_OF
static const struct of_device_id isl12057_dt_match[] = {
- { .compatible = "isl,isl12057" },
+ { .compatible = "isl,isl12057" }, /* for backward compat., don't use */
+ { .compatible = "isil,isl12057" },
{ },
};
#endif
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv1 4/7] staging: iio: isl29028: deprecate use of isl in compatible string for isil
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
2014-12-16 0:22 ` [PATCHv1 2/7] rtc: isl12022: deprecate use of isl in compatible string for isil Arnaud Ebalard
2014-12-16 0:23 ` [PATCHv1 3/7] rtc: isl12057: " Arnaud Ebalard
@ 2014-12-16 0:23 ` Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 5/7] regulator: isl9305: " Arnaud Ebalard
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:23 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version). The old compatible string is kept for backward compatibility.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
drivers/staging/iio/light/isl29028.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index e969107ddb47..6440e3b293ca 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -537,8 +537,8 @@ static const struct i2c_device_id isl29028_id[] = {
MODULE_DEVICE_TABLE(i2c, isl29028_id);
static const struct of_device_id isl29028_of_match[] = {
- { .compatible = "isl,isl29028", },
- { .compatible = "isil,isl29028", },/* deprecated, don't use */
+ { .compatible = "isl,isl29028", }, /* for backward compat., don't use */
+ { .compatible = "isil,isl29028", },
{ },
};
MODULE_DEVICE_TABLE(of, isl29028_of_match);
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv1 5/7] regulator: isl9305: deprecate use of isl in compatible string for isil
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
` (2 preceding siblings ...)
2014-12-16 0:23 ` [PATCHv1 4/7] staging: iio: isl29028: " Arnaud Ebalard
@ 2014-12-16 0:24 ` Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 6/7] arm: dts: zynq: update isl9305 compatible string to use isil vendor prefix Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 7/7] arm: dts: tegra: update isl29028 " Arnaud Ebalard
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:24 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version). The old compatible string is kept for backward compatibility.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
Documentation/devicetree/bindings/regulator/isl9305.txt | 4 ++--
drivers/regulator/isl9305.c | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/isl9305.txt b/Documentation/devicetree/bindings/regulator/isl9305.txt
index a626fc1bbf0d..d6e7c9ec9413 100644
--- a/Documentation/devicetree/bindings/regulator/isl9305.txt
+++ b/Documentation/devicetree/bindings/regulator/isl9305.txt
@@ -2,7 +2,7 @@ Intersil ISL9305/ISL9305H voltage regulator
Required properties:
-- compatible: "isl,isl9305" or "isl,isl9305h"
+- compatible: "isil,isl9305" or "isil,isl9305h"
- reg: I2C slave address, usually 0x68.
- regulators: A node that houses a sub-node for each regulator within the
device. Each sub-node is identified using the node's name, with valid
@@ -19,7 +19,7 @@ Optional properties:
Example
pmic: isl9305 at 68 {
- compatible = "isl,isl9305";
+ compatible = "isil,isl9305";
reg = <0x68>;
VINDCD1-supply = <&system_power>;
diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c
index 92fefd98da58..6e3a15fe00f1 100644
--- a/drivers/regulator/isl9305.c
+++ b/drivers/regulator/isl9305.c
@@ -177,8 +177,10 @@ static int isl9305_i2c_probe(struct i2c_client *i2c,
#ifdef CONFIG_OF
static const struct of_device_id isl9305_dt_ids[] = {
- { .compatible = "isl,isl9305" },
- { .compatible = "isl,isl9305h" },
+ { .compatible = "isl,isl9305" }, /* for backward compat., don't use */
+ { .compatible = "isil,isl9305" },
+ { .compatible = "isl,isl9305h" }, /* for backward compat., don't use */
+ { .compatible = "isil,isl9305h" },
{},
};
#endif
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv1 6/7] arm: dts: zynq: update isl9305 compatible string to use isil vendor prefix
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
` (3 preceding siblings ...)
2014-12-16 0:24 ` [PATCHv1 5/7] regulator: isl9305: " Arnaud Ebalard
@ 2014-12-16 0:24 ` Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 7/7] arm: dts: tegra: update isl29028 " Arnaud Ebalard
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:24 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version).
Note: isl9305 is an I2C device so the patch does not in fact currently
depend on the introduction of "isil"-based compatible string in isl9305
driver (provided by another patch) because I2C core does not check the
prefix yet.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
arch/arm/boot/dts/zynq-parallella.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/zynq-parallella.dts b/arch/arm/boot/dts/zynq-parallella.dts
index ab1dc0a56cdd..174571232ea5 100644
--- a/arch/arm/boot/dts/zynq-parallella.dts
+++ b/arch/arm/boot/dts/zynq-parallella.dts
@@ -58,7 +58,7 @@
status = "okay";
isl9305: isl9305 at 68 {
- compatible = "isl,isl9305";
+ compatible = "isil,isl9305";
reg = <0x68>;
regulators {
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv1 7/7] arm: dts: tegra: update isl29028 compatible string to use isil vendor prefix
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
` (4 preceding siblings ...)
2014-12-16 0:24 ` [PATCHv1 6/7] arm: dts: zynq: update isl9305 compatible string to use isil vendor prefix Arnaud Ebalard
@ 2014-12-16 0:24 ` Arnaud Ebalard
5 siblings, 0 replies; 7+ messages in thread
From: Arnaud Ebalard @ 2014-12-16 0:24 UTC (permalink / raw)
To: linux-arm-kernel
"isil" and "isl" prefixes are used at various locations inside the kernel
to reference Intersil corporation. This patch is part of a series fixing
those locations were "isl" is used in compatible strings to use the now
expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
version).
Note: isl29028 is an I2C device so the patch does not in fact currently
depend on the introduction of "isil"-based compatible string in isl29028
driver because I2C core does not check the prefix yet.
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
---
arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index cbf5a1ae0ca7..a1b682ea01bd 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -189,7 +189,7 @@
/* ALS and Proximity sensor */
isl29028 at 44 {
- compatible = "isl,isl29028";
+ compatible = "isil,isl29028";
reg = <0x44>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(L, 0) IRQ_TYPE_LEVEL_HIGH>;
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-12-16 0:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 0:21 [PATCHv1 0/7] from now on, use 'isil' as prefix for Intersil Arnaud Ebalard
2014-12-16 0:22 ` [PATCHv1 2/7] rtc: isl12022: deprecate use of isl in compatible string for isil Arnaud Ebalard
2014-12-16 0:23 ` [PATCHv1 3/7] rtc: isl12057: " Arnaud Ebalard
2014-12-16 0:23 ` [PATCHv1 4/7] staging: iio: isl29028: " Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 5/7] regulator: isl9305: " Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 6/7] arm: dts: zynq: update isl9305 compatible string to use isil vendor prefix Arnaud Ebalard
2014-12-16 0:24 ` [PATCHv1 7/7] arm: dts: tegra: update isl29028 " Arnaud Ebalard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).