U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sukrut Bellary <sbellary@baylibre.com>
To: Tom Rini <trini@konsulko.com>
Cc: Kevin Hilman <khilman@baylibre.com>,
	Bajjuri Praneeth <praneeth@ti.com>,
	Raghavendra Vignesh <vigneshr@ti.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 0/3] Add support for eCAP PWM and LCD pin mux
Date: Wed, 21 May 2025 01:20:57 -0700	[thread overview]
Message-ID: <aC2M6d2K+/NkP+Py@dev-linux> (raw)
In-Reply-To: <20250502213218.GA1379719@bill-the-cat>

On Fri, May 02, 2025 at 03:32:18PM -0600, Tom Rini wrote:
> On Wed, Apr 23, 2025 at 01:42:46AM -0700, Sukrut Bellary wrote:
> 
> > This patch series adds the support for
> > 
> > 1. In am33xx SoC[1], enhanced capture (eCAP) supports auxiliary PWM (APWM).
> > This series adds the PWM driver support for the APWM feature for eCAP on
> > AM33xx. AM335X_ECAP0_IN_PWM0_OUT is used to enable the backlight.
> > 
> > 2. Fix build warning in ti-ehrpwm driver in dev_deb().
> > 
> > 3. Enable eCAP0 PWM and LCD pin muxing to support splash screen on
> > AM335x EVM[2].
> > 
> > [1] AM335x TRM - https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf
> > [2] AM335x EVM - https://www.ti.com/tool/TMDXEVM3358
> > 
> > per discussion on the earlier patch series,
> > https://lore.kernel.org/all/20250319202516.3300444-1-sbellary@baylibre.com/
> > dropping the device tree changes in this series due to OF_UPSTREAM
> > conflict.
> > As we are dropping the DT patch, started with the new series instead of
> > V2.
> > 
> > This series doesn't contain defconfig changes since we don't want to
> > enable LCD, splash screen and PWM support by default.
> > Enabling splash screen and PWM support in defconfig causes u-boot crash
> > on AM335x based beaglebone black. This will be handled in a separate
> > patch.
> > 
> > Sukrut Bellary (3):
> >   pwm: ti: am33xx: Enable Auxiliary PWM using eCAP
> >   pwm: ti: am33xx: Fix build warnings in dev_dbg()
> >   board: ti: am335x: Enable eCAP0 PWM and LCD pin muxing
> > 
> >  board/ti/am335x/mux.c       |  47 +++++++++
> >  drivers/pwm/Kconfig         |   6 ++
> >  drivers/pwm/Makefile        |   1 +
> >  drivers/pwm/pwm-ti-ehrpwm.c |   2 +-
> >  drivers/pwm/pwm-tiecap.c    | 198 ++++++++++++++++++++++++++++++++++++
> >  5 files changed, 253 insertions(+), 1 deletion(-)
> >  create mode 100644 drivers/pwm/pwm-tiecap.c
> 
> This currently introduces a failure to build on am335x_evm and other
> variants of the TI EVM:
>        arm:  +   am335x_evm
> +(am335x_evm) board/ti/am335x/mux.c: In function 'enable_board_pin_mux':
> +(am335x_evm) board/ti/am335x/mux.c:435:50: error: 'lcd_pin_mux' undeclared (first use in this function); did you mean 'nand_pin_mux'?
> +(am335x_evm)   435 |                         configure_module_pin_mux(lcd_pin_mux);
> +(am335x_evm)       |                                                  ^~~~~~~~~~~
> +(am335x_evm)       |                                                  nand_pin_mux
> +(am335x_evm) board/ti/am335x/mux.c:435:50: note: each undeclared identifier is reported only once for each function it appears in
> +(am335x_evm) board/ti/am335x/mux.c:438:50: error: 'ecap_pin_mux' undeclared (first use in this function); did you mean 'nand_pin_mux'?
> +(am335x_evm)   438 |                         configure_module_pin_mux(ecap_pin_mux);
> +(am335x_evm)       |                                                  ^~~~~~~~~~~~
> +(am335x_evm) make[3]: *** [scripts/Makefile.build:256: spl/board/ti/am335x/mux.o] Error 1
> +(am335x_evm) make[2]: *** [scripts/Makefile.xpl:548: spl/board/ti/am335x] Error 2
> +(am335x_evm) make[1]: *** [Makefile:2119: spl/u-boot-spl] Error 2
> +(am335x_evm) make: *** [Makefile:177: sub-make] Error 2
>

Sorry about this.
While fixing the checkpatch warning, I overlooked the CONFIG_AM335X_LCD
not set case.
I will send v2 to fix this.

> -- 
> Tom



      reply	other threads:[~2025-05-21  8:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-23  8:42 [PATCH 0/3] Add support for eCAP PWM and LCD pin mux Sukrut Bellary
2025-04-23  8:42 ` [PATCH 1/3] pwm: ti: am33xx: Enable Auxiliary PWM using eCAP Sukrut Bellary
2025-04-23  8:42 ` [PATCH 2/3] pwm: ti: am33xx: Fix build warnings in dev_dbg() Sukrut Bellary
2025-04-23  8:42 ` [PATCH 3/3] board: ti: am335x: Enable eCAP0 PWM and LCD pin muxing Sukrut Bellary
2025-05-02 21:32 ` [PATCH 0/3] Add support for eCAP PWM and LCD pin mux Tom Rini
2025-05-21  8:20   ` Sukrut Bellary [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aC2M6d2K+/NkP+Py@dev-linux \
    --to=sbellary@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=praneeth@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox