Re: [PATCH 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING

2020-11-24 Thread Matheus Castello
Em 11/24/2020 11:56 PM, Joe Perches escreveu: On Tue, 2020-11-24 at 21:54 -0300, Matheus Castello wrote: diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c [] The above would be marginally better if organized as follows so that the main execution path isn't in an "

[PATCH v3 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING

2020-11-24 Thread Matheus Castello
Checkpatch emits WARNING: quoted string split across lines. To keep the code clean and with the 80 column length indentation the check and registration code for kmsg_dump_register has been transferred to a new function hv_kmsg_dump_register. Signed-off-by: Matheus Castello --- This is the V3 of

Re: [PATCH] x86/Hyper-V: Support for free page reporting

2020-11-24 Thread Matheus Castello
k(void *sched_clock); +u64 hv_query_ext_cap(void); #else /* CONFIG_HYPERV */ static inline bool hv_is_hyperv_initialized(void) { return false; } static inline bool hv_is_hibernation_supported(void) { return false; } Tested-by: Matheus Castello

[PATCH v2 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING

2020-11-24 Thread Matheus Castello
Checkpatch emits WARNING: quoted string split across lines. To keep the code clean and with the 80 column length indentation the check and registration code for kmsg_dump_register has been transferred to a new function hv_kmsg_dump_register. Signed-off-by: Matheus Castello --- This is the V2 of

Re: [PATCH 0/6] Add improvements suggested by checkpatch for vmbus_drv

2020-11-24 Thread Matheus Castello
Hi Wei, Em 11/17/2020 7:58 AM, Wei Liu escreveu: On Sun, Nov 15, 2020 at 04:57:28PM -0300, Matheus Castello wrote: This series fixes some warnings edmited by the checkpatch in the file vmbus_drv.c. I thought it would be good to split each fix into a commit to help with the review. Matheus

Re: [PATCH 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING

2020-11-24 Thread Matheus Castello
Hi Michael, Em 11/15/2020 7:25 PM, Michael Kelley escreveu: From: Matheus Castello Sent: Sunday, November 15, 2020 11:58 AM Checkpatch emits WARNING: quoted string split across lines. To keep the code clean and with the 80 column length indentation the check and registration code for

[PATCH 2/6] drivers: hv: vmbus: Replace symbolic permissions by octal permissions

2020-11-15 Thread Matheus Castello
This fixed the below checkpatch issue: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. Signed-off-by: Matheus Castello --- drivers/hv/vmbus_drv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) dif

[PATCH 3/6] drivers: hv: vmbus: Fix checkpatch LINE_SPACING

2020-11-15 Thread Matheus Castello
Fixed checkpatch warning: Missing a blank line after declarations checkpatch(LINE_SPACING) Signed-off-by: Matheus Castello --- drivers/hv/vmbus_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 52c1407c1849..61d28c743263 100644

[PATCH 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING

2020-11-15 Thread Matheus Castello
Checkpatch emits WARNING: quoted string split across lines. To keep the code clean and with the 80 column length indentation the check and registration code for kmsg_dump_register has been transferred to a new function hv_kmsg_dump_register. Signed-off-by: Matheus Castello --- drivers/hv

[PATCH 1/6] drivers: hv: Fix hyperv_record_panic_msg path on comment

2020-11-15 Thread Matheus Castello
Fix the kernel parameter path in the comment, in the documentation the parameter is correct but if someone who is studying the code and see this first can get confused and try to access the wrong path/parameter Signed-off-by: Matheus Castello --- drivers/hv/vmbus_drv.c | 2 +- 1 file changed, 1

[PATCH 6/6] drivers: hv: vmbus: Fix call msleep using < 20ms

2020-11-15 Thread Matheus Castello
Fixed checkpatch warning: MSLEEP: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst Signed-off-by: Matheus Castello --- drivers/hv/vmbus_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_dr

[PATCH 5/6] drivers: hv: vmbus: Fix unnecessary OOM_MESSAGE

2020-11-15 Thread Matheus Castello
Fixed checkpatch warning: Possible unnecessary 'out of memory' message checkpatch(OOM_MESSAGE) Signed-off-by: Matheus Castello --- drivers/hv/vmbus_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 09

[PATCH 0/6] Add improvements suggested by checkpatch for vmbus_drv

2020-11-15 Thread Matheus Castello
This series fixes some warnings edmited by the checkpatch in the file vmbus_drv.c. I thought it would be good to split each fix into a commit to help with the review. Matheus Castello (6): drivers: hv: Fix hyperv_record_panic_msg path on comment drivers: hv: vmbus: Replace symbolic

Re: [PATCH v7 4/4] arm64: dts: Add Caninos Loucos Labrador v3

2020-10-15 Thread Matheus Castello
Em 9/22/20 7:26 AM, Catalin Marinas escreveu: On Tue, Sep 22, 2020 at 10:32:06AM +0200, Arnd Bergmann wrote: On Tue, Sep 22, 2020 at 8:15 AM Manivannan Sadhasivam wrote: On Mon, Sep 21, 2020 at 11:43:02PM -0300, Matheus Castello wrote: + /* Labrador v3 firmware does not support PSCI

[PATCH v7 1/4] dt-bindings: Add vendor prefix for Caninos Loucos

2020-09-21 Thread Matheus Castello
-TEC) with the support of Polytechnic School of the University of São Paulo (Poli-USP) and Jon "Maddog" Hall. Signed-off-by: Matheus Castello Acked-by: Rob Herring Reviewed-by: Andreas Färber --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertion

[PATCH v7 4/4] arm64: dts: Add Caninos Loucos Labrador v3

2020-09-21 Thread Matheus Castello
Add Device Trees for Caninos Loucos Labrador CoM Core v3 and base board M v2. Based on the work of Andreas Färber on Cubieboard 7 device tree. Signed-off-by: Matheus Castello --- arch/arm64/boot/dts/actions/Makefile | 2 + .../dts/actions/s700-labrador-base-m2.dts | 34

[PATCH v7 2/4] dt-bindings: arm: actions: Document Caninos Loucos Labrador

2020-09-21 Thread Matheus Castello
Update the documentation to add the Caninos Loucos Labrador. Labrador project consists of the computer on module Core v2 based on the Actions Semi S500, computer on module Core v3 based on the Actions Semi S700 and the Labrador base boards. Signed-off-by: Matheus Castello Acked-by: Rob Herring

[PATCH v7 3/4] ARM: dts: Add Caninos Loucos Labrador v2

2020-09-21 Thread Matheus Castello
Add Device Trees for Caninos Loucos Labrador CoM Core v2 and base board M v1. Based on the work of Andreas Färber on Lemaker Guitar device tree. Signed-off-by: Matheus Castello Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andreas Färber --- arch/arm/boot/dts/Makefile

[PATCH v7 0/4] Add Caninos Loucos Labrador CoM and Base Board Device Tree

2020-09-21 Thread Matheus Castello
ed by Andreas Färber) - Put caninos,labrador-v2 as const one level down Matheus Castello (4): dt-bindings: Add vendor prefix for Caninos Loucos dt-bindings: arm: actions: Document Caninos Loucos Labrador ARM: dts: Add Caninos Loucos Labrador v2 arm64: dts: Add Caninos Loucos Labrad

[PATCH v1] power: supply: max17040: Add POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN

2020-07-05 Thread Matheus Castello
Adds the property POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN to export the chip->low_soc_alert and add the property as writeable, implementing max17040_prop_writeable and max17040_set_property, so with that the user space can readjust the alerts. Signed-off-by: Matheus Castello --- drivers/po

Re: [PATCH v1] arm64: dts: actions: Fix smp Bringing up secondary CPUs

2020-07-05 Thread Matheus Castello
Hi Andreas, Em 7/5/20 7:09 PM, Andreas Färber escreveu: Hi Matheus, Am 05.07.20 um 21:19 schrieb Matheus Castello: Change the enable-method to fix the failed to boot errors: [    0.040330] smp: Bringing up secondary CPUs ... [    0.040683] psci: failed to boot CPU1 (-22) [    0.040691] CPU1

Re: [PATCH v6 3/3] ARM: dts: Add Caninos Loucos Labrador

2020-07-05 Thread Matheus Castello
Hi Andreas, let me know if there are any more concerns about this series. BR, Matheus Castello Em 5/25/20 10:22 AM, Matheus Castello escreveu: Add Device Trees for Caninos Loucos Labrador CoM and base board. Based on the work of Andreas Färber on Lemaker Guitar device tree. Signed-off-by

[PATCH v1] arm64: dts: actions: Fix smp Bringing up secondary CPUs

2020-07-05 Thread Matheus Castello
[0.041408] psci: failed to boot CPU3 (-22) [0.041417] CPU3: failed to boot: -22 [0.041443] smp: Brought up 1 node, 1 CPU [0.041451] SMP: Total of 1 processors activated. Tested on Caninos Labrador v3 based on Actions Semi S700. Signed-off-by: Matheus Castello --- arch/arm64/boot/dts/actions

[PATCH v6 2/3] dt-bindings: arm: actions: Document Caninos Loucos Labrador

2020-05-25 Thread Matheus Castello
Update the documentation to add the Caninos Loucos Labrador. Labrador project consists of a computer on module based on the Actions Semi S500 processor and the Labrador base board. Signed-off-by: Matheus Castello Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/actions.yaml | 5

[PATCH v6 1/3] dt-bindings: Add vendor prefix for Caninos Loucos

2020-05-25 Thread Matheus Castello
-TEC) with the support of Polytechnic School of the University of São Paulo (Poli-USP) and Jon "Maddog" Hall. Signed-off-by: Matheus Castello Acked-by: Rob Herring Reviewed-by: Andreas Färber --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertion

[PATCH v6 3/3] ARM: dts: Add Caninos Loucos Labrador

2020-05-25 Thread Matheus Castello
Add Device Trees for Caninos Loucos Labrador CoM and base board. Based on the work of Andreas Färber on Lemaker Guitar device tree. Signed-off-by: Matheus Castello Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andreas Färber --- arch/arm/boot/dts/Makefile| 1 + .../arm

[PATCH v6 0/3] Add Caninos Loucos Labrador CoM and Base Board Device Tree

2020-05-25 Thread Matheus Castello
Thanks Andreas, Mani and Rob for your time reviewing it. Changes since v5: (Suggested by Andreas Färber) - Put caninos,labrador-v2 as const one level down Changes since v4: (Suggested by Rob Herring) - Fix issues with yaml indentation Matheus Castello (3): dt-bindings: Add vendor prefix for

Re: [PATCH v5 2/3] dt-bindings: arm: actions: Document Caninos Loucos Labrador

2020-05-25 Thread Matheus Castello
Hi Andreas, Em 5/25/20 7:41 AM, Andreas Färber escreveu: Hi, Am 25.05.20 um 03:30 schrieb Matheus Castello: Update the documentation to add the Caninos Loucos Labrador. Labrador project consists of a computer on module based on the Actions Semi S500 processor and the Labrador base board

[PATCH v5 1/3] dt-bindings: Add vendor prefix for Caninos Loucos

2020-05-24 Thread Matheus Castello
-TEC) with the support of Polytechnic School of the University of São Paulo (Poli-USP) and Jon "Maddog" Hall. Signed-off-by: Matheus Castello Acked-by: Rob Herring Reviewed-by: Andreas Färber --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertion

[PATCH v5 2/3] dt-bindings: arm: actions: Document Caninos Loucos Labrador

2020-05-24 Thread Matheus Castello
Update the documentation to add the Caninos Loucos Labrador. Labrador project consists of a computer on module based on the Actions Semi S500 processor and the Labrador base board. Signed-off-by: Matheus Castello Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/actions.yaml | 5

[PATCH v5 3/3] ARM: dts: Add Caninos Loucos Labrador

2020-05-24 Thread Matheus Castello
Add Device Trees for Caninos Loucos Labrador CoM and base board. Based on the work of Andreas Färber on Lemaker Guitar device tree. Signed-off-by: Matheus Castello Reviewed-by: Manivannan Sadhasivam Reviewed-by: Andreas Färber --- arch/arm/boot/dts/Makefile| 1 + .../arm

[PATCH v5 0/3] Add Caninos Loucos Labrador CoM and Base Board Device Tree

2020-05-24 Thread Matheus Castello
-base-m.dts - Add description for both the SoM and Base Board - Add Model description for both the SoM and Base Board Matheus Castello (3): dt-bindings: Add vendor prefix for Caninos Loucos dt-bindings: arm: actions: Document Caninos Loucos Labrador ARM: dts: Add Caninos Loucos Labrador

Re: [PATCH v3 3/5] power: supply: max17040: Config alert SOC low level threshold from FDT

2019-06-02 Thread Matheus Castello
On 5/29/19 11:46 AM, Krzysztof Kozlowski wrote: On Mon, 27 May 2019 at 04:46, Matheus Castello wrote: For configuration of fuel gauge alert for a low level state of charge interrupt we add a function to config level threshold and a device tree binding property to set it in flatned device

Re: [PATCH v3 2/5] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-06-02 Thread Matheus Castello
On Mon, 27 May 2019 at 04:45, Matheus Castello wrote: For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-low-soc-level" property. Signed-off-by: Matheus Castello --- .../power/supply/max17040_battery.txt | 28 +

[PATCH v3 1/5] power: supply: max17040: Add IRQ handler for low SOC alert

2019-05-26 Thread Matheus Castello
user space can decide save work or turn off since the alert demonstrate that the battery may no have the power to keep the system turned on for much longer. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 65 +++-- 1 file changed, 60 insertions

[PATCH v3 5/5] power: supply: max17040: Send uevent in SOC and status change

2019-05-26 Thread Matheus Castello
Notify core through power_supply_changed() in case of changes in state of charge and power supply status. This is useful for user-space to efficiently update current battery level. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 14 ++ 1 file changed

[PATCH v3 3/5] power: supply: max17040: Config alert SOC low level threshold from FDT

2019-05-26 Thread Matheus Castello
configure alert interrupt threshold. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 52 +++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/max17040_battery.c b/drivers/power/supply/max17040_batte

[PATCH v3 2/5] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-05-26 Thread Matheus Castello
For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-low-soc-level" property. Signed-off-by: Matheus Castello --- .../power/supply/max17040_battery.txt | 28 +++ 1 file changed, 28 insertions(+) create m

[PATCH v3 0/5] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2019-05-26 Thread Matheus Castello
device tree description - Add the (%) units on the description of property - Drop interrupt-parent - Fix name of property to let clear that is a low level SOC alert Matheus Castello (5): power: supply: max17040: Add IRQ handler for low SOC alert dt-bindings: power: supply: Max17040: Add low leve

[PATCH v3 4/5] power: supply: max17040: Clear ALRT bit when the SOC are above threshold

2019-05-26 Thread Matheus Castello
In order to not generate duplicate interrupts we clear the ALRT bit when the SOC is in a state that shows that the battery is charged above the set threshold for the SOC low level alert. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 11 +++ 1 file changed

Re: [PATCH v2 2/4] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-05-26 Thread Matheus Castello
On 4/29/19 7:13 PM, Rob Herring wrote: On Sun, Apr 14, 2019 at 10:26:33PM -0300, Matheus Castello wrote: For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-soc-level" property. Signed-off-by: Matheus Castello --- .../po

Re: [PATCH v2 1/4] power: supply: max17040: Add IRQ handler for low SOC alert

2019-04-19 Thread Matheus Castello
Em 4/15/19 4:10 AM, Krzysztof Kozlowski escreveu: On Mon, 15 Apr 2019 at 03:49, Matheus Castello wrote: According datasheet max17040 has a pin for alert host for low SOC. This pin can be used as external interrupt, so we need to check for interrupts assigned for device and handle it. In

[PATCH v2 1/4] power: supply: max17040: Add IRQ handler for low SOC alert

2019-04-14 Thread Matheus Castello
user space can decide save work or turn off since the alert demonstrate that the battery may no have the power to keep the system turned on for much longer. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 69 +++-- 1 file changed, 64 insertions

[PATCH v2 2/4] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2019-04-14 Thread Matheus Castello
For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-soc-level" property. Signed-off-by: Matheus Castello --- .../power/supply/max17040_battery.txt | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Doc

[PATCH v2 3/4] power: supply: max17040: Config alert SOC low level threshold from FDT

2019-04-14 Thread Matheus Castello
gure alert interrupt threshold. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 56 ++--- 1 file changed, 50 insertions(+), 6 deletions(-) diff --git a/drivers/power/supply/max17040_battery.c b/drivers/power/supply/max17040_battery.c index 8d

[PATCH v2 4/4] power: supply: max17040: Send uevent in SOC changes

2019-04-14 Thread Matheus Castello
Notify core through power_supply_changed() in case of changes in state of charge. This is useful for user-space to efficiently update current battery level. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[PATCH v2 0/4] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2019-04-14 Thread Matheus Castello
hold - Set low level state of charge threshold before IRQ - CC maintainers from drivers/mfd/max14577 - Use flags from FDT client->flags instead hard coded it - Mention interrupts on DT Documentation - Fix "maxim,max77836-battery" missed from DT Documentation - Fix commit descripti

Re: [PATCH 0/4] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2018-09-17 Thread Matheus Castello
Hi Krzysztof and Sebastian, please forgive me for the delay in working with this patch. I've been having some personal issues these months, but leaving the excuses I still intend to send a v2 for this. Thanks Krzysztof for review and tips I'll work on it. Best Regards, Matheus Ca

[PATCH 0/4] power: supply: MAX17040: Add IRQ for low level and alert SOC changes

2018-07-22 Thread Matheus Castello
from 1% up to 32% of SOC. Tested on Raspberry Pi Zero W, with a SparkFun Lipo Fuel Gauge module based on MAXIM MAX17043. Matheus Castello (4): power: supply: max17040: Add IRQ handler for low SOC alert power: supply: max17040: Config alert SOC low level threshold from FDT dt-bindings: power

[PATCH 3/4] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold

2018-07-22 Thread Matheus Castello
For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-soc-level" property. Signed-off-by: Matheus Castello --- .../bindings/power/supply/max17040_battery.txt | 24 ++ 1 file changed, 24 insertions(+) create m

[PATCH 4/4] power: supply: max17040: Send uevent in SOC changes

2018-07-22 Thread Matheus Castello
decisions. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/supply/max17040_battery.c b/drivers/power/supply/max17040_battery.c index 3efa52d32b44..72915ac9e13b 100644 --- a/drivers/power/supply

[PATCH 2/4] power: supply: max17040: Config alert SOC low level threshold from FDT

2018-07-22 Thread Matheus Castello
gure alert interrupt threshold. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 36 + 1 file changed, 36 insertions(+) diff --git a/drivers/power/supply/max17040_battery.c b/drivers/power/supply/max17040_battery.c index 6e

[PATCH 1/4] power: supply: max17040: Add IRQ handler for low SOC alert

2018-07-22 Thread Matheus Castello
user space can decide save work or turn off since the alert demonstrate that the battery may no have the power to keep the system turned on for much longer. Signed-off-by: Matheus Castello --- drivers/power/supply/max17040_battery.c | 51 + 1 file changed, 51

Re: [PATCH v2 2/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-07 Thread Matheus Castello
Hi Linus, thanks for the tips, I will study this to break dependency from OF. Best Regards, Matheus Castello On 05/02/2018 08:51 AM, Linus Walleij wrote: On Tue, May 1, 2018 at 9:10 PM, Matheus Castello wrote: For generic pinconf: print the dev_error with the pinctrl vendor driver name

[PATCH v2 2/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
does not support. Signed-off-by: Matheus Castello --- drivers/pinctrl/pinconf.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index d3fe143..ced2b67 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers

[PATCH v2 1/2] pinctrl: generic: add API to solve generic sub-node property name

2018-05-01 Thread Matheus Castello
pinconf driver. Signed-off-by: Matheus Castello --- drivers/pinctrl/pinconf-generic.c | 61 + include/linux/pinctrl/pinconf-generic.h | 32 + 2 files changed, 63 insertions(+), 30 deletions(-) diff --git a/drivers/pinctrl/pinconf-generic.c b

Re: [PATCH v2 0/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
tree enable configurations Matheus Castello (2): pinctrl: generic: add API to solve generic sub-node property name pinctrl: generic: improve apply_setting error verbosity drivers/pinctrl/pinconf-generic.c | 61 + drivers/pinctrl/pinconf.c | 15

[PATCH v1 2/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
does not support. Signed-off-by: Matheus Castello --- drivers/pinctrl/pinconf.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index d3fe143..fd5962a 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers

[PATCH v1 1/2] pinctrl: generic: add API to solve generic sub-node property name

2018-05-01 Thread Matheus Castello
pinconf driver. Signed-off-by: Matheus Castello --- drivers/pinctrl/pinconf-generic.c | 61 + include/linux/pinctrl/pinconf-generic.h | 32 + 2 files changed, 63 insertions(+), 30 deletions(-) diff --git a/drivers/pinctrl/pinconf-generic.c b

[PATCH v1 0/2] pinctrl: generic: improve apply_setting error verbosity

2018-05-01 Thread Matheus Castello
pinctrl-vendor driver and sub-nodes that returned error when applied. Let me know your opinion about this. Matheus Castello (2): pinctrl: generic: add API to solve generic sub-node property name pinctrl: generic: improve apply_setting error verbosity drivers/pinctrl/pinconf-generic.c | 61

Re: [PATCH v7 0/3] bcm2835: Add generic pinctrl support

2018-04-30 Thread Matheus Castello
documentations about generic properties support - Add devicetree bindings maintainers Matheus Castello (2): pinctrl: bcm2835: Add support for generic pinctrl binding pinctrl: bcm2835: Add support for output-low output-high properties drivers/pinctrl/bcm/Kconfig | 1 + drivers/pinctrl/bcm

[PATCH v7 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-04-30 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello Reviewed-by: Eric Anholt --- drivers/pinctrl/bcm/Kconfig | 1 + drivers/pinctrl/bcm/pinctrl-bcm2835.c | 95

[PATCH v7 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-04-30 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello Reviewed-by: Eric Anholt --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file

[PATCH v6 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-04-29 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file changed, 5 insertions

Re: [PATCH v6 0/3] bcm2835: Add generic pinctrl support

2018-04-29 Thread Matheus Castello
changes with the driver changes in a single patch - Add devicetree bindings documentations about generic properties support - Add devicetree bindings maintainers Matheus Castello (2): pinctrl: bcm2835: Add support for generic pinctrl binding pinctrl: bcm2835: Add support for output-low output

[PATCH v6 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-04-29 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello --- A brief explanation of what I did: Add pinconf-generic header for use the defines and pinctrl-generic API. Add dt-bindings pinctrl bcm2835 header to

[PATCH v5 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-04-10 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello --- A brief explanation of what I did: Add pinconf-generic header for use the defines and pinctrl-generic API. Add dt-bindings pinctrl bcm2835 header to

[PATCH v5 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-04-10 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file changed, 5 insertions

[PATCH v5 1/3] dt-bindings: pinctrl: bcm2835-gpio: Add generic pinctrl support

2018-04-10 Thread Matheus Castello
Added generic pin configuration and multiplexing support, and should be preferred than brcm legacy one. Signed-off-by: Matheus Castello --- .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree

Re: [PATCH v5 0/3] pinctrl: bcm2835: Add generic pinctrl support

2018-04-10 Thread Matheus Castello
* functions (Suggested by Stefan Wahren) - Fold Kconfig changes with the driver changes in a single patch - Add devicetree bindings documentations about generic properties support - Add devicetree bindings maintainers Matheus Castello (3): dt-bindings: pinctrl: bcm2835-gpio: Add generic pinctrl support

[PATCH] dt-bindings: pinctrl: sunxi: Fix reference to driver

2018-04-10 Thread Matheus Castello
Bindings describe hardware, not drivers. Use reference to hardware Allwinner A1X Pin Controller instead driver. Signed-off-by: Matheus Castello --- .../devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

Re: [PATCH v4 1/3] dt-bindings: pinctrl: bcm2835-gpio: Add generic pinctrl support

2018-03-18 Thread Matheus Castello
./pinctrl-bindings.txt. If it's okay for you let me know, so I can send the v5 patch. Best Regards Matheus Castello On 03/18/2018 08:48 AM, Rob Herring wrote: On Fri, Mar 09, 2018 at 01:13:58PM -0400, Matheus Castello wrote: Added generic pin configuration and multiplexing support, and sho

[PATCH v4 1/3] dt-bindings: pinctrl: bcm2835-gpio: Add generic pinctrl support

2018-03-09 Thread Matheus Castello
Added generic pin configuration and multiplexing support, and shoud be preferred than brcm legacy one. Signed-off-by: Matheus Castello --- .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree

[PATCH v4 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-03-09 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file changed, 5 insertions

Re: [PATCH v4 0/3] pinctrl: bcm2835: Add generic pinctrl support

2018-03-09 Thread Matheus Castello
properties support - Add devicetree bindings maintainers Matheus Castello (3): dt-bindings: pinctrl: bcm2835-gpio: Add generic pinctrl support pinctrl: bcm2835: Add support for generic pinctrl binding pinctrl: bcm2835: Add support for output-low output-high properties drivers/pinctrl/bcm/Kconfig

[PATCH v4 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-03-09 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello --- A brief explanation of what I did: Add pinconf-generic header for use the defines and pinctrl-generic API. Add dt-bindings pinctrl bcm2835 header to

[PATCH v3 3/3] pinctrl: bcm2835: Update docs about generic pinctrl bindings support

2018-03-08 Thread Matheus Castello
Now we have generic pin configuration and multiplexing support, ahd shoud be preferred than brcm legacy one. Signed-off-by: Matheus Castello --- .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation

[PATCH v3 2/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-03-08 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file changed, 5 insertions

Re: [PATCH v3 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-08 Thread Matheus Castello
UNPACK macros - Use pinconf_to_config_* functions (Suggested by Stefan Wahren) - Fold Kconfig changes with the driver changes in a single patch - Add devicetree bindings documentations about generic properties support - Add devicetree bindings maintainers Matheus Castello (3): pinctrl: bcm2835: Add

[PATCH v3 1/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-03-08 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello --- A brief explanation of what I did: Add pinconf-generic header for use the defines and pinctrl-generic API. Add dt-bindings pinctrl bcm2835 header to

Re: [PATCH v2 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-08 Thread Matheus Castello
Hi Stefan, On 03/08/2018 04:00 AM, Stefan Wahren wrote: > Hi Matheus, > >> Matheus Castello hat am 8. März 2018 um 01:12 >> geschrieben: >> >> >> Hi Stefan, >> >> On 03/07/2018 07:58 AM, Stefan Wahren wrote: >>> Hi Matheus

Re: [PATCH v2 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-07 Thread Matheus Castello
Hi Stefan, On 03/07/2018 07:58 AM, Stefan Wahren wrote: > Hi Matheus, > >> Matheus Castello hat am 5. März 2018 um 03:29 >> geschrieben: >> >> >> Hi Linus and Stefan, >> >> thanks for the tips. >> >> This series adds support for gen

Re: [PATCH v2 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-03-06 Thread Matheus Castello
Hi Eric, thanks for reviewing it. I will send the v3 of the patch with your notes. I will just wait for the Linus considerations. Best Regards Matheus Castello On 03/05/2018 07:21 PM, Eric Anholt wrote: > Matheus Castello writes: > >> To keep driver up to date we add generic pin

[PATCH v2 1/3] pinctrl: bcm2835: switch to GENERIC_PINCONF

2018-03-04 Thread Matheus Castello
To enable support for generic binding in the pinctrl-bcm2835 and use pinctrl generic to parse properties the GENERIC_PINCONF have to be selected. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/bcm/Kconfig b

[PATCH v2 3/3] pinctrl: bcm2835: Add support for output-low output-high properties

2018-03-04 Thread Matheus Castello
Properties to set initial value of pin output buffer. This can be useful for configure hardware in overlay files, and in early boot for checking it states in QA sanity tests. Signed-off-by: Matheus Castello --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 + 1 file changed, 5 insertions

[PATCH v2 2/3] pinctrl: bcm2835: Add support for generic pinctrl binding

2018-03-04 Thread Matheus Castello
trees. The logic of this change maintain the old brcm legacy binding support in order to keep the ABI stable. Signed-off-by: Matheus Castello --- A brief explanation of what I did: Add pinconf-generic header for use the defines and pinctrl-generic API. Add dt-bindings pinctrl bcm2835 header to

Re: [PATCH v2 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-04 Thread Matheus Castello
Hi Linus and Stefan, thanks for the tips. This series adds support for generic binding for pinctrl bcm2835 driver, and add the code for set output buffer of a pin using the output-low and output-high generic properties. Tested on Raspberry Pi Zero W, based on bcm2835 SoC. Matheus Castello (3

Re: [PATCH] pinctrl: bc2835: Add brcm,level property

2018-02-23 Thread Matheus Castello
support for the generic binding properties too. So in the future this can be used to implement the output-high and output-low generic properties. Signed-off-by: Matheus Castello --- .../bindings/pinctrl/brcm,bcm2835-gpio.txt | 5 +- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 90

[PATCH] pinctrl: bc2835: Add brcm,level property

2018-02-22 Thread Matheus Castello
Property to set initial value of pin output buffer. Signed-off-by: Matheus Castello --- .../bindings/pinctrl/brcm,bcm2835-gpio.txt | 5 +- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 90 +- 2 files changed, 75 insertions(+), 20 deletions(-) diff --git a