[PATCH v2] ARM: davinci: da850: Fix pwm name matching

2016-10-31 Thread David Lechner
have added child clocks to the EHRPWM and ECAP LPSC clocks so that each PWM device will have its own clock for proper name matching. Signed-off-by: David Lechner <da...@lechnology.com> --- v2 changes: * Added child clocks so that each PWM has its own clock. arch/arm/mach-davinci/da850.c

Re: [PATCH 1/3] ARM: davinci: da8xx: Fix ohci driver name

2016-11-02 Thread David Lechner
On 11/02/2016 07:44 AM, Axel Haslam wrote: There is a single instance of the ohci driver, while the clk lookup table is making reference to "ohci" other subsystems (such as phy) are looking for "ohci.0" This patch changes the "device" name, not the "driver" name. You use "driver" above and

Re: [PATCH 3/3] usb: ohci-da8xx: rename driver to ohci-da8xx

2016-11-02 Thread David Lechner
On 11/02/2016 07:44 AM, Axel Haslam wrote: To be consistent on the usb driver for the davinci platform follow the example of musb, and add the "-da8xx" postfix to the driver name. It is probably worth mentioning that the existing driver name is "ohci" which is a bit too generic.

Re: [PATCH 2/3] phy: da8xx-usb: rename the ohci device to ohci-da8xx

2016-11-02 Thread David Lechner
On 11/02/2016 07:44 AM, Axel Haslam wrote: There is only one ohci on the da8xx series of chips, so remove the ".0" when creating the phy. Also add the "-da8xx" postfix to be consistent across davinci usb drivers. It would be more accurate to say that the device name is being changed in the

Re: [PATCH v2 0/3] davinci: ohci: fix usb ohci device name

2016-11-03 Thread David Lechner
t;.0" matching. while we are fixing this, rename the driver from "ohci" to "ohci-da8xx" which is less generic and consistent with other usb drivers. changes form v1 -> v2 *Reword commit messages (David Lechner) Because of the recently accepted patches on the ARM-davinci si

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread David Lechner
On 11/03/2016 10:26 AM, Alexandre Bailon wrote: The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the

Re: [PATCH v3 2/5] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-03 Thread David Lechner
On 11/03/2016 10:26 AM, Alexandre Bailon wrote: If we configure the da8xx OTG phy in OTG mode, neither device or host mode will work. That is because the PHY is not able to detect and notify the driver that value of ID pin changed. To work despite this hardware limitation, the da8xx glue

Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread David Lechner
On 11/03/2016 10:26 AM, Alexandre Bailon wrote: The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread David Lechner
On 11/03/2016 12:33 PM, Alexandre Bailon wrote: On 11/03/2016 05:53 PM, David Lechner wrote: On 11/03/2016 10:26 AM, Alexandre Bailon wrote: The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode

Re: [PATCH] ARM: davinci: da850: Fix pwm name matching

2016-11-02 Thread David Lechner
On 11/01/2016 05:31 AM, Sekhar Nori wrote: On Monday 31 October 2016 08:18 PM, David Lechner wrote: On 10/31/2016 05:18 AM, Sekhar Nori wrote: On Tuesday 25 October 2016 11:24 PM, David Lechner wrote: This fixes pwm name matching for DA850 familiy devices. When using device tree

Re: [PATCH v2 0/3] usb: musb: da8xx: Fix few issues

2016-10-27 Thread David Lechner
On 10/26/2016 05:58 AM, Alexandre Bailon wrote: Currently, the USB OTG of the da8xx doesn't work. This series intend to fix them. Change in v2: * Fix the error path da8xx_musb_init() Alexandre Bailon (3): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure

Re: [PATCH v8 1/3] ARM: dts: da850: Add cfgchip syscon node

2016-11-01 Thread David Lechner
On 11/01/2016 04:53 AM, Sekhar Nori wrote: Hi David, On Tuesday 01 November 2016 02:17 AM, David Lechner wrote: Add a syscon node for the SoC CFGCHIPn registers. It includes a child node for the USB PHY that is part of this range of registers. Also have to add OF_DEV_AUXDATA() entry so

Re: [PATCH/RFT 07/12] USB: ohci-da8xx: Request gpios and handle interrupt in the driver

2016-10-10 Thread David Lechner
On 10/07/2016 11:42 AM, ahas...@baylibre.com wrote: From: Axel Haslam Currently requesting the vbus and overcurrent gpio is handled on the board specific file. But this does not play well moving to device tree. In preparation to migrate to a device tree boot, handle

Re: [PATCH/RFT 09/12] usb: host: ohci-da8xx: Add devicetree bindings documentation

2016-10-10 Thread David Lechner
On 10/07/2016 11:42 AM, ahas...@baylibre.com wrote: From: Axel Haslam This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Signed-off-by: Axel Haslam ---

Re: [PATCH/RFT 08/12] ARM: davinci: register the usb20_phy clock on the SoC file

2016-10-10 Thread David Lechner
On 10/07/2016 11:42 AM, ahas...@baylibre.com wrote: From: Axel Haslam The usb20_phy clock needs to be registered for the driver to be able to get and enable a clock. Currently the usb phy clocks are registered form board files, which will not be called during a device

Re: [PATCH/RFT 07/12] USB: ohci-da8xx: Request gpios and handle interrupt in the driver

2016-10-12 Thread David Lechner
On 10/12/2016 10:01 AM, Axel Haslam wrote: I agree that we should use a regulator for the vbus power. i will make that change. However, im not so sure about using the regulator for the overcurrent handling. There seems to be no other driver doing this, and as you mention, we would need to

[PATCH] usb: ohci-da8xx: Remove code that references mach

2016-10-12 Thread David Lechner
Including mach/* is frowned upon in device drivers, so get rid of it. This replaces usb20_clk and code that pokes CFGCHIP2 with a proper phy driver. Signed-off-by: David Lechner <da...@lechnology.com> Acked-by: Alan Stern <st...@rowland.harvard.edu> --- Greg, This is a resend of th

Re: [PATCH v3 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-06 Thread David Lechner
On 12/05/2016 04:09 AM, Bartosz Golaszewski wrote: The aemif clock is added twice to the lookup table in da850.c. This breaks the children list of pll0_sysclk3 as we're using the same list links in struct clk. When calling clk_set_rate(), we get stuck in propagate_rate(). _clk is used twice in

Re: [PATCH v3 3/3] ARM: da850: fix da850_set_pll0rate()

2016-12-06 Thread David Lechner
On 12/05/2016 04:09 AM, Bartosz Golaszewski wrote: This function is confusing - its second argument is an index to the freq table, not the requested clock rate in Hz, but it's used as the set_rate callback for the pll0 clock. It leads to an oops when the caller doesn't know the internals and

Re: [PATCH] spi: davinci: Allow device tree devices to use DMA

2016-12-06 Thread David Lechner
On 11/21/2016 02:37 AM, Sekhar Nori wrote: On Sunday 20 November 2016 10:31 PM, David Lechner wrote: On 11/20/2016 06:59 AM, Sekhar Nori wrote: On Saturday 19 November 2016 10:11 AM, David Lechner wrote: @@ -400,6 +401,9 @@ static int davinci_spi_of_setup(struct spi_device *spi

Re: [PATCH v2 3/5] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-10 Thread David Lechner
On 01/09/2017 06:29 AM, Sekhar Nori wrote: On Friday 06 January 2017 10:03 AM, David Lechner wrote: This enables the iio subsystem and the TI ADS7950 driver. This is used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. Can you add your sign-off? --- The CONFIG_TI_ADS7950 driver

[PATCH] ARM: davinci_all_defconfig: enable iio

2017-01-10 Thread David Lechner
This enables the iio subsystem. This will be used by LEGO MINDSTORMS EV3, which has a TI ADS7957 A/DC chip. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/c

Re: [PATCH v3] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-13 Thread David Lechner
On 01/13/2017 06:04 AM, Sekhar Nori wrote: On Friday 13 January 2017 02:02 AM, David Lechner wrote: This adds a device tree definition file for LEGO MINDSTORMS EV3. ... There are couple of checkpatch errors that show up. The compatible "lego,ev3" needs to be documented in Doc

Re: [PATCH 03/10] devicetree: bindings: add bindings for ahci-da850

2017-01-13 Thread David Lechner
On 01/13/2017 06:37 AM, Bartosz Golaszewski wrote: Add DT bindings for the TI DA850 AHCI SATA controller. Signed-off-by: Bartosz Golaszewski --- .../devicetree/bindings/ata/ahci-da850.txt | 21 + 1 file changed, 21 insertions(+) create

[PATCH v2 1/2] ARM: davinci: Allocate extra interrupts

2017-01-13 Thread David Lechner
This allocates extra interrupts for mach-davinci. These extra interrupts are need for things like IIO triggers. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/mach-davinci/include/mach/irqs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/ar

Re: [PATCH v2 3/5] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-13 Thread David Lechner
On 01/13/2017 06:24 AM, Sekhar Nori wrote: On Wednesday 11 January 2017 01:53 PM, Sekhar Nori wrote: I do remember I did not see these two modules did not get enabled in .config after 'make davinci_all_defconfig'. Will check what I may have missed. So IIO_TRIGGERED_BUFFER is not selected in

Re: [PATCH 07/10] sata: ahci_da850: add support for the da850,clk_multiplier DT property

2017-01-13 Thread David Lechner
On 01/13/2017 06:38 AM, Bartosz Golaszewski wrote: Currently the clock multiplier is hardcoded in the driver for the da850-evm board. Make it configurable over DT, but keep the previous value as default in case the property is missing. Signed-off-by: Bartosz Golaszewski

[PATCH v2 2/2] ARM: davinci_all_defconfig: enable iio

2017-01-13 Thread David Lechner
This enables the iio subsystem. This will be used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/configs/davinci_all_def

[PATCH v2 0/2] ARM: davinci_all_defconfig: enable iio

2017-01-13 Thread David Lechner
). [1]: https://patchwork.kernel.org/patch/9500063/ David Lechner (2): ARM: davinci: Allocate extra interrupts ARM: davinci_all_defconfig: enable iio arch/arm/configs/davinci_all_defconfig| 9 + arch/arm/mach-davinci/include/mach/irqs.h | 4 +++- 2 files changed, 12 insertions(+), 1

Re: [PATCH 09/10] ARM: dts: da850: add the SATA node

2017-01-13 Thread David Lechner
On 01/13/2017 06:38 AM, Bartosz Golaszewski wrote: Add the SATA node to the da850 device tree. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi

[PATCH v4 3/4] dt-bindings: add "microchip,24c128" compatible string

2017-01-13 Thread David Lechner
This adds "microchip,24c128" to the list of compatible strings for i2c eeproms. Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/eepr

[PATCH v4 4/4] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-13 Thread David Lechner
tion table in the EV3 device tree file. In the unlikely case that anyone does create their own firmware image with different partitioning, they can use a modern U-Boot in their own firmware image that modifies the device tree with the custom partitions. Signed-off-by: David Lechner <da...@lechnology.c

[PATCH v4 2/4] dt-bindings: Add LEGO MINDSTORMS EV3 compatible specification

2017-01-13 Thread David Lechner
This adds the board level device tree specification for LEGO MINDSTORMS EV3 Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/arm/davinci.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/davinci.

[PATCH v4 1/4] dt-bindings: Add vendor prefix for LEGO

2017-01-13 Thread David Lechner
Add a vendor prefix for LEGO Systems A/S Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bi

[PATCH v4 0/4] Support for LEGO MINDSTORMS EV3

2017-01-13 Thread David Lechner
* Enabled pwms * Used preferred bindings for flash partitions * Added A/DC spi device * Enabled USB David Lechner (4): dt-bindings: Add vendor prefix for LEGO dt-bindings: Add LEGO MINDSTORMS EV3 compatible specification dt-bindings: add "microchip,24c128" compatible st

Re: [PATCH v3] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-13 Thread David Lechner
On 01/13/2017 12:16 PM, David Lechner wrote: On 01/13/2017 06:04 AM, Sekhar Nori wrote: On Friday 13 January 2017 02:02 AM, David Lechner wrote: This adds a device tree definition file for LEGO MINDSTORMS EV3. ... There are couple of checkpatch errors that show up. The compatible "leg

Re: [RESEND] spi: davinci: Allow device tree devices to use DMA

2017-01-09 Thread David Lechner
On 01/09/2017 01:48 PM, Mark Brown wrote: On Thu, Jan 05, 2017 at 09:26:17PM -0600, David Lechner wrote: This allows SPI devices specified in a device tree to use DMA when the master controller. Since device tree is supposed to only describe the hardware, adding such a configuration option

Re: [PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-11 Thread David Lechner
On 01/11/2017 04:42 AM, Sekhar Nori wrote: On Friday 06 January 2017 10:03 AM, David Lechner wrote: + beeper { + compatible = "pwm-beeper"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>, <_pins>

[PATCH 1/3] DT/bindings: Add bindings for TI ADS7950 A/DC chips

2017-01-11 Thread David Lechner
This adds device tree bindings for the TI ADS7950 family of A/DC chips. Signed-off-by: David Lechner <da...@lechnology.com> --- .../devicetree/bindings/iio/adc/ti-ads7950.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 0/3] ti,ads7950 device tree bindings

2017-01-11 Thread David Lechner
anyone with these changes. David Lechner (3): DT/bindings: Add bindings for TI ADS7950 A/DC chips iio: adc: ti-ads7950: Drop "ti-" prefix from module name iio: adc: ti-ads7950: Change regulator matching string to "vref" .../devicetree/bindings/iio/adc/ti-

[PATCH 3/3] iio: adc: ti-ads7950: Change regulator matching string to "vref"

2017-01-11 Thread David Lechner
This changes the reference voltage regulator matching string from "refin" to "vref". This is to be consistent with other A/DC chips that also use "vref-supply" in their device tree bindings. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/iio

[PATCH 2/3] iio: adc: ti-ads7950: Drop "ti-" prefix from module name

2017-01-11 Thread David Lechner
LEGO MINDSTORMS EV3 with the following device tree node: adc@3 { compatible = "ti,ads7957"; reg = <3>; #io-channel-cells = <1>; spi-max-frequency = <1000>; vref-supply = <

[PATCH v3] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-12 Thread David Lechner
tion table in the EV3 device tree file. In the unlikely case that anyone does create their own firmware image with different partitioning, they can use a modern U-Boot in their own firmware image that modifies the device tree with the custom partitions. Signed-off-by: David Lechner <da...@lechnology

Re: [PATCH 1/3] DT/bindings: Add bindings for TI ADS7950 A/DC chips

2017-01-14 Thread David Lechner
On 01/14/2017 06:53 AM, Jonathan Cameron wrote: On 11/01/17 17:52, David Lechner wrote: This adds device tree bindings for the TI ADS7950 family of A/DC chips. Signed-off-by: David Lechner <da...@lechnology.com> This is in of itself good, but we may need to have some deprecated el

Re: [PATCH 2/3] iio: adc: ti-ads7950: Drop "ti-" prefix from module name

2017-01-14 Thread David Lechner
On 01/14/2017 06:49 AM, Jonathan Cameron wrote: On 11/01/17 17:52, David Lechner wrote: This drops the "ti-" prefix from the module name. It makes the module name consistent with other iio ti-ads* drivers and it makes the driver work with device tree (the spi subsystem drops the &q

Re: [PATCH 3/3] iio: adc: ti-ads7950: Change regulator matching string to "vref"

2017-01-14 Thread David Lechner
On 01/14/2017 06:52 AM, Jonathan Cameron wrote: On 11/01/17 17:52, David Lechner wrote: This changes the reference voltage regulator matching string from "refin" to "vref". This is to be consistent with other A/DC chips that also use "vref-supply" in their dev

Re: [RESEND 3/3] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-10 Thread David Lechner
On 01/10/2017 03:27 AM, Sekhar Nori wrote: On Monday 09 January 2017 09:41 PM, David Lechner wrote: This enables the iio subsystem and the TI ADS7950 driver. This is used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. Signed-off-by: David Lechner <da...@lechnology.com> --- ar

[PATCH v2 0/3] Input: add optional amplifier regulator to pwm-beeper​ (previously "Input: add optional enable gpio to pwm-beeper​")

2017-01-11 Thread David Lechner
egacy pwm_request API" David Lechner (3): Input: pwm-beeper: suppress error message on probe defer dt-bindings: Input: Add optional amp-supply property to pwm-beeper Input: pwm-beeper: add optional amplifier regulator .../devicetree/bindings/input/pwm-beeper.txt | 16 ++ dri

[PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator

2017-01-11 Thread David Lechner
This adds an optional regulator to the pwm-beeper device. This regulator acts as an amplifier. The amplifier is only enabled while beeping in order to reduce power consumption. Tested on LEGO MINDSTORMS EV3, which has a speaker connected to PWM through an amplifier. Signed-off-by: David Lechner

[PATCH v2 2/3] dt-bindings: Input: Add optional amp-supply property to pwm-beeper

2017-01-11 Thread David Lechner
This adds an optional amp-supply property to pwm-beeper. This is a regulator that acts as an amplifier for the beeper. Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/input/pwm-beeper.txt | 16 1 file changed, 16 insertions(+)

[PATCH v2 1/3] Input: pwm-beeper: suppress error message on probe defer

2017-01-11 Thread David Lechner
This suppress printing an error message when pwm_get returns -EPROBE_DEFER. Otherwise you get a bunch of noise in the kernel log. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/input/misc/pwm-beeper.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH] regulator: Fix regulator_get_error_flags() signature mismatch

2016-12-04 Thread David Lechner
The function signature of does not match regulator_get_error_flags() when CONFIG_REGULATOR is not defined vs. when it is not defined. This makes both declarations match to prevent compiler errors. Signed-off-by: David Lechner <da...@lechnology.com> --- include/linux/regulator/consumer

[PATCH] regulator: core: add newline in debug message

2016-12-04 Thread David Lechner
This adds a trailing newline to a debug message. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index cd864a7..05d4a29 100644 --- a/d

[PATCH v3 0/4] TI DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x UART

2017-01-05 Thread David Lechner
t have any Keystone boards. David Lechner (4): doc: DT: Add ti,da830-uart to serial/8250 bindings serial: 8250: Add new port type for TI DA8xx/66AK2x ARM: da850: Add ti,da830-uart compatible for serial ports ARM: dts: keystone: Add "ti,da830-uart" compatible string Documentation/device

[PATCH v3 3/4] ARM: da850: Add ti,da830-uart compatible for serial ports

2017-01-05 Thread David Lechner
t; is left in the compatible specification since it does work as long as the bootloader configures the SoC UART power management registers. Signed-off-by: David Lechner <da...@lechnology.com> --- v3 changes: * None v2 changes: * None arch/arm/boot/dts/da850.dtsi | 9 ++--- 1 file chang

[PATCH v3 1/4] doc: DT: Add ti,da830-uart to serial/8250 bindings

2017-01-05 Thread David Lechner
This adds the ti,da830-uart compatible string to serial 8250 UART bindings. Signed-off-by: David Lechner <da...@lechnology.com> Acked-by: Rob Herring <r...@kernel.org> --- v3 changes: * None v2 changes: * picked up Acked-by: Documentation/devicetree/bindings/serial/8250.txt |

[PATCH v3 2/4] serial: 8250: Add new port type for TI DA8xx/66AK2x

2017-01-05 Thread David Lechner
. This is currently handled in arch/arm/mach-davinci/serial.c for non-device-tree boards. Making this part of the UART driver will allow UART to work on device-tree boards as well and the mach code can eventually be removed. Signed-off-by: David Lechner <da...@lechnology.com> Acked-by: Sekhar Nori

[PATCH v3 4/4] ARM: dts: keystone: Add "ti,da830-uart" compatible string

2017-01-05 Thread David Lechner
compatible specification since it does work as long as the bootloader configures the SoC UART power management registers. Signed-off-by: David Lechner <da...@lechnology.com> --- v3 changes: * None v2 changes: * This is a new patch in v2 arch/arm/boot/dts/keystone-k2g.dtsi | 2 +- arch/arm/b

Re: [PATCH 1/2] ARM: dts: da850: Add usb device node

2017-01-05 Thread David Lechner
Hi Sekhar, On 11/21/2016 10:59 AM, Axel Haslam wrote: Add the usb1 device node for the da850 soc. This will allow boards to use the usb1 port when booting through DT. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850.dtsi | 8 1 file changed, 8

Re: [PATCH 3/3] Input: pwm-beeper: add optional enable gpio

2017-01-06 Thread David Lechner
On 01/06/2017 11:28 AM, Andy Shevchenko wrote: On Fri, Jan 6, 2017 at 4:43 AM, David Lechner <da...@lechnology.com> wrote: This adds an optional enable gpio to the pwm-beeper device. This gpio is used in cases where the beeper needs to be switched on before using it. Isn't it a pr

[PATCH 2/3] dt-bindings: Input: Add enable-gpios to pwm-beeper

2017-01-05 Thread David Lechner
This adds an optional enable-gpios property to pwm-beeper. This gpio is used to enable the beeper. For example, the beeper may have an amplifier that needs to be switched on. Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/input/pwm-beeper.tx

[RESEND] spi: davinci: Allow device tree devices to use DMA

2017-01-05 Thread David Lechner
with DMA. Unfortunately, this excludes the possibility of using one SPI device with DMA and one without on the same master. Signed-off-by: David Lechner <da...@lechnology.com> --- When I originally submitted this patch, there was some discussion as to whether dspi->dma_rx should be changed

Re: [PATCH 2/3] Input: pwm-beeper - switch to using managed resources

2017-01-06 Thread David Lechner
On 01/06/2017 12:20 PM, Dmitry Torokhov wrote: e of managed resources (devm) simplifies error handling and teardown ^ Looks like the commit message got cut off. of the driver.

Re: [v2, 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching

2017-01-03 Thread David Lechner
On 01/03/2017 02:58 AM, Sekhar Nori wrote: On Monday 02 January 2017 01:34 PM, Sekhar Nori wrote: On Saturday 31 December 2016 06:22 AM, David Lechner wrote: On 08/10/2016 06:00 AM, Karl Beldan wrote: Many davinci boards (da830 and da850 families) don't have their clocks in DT yet and won't

[RESEND 0/3] davinci_all_defconfig patches for LEGO MINDSTORMS EV3

2017-01-09 Thread David Lechner
Resending the patches that were missing my Signed-off-by: David Lechner (3): ARM: davinci_all_defconfig: enable DA8xx pinconf ARM: davinci_all_defconfig: Enable PWM modules ARM: davinci_all_defconfig: enable iio and ADS7950 arch/arm/configs/davinci_all_defconfig | 11 +++ 1 file

[RESEND 2/3] ARM: davinci_all_defconfig: Enable PWM modules

2017-01-09 Thread David Lechner
This enables PWM and the TI ECAP and EHRWPM modules. These are used on LEGO MINDSTORMS EV3. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/ar

[RESEND 1/3] ARM: davinci_all_defconfig: enable DA8xx pinconf

2017-01-09 Thread David Lechner
This enables the DA8xx pinconf driver by default. It is needed by LEGO MINDSTORMS EV3. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/c

[RESEND 3/3] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-09 Thread David Lechner
This enables the iio subsystem and the TI ADS7950 driver. This is used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/c

Re: [v2, 1/4] ARM: davinci: da8xx-dt: Add ti-aemif lookup for clock matching

2016-12-30 Thread David Lechner
On 08/10/2016 06:00 AM, Karl Beldan wrote: Many davinci boards (da830 and da850 families) don't have their clocks in DT yet and won't be successful in getting an unnamed aemif clock without explicitly registering them via clk_lookups, failing the ti-aemif memory driver probe. The current aemif

[PATCH] Revert "usb: gadget: f_hid: use alloc_ep_req()"

2017-01-02 Thread David Lechner
This reverts commit ba1582f22231821c57534e87b077d84adbc15dbd. I am getting a null pointer dereference when setting up an hid gadget using configfs. Reverting this commit fixes the crash. dmesg: [ 382.406622] Unable to handle kernel NULL pointer dereference at virtual address 0002 [

[PATCH] usb: gadget: Fix copy/pasted error message

2017-01-02 Thread David Lechner
This fixes an error message that was probably copied and pasted. The same message is used for both the in and out endpoints, so it makes it impossible to know which one actually failed because both cases say "IN". Make the out endpoint error message say "OUT". Signed-off-b

[PATCH v2 2/4] serial: 8250: Add new port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx/C66x

2017-01-04 Thread David Lechner
. This is currently handled in arch/arm/mach-davinci/serial.c for non-device-tree boards. Making this part of the UART driver will allow UART to work on device-tree boards as well and the mach code can eventually be removed. Signed-off-by: David Lechner <da...@lechnology.com> --- v2 changes: * Added C66x t

[PATCH v2 3/4] ARM: da850: Add ti,da830-uart compatible for serial ports

2017-01-04 Thread David Lechner
t; is left in the compatible specification since it does work as long as the bootloader configures the SoC UART power management registers. Signed-off-by: David Lechner <da...@lechnology.com> --- v2 changes: * None arch/arm/boot/dts/da850.dtsi | 9 ++--- 1 file changed, 6 insertions

[PATCH v2 0/4] TI DA8xx/OMAPL13x/AM17xx/AM18xx/C66x UART

2017-01-04 Thread David Lechner
for TI Keystone processors. * New patch for Keystone device tree. This is untested as I don't have any Keystone boards. David Lechner (4): doc: DT: Add ti,da830-uart to serial/8250 bindings serial: 8250: Add new port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx/C66x ARM: da850: Add ti,da830

[PATCH v2 4/4] ARM: dts: keystone: Add "ti,da830-uart" compatible string

2017-01-04 Thread David Lechner
compatible specification since it does work as long as the bootloader configures the SoC UART power management registers. Signed-off-by: David Lechner <da...@lechnology.com> --- v2 changes: * This is a new patch in v2 arch/arm/boot/dts/keystone-k2g.dtsi | 2 +- arch/arm/boot/dts/keyst

[PATCH v2 1/4] doc: DT: Add ti,da830-uart to serial/8250 bindings

2017-01-04 Thread David Lechner
This adds the ti,da830-uart compatible string to serial 8250 UART bindings. Signed-off-by: David Lechner <da...@lechnology.com> Acked-by: Rob Herring <r...@kernel.org> --- v2 changes: * picked up Acked-by: Documentation/devicetree/bindings/serial/8250.txt | 1 + 1 file changed,

[PATCH v2 5/5] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-05 Thread David Lechner
ware image that modifies the device tree with the custom partitions. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/da850-lego-ev3.dts | 381 +++ 2 files changed, 383 insertions(+), 1 del

[PATCH v2 4/5] ARM: davinci_all_defconfig: enable pwm-beeper

2017-01-05 Thread David Lechner
This enables the pwm-beeper module. This is used by the speaker on LEGO MINDSTORMS EV3. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/c

[PATCH v2 0/5] Support for LEGO MINDSTORMS EV3

2017-01-05 Thread David Lechner
l.org/patch/9438709/ [3]: https://patchwork.kernel.org/patch/9499937/ [4]: https://patchwork.kernel.org/patch/9439839/ [5]: https://patchwork.kernel.org/patch/9476509/ [6]: https://patchwork.kernel.org/patch/9499459/ [7]: https://patchwork.kernel.org/patch/9499457/ [8]: https://patchwork.kernel.org/patch/

[PATCH v2 3/5] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-05 Thread David Lechner
This enables the iio subsystem and the TI ADS7950 driver. This is used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. --- The CONFIG_TI_ADS7950 driver is currently in iio/testing, so some coordination may be needed before picking up this patch. arch/arm/configs/davinci_all_defconfig | 7

[PATCH v2 1/5] ARM: davinci_all_defconfig: enable DA8xx pinconf

2017-01-05 Thread David Lechner
This enables the DA8xx pinconf driver by default. It is needed by LEGO MINDSTORMS EV3. --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index ddb586a..a12e4c2 100644 ---

[PATCH v2 2/5] ARM: davinci_all_defconfig: Enable PWM modules

2017-01-05 Thread David Lechner
This enables PWM and the TI ECAP and EHRWPM modules. These are used on LEGO MINDSTORMS EV3. --- arch/arm/configs/davinci_all_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index a12e4c2..2b1967a

[PATCH] pinctrl: da850-pupd: Add to module device table

2017-01-05 Thread David Lechner
This adds the pintrol-da850-pupd driver to the module device table so that udev will automatically bind the driver to the device. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/pinctrl/pinctrl-da850-pupd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/p

[PATCH 0/3] Input: add optional enable gpio to pwm-beeper

2017-01-05 Thread David Lechner
This series adds an optional enable gpio to the pwm-beeper driver. This is for cases when the beeper needs to be "enabled", for example, if there is an amplifier that drives the speaker that is not always on. David Lechner (3): Input: pwm-beeper: suppress error message on probe

[PATCH 3/3] Input: pwm-beeper: add optional enable gpio

2017-01-05 Thread David Lechner
an amplifier. The amplifier has an enable pin that is connected to a gpio. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/input/misc/pwm-beeper.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/inpu

[PATCH 1/3] Input: pwm-beeper: suppress error message on probe defer

2017-01-05 Thread David Lechner
This suppress printing an error message when pwm_get/pwm_request returns -EPROBE_DEFER. Otherwise you get a bunch of noise in the kernel log. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/input/misc/pwm-beeper.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

[PATCH 0/3] TI DA8xx/OMAPL13x/AM17xx/AM18xx UART

2016-12-20 Thread David Lechner
This series adds a new UART port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx UART. This SoCs have a non-standard register for UART power management that needs special handling in the UART driver. David Lechner (3): doc: DT: Add ti,da830-uart to serial/8250 bindings serial: 8250: Add new port

[PATCH 2/3] serial: 8250: Add new port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx

2016-12-20 Thread David Lechner
handled in arch/arm/mach-davinci/serial.c for non-device-tree boards. Making this part of the UART driver will allow UART to work on device-tree boards as well and the mach code can eventually be removed. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/tty/serial/8250/825

[PATCH 1/3] doc: DT: Add ti,da830-uart to serial/8250 bindings

2016-12-20 Thread David Lechner
This adds the ti,da830-uart compatible string to serial 8250 UART bindings. Signed-off-by: David Lechner <da...@lechnology.com> --- Documentation/devicetree/bindings/serial/8250.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/8250.

[PATCH 3/3] ARM: da850: Add ti,da830-uart compatible for serial ports

2016-12-20 Thread David Lechner
t; is left in the compatible specification since it does work as long as the bootloader configures the SoC UART power management registers. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/boot/dts/da850.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff

Re: [2/3] serial: 8250: Add new port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx

2016-12-22 Thread David Lechner
On 12/22/2016 09:21 AM, Franklin S Cooper Jr wrote: On 12/20/2016 02:23 PM, David Lechner wrote: This adds a new UART port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx. These SoCs have standard 8250 registers plus some extra non-standard registers. The UART will not function unless the non

Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator

2017-01-15 Thread David Lechner
On 01/15/2017 06:34 PM, Dmitry Torokhov wrote: On Sun, Jan 15, 2017 at 06:12:29PM -0600, David Lechner wrote: On 01/14/2017 01:19 PM, Dmitry Torokhov wrote: On Wed, Jan 11, 2017 at 02:02:01PM -0600, David Lechner wrote: This adds an optional regulator to the pwm-beeper device. This regulator

Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator

2017-01-15 Thread David Lechner
On 01/14/2017 01:19 PM, Dmitry Torokhov wrote: On Wed, Jan 11, 2017 at 02:02:01PM -0600, David Lechner wrote: This adds an optional regulator to the pwm-beeper device. This regulator acts as an amplifier. The amplifier is only enabled while beeping in order to reduce power consumption. Tested

[PATCH] ARM: dts: da850: move spi0_cs3_pin pinconf node

2017-03-27 Thread David Lechner
This moves the spi0_cs3_pin pinconf node from the LEGO EV3 file to the common DA850 include file. This node is applicable to any board, and therefore belongs in the common file. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/boot/dts/da850-lego-ev3.dts | 7 --- ar

[PATCH 3/3] ARM: dts: da850: Add node for LEGO MINDSTORMS EV3 Battery

2017-04-03 Thread David Lechner
This adds a new node to the LEGO MINDSTORMS EV3 device tree for the battery. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/boot/dts/da850-lego-ev3.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts

Re: [PATCH] power: supply: sysfs: parse string as enum when writing property

2017-04-11 Thread David Lechner
On 04/11/2017 11:12 AM, Sebastian Reichel wrote: Hi, On Mon, Apr 03, 2017 at 02:52:57PM -0500, David Lechner wrote: This fixes the TODO to parse strings and convert them to enum values when writing to a power_supply class property sysfs attribute. There is at least one driver that has

[PATCH v2 0/3] LEGO MINDSTORMS EV3 Battery

2017-04-11 Thread David Lechner
This series adds support for the LEGO MINDSTORMS EV3 battery. v2 changes: * use devm_power_supply_register() David Lechner (3): dt-bindings: power: supply: New bindings for LEGO MINDSTORMS EV3 battery power: supply: New driver for LEGO MINDSTORMS EV3 battery ARM: dts: da850: Add node

[PATCH v2 3/3] ARM: dts: da850: Add node for LEGO MINDSTORMS EV3 Battery

2017-04-11 Thread David Lechner
This adds a new node to the LEGO MINDSTORMS EV3 device tree for the battery. Signed-off-by: David Lechner <da...@lechnology.com> --- arch/arm/boot/dts/da850-lego-ev3.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts

[PATCH v2 2/3] power: supply: New driver for LEGO MINDSTORMS EV3 battery

2017-04-11 Thread David Lechner
alkaline batteries to power the device, but it is also common for people to use rechargeable NiMH batteries. Since there is not a way to automatically differentiate between these, the technology property is made writable. Signed-off-by: David Lechner <da...@lechnology.com> --- drivers/power/

[PATCH v2 1/3] dt-bindings: power: supply: New bindings for LEGO MINDSTORMS EV3 battery

2017-04-11 Thread David Lechner
This add a new device tree binding for LEGO MINDSTORMS EV3 battery. The EV3 has some built-in capability for monitoring the attached battery. Signed-off-by: David Lechner <da...@lechnology.com> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/power/supply/lego_ev3_battery.t

<    1   2   3   4   5   6   7   8   9   10   >