[U-Boot] [PATCH V3 00/14] Add board detection for Odroid XU3 / XU3Lite / XU4
Przemyslaw Marczak
p.marczak at samsung.com
Tue Oct 27 13:07:53 CET 2015
This patchset adds:
- 'cpu-model' dts property for Chromebook Peach Pi as Exynos5800
- set the cpu id of Exynos5422 to 0x5422
- S2MPS11 PMIC I/O driver
- ADC uclass implementation
- Exynos5420-compatible (9-channel, 12-bit) ADC driver
- new file for Exynos5: exynos5-dt-types.c
- board detection for Odroid XU3 / XU3lite / XU4
- fixed ADC value for XU4 detection
This was tested on Odroid XU3/XU3 Lite/XU4 and sandbox.
Tested with buildman for samsung.
Available on github:
https://github.com/bobenstein/u-boot/tree/xu3-detect-patchset-v1
https://github.com/bobenstein/u-boot/tree/xu3-detect-patchset-v2
https://github.com/bobenstein/u-boot/tree/xu3-detect-patchset-v3
Przemyslaw Marczak (14):
samsung: board/misc: check returned pointer for get_board_type() calls
s5p: cpu_info: print "cpu-model" if exists in dts
Peach-Pi: dts: add cpu-model string
Exynos5422/5800: set cpu id to 0x5422
dm: pmic: add s2mps11 PMIC I/O driver
dm: regulator: add function device_get_supply_regulator()
dm: adc: add simple ADC uclass implementation
dm: adc: add Exynos54xx compatible ADC driver
Odroid-XU3: enable s2mps11 PMIC support
Exynos54xx: dts: add ADC node
Odroid-XU3: dts: enable ADC, with request for pre-reloc bind
exynos5-dt-types: add board detection for Odroid XU3/XU3L/XU4.
sandbox: add ADC driver
sandbox: add ADC unit tests
arch/arm/cpu/armv7/s5p-common/cpu_info.c | 14 +-
arch/arm/dts/exynos5422-odroidxu3.dts | 12 +
arch/arm/dts/exynos54xx.dtsi | 7 +
arch/arm/dts/exynos5800-peach-pi.dts | 1 +
arch/arm/mach-exynos/clock.c | 16 +-
arch/arm/mach-exynos/clock_init_exynos5.c | 2 +-
arch/arm/mach-exynos/common_setup.h | 4 +-
arch/arm/mach-exynos/include/mach/adc.h | 44 ++++
arch/arm/mach-exynos/include/mach/cpu.h | 6 +-
arch/arm/mach-exynos/include/mach/gpio.h | 4 +-
arch/arm/mach-exynos/pinmux.c | 2 +-
arch/arm/mach-exynos/power.c | 2 +-
arch/sandbox/dts/sandbox_pmic.dtsi | 2 +-
arch/sandbox/dts/test.dts | 6 +
board/samsung/common/Makefile | 5 +-
board/samsung/common/board.c | 4 +-
board/samsung/common/exynos5-dt-types.c | 196 ++++++++++++++
board/samsung/common/exynos5-dt.c | 12 +
board/samsung/common/misc.c | 3 +
configs/odroid-xu3_defconfig | 5 +
configs/sandbox_defconfig | 2 +
doc/device-tree-bindings/adc/adc.txt | 62 +++++
doc/device-tree-bindings/exynos/soc.txt | 21 ++
doc/device-tree-bindings/pmic/s2mps11.txt | 17 ++
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/adc/Kconfig | 30 +++
drivers/adc/Makefile | 10 +
drivers/adc/adc-uclass.c | 409 +++++++++++++++++++++++++++++
drivers/adc/exynos-adc.c | 145 ++++++++++
drivers/adc/sandbox.c | 174 ++++++++++++
drivers/power/pmic/Kconfig | 14 +
drivers/power/pmic/Makefile | 1 +
drivers/power/pmic/s2mps11.c | 62 +++++
drivers/power/regulator/regulator-uclass.c | 7 +
include/adc.h | 288 ++++++++++++++++++++
include/configs/odroid_xu3.h | 12 +
include/dm/uclass-id.h | 1 +
include/power/regulator.h | 16 ++
include/power/s2mps11.h | 109 ++++++++
include/power/sandbox_pmic.h | 4 +
include/samsung/exynos5-dt-types.h | 27 ++
test/dm/Makefile | 1 +
test/dm/adc.c | 165 ++++++++++++
44 files changed, 1904 insertions(+), 23 deletions(-)
create mode 100644 board/samsung/common/exynos5-dt-types.c
create mode 100644 doc/device-tree-bindings/adc/adc.txt
create mode 100644 doc/device-tree-bindings/exynos/soc.txt
create mode 100644 doc/device-tree-bindings/pmic/s2mps11.txt
create mode 100644 drivers/adc/Kconfig
create mode 100644 drivers/adc/Makefile
create mode 100644 drivers/adc/adc-uclass.c
create mode 100644 drivers/adc/exynos-adc.c
create mode 100644 drivers/adc/sandbox.c
create mode 100644 drivers/power/pmic/s2mps11.c
create mode 100644 include/adc.h
create mode 100644 include/power/s2mps11.h
create mode 100644 include/samsung/exynos5-dt-types.h
create mode 100644 test/dm/adc.c
--
1.9.1
More information about the U-Boot
mailing list