All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/5] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS
@ 2019-06-14  6:49 Lukasz Majewski
  2019-06-14  6:49 ` [U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2) Lukasz Majewski
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Lukasz Majewski @ 2019-06-14  6:49 UTC (permalink / raw)
  To: u-boot

This patch series converts some i.MX28 drivers to use DM/DTS.

Converted drivers:
- mxs_gpio.c - gpio driver
- pinctrl-mxs.c - pinmux driver
- Adjust fec_eth.c to support also i.MX28 SoC.
- mxs_spi.c - SPI driver

This patch series shall help with coordinated i.MX28 DM/DTS
conversion and avoidance of effort duplication.

After applying this series it is possible to use ETH on i.MX28
board with following DTS description:

        &mac0 {
    	phy-mode = "rmii";
    	pinctrl-names = "default";
    	pinctrl-0 = <&mac0_pins_a>;
    	phy-supply = <&reg_fec_3v3>;
    	phy-reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
    	phy-reset-duration = <1>;
    	phy-reset-post-delay = <1>;
    	status = "okay";

    	fixed-link {
    	      speed = <100>;
    	      full-duplex;
    	};
};

And store the received binaries on SPI-NOR memory.

Travis-CI:
https://travis-ci.org/lmajewski/u-boot-dfu/builds/545476866

Applied on top of u-boot/master branch
SHA1: c2ea87883ef309570c8903e6de4b8b78685d73d0


Changes in v2:
- Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GPIO
- New patch (conversion of mxs_spi.c to DM_SPI)

Lukasz Majewski (5):
  DTS: imx28: Copy imx28 device tree related files from Linux kernel
    (v5.1.2)
  imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver
  DM: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver
    (DM_GPIO)
  imx: pinctrl: Add support for i.MX28 mxs pinctrl driver
  DM: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI
    conversion)

 arch/arm/dts/imx28-pinfunc.h         |  506 +++++++++++++
 arch/arm/dts/imx28.dtsi              | 1330 ++++++++++++++++++++++++++++++++++
 arch/arm/dts/mxs-pinfunc.h           |   31 +
 arch/arm/include/asm/arch-mxs/gpio.h |   28 +
 drivers/gpio/mxs_gpio.c              |  149 ++++
 drivers/net/Kconfig                  |    2 +-
 drivers/net/fec_mxc.c                |    1 +
 drivers/pinctrl/nxp/Kconfig          |   10 +
 drivers/pinctrl/nxp/Makefile         |    1 +
 drivers/pinctrl/nxp/pinctrl-mxs.c    |  164 +++++
 drivers/spi/mxs_spi.c                |  393 +++++++---
 11 files changed, 2531 insertions(+), 84 deletions(-)
 create mode 100644 arch/arm/dts/imx28-pinfunc.h
 create mode 100644 arch/arm/dts/imx28.dtsi
 create mode 100644 arch/arm/dts/mxs-pinfunc.h
 create mode 100644 drivers/pinctrl/nxp/pinctrl-mxs.c

-- 
2.11.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-14 12:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14  6:49 [U-Boot] [PATCH v2 0/5] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS Lukasz Majewski
2019-06-14  6:49 ` [U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2) Lukasz Majewski
2019-06-14 10:25   ` Marek Vasut
2019-06-14 10:41     ` Lukasz Majewski
2019-06-14 10:49       ` Marek Vasut
2019-06-14 12:09         ` Lukasz Majewski
2019-06-14  6:49 ` [U-Boot] [PATCH v2 2/5] imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver Lukasz Majewski
2019-06-14  6:49 ` [U-Boot] [PATCH v2 3/5] DM: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO) Lukasz Majewski
2019-06-14  6:49 ` [U-Boot] [PATCH v2 4/5] imx: pinctrl: Add support for i.MX28 mxs pinctrl driver Lukasz Majewski
2019-06-14  6:49 ` [U-Boot] [PATCH v2 5/5] DM: spi: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion) Lukasz Majewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.