[U-Boot] [PATCH v4 00/35] ARM: i.MX6: SabreSD: Add dts support

Jagan Teki jagan at openedev.com
Sun Apr 9 06:52:21 UTC 2017


This series has full possible dts support for SabreSD DualLite,
Quad and Quad Plus and DCD code for DualLite has added in SPL code.

The main intention of this series is to add the dts node step
by step and remove the legacy code at the end and to make
the full functional dts.

Preserved non-spl defconfigs, So 3 spl defconfigs and 2 non-spl defconfigs
with dtb-enabled.

Changes for v4:
- rebase on master
- Rename imx6[dl|q]_sabresd_spl_defconfig to imx6[dl|q]_sabresd_spl_defconfig 
- Update README
- Move CONFIG_FEC_MXC to configs/mx6[dl|q|qp]sabreauto_defconfigs
- Add dts support for non-spl based defconfigs

Changes for v3:
- rebase on master
- Added patch 'ARM: i.MX6: sabresd: Cleanup board code'
- Added patch 'ARM: i.MX6DL: sabresd: Move DCD reginit on SPL'

Changes for v2:
- rebase on master
- Added new-patches.

Tested: UART, MMC, I2C, FEC(with basic ping)

Boot from SD:
-------------
U-Boot SPL 2017.03-gb8f5c59 (Apr 09 2017 - 12:18:25)                                                 
Trying to boot from MMC1                                                                             
                                                                                                     
                                                                                                     
U-Boot 2017.03-gb8f5c59 (Apr 09 2017 - 12:18:25 +0530)                                               
                                                                                                     
CPU:   Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)                                         
CPU:   Automotive temperature grade (-40C to 125C) at 29C                                            
Reset cause: POR                                                                                     
Model: Freescale i.MX6 Quad Plus SABRE Smart Device Board                                            
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

PCI:   pcie phy link never came up
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet at 02188000 using MAC address from ROM
eth0: ethernet at 02188000
Hit any key to stop autoboot:  0 
=> dm tree
 Class       Probed   Name
----------------------------------------
 root        [ + ]    root_driver
 thermal     [   ]    |-- imx_thermal
 simple_bus  [ + ]    `-- soc
 simple_bus  [ + ]        |-- aips-bus at 02000000
 simple_bus  [   ]        |   |-- spba-bus at 02000000
 gpio        [ + ]        |   |-- gpio at 0209c000
 gpio        [ + ]        |   |-- gpio at 020a0000
 gpio        [ + ]        |   |-- gpio at 020a4000
 gpio        [ + ]        |   |-- gpio at 020a8000
 gpio        [ + ]        |   |-- gpio at 020ac000
 gpio        [ + ]        |   |-- gpio at 020b0000
 gpio        [ + ]        |   |-- gpio at 020b4000
 simple_bus  [   ]        |   |-- anatop at 020c8000
 simple_bus  [   ]        |   |-- snvs at 020cc000
 pinctrl     [ + ]        |   `-- iomuxc at 020e0000
 pinconfig   [ + ]        |       `-- imx6qdl-sabresd
 pinconfig   [ + ]        |           |-- enetgrp
 pinconfig   [   ]        |           |-- i2c1grp
 pinconfig   [   ]        |           |-- i2c2grp
 pinconfig   [   ]        |           |-- i2c3grp
 pinconfig   [   ]        |           |-- uart1grp
 pinconfig   [   ]        |           |-- usbotggrp
 pinconfig   [ + ]        |           |-- usdhc2grp
 pinconfig   [ + ]        |           |-- usdhc3grp
 pinconfig   [ + ]        |           `-- usdhc4grp
 simple_bus  [ + ]        `-- aips-bus at 02100000
 usb         [   ]            |-- usb at 02184000
 usb         [   ]            |-- usb at 02184200
 eth         [ + ]            |-- ethernet at 02188000
 mmc         [ + ]            |-- usdhc at 02194000
 mmc         [ + ]            |-- usdhc at 02198000
 mmc         [ + ]            |-- usdhc at 0219c000
 i2c         [   ]            |-- i2c at 021a0000
 i2c         [   ]            |-- i2c at 021a4000
 pmic        [   ]            |   `-- pfuze100 at 08
 i2c         [   ]            `-- i2c at 021a8000
=> i2c bus
Bus 0:  i2c at 021a0000
Bus 1:  i2c at 021a4000
   08: pfuze100 at 08, offset len 1, flags 0
Bus 2:  i2c at 021a8000
=> i2c dev 1
Setting bus to 1
=> i2c speed 10000
Setting bus speed to 10000 Hz
=> i2c probe
Valid chip addresses: 08 48
=> 

thanks!
Jagan.

Jagan Teki (35):
  ARM: i.MX6: sabresd: Fix README - s/of=/dev/sdbbs=1K/of=/dev/sdb
    bs=1K/
  ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi
  ARM: dts: imx6qdl-sabresd: Add imx6q-sabresd.dts
  ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT
  ARM: i.MX6Q: sabresd: Add initial devicetree support
  ARM: dts: imx6qdl-sabresd: Add imx6qp-sabresd.dts
  ARM: i.MX6QP: sabresd: Add initial devicetree support
  ARM: i.MX6: sabresd: Move CONFIG_SYS_I2C_MXC to defconfigs
  ARM: dts: imx6qdl-sabresd: Add I2C node's
  ARM: dts: imx6qdl-sabresd: Add PMIC pfuze100 node
  ARM: i.MX6: sabresd: Enable DM_I2C and DM_PMIC
  ARM: i.MX6: sabresd: defconfig move - CONFIG_USB_EHCI(_MX6)
  ARM: dts: imx6qdl-sabresd: Add usb host node
  ARM: dts: imx6qdl-sabresd: Add usb otg node
  ARM: i.MX6: sabresd: Enable CONFIG_DM_REGULATOR
  ARM: i.MX6: sabresd: Enable DM_USB
  ARM: dts: imx6qdl-sabresd: Add FEC node
  ARM: i.MX6: sabre: Move CONFIG_FEC_MXC to defconfigs
  ARM: i.MX6: sabresd: Enable DM_ETH
  ARM: i.MX6: sabresd: Add dm_gpio_* for backlight
  ARM: i.MX6: sabresd: Add imx6_pcie_toggle_power
  ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset
  ARM: i.MX6DL: sabresd: Move DCD reginit on SPL
  ARM: dts: imx6qdl-sabresd: Add imx6dl-sabresd.dts
  ARM: i.MX6DL: sabresd: Add initial devicetree support
  ARM: i.MX6: %s/mx6[dl|q]sabresd_defconfig/imx6[dl|q]_sabresd_defconfig
  ARM: i.MX6Q: sabresd: Add dts support for imx6q_sabresd
  ARM: i.MX6DL: sabresd: Add dts support for imx6dl_sabresd
  ARM: i.MX6: sabresd: Drop legacy non-fdt code
  ARM: i.MX6: %s/mx6sabresd/imx6sabresd
  ARM: i.MX6: %s/MX6SABRESD/IMX6SABRESD
  ARM: i.MX6: sabresd: Move DM_* and OF_CONTROL to arch Kconfig
  ARM: i.MX6: sabresd: Update README
  ARM: i.MX6: sabresd: Drop checkboard
  ARM: i.MX6: sabresd: Cleanup board code

 arch/arm/cpu/armv7/mx6/Kconfig                     |  26 +-
 arch/arm/dts/Makefile                              |   3 +
 arch/arm/dts/imx6dl-sabresd.dts                    |  17 +
 arch/arm/dts/imx6q-sabresd.dts                     |  21 +
 arch/arm/dts/imx6qdl-sabresd.dtsi                  | 235 ++++++
 arch/arm/dts/imx6qp-sabresd.dts                    |  85 +++
 .../freescale/{mx6sabresd => imx6sabresd}/Kconfig  |   6 +-
 board/freescale/imx6sabresd/MAINTAINERS            |  11 +
 .../freescale/{mx6sabresd => imx6sabresd}/Makefile |   2 +-
 board/freescale/{mx6sabresd => imx6sabresd}/README |  50 +-
 .../mx6sabresd.c => imx6sabresd/imx6sabresd.c}     | 785 ++++++++++-----------
 board/freescale/mx6sabresd/MAINTAINERS             |   8 -
 ...lsabresd_defconfig => imx6dl_sabresd_defconfig} |  12 +-
 configs/imx6dl_sabresd_spl_defconfig               |  60 ++
 ...6qsabresd_defconfig => imx6q_sabresd_defconfig} |  12 +-
 ...d_spl_defconfig => imx6q_sabresd_spl_defconfig} |  15 +-
 configs/imx6qp_sabresd_spl_defconfig               |  60 ++
 configs/mx6dlsabreauto_defconfig                   |   2 +
 configs/mx6qpsabreauto_defconfig                   |   2 +
 configs/mx6qsabreauto_defconfig                    |   2 +
 include/configs/{mx6sabresd.h => imx6sabresd.h}    |  25 +-
 include/configs/mx6sabre_common.h                  |   3 +-
 22 files changed, 950 insertions(+), 492 deletions(-)
 create mode 100644 arch/arm/dts/imx6dl-sabresd.dts
 create mode 100644 arch/arm/dts/imx6q-sabresd.dts
 create mode 100644 arch/arm/dts/imx6qdl-sabresd.dtsi
 create mode 100644 arch/arm/dts/imx6qp-sabresd.dts
 rename board/freescale/{mx6sabresd => imx6sabresd}/Kconfig (56%)
 create mode 100644 board/freescale/imx6sabresd/MAINTAINERS
 rename board/freescale/{mx6sabresd => imx6sabresd}/Makefile (86%)
 rename board/freescale/{mx6sabresd => imx6sabresd}/README (52%)
 rename board/freescale/{mx6sabresd/mx6sabresd.c => imx6sabresd/imx6sabresd.c} (69%)
 delete mode 100644 board/freescale/mx6sabresd/MAINTAINERS
 rename configs/{mx6dlsabresd_defconfig => imx6dl_sabresd_defconfig} (78%)
 create mode 100644 configs/imx6dl_sabresd_spl_defconfig
 rename configs/{mx6qsabresd_defconfig => imx6q_sabresd_defconfig} (78%)
 rename configs/{mx6sabresd_spl_defconfig => imx6q_sabresd_spl_defconfig} (80%)
 create mode 100644 configs/imx6qp_sabresd_spl_defconfig
 rename include/configs/{mx6sabresd.h => imx6sabresd.h} (71%)

-- 
1.9.1



More information about the U-Boot mailing list