[PATCH v5 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v5 0/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v4 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-01 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v4 0/1] iio: adc: ad7124: allow more than 8 channels

2021-03-01 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v3 0/1] iio: adc: ad7124: allow more than 8 channels

2021-02-23 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v3 1/1] iio: adc: ad7124: allow more than 8 channels

2021-02-23 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration registers

[PATCH v2 0/2] iio: adc: ad7124: allow 16 channels

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici AD7124-8 can have up to 16 pseudo-differential channels enabled simultaneously and only 8 configurations. In this scenario we cannot assign one configuration per channel, some channels will have to share configurations like, ODR, gain and filter parameters. Allow the user

[PATCH v2 2/2] dt-bindings: iio: adc: ad7124: add config nodes

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici Document use of configurations in device-tree bindings. Signed-off-by: Alexandru Tachici --- .../bindings/iio/adc/adi,ad7124.yaml | 72 +++ 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc

[PATCH v2 1/2] iio: adc: ad7124: allow 16 channels

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici AD7124-8 can have up to 16 pseudo-differential channels enabled simultaneously and only 8 configurations. In this scenario we cannot assign one configuration per channel, some channels will have to share configurations like, ODR, gain and filter parameters. This patch all

[PATCH 1/2] iio: adc: ad7124: allow 16 channels

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici AD7124-8 can have up to 16 pseudo-differential channels enabled simultaneously and only 8 configurations. In this scenario we cannot assign one configuration per channel, some channels will have to share configurations like, ODR, gain and filter parameters. This patch all

[PATCH 2/2] dt-bindings: iio: adc: ad7124: add config nodes

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici Document use of configurations in device-tree bindings. Signed-off-by: Alexandru Tachici --- .../bindings/iio/adc/adi,ad7124.yaml | 72 +++ 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc

[PATCH 0/2] iio: adc: ad7124: allow 16 channels

2021-02-04 Thread alexandru.tachici
From: Alexandru Tachici AD7124-8 can have up to 16 pseudo-differential channels enabled simultaneously and only 8 configurations. In this scenario we cannot assign one configuration per channel, some channels will have to share configurations like, ODR, gain and filter parameters. Allow the user

[PATCH 2/2] dt-bindings: clock: ad9545: Add documentation

2021-01-24 Thread alexandru.tachici
From: Alexandru Tachici Add dt bindings for ad9545. Signed-off-by: Alexandru Tachici --- .../devicetree/bindings/clock/clk-ad9545.yaml | 352 ++ 1 file changed, 352 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/clk-ad9545.yaml diff --git a/Documenta

[PATCH 1/2] clk: ad9545: Add support

2021-01-24 Thread alexandru.tachici
From: Alexandru Tachici Add support for AD9545 Quad Input, 10-Output, Dual DPLL/IEEE 1588, 1 pps Synchronizer and Jitter Cleaner. Signed-off-by: Alexandru Tachici --- drivers/clk/Kconfig|6 + drivers/clk/Makefile |1 + drivers/clk/adi/Kconfig|

[PATCH 0/2] clk: ad9545: Add support

2021-01-24 Thread alexandru.tachici
From: Alexandru Tachici Add support for AD9545 Quad Input, 10-Output, Dual DPLL/IEEE 1588, 1 pps Synchronizer and Jitter Cleaner. At the core of the device there are PLL blocks. Each block consists of one DPLL and one APLL. The DPLL can be fed timestamps from one of the 4 reference input divider

[PATCH v3 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 has 4 open-drain GPIOS. This patch exports to user space the 4 GPIOs using the GPIO driver Linux API. Signed-off-by: Alexandru Tachici --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ltc2992.c | 160 +++- 2 files changed, 1

[PATCH v3 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici Add documentation for ltc2992. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,ltc2992.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml diff --git a/Docume

[PATCH v3 1/3] hwmon: ltc2992: Add support

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages. Signed-off-by: Alexandru Tachici ---

[PATCH v3 0/3] hwmon: ltc2992: Add support

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages (GPIOs). 1. Use hwmon to create sysfs e

[PATCH v2 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-11-11 Thread alexandru.tachici
From: Alexandru Tachici Add documentation for ltc2992. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,ltc2992.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml diff --git a/Docume

[PATCH v2 0/3] hwmon: ltc2992: Add support

2020-11-11 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages (GPIOs). 1. Use hwmon to create sysfs e

[PATCH v2 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-11-11 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 has 4 open-drain GPIOS. This patch exports to user space the 4 GPIOs using the GPIO driver Linux API. Signed-off-by: Alexandru Tachici --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ltc2992.c | 160 +++- 2 files changed, 1

[PATCH v2 1/3] hwmon: ltc2992: Add support

2020-11-11 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages. Signed-off-by: Alexandru Tachici ---

[PATCH 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-10-29 Thread alexandru.tachici
From: Alexandru Tachici Add documentation for ltc2992. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,ltc2992.yaml | 78 +++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml diff --git a/Docume

[PATCH 1/3] hwmon: ltc2992: Add support

2020-10-29 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages. Signed-off-by: Alexandru Tachici ---

[PATCH 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-10-29 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 has 4 open-drain GPIOS. This patch exports to user space the 4 GPIOs using the GPIO driver Linux API. Signed-off-by: Alexandru Tachici --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ltc2992.c | 160 2 files changed, 1

[PATCH 0/3] hwmon: ltc2992: Add support

2020-10-29 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages (GPIOs). 1. Use hwmon to create sysf

[PATCH v8 6/6] dt-bindings: hwmon: Add bindings for ADM1266

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 51 +++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v8 1/6] hwmon: pmbus: adm1266: add support

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v8 0/6] hwmon: pmbus: adm1266: add support

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v8 5/6] hwmon: pmbus: adm1266: read blackbox

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Using this feature, the device is capable of recording to nonvolatile flash memory the vital data about the system status that caused the system to perform a black box write. A blackbox is

[PATCH v8 3/6] hwmon: pmbus: adm1266: Add support for GPIOs

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v8 2/6] hwmon: pmbus: adm1266: Add Block process call

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v8 4/6] hwmon: pmbus: adm1266: add debugfs for states

2020-08-12 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs entry which prints the current state of the adm1266 sequencer. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ad

[PATCH v5 1/2] iio: accel: adxl372: Add support for FIFO peak mode

2020-08-10 Thread alexandru.tachici
From: Stefan Popa By default, if all three channels (x, y, z) are enabled, sample sets of concurrent 3-axis data is stored in the FIFO. This patch adds the option to configure the FIFO to store peak acceleration (x, y and z) of every over-threshold event. When pushing to iio buffer we push only e

[PATCH v5 2/2] iio: accel: adxl372: Add additional trigger ABI docs

2020-08-10 Thread alexandru.tachici
From: Alexandru Tachici Document use of additional trigger supplied by driver. Signed-off-by: Alexandru Tachici --- Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-accel-adxl372 diff

[PATCH v5 0/2] iio: accel: adxl372: Add support for FIFO peak mode

2020-08-10 Thread alexandru.tachici
From: Alexandru Tachici This series adds the possibility to configure the device, from sysfs, to work in peak mode. This enables adxl372 to capture only over threshold accelerations. 1. Create sysfs files for falling_period/rising_period and thresh_falling_value/thresh_rising_value in events/ di

[PATCH v4 3/3] docs: iio: Add adxl372 documentation

2020-08-03 Thread alexandru.tachici
From: Alexandru Tachici Add documentation for adxl372 3-axis accelerometer. Signed-off-by: Alexandru Tachici --- Documentation/iio/adxl372.rst | 46 +++ Documentation/iio/index.rst | 1 + 2 files changed, 47 insertions(+) create mode 100644 Documentation/iio

[PATCH v4 1/3] iio: accel: adxl372: Add support for FIFO peak mode

2020-08-03 Thread alexandru.tachici
From: Stefan Popa By default, if all three channels (x, y, z) are enabled, sample sets of concurrent 3-axis data is stored in the FIFO. This patch adds the option to configure the FIFO to store peak acceleration (x, y and z) of every over-threshold event. When pushing to iio buffer we push only e

[PATCH v4 0/3] iio: accel: adxl372: add peak mode

2020-08-03 Thread alexandru.tachici
From: Alexandru Tachici This series adds the possibility to configure the device, from sysfs, to work in peak mode. This enables adxl372 to capture only over threshold accelerations. 1. Create sysfs files for falling_period/rising_period and thresh_falling_value/thresh_rising_value in events/ di

[PATCH v4 2/3] iio: accel: adxl372: add event interface

2020-08-03 Thread alexandru.tachici
From: Alexandru Tachici Currently the driver configures adxl372 to work in loop mode. The inactivity and activity timings decide how fast the chip will loop through the awake and waiting states and the thresholds on x,y,z axis decide when activity or inactivity will be detected. This patch adds

Wrong list

2020-07-27 Thread alexandru.tachici
Please disregard this patch. I used the wrong git send-email cmd.

[PATCH v7 4/9] hwmon: pmbus: adm1266: add debugfs for states

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs entry which prints the current state of the adm1266 sequencer. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ad

[PATCH v7 3/9] hwmon: pmbus: adm1266: Add support for GPIOs

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v7 5/9] hwmon: pmbus: adm1266: read blackbox

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Using this feature, the device is capable of recording to nonvolatile flash memory the vital data about the system status that caused the system to perform a black box write. A blackbox is

[PATCH v7 2/9] hwmon: pmbus: adm1266: Add Block process call

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v7 7/9] hwmon: pmbus: adm1266: program firmware

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Writing the firmware Intel hex file to the nvmem, of the master adm1266, with offset 0, will now trigger the firmware programming of all cascaded devices simultaneously through pmbus. During this process all adm1266 sequencers will be stopped and at the end will be issue

[PATCH v7 1/9] hwmon: pmbus: adm1266: add support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v7 6/9] hwmon: pmbus: adm1266: Add group command support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici The Group Command Protocol is used to send commands to more than one PMBus device. Some devices working together require that they must execute some commands all at once. The commands are sent in one continuous transmission. When the devices detect the STOP condition that

[PATCH v7 8/9] hwmon: pmbus: adm1266: program configuration

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Writing the configuration Intel hex file to the nvmem, of an adm1266, with offset 0x3, will now trigger the configuration programming. During this process the adm1266 sequencer will be stopped and at the end will be issued a seq reset (see AN-1453 Programming the conf

[PATCH v7 9/9] dt-bindings: hwmon: Add bindings for ADM1266

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v7 0/9] hwmon: pmbus: adm1266: add support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v7 5/9] hwmon: pmbus: adm1266: read blackbox

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Using this feature, the device is capable of recording to nonvolatile flash memory the vital data about the system status that caused the system to perform a black box write. A blackbox is

[PATCH v7 4/9] hwmon: pmbus: adm1266: add debugfs for states

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs entry which prints the current state of the adm1266 sequencer. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ad

[PATCH v7 2/9] hwmon: pmbus: adm1266: Add Block process call

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v7 6/9] hwmon: pmbus: adm1266: Add group command support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici The Group Command Protocol is used to send commands to more than one PMBus device. Some devices working together require that they must execute some commands all at once. The commands are sent in one continuous transmission. When the devices detect the STOP condition that

[PATCH v7 9/9] dt-bindings: hwmon: Add bindings for ADM1266

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v7 8/9] hwmon: pmbus: adm1266: program configuration

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Writing the configuration Intel hex file to the nvmem, of an adm1266, with offset 0x3, will now trigger the configuration programming. During this process the adm1266 sequencer will be stopped and at the end will be issued a seq reset (see AN-1453 Programming the conf

[PATCH v7 1/9] hwmon: pmbus: adm1266: add support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v7 0/9] hwmon: pmbus: adm1266: add support

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v7 3/9] hwmon: pmbus: adm1266: Add support for GPIOs

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v7 7/9] hwmon: pmbus: adm1266: program firmware

2020-07-27 Thread alexandru.tachici
From: Alexandru Tachici Writing the firmware Intel hex file to the nvmem, of the master adm1266, with offset 0, will now trigger the firmware programming of all cascaded devices simultaneously through pmbus. During this process all adm1266 sequencers will be stopped and at the end will be issue

[PATCH v6 2/9] hwmon: pmbus: adm1266: Add Block process call

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v6 8/9] hwmon: pmbus: adm1266: program configuration

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Writing the configuration Intel hex file to the nvmem, of an adm1266, with offset 0x3, will now trigger the configuration programming. During this process the adm1266 sequencer will be stopped and at the end will be issued a seq reset (see AN-1453 Programming the conf

[PATCH v6 7/9] hwmon: pmbus: adm1266: program firmware

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Writing the firmware Intel hex file to the nvmem, of the master adm1266, with offset 0, will now trigger the firmware programming of all cascaded devices simultaneously through pmbus. During this process all adm1266 sequencers will be stopped and at the end will be issue

[PATCH v6 4/9] hwmon: pmbus: adm1266: add debugfs for states

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs entry which prints the current state of the adm1266 sequencer. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 42 ++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ad

[PATCH v6 0/9] hwmon: pmbus: adm1266: add support

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v6 1/9] hwmon: pmbus: adm1266: add support

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v6 5/9] hwmon: pmbus: adm1266: read blackbox

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Using this feature, the device is capable of recording to nonvolatile flash memory the vital data about the system status that caused the system to perform a black box write. A blackbox is

[PATCH v6 3/9] hwmon: pmbus: adm1266: Add support for GPIOs

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v6 9/9] dt-bindings: hwmon: Add bindings for ADM1266

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v6 6/9] hwmon: pmbus: adm1266: Add group command support

2020-07-26 Thread alexandru.tachici
From: Alexandru Tachici The Group Command Protocol is used to send commands to more than one PMBus device. Some devices working together require that they must execute some commands all at once. The commands are sent in one continuous transmission. When the devices detect the STOP condition that

[PATCH v5 4/7] hwmon: pmbus: adm1266: Add ioctl commands

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add two ioctl commands for reading the current state of the adm1266 sequencer and sending commands. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm1266.rst | 15 +++ .../userspace-api/ioctl/ioctl-number.rst | 1 + drivers/hwmon/pmbus/adm

[PATCH v5 1/7] hwmon: pmbus: adm1266: add support

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v5 6/7] hwmon: pmbus: adm1266: debugfs for blackbox info

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs file to print information in the BLACKBOX_INFORMATION register. Contains information about the number of stored records, logic index and id of the latest record. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 56 ++

[PATCH v5 0/7] hwmon: pmbus: adm1266: add support

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v5 2/7] hwmon: pmbus: adm1266: Add Block process call

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v5 7/7] dt-bindings: hwmon: Add bindings for ADM1266

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v5 3/7] hwmon: pmbus: adm1266: Add support for GPIOs

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v5 5/7] hwmon: pmbus: adm1266: read blackbox

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 134 ++ 1 file changed, 134 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b

[PATCH v4 3/7] hwmon: pmbus: adm1266: Add support for GPIOs

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/

[PATCH v4 4/7] hwmon: pmbus: adm1266: Add ioctl commands

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add two ioctl commands for reading the current state of the adm1266 sequencer and sending commands. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm1266.rst | 15 +++ .../userspace-api/ioctl/ioctl-number.rst | 1 + drivers/hwmon/pmbus/adm

[PATCH v4 1/7] hwmon: pmbus: adm1266: add support

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v4 7/7] dt-bindings: hwmon: Add bindings for ADM1266

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v4 2/7] hwmon: pmbus: adm1266: Add Block process call

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for ADM12

[PATCH v4 6/7] hwmon: pmbus: adm1266: debugfs for blackbox info

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs file to print information in the BLACKBOX_INFORMATION register. Contains information about the number of stored records, logic index and id of the latest record. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 56 ++

[PATCH v4 5/7] hwmon: pmbus: adm1266: read blackbox

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 134 ++ 1 file changed, 134 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b

[PATCH v4 0/7] hwmon: pmbus: adm1266: add support

2020-06-23 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v3 1/6] hwmon: pmbus: adm1266: add support

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm

[PATCH v3 0/6] hwmon: pmbus: adm1266: add support

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and vp1->vp13.

[PATCH v3 5/6] hwmon: pmbus: adm1266: read blackbox

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 160 ++ 1 file changed, 160 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b

[PATCH v3 2/6] hwmon: (pmbus/core) Add Block WR

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for PMBus

[PATCH v3 6/6] dt-bindings: hwmon: Add bindings for ADM1266

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.y

[PATCH v3 4/6] hwmon: pmbus: adm1266: add debugfs attr for states

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Add debugfs files for go_command and read_state. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c b/drivers/hwmon/pmbus/adm1266.c ind

[PATCH v3 3/6] hwmon: pmbus: adm1266: Add support for GPIOs

2020-05-29 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici --- drivers/