Re: [PATCH 3/8] clk: meson: gxbb: migrate to the new parent description method

2019-07-26 Thread Alexandre Mergnat
Le jeu. 25 juil. 2019 à 19:09, Chen-Yu Tsai a écrit : > > On Thu, Jul 25, 2019 at 10:50 PM Jerome Brunet wrote: > > > > On Mon 22 Jul 2019 at 11:54, Alexandre Mergnat > > wrote: > > > > > > > @@ -1592,13 +1737,29 @@ static struct clk_regmap gxbb_vi

[PATCH v2 3/8] clk: meson: gxbb: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH v2 5/8] clk: meson: meson8b: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH v2 1/8] clk: meson: g12a: move clock declaration to dependency order

2019-07-25 Thread Alexandre Mergnat
description method. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/g12a.c | 270 +++ 1 file changed, 135 insertions(+), 135 deletions(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index 7bc5566b66f7..cbd56b2e05d0 100644 --- a/drivers/clk

[PATCH v2 6/8] clk: meson: clk-regmap: migrate to new parent description method

2019-07-25 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH v2 0/8] clk: meson: ee: use the new parent description method

2019-07-25 Thread Alexandre Mergnat
GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Change since v1: - Improve comments in gxbb, g12a and meson8b files Alexandre Mergnat (8): clk: m

[PATCH v2 7/8] clk: meson: remove ee input bypass clocks

2019-07-25 Thread Alexandre Mergnat
clock registration from the ee probe function. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/meson-eeclk.c | 10 -- drivers/clk/meson/meson-eeclk.h | 2 -- 3 files changed, 13 deletions(-) diff --git a/drivers/clk/meson/Kconfig b/drivers

[PATCH v2 4/8] clk: meson: axg: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH v2 8/8] clk: meson: remove clk input helper

2019-07-25 Thread Alexandre Mergnat
The clk input function which allows clock controllers to register a bypass clock from a clock producer is no longer needed anymore since meson clock controllers have migrated to a new parent allocation method. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 3 --- drivers

[PATCH v2 2/8] clk: meson: g12a: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH v2 0/4] clk: meson: ao: use the new parent description method

2019-07-25 Thread Alexandre Mergnat
GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Change since v1: - Improve clock parent assignment for "fixme" using name instead of fw_name

[PATCH v2 1/4] clk: meson: g12a-aoclk: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/g12a-aoclk.c | 81 +- 1 file changed, 50 insertions(+), 31 deletions

[PATCH v2 4/4] clk: meson: remove ao input bypass clocks

2019-07-25 Thread Alexandre Mergnat
regiter bypass clocks is removed. Input parameters from meson aoclk data structure are deprecated and then deleted since all aoclk files are migrated. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/meson-aoclk.c | 37

[PATCH v2 2/4] clk: meson: gxbb-aoclk: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/gxbb-aoclk.c | 55 +- 1 file changed, 27 insertions(+), 28 deletions

[PATCH v2 3/4] clk: meson: axg-aoclk: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/axg-aoclk.c | 63 --- 1 file changed, 37 insertions(+), 26 deletions

[PATCH v2] clk: meson: axg-audio: migrate to the new parent description method

2019-07-25 Thread Alexandre Mergnat
fc0c209c147f ("clk: Allow parents to be specified without string names") Signed-off-by: Alexandre Mergnat --- Change since v1: - Typo fixes drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/axg-audio.c | 261 -- 2 files changed, 120 insertions(+), 142

[PATCH 6/8] clk: meson: clk-regmap: migrate to new parent description method

2019-07-22 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH 4/8] clk: meson: axg: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH 5/8] clk: meson: meson8b: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH 2/8] clk: meson: g12a: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH 8/8] clk: meson: remove clk input helper

2019-07-22 Thread Alexandre Mergnat
The clk input function which allows clock controllers to register a bypass clock from a clock producer is no longer needed anymore since meson clock controllers have migrated to a new parent allocation method. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 3 --- drivers

[PATCH 1/8] clk: meson: g12a: move clock declaration to dependency order

2019-07-22 Thread Alexandre Mergnat
description method. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/g12a.c | 270 +++ 1 file changed, 135 insertions(+), 135 deletions(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index 7bc5566b66f7..cbd56b2e05d0 100644 --- a/drivers/clk

[PATCH 3/8] clk: meson: gxbb: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
This clock controller use the string comparison method to describe parent relation between the clocks, which is not optimized. Migrate to the new way by using .parent_hws where possible (ie. when all clocks are local to the controller) and use .parent_data otherwise. Signed-off-by: Alexandre

[PATCH 7/8] clk: meson: remove ee input bypass clocks

2019-07-22 Thread Alexandre Mergnat
clock registration from the ee probe function. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/meson-eeclk.c | 10 -- drivers/clk/meson/meson-eeclk.h | 2 -- 3 files changed, 13 deletions(-) diff --git a/drivers/clk/meson/Kconfig b/drivers

[PATCH 0/8] clk: meson: ee: use the new parent description method

2019-07-22 Thread Alexandre Mergnat
GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Alexandre Mergnat (8): clk: meson: g12a: move clock declaration to dependency order clk: meson: g12

[PATCH 1/4] clk: meson: g12a-aoclk: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/g12a-aoclk.c | 81 +- 1 file changed, 50 insertions(+), 31 deletions

[PATCH 2/4] clk: meson: gxbb-aoclk: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/gxbb-aoclk.c | 55 +- 1 file changed, 27 insertions(+), 28 deletions

[PATCH 4/4] clk: meson: remove ao input bypass clocks

2019-07-22 Thread Alexandre Mergnat
regiter bypass clocks is removed. Input parameters from meson aoclk data structure are deprecated and then deleted since all aoclk files are migrated. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/meson-aoclk.c | 37

[PATCH 0/4] clk: meson: ao: use the new parent description method

2019-07-22 Thread Alexandre Mergnat
GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Alexandre Mergnat (4): clk: meson: g12a-aoclk: migrate to the new parent description method clk: m

[PATCH 3/4] clk: meson: axg-aoclk: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
helper and all bypass clocks (declared in probe function) which are no longer used since we are able to use device-tree clock name directly. Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/axg-aoclk.c | 63 --- 1 file changed, 37 insertions(+), 26 deletions

[PATCH] clk: meson: axg-audio: migrate to the new parent description method

2019-07-22 Thread Alexandre Mergnat
fc0c209c147f ("clk: Allow parents to be specified without string names") Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/Kconfig | 1 - drivers/clk/meson/axg-audio.c | 253 -- 2 files changed, 116 insertions(+), 138 deletions(-) diff --git a/drivers

[PATCH v4 0/3] Add PAT9125 optical tracker driver

2019-07-13 Thread Alexandre Mergnat
Q handler - Use triggered_buffer helpers to replace kfifo use, setup buffer, implement enable/disable setup buffer operations, IIO trigger allocation and re-enable operations - Remove useless "goto" - Change GPIO IRQ handler from planified thread to IRQ thread - Change GPIO IRQ trigger from

[PATCH v4 3/3] iio: Add PAT9125 optical tracker sensor

2019-07-13 Thread Alexandre Mergnat
t at 1.0mm distance. More details on the datasheet. The "position" directory is added to contain drivers which can provide position data. [0]: http://www.pixart.com/products-detail/72/PAT9125EL-TKIT___TKMT Signed-off-by: Alexandre Mergnat --- drivers/iio/Kconfig| 1 +

[PATCH v4 2/3] dt-bindings: iio: position: Add docs pat9125

2019-07-13 Thread Alexandre Mergnat
Add documentation for the optical tracker PAT9125 and "position" directory for chip which can provides position data. Signed-off-by: Alexandre Mergnat --- .../bindings/iio/position/pat9125.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Doc

[PATCH v4 1/3] dt-bindings: Add pixart vendor

2019-07-13 Thread Alexandre Mergnat
PixArt Imaging Inc. is expertized in CMOS image sensors (CIS), capacitive touch controllers and related imaging application development. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v4 3/3] iio: Add PAT9125 optical tracker sensor

2019-07-12 Thread Alexandre Mergnat
t at 1.0mm distance. More details on the datasheet. The "position" directory is added to contain drivers which can provide position data. [0]: http://www.pixart.com/products-detail/72/PAT9125EL-TKIT___TKMT Signed-off-by: Alexandre Mergnat --- drivers/iio/Kconfig| 1 +

[PATCH v4 2/3] dt-bindings: iio: position: Add docs pat9125

2019-07-12 Thread Alexandre Mergnat
Add documentation for the optical tracker PAT9125 and "position" directory for chip which can provides position data. Signed-off-by: Alexandre Mergnat --- .../bindings/iio/position/pat9125.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Doc

[PATCH v4 0/3] Add PAT9125 optical tracker driver

2019-07-12 Thread Alexandre Mergnat
Q handler - Use triggered_buffer helpers to replace kfifo use, setup buffer, implement enable/disable setup buffer operations, IIO trigger allocation and re-enable operations - Remove useless "goto" - Change GPIO IRQ handler from planified thread to IRQ thread - Change GPIO IRQ trigger from

[PATCH v4 1/3] dt-bindings: Add pixart vendor

2019-07-12 Thread Alexandre Mergnat
PixArt Imaging Inc. is expertized in CMOS image sensors (CIS), capacitive touch controllers and related imaging application development. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [PATCH v3 3/3] iio: Add PAT9125 optical tracker sensor

2019-07-11 Thread Alexandre Mergnat
Le dim. 16 juin 2019 à 17:39, Jonathan Cameron a écrit : > > On Mon, 10 Jun 2019 11:29:45 +0200 > Alexandre Mergnat wrote: ... > > > +/* > > + * To detect if a new value is available, register status is checked. This > > + * method is safer than using a flag on

[PATCH v3 2/3] dt-bindings: iio: position: Add docs pat9125

2019-06-10 Thread Alexandre Mergnat
Add documentation for the optical tracker PAT9125 and "position" directory for chip which can provides position data. Signed-off-by: Alexandre Mergnat --- .../bindings/iio/position/pat9125.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Doc

[PATCH v3 3/3] iio: Add PAT9125 optical tracker sensor

2019-06-10 Thread Alexandre Mergnat
v on 1.0mm diameter STS shaft at 1.0mm distance. More details on the datasheet. The "position" directory is added to contain drivers which can provide position data. Signed-off-by: Alexandre Mergnat [0]: http://www.pixart.com/products-detail/72/PAT9125EL-TKIT___TKMT Signed-off-b

[PATCH v3 0/3] Add PAT9125 optical tracker driver

2019-06-10 Thread Alexandre Mergnat
NULL pointer. - Use devm_iio_ function for all init functions and then delete "pat9125_remove" - Move device_register at the end of probe function - Replace MODULE_PARM_DESC by IIO_SCALE to set axis resolution (CPI) Alexandre Mergnat (3): dt-bindings: Add pixart vendor dt-bindings: iio:

[PATCH v3 1/3] dt-bindings: Add pixart vendor

2019-06-10 Thread Alexandre Mergnat
PixArt Imaging Inc. is expertized in CMOS image sensors (CIS), capacitive touch controllers and related imaging application development. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH] clk: meson: g12a: fix hifi typo in mali parent_names

2019-05-24 Thread Alexandre Mergnat
Replace hihi by hifi in the mali parent_names of the g12a SoC family. Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Cc: Jerome Brunet Signed-off-by: Alexandre Mergnat --- drivers/clk/meson/g12a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] clk: fix clock global name usage.

2019-05-24 Thread Alexandre Mergnat
returns an unexpected clock (the first clock specified in DT). This can be fixed by calling of_clk_get_hw() only when DT name is not NULL. Fixes: fc0c209c147f ("clk: Allow parents to be specified without string names") Cc: Jerome Brunet Signed-off-by: Alexandre Mergnat --- drivers

[PATCH v2 3/3] iio: Add PAT9125 optical tracker sensor

2019-04-23 Thread Alexandre Mergnat
cal Tracker drivers. Signed-off-by: Alexandre Mergnat --- drivers/iio/Kconfig | 1 + drivers/iio/Makefile | 1 + drivers/iio/ot/Kconfig | 16 ++ drivers/iio/ot/Makefile | 6 + drivers/iio/ot/pat9125.c | 487 +++ 5 files changed, 511 insertions(+)

[PATCH v2 0/3] Add PAT9125 optical tracker driver

2019-04-23 Thread Alexandre Mergnat
- Change GPIO IRQ trigger from low level and one shot to falling edge - Add device unregister and buffer cleanup to driver remove function Alexandre Mergnat (3): dt-bindings: Add pixart vendor dt-bindings: iio: ot: Add docs pat9125 iio: Add PAT9125 optical tracker sensor .../devicet

[PATCH v2 1/3] dt-bindings: Add pixart vendor

2019-04-23 Thread Alexandre Mergnat
PixArt Imaging Inc. is expertized in CMOS image sensors (CIS), capacitive touch controllers and related imaging application development. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v2 2/3] dt-bindings: iio: ot: Add docs pat9125

2019-04-23 Thread Alexandre Mergnat
Add documentation for the optical tracker PAT9125 and "ot" directory for Optical Tracker chip. Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/iio/ot/pat9125.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 0/3] Add PAT6125 optical tracker driver

2019-04-05 Thread Alexandre Mergnat
ory for optical tracker devices Alexandre Mergnat (3): dt-bindings: Add pixart vendor dt-bindings: iio: ot: Add docs pat9125 iio: Add PAT9125 optical tracker sensor .../devicetree/bindings/iio/ot/pat9125.txt | 18 + .../devicetree/bindings/vendor-prefixes.txt| 1 + driv

[PATCH 2/3] dt-bindings: iio: ot: Add docs pat9125

2019-04-05 Thread Alexandre Mergnat
Add documentation for the optical tracker PAT9125 and "ot" directory for Optical Tracker chip. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/iio/ot/pat9125.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/

[PATCH 3/3] iio: Add PAT9125 optical tracker sensor

2019-04-05 Thread Alexandre Mergnat
hardcoded in the initialization function and can't be changed "on-the-fly" in user space due to the lack of configuration interface. The "ot" directory is added to coutain Optical Tracker drivers. Signed-off-by: Alexandre Mergnat --- drivers/iio/Kconfig |

[PATCH 1/3] dt-bindings: Add pixart vendor

2019-04-05 Thread Alexandre Mergnat
PixArt Imaging Inc. is expertized in CMOS image sensors (CIS), capacitive touch controllers and related imaging application development. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation