[PATCH v3] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-10-08 Thread Shravan Kumar Ramani
ed-off-by: Shravan Kumar Ramani Reviewed-by: Vadim Pasternak Reviewed-by: Jiri Pirko --- drivers/platform/mellanox/Kconfig | 10 + drivers/platform/mellanox/Makefile|1 + drivers/platform/mellanox/mlxbf-pmc.c | 1478 + 3 files changed, 1489 inse

[PATCH v2] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-08-03 Thread Shravan Kumar Ramani
of these performance modules through a hwmon sysfs interface. v1 --> v2 Remove unused headers. Add comma to arrays where last line is not a termination. Use kstrtoint in place of sscanf. UUID manipulation follows drivers/platform/mellanox/mlxbf-bootctl.c Signed-off-by: Shravan Kumar Ram

RE: [PATCH v1] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-07-27 Thread Shravan Ramani
> -Original Message- > From: Andy Shevchenko > Sent: Monday, July 27, 2020 4:24 PM > To: Shravan Ramani > Cc: Andy Shevchenko ; Darren Hart > ; Vadim Pasternak ; Jiri Pirko > ; Platform Driver ; > Linux Kernel Mailing List > Subject: Re: [PATCH v1] platfo

[PATCH v1] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-07-27 Thread Shravan Kumar Ramani
of these performance modules through a hwmon sysfs interface. Signed-off-by: Shravan Kumar Ramani Reviewed-by: Jiri Pirko --- drivers/platform/mellanox/Kconfig | 10 + drivers/platform/mellanox/Makefile|1 + drivers/platform/mellanox/mlxbf-pmc.c | 1486

[PATCH v7 0/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-25 Thread Shravan Kumar Ramani
Changes since v6: Use FIELD_GET and GENMASK instead of shifting/masking using separate macros Shravan Kumar Ramani (1): EDAC, mellanox: Add ECC support for BlueField DDR4 MAINTAINERS | 5 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1

[PATCH v7 1/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-25 Thread Shravan Kumar Ramani
Add ECC support for Mellanox BlueField SoC DDR controller. This requires SMC to the running Arm Trusted Firmware to report what is the current memory configuration. Reviewed-by: James Morse Signed-off-by: Shravan Kumar Ramani --- MAINTAINERS | 5 + drivers/edac/Kconfig

[PATCH v6 1/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-24 Thread Shravan Kumar Ramani
Add ECC support for Mellanox BlueField SoC DDR controller. This requires SMC to the running Arm Trusted Firmware to report what is the current memory configuration. Reviewed-by: James Morse Signed-off-by: Shravan Kumar Ramani --- MAINTAINERS | 5 + drivers/edac/Kconfig

[PATCH v6 0/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-24 Thread Shravan Kumar Ramani
Chnages since v5: Use shifts/masks for SMC response fields. Add limit check for dimm_per_mc read from firmware. Make use of offset_in_page() call. Shravan Kumar Ramani (1): EDAC, mellanox: Add ECC support for BlueField DDR4 MAINTAINERS | 5 + drivers/edac/Kconfig

[PATCH v5 1/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-17 Thread Shravan Kumar Ramani
Add ECC support for Mellanox BlueField SoC DDR controller. This requires SMC to the running Arm Trusted Firmware to report what is the current memory configuration. Signed-off-by: Shravan Kumar Ramani --- MAINTAINERS | 5 + drivers/edac/Kconfig | 7 + drivers/edac

[PATCH v5 0/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-17 Thread Shravan Kumar Ramani
Changes since v4: Shorten long macro names. Changes since v3: Replace bitfields with shifts and masks. Make use of SZ_ and PAGE_ macros. Read DIMM count from the ACPI table instead of hard-coding the info in the driver. Shravan Kumar Ramani (1): EDAC, mellanox: Add ECC support for BlueField

[PATCH v4 1/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-14 Thread Shravan Kumar Ramani
Add ECC support for Mellanox BlueField SoC DDR controller. This requires SMC to the running Arm Trusted Firmware to report what is the current memory configuration. Signed-off-by: Shravan Kumar Ramani --- MAINTAINERS | 5 + drivers/edac/Kconfig | 7 + drivers/edac

[PATCH v4 0/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-14 Thread Shravan Kumar Ramani
Changes since v3: Replace bitfields with shifts and masks. Make use of SZ_ and PAGE_ macros. Read DIMM count from the ACPI table instead of hard-coding the info in the driver. Shravan Kumar Ramani (1): EDAC, mellanox: Add ECC support for BlueField DDR4 MAINTAINERS | 5

[PATCH v1] gpio: gpio-mlxbf: Add dependency on 64BIT to Kconfig entry

2019-03-27 Thread Shravan Kumar Ramani
Fixes a compile test failure Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 0d9ddff..530ee34 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig

[PATCH v6 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-03-26 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 153

[PATCH v6 0/1] gpio: add driver for Mellanox BlueField GPIO

2019-03-26 Thread Shravan Kumar Ramani
Changes since v5: Use devm_platform_ioremap_resource(). Shravan Kumar Ramani (1): gpio: add driver for Mellanox BlueField GPIO controller drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 153 ++ 3

[PATCH v5 0/1] gpio: add driver for Mellanox BlueField GPIO

2019-03-25 Thread Shravan Kumar Ramani
Changes since v4: Use bgpio_init to make use of the generic MMIO library. Remove routines made unnecessary by the above change. Shravan Kumar Ramani (1): gpio: add driver for Mellanox BlueField GPIO controller drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers

[PATCH v5 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-03-25 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 154

[PATCH v1 1/1] hwmon: (emc1403) Add support for EMC1444

2019-02-26 Thread Shravan Kumar Ramani
EMC1444 is compatible with EMC1404. Add it to device ID table. Reviewed-by: David Thompson Signed-off-by: Shravan Kumar Ramani --- drivers/hwmon/emc1403.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index bdab47a..88f6a40 100644

[PATCH v4 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-21 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 222

[PATCH v4 0/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-21 Thread Shravan Kumar Ramani
dirin or dirout to be set, never both. But since our controller has 2 separate registers, using bgpio_init might not be possible here. Shravan Kumar Ramani (1): gpio: add driver for Mellanox BlueField GPIO controller drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1

[PATCH v3 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-20 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 222

[PATCH v2 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-19 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 246

RE: [PATCH v1 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-19 Thread Shravan Ramani
Thank you for the feedback. Regarding the suggested use of regmap mmio, all of the registers being accessed here are 64-bit and the regmap_update_bits/regmap_read/regmap_write calls aren't very convenient to use in this case. All other comments have been addressed in v2. Regards, Shravan Kumar

[PATCH v1 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-14 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 287

ADC continous mode

2014-01-22 Thread shravan
Hi experts, i am new to this area, I am using amstrong 3.8.13 kernel in BBB at first i loaded the device tree as below, echo cape-bone-iio > /sys/devices/bone_capemgr.*/slots then i used analog pins however i am getting the fixed values that is values are not varying continously as i vary

ADC continous mode

2014-01-22 Thread shravan
Hi experts, i am new to this area, I am using amstrong 3.8.13 kernel in BBB at first i loaded the device tree as below, echo cape-bone-iio /sys/devices/bone_capemgr.*/slots then i used analog pins however i am getting the fixed values that is values are not varying continously as i vary input