From: Lukasz Majewski Date: Tue, 11 Jun 2019 10:17:58 +0200 Subject: [U-Boot] [PATCH v1 0/4] DM: Convert i.MX28 gpio, pinmux and eth drivers to DM/DTS Message-ID: <20190611081802.16557-1-lukma@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. 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 = <®_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; }; }; Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/543773376 Applied on top of u-boot/master branch SHA1: dbbb1c43f26cb28b64df80b72fffbaf2801e8a30 Lukasz Majewski (4): 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 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 +++++ 10 files changed, 2221 insertions(+), 1 deletion(-) 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