[PATCH 0/5] arm64: meson: add libretech-pc support

Jerome Brunet jbrunet at baylibre.com
Thu Dec 19 19:36:15 CET 2019


Add libretech PC platform support. This platform comes in 2 variants,
one with the s905d and the other s912.

The corresponding DT have been applied and should be merged during the
next merge window [0]

While working on these boards, I've found a problem related the mmc
clock. In some cases, the ROM code will leave the mmc clocks in such
a weird state that any access to the mmc controller would lock the
device.

Making sure the MMC clocks are properly reset and enabled is enough
to solve the problem.

[0]: https://lkml.kernel.org/r/7h5zig82ha.fsf@baylibre.com

Jerome Brunet (5):
  dt-bindings: leds: import common led bindings from linux v5.4
  mmc: meson-gx: enable input clocks
  clk: meson: reset mmc clock on probe
  arm64: dts: meson: gxl: add i2c C pins
  arm64: dts: meson: add libretech-pc support

 arch/arm/dts/Makefile                         |   2 +
 arch/arm/dts/meson-gx-libretech-pc.dtsi       | 376 ++++++++++++++++++
 .../meson-gxl-s905d-libretech-pc-u-boot.dtsi  |   7 +
 arch/arm/dts/meson-gxl-s905d-libretech-pc.dts |  17 +
 arch/arm/dts/meson-gxl-s905d.dtsi             |  12 +
 arch/arm/dts/meson-gxl.dtsi                   |  44 +-
 .../meson-gxm-s912-libretech-pc-u-boot.dtsi   |   7 +
 arch/arm/dts/meson-gxm-s912-libretech-pc.dts  |  62 +++
 configs/libretech-s905d-pc_defconfig          |  73 ++++
 configs/libretech-s912-pc_defconfig           |  73 ++++
 drivers/clk/meson/axg.c                       |   7 +
 drivers/clk/meson/g12a.c                      |   7 +
 drivers/clk/meson/gxbb.c                      |   7 +
 drivers/mmc/meson_gx_mmc.c                    |  14 +-
 include/dt-bindings/leds/common.h             |  75 ++++
 15 files changed, 772 insertions(+), 11 deletions(-)
 create mode 100644 arch/arm/dts/meson-gx-libretech-pc.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905d-libretech-pc-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905d-libretech-pc.dts
 create mode 100644 arch/arm/dts/meson-gxl-s905d.dtsi
 create mode 100644 arch/arm/dts/meson-gxm-s912-libretech-pc-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxm-s912-libretech-pc.dts
 create mode 100644 configs/libretech-s905d-pc_defconfig
 create mode 100644 configs/libretech-s912-pc_defconfig
 create mode 100644 include/dt-bindings/leds/common.h

-- 
2.23.0



More information about the U-Boot mailing list