[PATCH v3] iio: bmp280: fix compensation of humidity

2020-05-04 Thread Andreas Klinger
the clamp. The writer of this patch was working with this type of sensor without noting this error. So it seems to be a rare event when this bug occures. Signed-off-by: Andreas Klinger --- Change to v2: Thanks to the review of Jonathan a more descriptive commit message is added. Change to v1: Thanks

[PATCH v2] iio: bmp280: fix compensation of humidity

2020-04-29 Thread Andreas Klinger
Output of humidity compensation is limited to the range between 0 and 100 percent. Add this to the compensation formula as described in the datasheet chapter 4.2.3. Change to v1: Thanks to Tomasz for suggesting the easier to use function clamp_val() which is now used. Signed-off-by: Andreas

[PATCH v3] dt-bindings: iio: maxbotix,mb1232.yaml: transform to yaml

2019-10-07 Thread Andreas Klinger
of reg property - added a line: additionalProperties: false Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb1232.txt | 29 --- .../bindings/iio/proximity/maxbotix,mb1232.yaml| 60 ++ 2 files changed, 60 insertions(+), 29 deletions

Re: [PATCH v2] dt-bindings: iio: maxbotix,mb1232.yaml: transform to yaml

2019-10-07 Thread Andreas Klinger
[...] But anyway i've fixed and send it out again. Andreas Rob Herring schrieb am Mo, 07. Okt 07:42: > On Sun, Oct 6, 2019 at 9:27 AM Andreas Klinger wrote: > > > > transform existing documentation of maxbotix,mb1232 ultrasonic ranger > > from text documentation format into

[PATCH v2] iio: srf04: fix wrong limitation in distance measuring

2019-10-06 Thread Andreas Klinger
distance range. Changes in v2: - Added a Tested-by Suggested-by: Zbyněk Kocur Tested-by: Zbyněk Kocur Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf04.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/iio/proximity/srf04.c

[PATCH v2] dt-bindings: iio: maxbotix,mb1232.yaml: transform to yaml

2019-10-06 Thread Andreas Klinger
transform existing documentation of maxbotix,mb1232 ultrasonic ranger from text documentation format into yaml. Changes in v2: - removed description of reg property - added a line: additionalProperties: false Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb1232.txt

[PATCH] dt-bindings: iio: maxbotix,mb1232.yaml: transform to yaml

2019-09-23 Thread Andreas Klinger
transform existing documentation of maxbotix,mb1232 ultrasonic ranger from text documentation format into yaml. Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb1232.txt | 29 --- .../bindings/iio/proximity/maxbotix,mb1232.yaml| 56

Re: [PATCH] iio: srf04: fix wrong limitation in distance measuring

2019-09-09 Thread Andreas Klinger
ximum > distance parameter as a variable? > > Anyway, the change made works. > > Zbynek > --- > email: zbynek.ko...@fel.cvut.cz > phone: +420 224 354 054 > web: http://www.fel.cvut.cz > Department of Telecommunications Engineering > Faculty of Electrical Engineeri

[PATCH v2 3/3] iio: adc: hx711: remove unnecessary returns

2019-09-09 Thread Andreas Klinger
Optimize use of return in hx711_set_gain_for_channel(). Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index c8686558429b..20c249f502c0 100644 --- a/drivers

[PATCH v2 2/3] iio: adc: hx711: optimize performance in read cycle

2019-09-09 Thread Andreas Klinger
cycle when DOUT is not down. This is a performance optimization which allows to query the sensor with a higher frequency. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/drivers/iio/adc/hx711.c

[PATCH v2 1/3] iio: adc: hx711: fix bug in sampling of data

2019-09-09 Thread Andreas Klinger
point of time which is at the end of PD_SCK low period. This bug exists in the driver since it's initial addition. The more interrupts on the system the higher is the probability that it happens. Fixes: c3b2fdd0ea7e ("iio: adc: hx711: Add IIO driver for AVIA HX711") Signed-off-by: Andre

[PATCH v2 0/3] iio: adc: hx711: fix and optimize sampling of data

2019-09-09 Thread Andreas Klinger
it without a Suggested-By or something similar. Changes in v2: - Clarify which part of the patch queue fixes a certain bug and which one is an optimization of the driver without an underlying bug. Andreas Klinger (3): iio: adc: hx711: fix bug in sampling of data iio: adc: hx711: optimize

Re: [PATCH 1/3] iio: adc: hx711: optimize sampling of data

2019-09-09 Thread Andreas Klinger
optimization which prevents unneded reads. There is no bug which is fixed by it. I'll send out the patch set with more detailed commit messages. Thanks, Andreas Jonathan Cameron schrieb am So, 08. Sep 14:49: > On Sat, 7 Sep 2019 12:18:00 +0200 > Andreas Klinger wrote: > > > Fix

[PATCH 3/3] iio: adc: hx711: remove unnecessary returns

2019-09-07 Thread Andreas Klinger
Optimize use of return in hx711_set_gain_for_channel(). Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index c8686558429b..20c249f502c0 100644 --- a/drivers

[PATCH 2/3] iio: adc: hx711: remove unnecessary read cycle

2019-09-07 Thread Andreas Klinger
DOUT is not down. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +-- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 0678964dbd21..c8686558429b 100644 --- a/drivers/iio/adc/hx711.c +++ b

[PATCH 1/3] iio: adc: hx711: optimize sampling of data

2019-09-07 Thread Andreas Klinger
. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 88c7fe15003b..0678964dbd21 100644 --- a/drivers/iio/adc/hx711.c +++ b/drivers/iio/adc/hx711.c

[PATCH 0/3] iio: adc: hx711: fix and optimize sampling of data

2019-09-07 Thread Andreas Klinger
it without a Suggested-By or something similar. Andreas Klinger (3): iio: adc: hx711: optimize sampling of data iio: adc: hx711: remove unnecessary read cycle iio: adc: hx711: remove unnecessary returns drivers/iio/adc/hx711.c | 40 1 file changed, 12

Re: [PATCH] iio: srf04: fix wrong limitation in distance measuring

2019-09-07 Thread Andreas Klinger
fel.cvut.cz > Department of Telecommunications Engineering > Faculty of Electrical Engineering > > > On 26 Jun 2019, at 21:49, Jonathan Cameron wrote: > > > > No rush, it's a clear fix anyway so we can queue this up > > in the rc phase of the next kernel cycle! > -

[PATCH] ARM: dts: am335x-wega.dtsi: fix wrong card detect pin level

2019-07-09 Thread Andreas Klinger
mmc cards on mmc1 are not detected because of wrong card detect (cd) level. Change cd from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW. This is necessary because of commit e63201f19438 ("mmc: omap_hsmmc: Delete platform data GPIO CD and WP") Signed-off-by: Andreas Klinger --- arch/arm/boot/

[PATCH] iio: srf04: fix wrong limitation in distance measuring

2019-06-23 Thread Andreas Klinger
distance range. Suggested-by: Zbyněk Kocur Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf04.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/iio/proximity/srf04.c b/drivers/iio/proximity/srf04.c index 8b50d56b0a03

[PATCH 3/3] Kconfig: change configuration of srf04 ultrasonic iio sensor

2019-04-09 Thread Andreas Klinger
reword configuration option for SRF04 list supported types in help text Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index

[PATCH 2/3] devantech-srf04.yaml: add Maxbotix ultrasonic iio proximity sensors

2019-04-09 Thread Andreas Klinger
add compatibles for Maxbotix ultrasonic iio sensor types to yaml documentation Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.yaml| 25 ++ 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/iio

[PATCH 1/3] srf04.c: add maxbotix ultrasonic sensors

2019-04-09 Thread Andreas Klinger
add Maxbotix LV ultrasonic sensor types mb1000, mb1010, mb1020, mb1030 and mb1040 add a configuration struct with the different trigger pulse lengths Signed-off-by: Andreas Klinger --- drivers/iio/proximity/srf04.c | 38 +- 1 file changed, 29 insertions

[PATCH 0/3] add Maxbotix ultrasonic iio sensors with gpio bitbanging

2019-04-09 Thread Andreas Klinger
. This patch series needs the formerly submitted "[PATCH v2] devantech-srf04.yaml: transform DT binding to YAML" because it relies on the yaml documentation of devantech-srf04.yaml Andreas Klinger (3): srf04.c: add maxbotix ultrasonic sensors devantech-srf04.yaml: add Maxbotix ultr

[PATCH v2] bmp085.yaml: transform DT documentation of iio sensor into YAML

2019-04-01 Thread Andreas Klinger
use bmp085.txt and change it into yaml format fix links to datasheets in replaced documentation Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/pressure/bmp085.txt| 27 - .../devicetree/bindings/iio/pressure/bmp085.yaml | 70 ++ 2 files changed

[PATCH v2] avia-hx711.yaml: transform DT binding to YAML

2019-04-01 Thread Andreas Klinger
replace avia-hx711.txt by avia-hx711.yaml as yaml devicetree documentation for avia hx711 iio adc sensor Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia-hx711.txt | 24 .../devicetree/bindings/iio/adc/avia-hx711.yaml| 66 ++ 2 files

[PATCH] bmp085.yaml: transform DT documentation of iio sensor into YAML

2019-03-31 Thread Andreas Klinger
use bmp085.txt and change it into yaml format fix links to datasheets in replaced documentation Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/pressure/bmp085.txt| 27 .../devicetree/bindings/iio/pressure/bmp085.yaml | 71 ++ 2 files changed

[PATCH] avia-hx711.yaml: transform DT binding to YAML

2019-03-31 Thread Andreas Klinger
replace avia-hx711.txt by avia-hx711.yaml as yaml devicetree documentation for avia hx711 iio adc sensor Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia-hx711.txt | 24 .../devicetree/bindings/iio/adc/avia-hx711.yaml| 67 ++ 2 files

[PATCH v2] devantech-srf04.yaml: transform DT binding to YAML

2019-03-26 Thread Andreas Klinger
devantech-srf04.yaml: yaml devicetree binding for iio ultrasonic proximity driver of devantech srf04 use devantech-srf04.txt, transform binding into yaml and remove the outdated DT documentation Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.txt | 28

[PATCH 2/2] devantech-srf04.txt: remove old DT documentation

2019-03-26 Thread Andreas Klinger
remove the outdated DT documentation of devantech srf04 iio driver which is replaced by devantech-srf04.yaml Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.txt | 28 -- 1 file changed, 28 deletions(-) delete mode 100644 Documentation

[PATCH 1/2] devantech-srf04.yaml: transform DT binding to YAML

2019-03-26 Thread Andreas Klinger
use devantech-srf04.txt and transform binding into yaml Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.yaml| 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml

[PATCH 0/2] transform devantech-srf04.txt into yaml format

2019-03-26 Thread Andreas Klinger
use yaml description language to document Devantech SRF04 ultrasonic iio proximity driver Andreas Klinger (2): devantech-srf04.yaml: transform DT binding to YAML devantech-srf04.txt: remove old DT documentation .../bindings/iio/proximity/devantech-srf04.txt | 28 -- .../bindings

[PATCH v3 4/4] MAINTAINERS: add maintainer for maxbotix ultrasonic driver

2019-03-17 Thread Andreas Klinger
add a maintainer for the newly created ultrasonic driver family of maxbotix Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index dce5c099f43c..fa054f8cc7fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9234,6

[PATCH v3 3/4] mb1232.c: add distance iio sensor with i2c

2019-03-17 Thread Andreas Klinger
mb1232 driver to Kconfig and Makefile Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 12 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/mb1232.c | 274 + 3 files changed, 287 insertions(+) create mode 100644 drivers

[PATCH v3 2/4] dt-bindings: maxbotix,mb1232: Add MaxBotix i2c ultrasonic rangers

2019-03-17 Thread Andreas Klinger
Add doc for dt binding maxbotix,mb1232. This binding is for MaxBotix I2CXL-MaxSonar ultrasonic rangers which share a common i2c interface. Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb1232.txt | 31 ++ 1 file changed, 31 insertions(+) create

[PATCH v3 1/4] dt-bindings: Add vendor prefix for MaxBotix

2019-03-17 Thread Andreas Klinger
Add MaxBotix, which is a vendor of ultrasonic rangers in different varieties and interfaces. Signed-off-by: Andreas Klinger Reviewed-by: Andreas Färber Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 0/4] add MaxBotix I2CXL ultrasonic iio driver

2019-03-17 Thread Andreas Klinger
list and dt doc into two patches - merge driver source and Kconfig/Makefile change into one patch - reword dt documentation - use directly __be16 datatype to read directly from i2c - use s16 as return value from mb12x2_read_distance() Andreas Klinger (4): dt-bindings: Add vendor prefix for MaxBotix

[PATCH v2 4/4] MAINTAINERS: add maintainer for maxbotix ultrasonic driver

2019-03-01 Thread Andreas Klinger
add a maintainer for the newly created ultrasonic driver family of maxbotix Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9919840d54cd..0807d9239e1a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9226,6

[PATCH v2 2/4] dt-bindings: maxbotix,i2cxl: Add MaxBotix i2c ultrasonic rangers

2019-03-01 Thread Andreas Klinger
Add doc for dt binding maxbotix,i2cxl. This binding is for MaxBotix I2CXL-MaxSonar ultrasonic rangers which share a common i2c interface. Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,i2cxl.txt | 21 + 1 file changed, 21 insertions(+) create

[PATCH v2 3/4] mb12x2.c: add distance iio sensor with i2c

2019-03-01 Thread Andreas Klinger
Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 11 ++ drivers/iio/proximity/Makefile | 1 + drivers/iio/proximity/mb12x2.c | 283 + 3 files changed, 295 insertions(+) create mode 100644 drivers/iio/proximity/mb12x2.c diff --git

[PATCH v2 1/4] dt-bindings: Add vendor prefix for MaxBotix

2019-03-01 Thread Andreas Klinger
Add MaxBotix, which is a vendor of ultrasonic rangers in different varieties and interfaces. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b

[PATCH v2 0/4] add MaxBotix I2CXL ultrasonic iio driver

2019-03-01 Thread Andreas Klinger
documentation - use directly __be16 datatype to read directly from i2c - use s16 as return value from mb12x2_read_distance() Andreas Klinger (4): dt-bindings: Add vendor prefix for MaxBotix dt-bindings: maxbotix,i2cxl: Add MaxBotix i2c ultrasonic rangers mb12x2.c: add distance iio sensor with i2c

[PATCH 4/4] MAINTAINERS: add maintainer for maxbotix ultrasonic driver

2019-02-24 Thread Andreas Klinger
add a maintainer for the newly created ultrasonic driver familiy of maxbotix Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9919840d54cd..bbf1860d4227 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9226,6

[PATCH 3/4] mb12x2.c: add mb12x2 ultrasonic distance iio sensor

2019-02-24 Thread Andreas Klinger
Add MaxSonar-I2CXL ultrasonic distance sensors of type family mb12x2 using the i2c interface Implemented functionality: - reading the distance via in_distance_raw - buffered mode with trigger - make use of status gpio to announce completion of ranging Signed-off-by: Andreas Klinger --- drivers

[PATCH 1/4] maxbotix,mb12x2.txt: add dt doc for maxbotix,mb12x2

2019-02-24 Thread Andreas Klinger
add dt doc for maxbotix,mb12x2 and also a new vendor prefix maxbotix Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/maxbotix,mb12x2.txt | 22 ++ .../devicetree/bindings/vendor-prefixes.txt| 1 + 2 files changed, 23 insertions(+) create mode

[PATCH 2/4] iio/proximity: add mb12x2 driver to Kconfig and Makefile

2019-02-24 Thread Andreas Klinger
Makefile and Kconfig: add configuration for mb12x2 ultrasonic proximity driver Signed-off-by: Andreas Klinger --- drivers/iio/proximity/Kconfig | 11 +++ drivers/iio/proximity/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio

[PATCH 0/4] add maxbotix ultrasonic iio driver

2019-02-24 Thread Andreas Klinger
completion of ranging Andreas Klinger (4): maxbotix,mb12x2.txt: add dt doc for maxbotix,mb12x2 iio/proximity: add mb12x2 driver to Kconfig and Makefile mb12x2.c: add mb12x2 ultrasonic distance iio sensor MAINTAINERS: add maintainer for maxbotix ultrasonic driver .../bindings/iio/proximity

[PATCH] gpio-omap.txt: add reg and interrupts properties

2018-12-14 Thread Andreas Klinger
Document properties reg and interrupts for OMAP GPIO controller bindings Also add unit address in node name of the example Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/gpio/gpio-omap.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH v5 3/3] iio: hx711: fix spurious unit-address in example

2018-07-10 Thread Andreas Klinger
Device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. Fix the example in the documentation of avia,hx711 to conform to dtc behavior. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v5 3/3] iio: hx711: fix spurious unit-address in example

2018-07-10 Thread Andreas Klinger
Device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. Fix the example in the documentation of avia,hx711 to conform to dtc behavior. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v5 2/3] iio: hx711: add delay until DOUT is ready

2018-07-10 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0

[PATCH v5 2/3] iio: hx711: add delay until DOUT is ready

2018-07-10 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0

[PATCH v5 0/3] iio: hx711: add data-ready-delay

2018-07-10 Thread Andreas Klinger
prefix in device tree setting Andreas Klinger (3): iio: hx711: add clock-frequency property in DT iio: hx711: add delay until DOUT is ready iio: hx711: fix spurious unit-address in example .../devicetree/bindings/iio/adc/avia-hx711.txt | 8 - drivers/iio/adc/hx711.c

[PATCH v5 0/3] iio: hx711: add data-ready-delay

2018-07-10 Thread Andreas Klinger
prefix in device tree setting Andreas Klinger (3): iio: hx711: add clock-frequency property in DT iio: hx711: add delay until DOUT is ready iio: hx711: fix spurious unit-address in example .../devicetree/bindings/iio/adc/avia-hx711.txt | 8 - drivers/iio/adc/hx711.c

[PATCH v5 1/3] iio: hx711: add clock-frequency property in DT

2018-07-10 Thread Andreas Klinger
Add clock-frequency property for hx711 ADC. This is the frequency of PD_SCK. After PD_SCK goes high DOUT is read just before PD_SCK goes down again. This is necessary because of parasitic capacitance on the wiring. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc

[PATCH v5 1/3] iio: hx711: add clock-frequency property in DT

2018-07-10 Thread Andreas Klinger
Add clock-frequency property for hx711 ADC. This is the frequency of PD_SCK. After PD_SCK goes high DOUT is read just before PD_SCK goes down again. This is necessary because of parasitic capacitance on the wiring. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc

Re: [PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-06 Thread Andreas Klinger
Hi Rob, please see explanation below. Thanks. Rob Herring schrieb am Thu, 05. Jul 15:30: > On Wed, Jul 04, 2018 at 02:36:38PM +0200, Andreas Klinger wrote: > > Add clock-frequency property for hx711 ADC > > > > This is the frequency of PD_SCK. It affects only the high val

Re: [PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-06 Thread Andreas Klinger
Hi Rob, please see explanation below. Thanks. Rob Herring schrieb am Thu, 05. Jul 15:30: > On Wed, Jul 04, 2018 at 02:36:38PM +0200, Andreas Klinger wrote: > > Add clock-frequency property for hx711 ADC > > > > This is the frequency of PD_SCK. It affects only the high val

[PATCH v4 3/3] iio: hx711: warning in dt binding example doc

2018-07-04 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v4 3/3] iio: hx711: warning in dt binding example doc

2018-07-04 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-04 Thread Andreas Klinger
again. This is necessary because of parasitic capacities on the wiring. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt b

[PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-04 Thread Andreas Klinger
again. This is necessary because of parasitic capacities on the wiring. Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.txt b

[PATCH v4 2/3] iio: hx711: add delay until DOUT is ready

2018-07-04 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0

[PATCH v4 2/3] iio: hx711: add delay until DOUT is ready

2018-07-04 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0

[PATCH v4 0/3] iio: hx711: add data-ready-delay

2018-07-04 Thread Andreas Klinger
example Changes against v3: - added suggestion of Rob to rename the new attribute to clock-frequency Changes against v2: - added suggestion of Jonathan to add vendor prefix in device tree setting Andreas Klinger (3): iio: hx711: add clock-frequency property in DT iio: hx711: add delay until DOUT

[PATCH v4 0/3] iio: hx711: add data-ready-delay

2018-07-04 Thread Andreas Klinger
example Changes against v3: - added suggestion of Rob to rename the new attribute to clock-frequency Changes against v2: - added suggestion of Jonathan to add vendor prefix in device tree setting Andreas Klinger (3): iio: hx711: add clock-frequency property in DT iio: hx711: add delay until DOUT

[PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-03 Thread Andreas Klinger
workqueue. Supported are letters and digits. With the file dot_unit the minimal time unit can be adjusted in milliseconds. Also add documentation for the morse led trigger Thanks to Greg and Geert for suggesting improvements Signed-off-by: Andreas Klinger --- .../ABI/testing/sysfs-class-led-tri

[PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-03 Thread Andreas Klinger
workqueue. Supported are letters and digits. With the file dot_unit the minimal time unit can be adjusted in milliseconds. Also add documentation for the morse led trigger Thanks to Greg and Geert for suggesting improvements Signed-off-by: Andreas Klinger --- .../ABI/testing/sysfs-class-led-tri

[PATCH v3 3/3] iio: hx711: warning in dt binding example doc

2018-07-03 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v3 3/3] iio: hx711: warning in dt binding example doc

2018-07-03 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v3 2/3] iio: hx711: add delay until DOUT is ready

2018-07-03 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..d944d1abedac

[PATCH v3 2/3] iio: hx711: add delay until DOUT is ready

2018-07-03 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..d944d1abedac

[PATCH v3 1/3] iio: hx711: add avia,data-ready-delay-ns property in DT

2018-07-03 Thread Andreas Klinger
add avia,data-ready-delay-ns property for hx711 ADC this is the delay after rising PD_SCK until DOUT is read and assumed to be ready Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v3 1/3] iio: hx711: add avia,data-ready-delay-ns property in DT

2018-07-03 Thread Andreas Klinger
add avia,data-ready-delay-ns property for hx711 ADC this is the delay after rising PD_SCK until DOUT is read and assumed to be ready Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v3 0/3] iio: hx711: add data-ready-delay

2018-07-03 Thread Andreas Klinger
example Changes against v2: - added suggestion of Jonathan to add vendor prefix in device tree setting Andreas Klinger (3): iio: hx711: add data-ready-delay-ns property in DT iio: hx711: add delay until DOUT is ready iio: hx711: warning in dt binding example doc .../devicetree/bindings/iio

[PATCH v3 0/3] iio: hx711: add data-ready-delay

2018-07-03 Thread Andreas Klinger
example Changes against v2: - added suggestion of Jonathan to add vendor prefix in device tree setting Andreas Klinger (3): iio: hx711: add data-ready-delay-ns property in DT iio: hx711: add delay until DOUT is ready iio: hx711: warning in dt binding example doc .../devicetree/bindings/iio

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-29 Thread Andreas Klinger
Hi, Pavel Machek schrieb am Thu, 28. Jun 22:45: > On Thu 2018-06-28 22:29:57, Andreas Klinger wrote: > > Hi Pavel, > > > > Pavel Machek schrieb am Thu, 28. Jun 20:56: > > > Hi! > > > > > > > Send out a morse code by using LEDs. > > &

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-29 Thread Andreas Klinger
Hi, Pavel Machek schrieb am Thu, 28. Jun 22:45: > On Thu 2018-06-28 22:29:57, Andreas Klinger wrote: > > Hi Pavel, > > > > Pavel Machek schrieb am Thu, 28. Jun 20:56: > > > Hi! > > > > > > > Send out a morse code by using LEDs. > > &

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
orse" > > > > The string to be send is written into the file morse_string and sent out > > with a workqueue. Supported are letters and digits. > > > > With the file dot_unit the minimal time unit can be adjusted in > > milliseconds. > > > > Signed-off-by:

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
orse" > > > > The string to be send is written into the file morse_string and sent out > > with a workqueue. Supported are letters and digits. > > > > With the file dot_unit the minimal time unit can be adjusted in > > milliseconds. > > > > Signed-off-by:

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
gt; > The trigger will be called "morse" > > > > The string to be send is written into the file morse_string and sent out > > with a workqueue. Supported are letters and digits. > > > > With the file dot_unit the minimal time unit can be adjusted in > > mill

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
gt; > The trigger will be called "morse" > > > > The string to be send is written into the file morse_string and sent out > > with a workqueue. Supported are letters and digits. > > > > With the file dot_unit the minimal time unit can be adjusted in > > mill

[PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
workqueue. Supported are letters and digits. With the file dot_unit the minimal time unit can be adjusted in milliseconds. Signed-off-by: Andreas Klinger --- drivers/leds/trigger/Kconfig | 10 ++ drivers/leds/trigger/Makefile| 1 + drivers/leds/trigger/ledtrig-mor

[PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
workqueue. Supported are letters and digits. With the file dot_unit the minimal time unit can be adjusted in milliseconds. Signed-off-by: Andreas Klinger --- drivers/leds/trigger/Kconfig | 10 ++ drivers/leds/trigger/Makefile| 1 + drivers/leds/trigger/ledtrig-mor

[PATCH v2 4/4] iio: hx711: warning in dt binding example doc

2018-06-25 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v2 4/4] iio: hx711: warning in dt binding example doc

2018-06-25 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/

[PATCH v2 3/4] iio: hx711: add maintainer for driver

2018-06-25 Thread Andreas Klinger
add a maintainer for driver hx711 Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4b65225d443a..cfb8a08777ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2535,6 +2535,13 @@ S: Maintained F

[PATCH v2 3/4] iio: hx711: add maintainer for driver

2018-06-25 Thread Andreas Klinger
add a maintainer for driver hx711 Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4b65225d443a..cfb8a08777ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2535,6 +2535,13 @@ S: Maintained F

[PATCH v2 2/4] iio: hx711: add delay until DOUT is ready

2018-06-25 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..41e26ef324ee

[PATCH v2 2/4] iio: hx711: add delay until DOUT is ready

2018-06-25 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..41e26ef324ee

[PATCH v2 1/4] iio: hx711: add data-ready-delay-ns property in DT

2018-06-25 Thread Andreas Klinger
add data-ready-delay-ns property for hx711 ADC this is the delay after rising PD_SCK until DOUT is read and assumed to be ready Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation

[PATCH v2 1/4] iio: hx711: add data-ready-delay-ns property in DT

2018-06-25 Thread Andreas Klinger
add data-ready-delay-ns property for hx711 ADC this is the delay after rising PD_SCK until DOUT is read and assumed to be ready Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation

[PATCH v2 0/4] iio: hx711: add data-ready-delay

2018-06-25 Thread Andreas Klinger
there is a fix of dtc warning if someone is using the given example Andreas Klinger (4): iio: hx711: add data-ready-delay-ns property in DT iio: hx711: add delay until DOUT is ready iio: hx711: add maintainer for driver iio: hx711: warning in dt binding example doc .../devicetree/bindings/iio/adc

[PATCH v2 0/4] iio: hx711: add data-ready-delay

2018-06-25 Thread Andreas Klinger
there is a fix of dtc warning if someone is using the given example Andreas Klinger (4): iio: hx711: add data-ready-delay-ns property in DT iio: hx711: add delay until DOUT is ready iio: hx711: add maintainer for driver iio: hx711: warning in dt binding example doc .../devicetree/bindings/iio/adc

Re: [PATCH 1/3] iio: hx711: add data-ready-delay-ns property in DT

2018-06-24 Thread Andreas Klinger
Hi Jonathan, Jonathan Cameron schrieb am Sun, 24. Jun 14:10: > On Sat, 23 Jun 2018 20:54:21 +0200 > Andreas Klinger wrote: > > > add data-ready-delay-ns property for hx711 ADC > > this is the delay after rising PD_SCK until DOUT is read and assumed to be > >

Re: [PATCH 1/3] iio: hx711: add data-ready-delay-ns property in DT

2018-06-24 Thread Andreas Klinger
Hi Jonathan, Jonathan Cameron schrieb am Sun, 24. Jun 14:10: > On Sat, 23 Jun 2018 20:54:21 +0200 > Andreas Klinger wrote: > > > add data-ready-delay-ns property for hx711 ADC > > this is the delay after rising PD_SCK until DOUT is read and assumed to be > >

[PATCH 3/3] iio: hx711: add maintainer for driver

2018-06-23 Thread Andreas Klinger
add a maintainer for driver hx711 Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4b65225d443a..cfb8a08777ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2535,6 +2535,13 @@ S: Maintained F

[PATCH 3/3] iio: hx711: add maintainer for driver

2018-06-23 Thread Andreas Klinger
add a maintainer for driver hx711 Signed-off-by: Andreas Klinger --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4b65225d443a..cfb8a08777ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2535,6 +2535,13 @@ S: Maintained F

[PATCH 2/3] iio: hx711: add delay until DOUT is ready

2018-06-23 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..41e26ef324ee

[PATCH 2/3] iio: hx711: add delay until DOUT is ready

2018-06-23 Thread Andreas Klinger
the maximum PD_SCK high time which is corresponding to the datasheet 5 ns. Signed-off-by: Andreas Klinger --- drivers/iio/adc/hx711.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iio/adc/hx711.c b/drivers/iio/adc/hx711.c index 9430b54121e0..41e26ef324ee

  1   2   3   >