public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v9 00/49] rockchip: Add support for cros_ec keyboard
@ 2016-01-22  2:43 Simon Glass
  2016-01-22  2:43 ` [U-Boot] [PATCH v9 01/49] dm: core: Don't set pinctrl for pinctrl devices Simon Glass
                   ` (48 more replies)
  0 siblings, 49 replies; 101+ messages in thread
From: Simon Glass @ 2016-01-22  2:43 UTC (permalink / raw)
  To: u-boot

This series provides a number of new features and improvements leading to
enabling the keyboard (via Chrome OS EC) on jerry. This is conneected via
SPI and uses its own message protocol.

Features and fixes are needed in the rockchip code to make this work include:
    - RK808 PMIC and regulator driver
    - Fixes and improvements to the i2c and SPI drivers
    - A full implementation of the GPIO driver
    - Additional clock support
    - Additional pinctrl support

The series moves a few rockchip boards to use the full pinctrl driver. I'm
not sure this is a great idea, as it slows down start-up noticeably. It is
currently needed for the display series (to come), but I intend to change
that.

Changes in v9:
- Rebase to upstream/master

Changes in v2:
- Update call to clk_get_by_index()
- Update call to clk_get_by_index()
- Update call to clk_get_by_index()
- Add an assert for clk_devp

Simon Glass (49):
  dm: core: Don't set pinctrl for pinctrl devices
  dm: pinctrl: Add a function to parse PIN_CONFIG flags
  dm: pmic: Add 'reg status' to show all regulators
  dts: Bring in pinctrl device tree binding
  power: Add base support for the RK808 PMIC
  power: Add support for RK808 regulators
  dm: Add a power sequencing uclass
  rockchip: Avoid using MMC code when not booting from MMC
  rockchip: Convert the PMU IOMUX registers into an array
  rockchip: mmc: Use a pwrseq device if available
  rockchip: Correct the defconfig order
  rockchip: Use pwrseq for MMC start-up on jerry
  rockchip: jerry: Disable pmic-int-1 setup to avoid a hang
  rockchip: Use a separate clock ID for clocks
  rockchip: clock: Rename the general clock variable to gclk_rate
  rockchip: clk: Add a function to get a peripheral clock rate
  rockchip: clock: Add a function to find a clock by ID
  rockchip: i2c: Update the driver to use the new clock ID
  rockchip: spi: Update the driver to use the new clock ID
  rockchip: spi: Avoid setting the pinctrl twice
  rockchip: mmc: Update the driver to use the new clock ID
  rockchip: pinctrl: Add a full pinctrl driver
  rockchip: Move firefly and jerry to use the full pinctrl
  rockchip: jerry: Enable the RK808 PMIC and regulator
  rockchip: Disable simple-bus in SPL for firefly-rk3288, jerry
  rockchip: jerry: Drop unused options
  gpio: Allow 's' as an abbreviation for 'status'
  cros_ec: Disable the Chrome OS EC in SPL
  dm: i2c: Allow muxes to be enabled for SPL separately
  spi: Correct device tree usage in spi_flash_decode_fdt()
  dm: power: Allow regulators to be omitted from SPL
  dm: pinctrl: Add a way for a GPIO driver to obtain a pin function
  dm: core: Export uclass_find_device_by_of_offset()
  dm: power: Tidy up debugging output and return values
  dm: power: Allow regulators to not implement all operations
  dm: clk: Add a simple version of clk_get_by_index()
  rockchip: sdram: Use the rk_clr/setreg() interface
  rockchip: reset: Use the rk_clr/setreg() interface
  rockchip: spi: Remember the last speed to avoid re-setting it
  rockchip: spi: Correct the bus init code
  rockchip: clk: Make rkclk_get_clk() SoC-specific
  rockchip: pinctrl: Reduce the size for SPL
  rockchip: pinctrl: Implement the get_gpio_mux() method
  rockchip: gpio: Read the GPIO value correctly
  rockchip: gpio: Implement the get_function() method
  rockchip: spi: Implement the delays
  rockchip: spi: Correct chip-enable code
  rockchip: spi: Remove the explicit pinctrl setting
  rockchip: jerry: Enable the Chrome OS EC

 arch/arm/dts/rk3288-veyron-chromebook.dtsi         |   4 +
 arch/arm/dts/rk3288-veyron.dtsi                    |  20 +-
 arch/arm/include/asm/arch-rockchip/clock.h         |  12 +
 arch/arm/include/asm/arch-rockchip/pmu_rk3288.h    |  12 +-
 arch/arm/mach-rockchip/Makefile                    |   1 -
 arch/arm/mach-rockchip/common.c                    |  28 --
 arch/arm/mach-rockchip/rk3288-board-spl.c          |   2 +
 arch/arm/mach-rockchip/rk3288/reset_rk3288.c       |   4 +-
 arch/arm/mach-rockchip/rk3288/sdram_rk3288.c       |   7 +-
 common/cmd_gpio.c                                  |   2 +-
 common/cmd_regulator.c                             |  66 ++++-
 configs/chromebook_jerry_defconfig                 |  25 +-
 configs/firefly-rk3288_defconfig                   |   7 +-
 .../pinctrl/pinctrl-bindings.txt                   | 236 ++++++++++++++++
 drivers/clk/clk-uclass.c                           |  18 +-
 drivers/clk/clk_rk3036.c                           |  33 ++-
 drivers/clk/clk_rk3288.c                           | 157 ++++++++---
 drivers/core/device.c                              |   6 +-
 drivers/core/uclass.c                              |   4 +-
 drivers/gpio/rk_gpio.c                             |  42 ++-
 drivers/i2c/Makefile                               |   4 +-
 drivers/i2c/muxes/Kconfig                          |   9 +
 drivers/i2c/muxes/Makefile                         |   2 +-
 drivers/i2c/rk_i2c.c                               |  38 +--
 drivers/misc/Kconfig                               |  18 ++
 drivers/misc/Makefile                              |   3 +
 drivers/misc/pwrseq-uclass.c                       |  24 ++
 drivers/mmc/rockchip_dw_mmc.c                      |  60 +++-
 drivers/mtd/spi/spi_flash.c                        |   9 +-
 drivers/pinctrl/pinctrl-uclass.c                   |  22 ++
 drivers/pinctrl/rockchip/pinctrl_rk3288.c          | 290 +++++++++++++++++++-
 drivers/power/pmic/Kconfig                         |  30 ++
 drivers/power/pmic/Makefile                        |   1 +
 drivers/power/pmic/pmic-uclass.c                   |  13 +-
 drivers/power/pmic/rk808.c                         | 102 +++++++
 drivers/power/regulator/Kconfig                    |  18 ++
 drivers/power/regulator/Makefile                   |   5 +-
 drivers/power/regulator/regulator-uclass.c         |   4 +-
 drivers/power/regulator/rk808.c                    | 301 +++++++++++++++++++++
 drivers/spi/rk_spi.c                               |  84 +++---
 include/configs/chromebook_jerry.h                 |   9 +
 include/configs/firefly-rk3288.h                   |   2 +
 include/configs/rk3288_common.h                    |   8 +
 include/dm/pinctrl.h                               |  45 +++
 include/dm/uclass-id.h                             |   1 +
 include/dm/uclass-internal.h                       |  16 ++
 include/power/rk808_pmic.h                         |  77 ++++++
 include/pwrseq.h                                   |  18 ++
 48 files changed, 1691 insertions(+), 208 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/common.c
 create mode 100644 doc/device-tree-bindings/pinctrl/pinctrl-bindings.txt
 create mode 100644 drivers/misc/pwrseq-uclass.c
 create mode 100644 drivers/power/pmic/rk808.c
 create mode 100644 drivers/power/regulator/rk808.c
 create mode 100644 include/power/rk808_pmic.h
 create mode 100644 include/pwrseq.h

-- 
2.7.0.rc3.207.g0ac5344

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

end of thread, other threads:[~2016-01-22 15:19 UTC | newest]

Thread overview: 101+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22  2:43 [U-Boot] [PATCH v9 00/49] rockchip: Add support for cros_ec keyboard Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 01/49] dm: core: Don't set pinctrl for pinctrl devices Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 02/49] dm: pinctrl: Add a function to parse PIN_CONFIG flags Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 03/49] dm: pmic: Add 'reg status' to show all regulators Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 04/49] dts: Bring in pinctrl device tree binding Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 05/49] power: Add base support for the RK808 PMIC Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 06/49] power: Add support for RK808 regulators Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 07/49] dm: Add a power sequencing uclass Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 08/49] rockchip: Avoid using MMC code when not booting from MMC Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 09/49] rockchip: Convert the PMU IOMUX registers into an array Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 10/49] rockchip: mmc: Use a pwrseq device if available Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 11/49] rockchip: Correct the defconfig order Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 12/49] rockchip: Use pwrseq for MMC start-up on jerry Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 13/49] rockchip: jerry: Disable pmic-int-1 setup to avoid a hang Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 14/49] rockchip: Use a separate clock ID for clocks Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 15/49] rockchip: clock: Rename the general clock variable to gclk_rate Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 16/49] rockchip: clk: Add a function to get a peripheral clock rate Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 17/49] rockchip: clock: Add a function to find a clock by ID Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 18/49] rockchip: i2c: Update the driver to use the new clock ID Simon Glass
2016-01-22  5:24   ` Heiko Schocher
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 19/49] rockchip: spi: " Simon Glass
2016-01-22 15:17   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 20/49] rockchip: spi: Avoid setting the pinctrl twice Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 21/49] rockchip: mmc: Update the driver to use the new clock ID Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 22/49] rockchip: pinctrl: Add a full pinctrl driver Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 23/49] rockchip: Move firefly and jerry to use the full pinctrl Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 24/49] rockchip: jerry: Enable the RK808 PMIC and regulator Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 25/49] rockchip: Disable simple-bus in SPL for firefly-rk3288, jerry Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 26/49] rockchip: jerry: Drop unused options Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 27/49] gpio: Allow 's' as an abbreviation for 'status' Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 28/49] cros_ec: Disable the Chrome OS EC in SPL Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 29/49] dm: i2c: Allow muxes to be enabled for SPL separately Simon Glass
2016-01-22  5:32   ` Heiko Schocher
2016-01-22 15:18     ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 30/49] spi: Correct device tree usage in spi_flash_decode_fdt() Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 31/49] dm: power: Allow regulators to be omitted from SPL Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 32/49] dm: pinctrl: Add a way for a GPIO driver to obtain a pin function Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 33/49] dm: core: Export uclass_find_device_by_of_offset() Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 34/49] dm: power: Tidy up debugging output and return values Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:43 ` [U-Boot] [PATCH v9 35/49] dm: power: Allow regulators to not implement all operations Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 36/49] dm: clk: Add a simple version of clk_get_by_index() Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 37/49] rockchip: sdram: Use the rk_clr/setreg() interface Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 38/49] rockchip: reset: " Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 39/49] rockchip: spi: Remember the last speed to avoid re-setting it Simon Glass
2016-01-22 15:18   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 40/49] rockchip: spi: Correct the bus init code Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 41/49] rockchip: clk: Make rkclk_get_clk() SoC-specific Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 42/49] rockchip: pinctrl: Reduce the size for SPL Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 43/49] rockchip: pinctrl: Implement the get_gpio_mux() method Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 44/49] rockchip: gpio: Read the GPIO value correctly Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 45/49] rockchip: gpio: Implement the get_function() method Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 46/49] rockchip: spi: Implement the delays Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 47/49] rockchip: spi: Correct chip-enable code Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 48/49] rockchip: spi: Remove the explicit pinctrl setting Simon Glass
2016-01-22 15:19   ` Simon Glass
2016-01-22  2:44 ` [U-Boot] [PATCH v9 49/49] rockchip: jerry: Enable the Chrome OS EC Simon Glass
2016-01-22 15:19   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox