devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Enable onboard SDHCI for Nexus 5X (msm8992)
@ 2016-11-23  1:09 Jeremy McNicoll
  2016-11-23  1:09 ` [PATCH 1/5] clk: gcc: Updates for SDHCI enablement Jeremy McNicoll
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Jeremy McNicoll @ 2016-11-23  1:09 UTC (permalink / raw)
  To: linux-arm-msm, linux-soc, devicetree, linux-mmc
  Cc: andy.gross, sboyd, robh, arnd, bjorn.andersson, riteshh, jeremymc



Now that the basic board support is available:
     http://www.spinics.net/lists/linux-arm-msm/msg24533.html

and the associated clock changes have been picked up for next,
      http://www.spinics.net/lists/linux-arm-msm/msg24499.html


Using V8 from Ritesh Harjani, with the additional changes provided to him for gcc-msm8994.c 
 [ http://www.spinics.net/lists/linux-arm-msm/msg24652.html ]


Additionally V9 of the RPM clock support [http://www.spinics.net/lists/linux-arm-msm/msg24211.html]
 is needed.  

At this point, "qcom,rpmcc-msm8916" was used successfully for testing of
the rpm clock controller.  It has been marked as a TODO item in the DTS
and once the rpmcc clocks are added for 8992/8994 the needed change will
be made.  i.e.) expect a follow up patch for rpmcc 

Currently, the minimal regulators to verify / enable SDHCI functionality
have been added.   While looking at the downstream code, I saw a few more
obvious entries so they have been included (completely untested).   Hopefully
someone with the hardware docs can provide feedback  and/or an individual
with better eye site than I who can ferret out more of the entries from
downstream.

The nonremovable "keyword/flag" was used to assess the reliability of the
initial mmc detection.  When the flag is present in the DTS only 1 check
for SDHCI was made, without non removable it checks over and over again.
Without the workaround (patch 5/5) mmc/sdhci didn't get detected 8/20
times.  When including the afore mentioned workaround MMC detection is
100% (35 boots) .  

While at it, I took the liberty of re-tabifying include/dt-bindings/
clock/qcom,gcc-msm8994.h to make it look nice according to VIM using (:set list ).  
Sorry emacs users, you are on your own.


Question:
   In what DT-bindings txt file should the following, compatible = "qcom,rpm-msm8994"; 
  be placed?  (arch/arm64/boot/dts/qcom/msm8992.dtsi, rpm_requests node)


Obviously, this is a work in progress,  and its progressing :-)



Jeremy McNicoll (5):
  clk: gcc: Updates for SDHCI enablement
  smd: Make packet size a constant
  arm64: dts: Enable SDHCI for Nexus 5X (msm8992)
  sdhci: dump vendor state and regs
  sdhci: Add quirk for delayed IRQ ACK

 .../bindings/regulator/qcom,smd-rpm-regulator.txt  |  40 ++++
 .../boot/dts/qcom/msm8992-bullhead-rev-101.dts     | 262 +++++++++++++++++++++
 arch/arm64/boot/dts/qcom/msm8992-pins.dtsi         |  82 +++++++
 arch/arm64/boot/dts/qcom/msm8992.dtsi              | 153 ++++++++++++
 drivers/clk/qcom/gcc-msm8994.c                     | 108 +++++++--
 drivers/mmc/host/sdhci-msm.c                       |  86 +++++++
 drivers/mmc/host/sdhci.c                           |  37 ++-
 drivers/mmc/host/sdhci.h                           |   3 +
 drivers/regulator/qcom_smd-regulator.c             |  49 ++++
 drivers/soc/qcom/smd-rpm.c                         |   2 +-
 include/dt-bindings/clock/qcom,gcc-msm8994.h       |  32 ++-
 include/linux/soc/qcom/smd.h                       |   7 +
 12 files changed, 824 insertions(+), 37 deletions(-)

-- 
2.6.1

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

end of thread, other threads:[~2016-11-28 21:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23  1:09 [PATCH 0/5] Enable onboard SDHCI for Nexus 5X (msm8992) Jeremy McNicoll
2016-11-23  1:09 ` [PATCH 1/5] clk: gcc: Updates for SDHCI enablement Jeremy McNicoll
2016-11-23  1:09 ` [PATCH 2/5] smd: Make packet size a constant Jeremy McNicoll
2016-11-24  6:14   ` Bjorn Andersson
2016-11-28 21:20     ` Jeremy McNicoll
2016-11-23  1:09 ` [PATCH 3/5] arm64: dts: Enable SDHCI for Nexus 5X (msm8992) Jeremy McNicoll
     [not found]   ` <1479863388-23678-4-git-send-email-jeremymc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-11-28 21:53     ` Rob Herring
2016-11-23  1:09 ` [PATCH 4/5] sdhci: dump vendor state and regs Jeremy McNicoll
2016-11-23  1:09 ` [PATCH 5/5] sdhci: Add quirk for delayed IRQ ACK Jeremy McNicoll
2016-11-23  3:36   ` Jisheng Zhang
2016-11-23  3:48     ` Jeremy McNicoll
     [not found]       ` <ecacec51-4b06-49cd-c756-489128729499-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-11-23  4:12         ` Jisheng Zhang
2016-11-23  5:23           ` Jeremy McNicoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).