Skip to contentSkip to conversation

bosch: Add initial board support for ACC

PATCH New Philip Oberfichtner 2 participants 2 messages May 19, 2022 – May 20, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 bosch: Add initial board support for ACC

The Bosch ACC (Air Center Control) Board is based on the i.MX6D.

The device tree is copied from Linux, see [1]. The only difference compared to the Linux DT is the removal of usbphynop properties. They are defined in the Linux version of imx6qdl.dtsi, but not in the u-boot version.

[1] Commit 6192cf8ac082 from git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git

---

Changes in v6:
- Sync device tree with Linux (now accepted mainline)
- Update commit description
- Rebase on v2022.07-rc2

Changes in v5:
- Rebase on v2022.07-rc1
- Sync device tree with Linux

Changes in v4:
- Remove obsolete CONFIG_FEC #defines
- Sync device tree with Linux

Changes in v3:
- Rename acc to bosch-acc
- Sync device tree with Linux

Changes in v2:
- Adapt defconfig and device tree to new bootcount driver
- Clean up CONFIG_ENV_FLAGS_LIST_STATIC
- Fix style issues in device trees
- Migrate CONFIG options to Kconfig

---
 arch/arm/dts/Makefile                    |   1 +
 arch/arm/dts/imx6q-bosch-acc-u-boot.dtsi |  80 +++
 arch/arm/dts/imx6q-bosch-acc.dts         | 769 +++++++++++++++++++++++
 arch/arm/mach-imx/mx6/Kconfig            |  15 +
 board/bosch/acc/Kconfig                  |  19 +
 board/bosch/acc/MAINTAINERS              |   9 +
 board/bosch/acc/Makefile                 |   6 +
 board/bosch/acc/acc.c                    | 755 ++++++++++++++++++++++
 configs/imx6q_bosch_acc_defconfig        | 110 ++++
 include/configs/imx6q-bosch-acc.h        | 122 ++++
 10 files changed, 1886 insertions(+)
 create mode 100644 arch/arm/dts/imx6q-bosch-acc-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx6q-bosch-acc.dts
 create mode 100644 board/bosch/acc/Kconfig
 create mode 100644 board/bosch/acc/MAINTAINERS
 create mode 100644 board/bosch/acc/Makefile
 create mode 100644 board/bosch/acc/acc.c
 create mode 100644 configs/imx6q_bosch_acc_defconfig
 create mode 100644 include/configs/imx6q-bosch-acc.h
arch/arm/dts/Makefile +1 -0
index 83630af4f6..4cfa86dada 100644
@@ -777,6 +777,7 @@ endif
 ifneq ($(CONFIG_MX6Q)$(CONFIG_MX6QDL),)
 dtb-y += \
 	imx6-apalis.dtb \
+	imx6q-bosch-acc.dtb \
 	imx6q-cm-fx6.dtb \
 	imx6q-cubox-i.dtb \
 	imx6q-cubox-i-emmc-som-v15.dtb \
arch/arm/dts/imx6q-bosch-acc-u-boot.dtsi new file +80 -0

80 lines not on this page · raw message

arch/arm/dts/imx6q-bosch-acc.dts new file +769 -0

769 lines not on this page · raw message

arch/arm/mach-imx/mx6/Kconfig +15 -0
index 947b73fab2..eceb730856 100644
@@ -347,6 +347,20 @@ config TARGET_MX6Q_ENGICAM
 	select SUPPORT_SPL
 	imply CMD_DM
 
+config TARGET_MX6Q_ACC
+	bool "Support for Bosch ACC board"
+	depends on MX6QDL
+	select BOARD_LATE_INIT
+	select OF_CONTROL
+	select SPL_OF_LIBFDT
+	select DM
+	select DM_ETH
+	select DM_GPIO
+	select DM_I2C
+	select DM_MMC
+	select DM_THERMAL
+	select SUPPORT_SPL
+
 config TARGET_MX6SABREAUTO
 	bool "mx6sabreauto"
 	depends on MX6QDL
@@ -686,6 +700,7 @@ source "board/freescale/mx6sxsabresd/Kconfig"
 source "board/freescale/mx6sxsabreauto/Kconfig"
 source "board/freescale/mx6ul_14x14_evk/Kconfig"
 source "board/freescale/mx6ullevk/Kconfig"
+source "board/bosch/acc/Kconfig"
 source "board/grinn/liteboard/Kconfig"
 source "board/phytec/pcm058/Kconfig"
 source "board/phytec/pcl063/Kconfig"
board/bosch/acc/Kconfig new file +19 -0
new file mode 100644
index 0000000000..da54d96e40
@@ -0,0 +1,19 @@
+if TARGET_MX6Q_ACC
+
+config SYS_VENDOR
+	default "bosch"
+
+config SYS_BOARD
+	default "acc"
+
+config SYS_CONFIG_NAME
+	default "imx6q-bosch-acc"
+
+config SYS_BOOT_EMMC
+	bool "Boot from EMMC"
+	default y
+	help
+	  Say N here if you want to boot from SD card or microUSB.
+	  Say Y to boot from eMMC.
+
+endif
board/bosch/acc/MAINTAINERS new file +9 -0
new file mode 100644
index 0000000000..1b88003712
@@ -0,0 +1,9 @@
+MX6Q_ACC
+M:	Matthias Winker <[email protected]>
+M:	Philip Oberfichtner <[email protected]>
+S:	Maintained
+F:	board/bosch/acc
+F:	include/configs/imx6q-bosch-acc.h
+F:	configs/imx6q_bosch_acc_defconfig
+F:	arch/arm/dts/imx6q-bosch-acc.dts
+F:	arch/arm/dts/imx6q-bosch-acc-u-boot.dts
board/bosch/acc/Makefile new file +6 -0
new file mode 100644
index 0000000000..d425a677bc
@@ -0,0 +1,6 @@
+# Copyright (C) 2017
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y  := acc.o
board/bosch/acc/acc.c new file +755 -0

755 lines not on this page · raw message

configs/imx6q_bosch_acc_defconfig new file +110 -0

110 lines not on this page · raw message

include/configs/imx6q-bosch-acc.h new file +122 -0

122 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw

PATCH v6 1/1 bosch: Add initial board support for ACC

Quoted 8 lines

The Bosch ACC (Air Center Control) Board is based on the i.MX6D. The device tree is copied from Linux, see [1]. The only difference compared to the Linux DT is the removal of usbphynop properties. They are defined in the Linux version of imx6qdl.dtsi, but not in the u-boot version.
[1] Commit 6192cf8ac082 from git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================