omap4: convert panda board to DM
Subsystems (3)
v2 cover omap4: convert panda board to DM
Hi,
V2 of this series just drops some ehci init code from patch #2, which doesn't seem to really do anything right now. It is causing a couple of compile time warnings though, so get rid of it for now.
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
PATCH v2 1/2 omap4: Copy device tree from Linux 5.7.y
Copy all device tree files required for omap4 panda support from mainline Linux.
---
v2:
* no changes
arch/arm/dts/elpida_ecb240abacn.dtsi | 68 + arch/arm/dts/omap4-l4-abe.dtsi | 489 +++++ arch/arm/dts/omap4-l4.dtsi | 2474 ++++++++++++++++++++++++++ arch/arm/dts/omap4-mcpdm.dtsi | 44 + arch/arm/dts/omap4-panda-common.dtsi | 573 ++++++ arch/arm/dts/omap4-panda-es.dts | 82 + arch/arm/dts/omap4-panda.dts | 13 + arch/arm/dts/omap4.dtsi | 657 +++++++ arch/arm/dts/omap443x-clocks.dtsi | 15 + arch/arm/dts/omap443x.dtsi | 76 + arch/arm/dts/omap4460.dtsi | 131 ++ arch/arm/dts/omap446x-clocks.dtsi | 24 + arch/arm/dts/omap44xx-clocks.dtsi | 1324 ++++++++++++++ arch/arm/dts/twl6030.dtsi | 105 ++ arch/arm/dts/twl6030_omap4.dtsi | 35 + include/dt-bindings/clock/omap4.h | 149 ++ 16 files changed, 6259 insertions(+) create mode 100644 arch/arm/dts/elpida_ecb240abacn.dtsi create mode 100644 arch/arm/dts/omap4-l4-abe.dtsi create mode 100644 arch/arm/dts/omap4-l4.dtsi create mode 100644 arch/arm/dts/omap4-mcpdm.dtsi create mode 100644 arch/arm/dts/omap4-panda-common.dtsi create mode 100644 arch/arm/dts/omap4-panda-es.dts create mode 100644 arch/arm/dts/omap4-panda.dts create mode 100644 arch/arm/dts/omap4.dtsi create mode 100644 arch/arm/dts/omap443x-clocks.dtsi create mode 100644 arch/arm/dts/omap443x.dtsi create mode 100644 arch/arm/dts/omap4460.dtsi create mode 100644 arch/arm/dts/omap446x-clocks.dtsi create mode 100644 arch/arm/dts/omap44xx-clocks.dtsi create mode 100644 arch/arm/dts/twl6030.dtsi create mode 100644 arch/arm/dts/twl6030_omap4.dtsi create mode 100644 include/dt-bindings/clock/omap4.h
arch/arm/dts/elpida_ecb240abacn.dtsi new file +68 -0
@@ -0,0 +1,68 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Common devices used in different OMAP boards + */ + +/ { + elpida_ECB240ABACN: lpddr2 { + compatible = "Elpida,ECB240ABACN","jedec,lpddr2-s4"; + density = <2048>; + io-width = <32>; + + tRPab-min-tck = <3>; + tRCD-min-tck = <3>; + tWR-min-tck = <3>; + tRASmin-min-tck = <3>; + tRRD-min-tck = <2>; + tWTR-min-tck = <2>; + tXP-min-tck = <2>; + tRTP-min-tck = <2>; + tCKE-min-tck = <3>; + tCKESR-min-tck = <3>; + tFAW-min-tck = <8>; + + timings_elpida_ECB240ABACN_400mhz: lpddr2-timings at 0 { + compatible = "jedec,lpddr2-timings"; + min-freq = <10000000>; + max-freq = <400000000>; + tRPab = <21000>; + tRCD = <18000>; + tWR = <15000>; + tRAS-min = <42000>; + tRRD = <10000>; + tWTR = <7500>; + tXP = <7500>; + tRTP = <7500>; + tCKESR = <15000>; + tDQSCK-max = <5500>; + tFAW = <50000>; + tZQCS = <90000>; + tZQCL = <360000>; + tZQinit = <1000000>; + tRAS-max-ns = <70000>; + tDQSCK-max-derated = <6000>; + }; + + timings_elpida_ECB240ABACN_200mhz: lpddr2-timings at 1 { + compatible = "jedec,lpddr2-timings"; + min-freq = <10000000>; + max-freq = <200000000>; + tRPab = <21000>; + tRCD = <18000>; + tWR = <15000>; + tRAS-min = <42000>; + tRRD = <10000>; + tWTR = <10000>; + tXP = <7500>; + tRTP = <7500>; + tCKESR = <15000>; + tDQSCK-max = <5500>; + tFAW = <50000>; + tZQCS = <90000>; + tZQCL = <360000>; + tZQinit = <1000000>; + tRAS-max-ns = <70000>; + tDQSCK-max-derated = <6000>; + }; + }; +};
arch/arm/dts/omap4-l4-abe.dtsi new file +489 -0
489 lines not on this page · raw message
arch/arm/dts/omap4-l4.dtsi new file +2474 -0
2,443 lines not on this page · raw message
arch/arm/dts/omap4-mcpdm.dtsi new file +44 -0
44 lines not on this page · raw message
arch/arm/dts/omap4-panda-common.dtsi new file +573 -0
573 lines not on this page · raw message
arch/arm/dts/omap4-panda-es.dts new file +82 -0
82 lines not on this page · raw message
arch/arm/dts/omap4.dtsi new file +657 -0
657 lines not on this page · raw message
arch/arm/dts/omap443x-clocks.dtsi new file +15 -0
Lines of this file are not shown. View the raw message.
arch/arm/dts/omap443x.dtsi new file +76 -0
76 lines not on this page · raw message
arch/arm/dts/omap4460.dtsi new file +131 -0
131 lines not on this page · raw message
arch/arm/dts/omap446x-clocks.dtsi new file +24 -0
Lines of this file are not shown. View the raw message.
arch/arm/dts/omap44xx-clocks.dtsi new file +1324 -0
1,324 lines not on this page · raw message
arch/arm/dts/twl6030.dtsi new file +105 -0
105 lines not on this page · raw message
arch/arm/dts/twl6030_omap4.dtsi new file +35 -0
Lines of this file are not shown. View the raw message.
include/dt-bindings/clock/omap4.h new file +149 -0
149 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 4 lines
2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Part of the diff is not shown here. View the raw message.
PATCH v2 2/2 omap4: panda: convert to device model
In reply to Tero KristoConvert omap4 panda to device model.
---
v2:
* dropped some apparently dead USB EHCI init code, this was just causing a compile time warning.
arch/arm/dts/Makefile | 4 +++ arch/arm/dts/omap4-u-boot.dtsi | 39 ++++++++++++++++++++++++++ board/ti/panda/panda.c | 50 ++++++++-------------------------- configs/omap4_panda_defconfig | 8 ++++++ 4 files changed, 63 insertions(+), 38 deletions(-) create mode 100644 arch/arm/dts/omap4-u-boot.dtsi
arch/arm/dts/Makefile +4 -0
@@ -848,6 +848,10 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \ dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \ omap3-igep0020.dtb +dtb-$(CONFIG_TARGET_OMAP4_PANDA) += \ + omap4-panda.dtb \ + omap4-panda-es.dtb + dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \ at91-sama5d2_ptc_ek.dtb
arch/arm/dts/omap4-u-boot.dtsi new file +39 -0
@@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * U-Boot additions + * + * (C) Copyright 2020 Tero Kristo <[email protected]> + */ + +&l4_cfg { + segment at 0 { + /* SCM Core */ + target-module at 2000 { + compatible = "simple-bus"; + }; + + /* USB HS */ + target-module at 64000 { + compatible = "simple-bus"; + }; + }; +}; + +&l4_per { + segment at 0 { + /* UART3 */ + target-module at 20000 { + compatible = "simple-bus"; + }; + + /* I2C1 */ + target-module at 70000 { + compatible = "simple-bus"; + }; + + /* MMC1 */ + target-module at 9c000 { + compatible = "simple-bus"; + }; + }; +};
board/ti/panda/panda.c +12 -38
74 lines not on this page · raw message
configs/omap4_panda_defconfig +8 -0
@@ -2,12 +2,14 @@ CONFIG_ARM=y CONFIG_ARCH_OMAP2PLUS=y CONFIG_OMAP44XX=y CONFIG_TARGET_OMAP4_PANDA=y +CONFIG_DEFAULT_DEVICE_TREE="omap4-panda" CONFIG_SPL=y CONFIG_SPL_TEXT_BASE=0x40300000 CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd" CONFIG_SYS_CONSOLE_IS_IN_ENV=y CONFIG_SYS_CONSOLE_INFO_QUIET=y +CONFIG_DEFAULT_FDT_FILE="omap4-panda.dtb" CONFIG_VERSION_VARIABLE=y # CONFIG_SPL_FS_EXT4 is not set # CONFIG_SPL_I2C_SUPPORT is not set
@@ -23,16 +25,20 @@ CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_NFS is not set CONFIG_CMD_EXT4_WRITE=y +CONFIG_OF_CONTROL=y CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y +CONFIG_DM=y +CONFIG_DM_MMC=y CONFIG_MMC_OMAP_HS=y CONFIG_CONS_INDEX=3 CONFIG_SYS_NS16550=y CONFIG_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y +CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_MUSB_UDC=y CONFIG_USB_OMAP3=y
@@ -40,3 +46,5 @@ CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_OF_LIBFDT=y +CONFIG_SYS_MALLOC_F_LEN=0x4000 +CONFIG_DM_ETH=y
Signature · 4 lines
2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki