ARM: dt: tegra: add ALS and proximity sensor ISL29018
Subsystems (5)
cover ARM: dt: tegra: add ALS and proximity sensor ISL29018
Series of patches to enable the ALS and proximity sensor ISL29018 for tegra_ventana.
The changes done here:
- Add vendor prefix in document.
- Fix the vendor prefix in isl29018 driver.
- Add entry for isl29018 in tegra-ventana.dts file.
Laxman Dewangan (3):
devicetree: Document Intersil Corporation vendor prefix
staging: iio: light: of: Fix vendor prefix of isl29018
ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
.../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/boot/dts/tegra-ventana.dts | 6 ++++++ drivers/staging/iio/light/isl29018.c | 2 +- 3 files changed, 8 insertions(+), 1 deletions(-)
PATCH 1/3 devicetree: Document Intersil Corporation vendor prefix
--- .../devicetree/bindings/vendor-prefixes.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -22,6 +22,7 @@ hp Hewlett Packard ibm International Business Machines (IBM) idt Integrated Device Technologies, Inc. intercontrol Inter Control Group +isl Intersil Corporation linux Linux-specific binding marvell Marvell Technology Group Ltd. maxim Maxim Integrated Products
Signature · 1 line
1.7.1.1
PATCH 2/3 staging: iio: light: of: Fix vendor prefix of isl29018
In reply to Laxman DewanganISL29018 is from Intersil Corporation and the vendor prefix for this part should be "isl", at least not "invn" for OF compatibility.
--- drivers/staging/iio/light/isl29018.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/iio/light/isl29018.c +1 -1
@@ -593,7 +593,7 @@ static const struct i2c_device_id isl29018_id[] = {MODULE_DEVICE_TABLE (i2c, isl29018_id);static const struct of_device_id isl29018_of_match[] = { - { .compatible ="invn,isl29018" , }, + { .compatible ="isl,isl29018" , }, { }, };MODULE_DEVICE_TABLE (of, isl29018_of_match);
Signature · 1 line
1.7.1.1
PATCH 3/3 ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
In reply to Laxman DewanganAdd the device info for ALS and proximity sensor isl29018. This device is connected on i2c0 bus.
--- arch/arm/boot/dts/tegra-ventana.dts | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra-ventana.dts +6 -0
@@ -256,6 +256,12 @@ micdet-delay = <100>; gpio-cfg = < 0xffffffff 0xffffffff 0 0xffffffff 0xffffffff >; }; + + /* ALS and proximity sensor */ + isl29018: isl29018 at 44 { + compatible = "isl,isl29018"; + reg = <0x44>; + }; }; i2c at 7000c400 {
Signature · 1 line
1.7.1.1
Re: [PATCH 2/3] staging: iio: light: of: Fix vendor prefix of isl29018
In reply to Laxman DewanganQuoted 3 lines · Laxman Dewangan
ISL29018 is from Intersil Corporation and the vendor prefix for this part should be "isl", at least not "invn" for OF compatibility.
Fine with me. Not really my domain other than where it sits though! Send on to Greg when you get acks from device tree side.
Quoted 2 lines
Signed-off-by Laxman Dewangan<[email protected]>
Quoted 17 lines
--- drivers/staging/iio/light/isl29018.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/staging/iio/light/isl29018.c +1
-1@@ -593,7 +593,7 @@ static const struct i2c_device_id isl29018_id[] = {MODULE_DEVICE_TABLE (i2c, isl29018_id);static const struct of_device_id isl29018_of_match[] = { - { .compatible ="invn,isl29018" , }, + { .compatible ="isl,isl29018" , }, { }, };MODULE_DEVICE_TABLE (of, isl29018_of_match);
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
In reply to Laxman DewanganQuoted 1 line · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
(There were a ton of irrelevant people CC'd on this patch; I cut them out, but kept the lists in case anyone was interested in the replies. The most relevant list, linux-tegra, also wasn't CC'd)
arch/arm/boot/dts/tegra-ventana.dts
Quoted 5 lines
arch/arm/boot/dts/tegra-ventana.dts +2
-0+ /* ALS and proximity sensor */ + isl29018: isl29018 at 44 {
I don't think the label "isl29018:" serves any purpose; nothing else needs to refer to this node.
I note from http://patchwork.ozlabs.org/patch/132936/ that:
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
b) There's an interrupt signal connected to the device. Can you please add that, irrespective of whether the driver uses it.
c) This device is also present on Seaboard. Can you update tegra-seaboard.dts too? You can find the relevant bus from the link above.
Thanks.
Quoted 6 lines
arch/arm/boot/dts/tegra-ventana.dts +3
-0+ compatible = "isl,isl29018"; + reg = <0x44>; + }; }; i2c at 7000c400 {
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
Quoted 6 lines · Stephen Warren
arch/arm/boot/dts/tegra-ventana.dts line 261
Quoted 2 lines · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
arch/arm/boot/dts/tegra-ventana.dts +1
-0+ isl29018: isl29018 at 44 {I don't think the label "isl29018:" serves any purpose; nothing else needs to refer to this node.
Quoted 8 lines
I note from http://patchwork.ozlabs.org/patch/132936/ that:
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
b) There's an interrupt signal connected to the device. Can you please add that, irrespective of whether the driver uses it.
Will do.
Quoted 3 lines
c) This device is also present on Seaboard. Can you update
tegra-seaboard.dtstoo? You can find the relevant bus from the link above.
Will do.
I will wait for finalizing the vendor prefix before creating the next patch. This will impact the driver also.
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
In reply to Stephen WarrenQuoted 6 lines · Stephen Warren
Quoted 1 line · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
Any comments on this? I think "isil" is good as it is the symbol in nasdaq also: Intersil Corporation (ISIL).
If no objection than I can send my next version of patch ;)
Adding LinusW, Mark and Grant if they have any comment here.
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
Quoted 10 lines · Laxman Dewangan
Quoted 5 lines · Stephen Warren
Quoted 1 line · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
Any comments on this? I think "isil" is good as it is the symbol in nasdaq also: Intersil Corporation (ISIL).
If no objection than I can send my next version of patch ;)
Yes, the idea is to use stock ticker symbols where possible, so it sounds like isil is the way to go.
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
In reply to Laxman DewanganQuoted 11 lines · Laxman Dewangan
Quoted 9 lines · Stephen Warren
Quoted 2 lines · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
Quoted 5 lines
Any comments on this? I think "isil" is good as it is the symbol in nasdaq
also: Intersil Corporation (ISIL).
If no objection than I can send my next version of patch ;)Adding LinusW, Mark and Grant if they have any comment here.
Like most of the kernel people I don't care much about that as long as the string is unique ... your pick is likely the best.
Linus Walleij
Re: [PATCH 3/3] ARM: dt: tegra_ventana: als and proximity sensor isl29018 support
In reply to Stephen WarrenQuoted 16 lines · Stephen Warren
Quoted 1 line · Laxman Dewangan
Add the device info for ALS and proximity sensor isl29018.
(There were a ton of irrelevant people CC'd on this patch; I cut them out, but kept the lists in case anyone was interested in the replies. The most relevant list, linux-tegra, also wasn't CC'd)
arch/arm/boot/dts/tegra-ventana.dts
Quoted 5 lines
arch/arm/boot/dts/tegra-ventana.dts +2
-0+ /* ALS and proximity sensor */ + isl29018: isl29018@44 {I don't think the label "isl29018:" serves any purpose; nothing else needs to refer to this node.
Quoted 4 lines
I note from http://patchwork.ozlabs.org/patch/132936/ that:
a) Perhaps the vendor prefix should be "isil" not "isl". Olof, can you please comment here?
The standard practice is to use stock tickers, but if companies aren't public then there isn't much you can do. Like Linus said, use your best judgement and taste and that's really all we can ask for. :)
-Olof