Skip to content

sunxi: Enable DM_MMC for U-Boot proper

Jagan Teki u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25ARM: dts: sun4i: Sync A10 MMC nodes from Linuxarch/arm/dts/sun4i-a10.dtsi include/dt-bindings/clock/sun4i-a10-ccu.h+232 -823 replies
2/25ARM: dts: sun4i: Sync A10 board dts mmc0 node from Linuxarch/arm/dts/sun4i-a10-a1000.dts arch/arm/dts/sun4i-a10-ba10-tvbox.dts arch/arm/dts/sun4i-a10-chuwi-v7-cw0825.dts +17 more+20 -800 replies
3/25ARM: dts: sun4i: Add mmc0 node for iNet 3Farch/arm/dts/sun4i-a10-inet-3f.dts+9 -00 replies
4/25ARM: dts: sun4i: Add mmc0 node for iNet 3Warch/arm/dts/sun4i-a10-inet-3w.dts+9 -00 replies
5/25dm: mmc: sunxi: Refactor ahb gate and clock setupdrivers/mmc/sunxi_mmc.c+28 -110 replies
6/25dm: mmc: sunxi: Add ahb reset0 register writedrivers/mmc/sunxi_mmc.c+33 -35 replies
7/25ARM: dts: sun7i: Sync A20 MMC nodes from Linuxarch/arm/dts/sun7i-a20.dtsi include/dt-bindings/clock/sun7i-a20-ccu.h+87 -680 replies
8/25ARM: dts: sun7i: Add mmc0 node for Primo73 tabletarch/arm/dts/sun7i-a20-primo73.dts+10 -103 replies
9/25ARM: dts: sun7i: Add mmc0 node for Ainol AW1arch/arm/dts/sun7i-a20-ainol-aw1.dts+13 -00 replies
10/25ARM: dts: sun7i: Add mmc0 node for Mele M5arch/arm/dts/sun7i-a20-m5.dts+12 -00 replies
11/25ARM: dts: sun7i: Add mmc0 node for Toptech BD1078arch/arm/dts/sun7i-a20-yones-toptech-bd1078.dts+13 -00 replies
12/25sunxi: A20: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+1 -00 replies
13/25mmc: sunxi: Add mmc, emmc H5/A64 compatibledrivers/mmc/sunxi_mmc.c+4 -00 replies
14/25sunxi: H3_H5: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+1 -00 replies
15/25sunxi: A64: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+1 -00 replies
16/25ARM: dts: sun8i: Update A83T dts(i) files from Linuxarch/arm/dts/axp81x.dtsi arch/arm/dts/sun8i-a83t-allwinner-h8homlet-v2.dts arch/arm/dts/sun8i-a83t-bananapi-m3.dts +5 more+2382 -800 replies
17/25mmc: sunxi: Add A83T emmc compatibledrivers/mmc/sunxi_mmc.c+2 -00 replies
18/25sunxi: A83T: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+1 -00 replies
19/25ARM: dts: sun8i: Update R40 dts(i) files from Linuxarch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts arch/arm/dts/sun8i-r40.dtsi arch/arm/dts/sun8i-v40-bananapi-m2-berry.dts+830 -330 replies
20/25sunxi: V40: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+1 -00 replies
21/25fastboot: sunxi: Update fastboot mmc default deviceconfigs/A20-OLinuXino-Lime2-eMMC_defconfig configs/Sinlinx_SinA33_defconfig configs/amarula_a64_relic_defconfig +1 more+5 -19 replies
21/25fastboot: sunxi: Update fastboot mmc default device+0 -01 reply
22/25env: sunxi: Update default env fat deviceconfigs/A20-OLinuXino-Lime2-eMMC_defconfig configs/A20-OLinuXino_MICRO-eMMC_defconfig configs/A20-OLinuXino_MICRO_defconfig +8 more+12 -13 replies
22/25env: sunxi: Update default env fat device+0 -00 replies
23/25sunxi: Use mmc_bootdev=2 for MMC2 bootboard/sunxi/board.c include/configs/sunxi-common.h+4 -23 replies
24/25sunxi: A13/A31: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+2 -00 replies
25/25sunxi: A23/A33/V3S: Enable DM_MMCarch/arm/mach-sunxi/Kconfig+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/25] sunxi: Enable DM_MMC for U-Boot proper

Enabling DM_MMC is not straight forward for Allwinner SoC's to make proper compatibility in mmc driver vs DT nodes.

Existing dm code for ahb gate clock will be suitable to handle sun4i,5i,6i and 7i U-Boot specific mmc dt nodes, which are different from Linux in terms of clocks phandle notation.

U-Boot DT clocks phandle follow direct ahb and clock address on node definition with specific bit position, but Linux clocks phandle follow macros to define AHB and MMC clocks so-that the ccu driver will set the bits accordingly.

Clocks phandle notations in U-Boot for higher Allwinner SoC start from sun8i, sun50i are following Linux notation so-that both Linux and U-Boot can have common node definition.

This series will address the ahb gate, clock setup to handle all type of Allwinner SoCs. and sync mmc node definitions from Linux for sun4i and sun5i.

Note:
- sun6i, A23, A33, V3S were untested these need to have a closer look on dt nodes along with default ENV_FAT device.

All these changes available at u-boot-sunxi/next

Let me know if any questions or missings,
Jagan.

Jagan Teki (25):
ARM: dts: sun4i: Sync A10 MMC nodes from Linux
ARM: dts: sun4i: Sync A10 board dts mmc0 node from Linux
ARM: dts: sun4i: Add mmc0 node for iNet 3F
ARM: dts: sun4i: Add mmc0 node for iNet 3W
dm: mmc: sunxi: Refactor ahb gate and clock setup
dm: mmc: sunxi: Add ahb reset0 register write
ARM: dts: sun7i: Sync A20 MMC nodes from Linux
ARM: dts: sun7i: Add mmc0 node for Primo73 tablet
ARM: dts: sun7i: Add mmc0 node for Ainol AW1
ARM: dts: sun7i: Add mmc0 node for Mele M5
ARM: dts: sun7i: Add mmc0 node for Toptech BD1078
sunxi: A20: Enable DM_MMC
mmc: sunxi: Add mmc, emmc H5/A64 compatible
sunxi: H3_H5: Enable DM_MMC
sunxi: A64: Enable DM_MMC
ARM: dts: sun8i: Update A83T dts(i) files from Linux
mmc: sunxi: Add A83T emmc compatible
sunxi: A83T: Enable DM_MMC
ARM: dts: sun8i: Update R40 dts(i) files from Linux
sunxi: V40: Enable DM_MMC
fastboot: sunxi: Update fastboot mmc default device
env: sunxi: Update default env fat device
sunxi: Use mmc_bootdev=2 for MMC2 boot
[DO NOT MERGE] sunxi: A13/A31: Enable DM_MMC [DO NOT MERGE] sunxi: A23/A33/V3S: Enable DM_MMC

 arch/arm/dts/axp81x.dtsi                      | 169 ++++
 arch/arm/dts/sun4i-a10-a1000.dts              |   5 +-
 arch/arm/dts/sun4i-a10-ba10-tvbox.dts         |   5 +-
 arch/arm/dts/sun4i-a10-chuwi-v7-cw0825.dts    |   5 +-
 arch/arm/dts/sun4i-a10-cubieboard.dts         |   5 +-
 arch/arm/dts/sun4i-a10-dserve-dsrv9703c.dts   |   5 +-
 arch/arm/dts/sun4i-a10-gemei-g9.dts           |   5 +-
 arch/arm/dts/sun4i-a10-hackberry.dts          |   5 +-
 arch/arm/dts/sun4i-a10-hyundai-a7hd.dts       |   5 +-
 arch/arm/dts/sun4i-a10-inet-3f.dts            |   9 +
 arch/arm/dts/sun4i-a10-inet-3w.dts            |   9 +
 arch/arm/dts/sun4i-a10-inet1.dts              |   5 +-
 arch/arm/dts/sun4i-a10-inet97fv2.dts          |   5 +-
 arch/arm/dts/sun4i-a10-inet9f-rev03.dts       |   5 +-
 .../dts/sun4i-a10-itead-iteaduino-plus.dts    |   5 +-
 arch/arm/dts/sun4i-a10-jesurun-q5.dts         |   5 +-
 arch/arm/dts/sun4i-a10-marsboard.dts          |   5 +-
 arch/arm/dts/sun4i-a10-mini-xplus.dts         |   5 +-
 arch/arm/dts/sun4i-a10-mk802.dts              |   5 +-
 arch/arm/dts/sun4i-a10-mk802ii.dts            |   5 +-
 arch/arm/dts/sun4i-a10-olinuxino-lime.dts     |   5 +-
 arch/arm/dts/sun4i-a10-pcduino.dts            |   5 +-
 arch/arm/dts/sun4i-a10-pov-protab2-ips9.dts   |   5 +-
 arch/arm/dts/sun4i-a10.dtsi                   | 112 +--
 arch/arm/dts/sun7i-a20-ainol-aw1.dts          |  13 +
 arch/arm/dts/sun7i-a20-m5.dts                 |  12 +
 arch/arm/dts/sun7i-a20-primo73.dts            |  20 +-
 .../dts/sun7i-a20-yones-toptech-bd1078.dts    |  13 +
 arch/arm/dts/sun7i-a20.dtsi                   | 102 +-
 .../dts/sun8i-a83t-allwinner-h8homlet-v2.dts  | 195 +++-
 arch/arm/dts/sun8i-a83t-bananapi-m3.dts       | 298 +++++-
 arch/arm/dts/sun8i-a83t-cubietruck-plus.dts   | 322 ++++++-
 arch/arm/dts/sun8i-a83t-tbs-a711.dts          | 355 ++++++-
 arch/arm/dts/sun8i-a83t.dtsi                  | 885 ++++++++++++++++--
 arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts  | 197 +++-
 arch/arm/dts/sun8i-r40.dtsi                   | 616 +++++++++++-
 arch/arm/dts/sun8i-v40-bananapi-m2-berry.dts  |  50 +
 arch/arm/mach-sunxi/Kconfig                   |  10 +
 board/sunxi/board.c                           |   2 +-
 configs/A20-OLinuXino-Lime2-eMMC_defconfig    |   2 +
 configs/A20-OLinuXino_MICRO-eMMC_defconfig    |   1 +
 configs/A20-OLinuXino_MICRO_defconfig         |   1 +
 configs/A20-Olimex-SOM-EVB_defconfig          |   1 +
 configs/A20-Olimex-SOM204-EVB-eMMC_defconfig  |   1 +
 configs/Mele_M3_defconfig                     |   1 +
 configs/Orangepi_mini_defconfig               |   1 +
 configs/Sinlinx_SinA33_defconfig              |   2 +
 configs/Yones_Toptech_BD1078_defconfig        |   1 +
 configs/amarula_a64_relic_defconfig           |   2 +
 drivers/fastboot/Kconfig                      |   3 +-
 drivers/mmc/sunxi_mmc.c                       |  81 +-
 env/Kconfig                                   |   3 +-
 include/configs/sunxi-common.h                |   4 +-
 include/dt-bindings/clock/sun4i-a10-ccu.h     | 202 ++++
 include/dt-bindings/clock/sun7i-a20-ccu.h     |  53 ++
 include/dt-bindings/clock/sun8i-a83t-ccu.h    | 140 +++
 include/dt-bindings/reset/sun8i-a83t-ccu.h    |  98 ++
 57 files changed, 3715 insertions(+), 371 deletions(-)
 create mode 100644 arch/arm/dts/axp81x.dtsi
 create mode 100644 include/dt-bindings/clock/sun4i-a10-ccu.h
 create mode 100644 include/dt-bindings/clock/sun7i-a20-ccu.h
 create mode 100644 include/dt-bindings/clock/sun8i-a83t-ccu.h
 create mode 100644 include/dt-bindings/reset/sun8i-a83t-ccu.h
Signature · 1 line
2.17.1