ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Subsystems (5)
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC although davinci_mmc doesn't call yet the mmc core OF facilities).
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dts
Documentation/devicetree/bindings/arm/davinci.txt +4 -0
@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board +Required root node properties: + - compatible = "ti,omapl138-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;
arch/arm/boot/dts/Makefile +1 -0
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + omapl138-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \
arch/arm/boot/dts/omapl138-lcdk.dts new file +71 -0
71 lines not on this page · raw message
arch/arm/mach-davinci/da8xx-dt.c +1 -0
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)static const char *const da850_boards_compat[]__initconst = {"enbw,cmc" , +"ti,omapl138-lcdk" ,"ti,da850-evm" ,"ti,da850" ,NULL ,
Signature · 1 line
2.9.0.rc1
Rob Herring
maintainerPATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 62 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).Signed-off-by Karl Beldan <[email protected]>--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dtsDocumentation/devicetree/bindings/arm/davinci.txt +4
-0@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board +Required root node properties: + - compatible = "ti,omapl138-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;arch/arm/boot/dts/Makefile +1
-0@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + omapl138-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \arch/arm/boot/dts/omapl138-lcdk.dts new file +9
-0@@ -0,0 +1,71 @@ +/* + * Copyright (c) 2016 BayLibre, Inc. + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "da850.dtsi" +#include <dt-bindings/gpio/gpio.h> +
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +10
-0+/ { + model = "DA850/AM1808/OMAP-L138 LCDK"; + compatible = "ti,omapl138-lcdk", "ti,da850"; + + aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";
You don't need console with stdout-path set. And really, earlycon should not be the default.
Quoted 67 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +52
-0+ stdout-path = "serial2:115200n8"; + }; + + memory { + device_type = "memory"; + reg = <0xc0000000 0x08000000>; + }; +}; + +&pmx_core { + status = "okay"; +}; + +&serial2 { + pinctrl-names = "default"; + pinctrl-0 = <&serial2_rxtx_pins>; + status = "okay"; +}; + +&wdt { + status = "okay"; +}; + +&rtc0 { + status = "okay"; +}; + +&gpio { + status = "okay"; +}; + +&mdio { + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + bus_freq = <2200000>; + status = "okay"; +}; + +ð0 { + pinctrl-names = "default"; + pinctrl-0 = <&mii_pins>; + status = "okay"; +}; + +&mmc0 { + max-frequency = <50000000>; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>; + status = "okay"; +};arch/arm/mach-davinci/da8xx-dt.c +1
-0@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)static const char *const da850_boards_compat[]__initconst = {"enbw,cmc" , +"ti,omapl138-lcdk" ,"ti,da850-evm" ,"ti,da850" ,NULL ,Signature · 1 line
2.9.0.rc1
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 68 lines · Rob Herring
Quoted 67 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).Signed-off-by Karl Beldan <[email protected]>--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dtsDocumentation/devicetree/bindings/arm/davinci.txt +4
-0@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board +Required root node properties: + - compatible = "ti,omapl138-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;arch/arm/boot/dts/Makefile +1
-0@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + omapl138-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \arch/arm/boot/dts/omapl138-lcdk.dts new file +14
-0@@ -0,0 +1,71 @@ +/* + * Copyright (c) 2016 BayLibre, Inc. + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include "da850.dtsi" +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "DA850/AM1808/OMAP-L138 LCDK"; + compatible = "ti,omapl138-lcdk", "ti,da850"; + + aliases {
Quoted 9 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 5 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +5
-0+ serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";You don't need console with stdout-path set. And really, earlycon should not be the default.
Ok for earlycon.
For the console, I thought likewise .. until I _struggled_ to understand why the console was disappearing under my feet.
It seemed even stranger when I started looking at the codepath because drivers/of/base.c would properly add_preferred_console as expected after the corresponding UART was added. But the reality was there, without it the console was not like stdout-path.
Among the commits that could instill doubt as to whether stdout-path rules is f64255b5072d:
"The assumption that at least 1 preferred console will be registered when the stdout-path property is set is invalid, which can result in _no_ consoles.", though it didn't answer my question.
I started looking whether tty0 was not getting in the way and in the end I came up with setting console.
But you seem affirmative.
Karl
Rob Herring
maintainerPATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
+Peter H
Quoted 12 lines · Karl Beldan
Quoted 11 lines · Rob Herring
Quoted 10 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).
[...]
Quoted 12 lines
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 6 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +6
-0+ aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";You don't need console with stdout-path set. And really, earlycon should not be the default.
Ok for earlycon.
Quoted 14 lines
For the console, I thought likewise .. until I _struggled_ to understand why the console was disappearing under my feet.
It seemed even stranger when I started looking at the codepath becausedrivers/of/base.cwould properlyadd_preferred_consoleas expected after the corresponding UART was added. But the reality was there, without it the console was not like stdout-path.
Among the commits that could instill doubt as to whether stdout-path rules isf64255b5072d:
"The assumption that at least 1 preferred console will be registered when the stdout-path property is set is invalid, which can result in _no_ consoles.", though it didn't answer my question.
I started looking whether tty0 was not getting in the way and in the end I came up with setting console.
But you seem affirmative.
There have been some issues in this area, but I thought they were in conjunction with earlycon and solved now. This is a fairly common review request for dts files, so I'm surprised if it doesn't work right. Maybe having tty0 or not has some influence. Or people just accept review comments without testing or caring...
Rob
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 45 lines · Rob Herring
+Peter H
Quoted 12 lines · Karl Beldan
Quoted 11 lines · Rob Herring
Quoted 10 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).[...]
Quoted 12 lines
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 6 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +6
-0+ aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";You don't need console with stdout-path set. And really, earlycon should not be the default.
Ok for earlycon.
Quoted 14 lines
For the console, I thought likewise .. until I _struggled_ to understand why the console was disappearing under my feet.
It seemed even stranger when I started looking at the codepath becausedrivers/of/base.cwould properlyadd_preferred_consoleas expected after the corresponding UART was added. But the reality was there, without it the console was not like stdout-path.
Among the commits that could instill doubt as to whether stdout-path rules isf64255b5072d:
"The assumption that at least 1 preferred console will be registered when the stdout-path property is set is invalid, which can result in _no_ consoles.", though it didn't answer my question.
I started looking whether tty0 was not getting in the way and in the end I came up with setting console.
But you seem affirmative.
Quoted 6 lines
There have been some issues in this area, but I thought they were in conjunction with earlycon and solved now. This is a fairly common review request for dts files, so I'm surprised if it doesn't work right. Maybe having tty0 or not has some influence. Or people just accept review comments without testing or caring...
I can assure you I tested without early{con,printk} ;).
Now I have just rechecked the codepaths and something caught my attention in kernel/printk/printk.c:__add_preferred_console(): if console_cmdline is empty selected_console gets unconditionally set to zero ! Knowing this I confirmed by replacing with idx (works), and also by using ttyS0 (i.e. alias serial0 = &uart2) (works), this would not affect DTs using serial0. It's late here so I'll stop there.
Karl
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 52 lines · Karl Beldan
Quoted 45 lines · Rob Herring
+Peter H
Quoted 12 lines · Karl Beldan
Quoted 11 lines · Rob Herring
Quoted 10 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).[...]
Quoted 12 lines
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 6 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +6
-0+ aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";You don't need console with stdout-path set. And really, earlycon should not be the default.
Ok for earlycon.
Quoted 14 lines
For the console, I thought likewise .. until I _struggled_ to understand why the console was disappearing under my feet.
It seemed even stranger when I started looking at the codepath becausedrivers/of/base.cwould properlyadd_preferred_consoleas expected after the corresponding UART was added. But the reality was there, without it the console was not like stdout-path.
Among the commits that could instill doubt as to whether stdout-path rules isf64255b5072d:
"The assumption that at least 1 preferred console will be registered when the stdout-path property is set is invalid, which can result in _no_ consoles.", though it didn't answer my question.
I started looking whether tty0 was not getting in the way and in the end I came up with setting console.
But you seem affirmative.Quoted 6 lines
There have been some issues in this area, but I thought they were in conjunction with earlycon and solved now. This is a fairly common review request for dts files, so I'm surprised if it doesn't work right. Maybe having tty0 or not has some influence. Or people just accept review comments without testing or caring...
Quoted 9 lines
I can assure you I tested without early{con,printk} ;).
Now I have just rechecked the codepaths and something caught my attention in kernel/printk/printk.c:__add_preferred_console(): if
console_cmdlineis emptyselected_consolegets unconditionally set to zero ! Knowing this I confirmed by replacing with idx (works), and also by using ttyS0 (i.e. alias serial0 = &uart2) (works), this would not affect DTs using serial0. It's late here so I'll stop there.
The stdout-path bug was fixed last week by Paul Burton in 05fd007e4629 ("console: don't prefer first registered if DT specifies stdout-path").
Karl
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
In reply to Karl Beldan+ Sekhar
Hi Karl,
Quoted 2 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Machine number is only relevant for legacy (non-DT) boot and this is DT boot, so the machine number bit really relevant for this changelog.
BTW, have you tried legacy boot on LCDK with board-omapl138-hawk.c? I assume it mostly works?
Quoted 10 lines
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).Signed-off-by Karl Beldan <[email protected]>
Tested with v4.7 on my LCDK board.
Note that I also needed CONFIG_RTC_DRV_OMAP=m enabled in davinci_all_defconfig for the RTC driver. Could you add a patch for that to this series as well?
Also, plese Cc the co-maintainer Sekhar Nori (now Cc'd) on all future davinci patches.
Quoted 4 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++
I think this should be called da850-lcdk.dts.
The OMAP prefix in the DT directory is just going to cause confusion, and the other DTs using this same SoC are already called da850.
Sekhar do you have any opinion here?
[...]
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +10
-0+/ { + model = "DA850/AM1808/OMAP-L138 LCDK"; + compatible = "ti,omapl138-lcdk", "ti,da850"; + + aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";
earlycon is kind of a debug option, so probably should be left out of the default DT.
Review
Quoted 2 lines
(quoted diff) +2
-0+ stdout-path = "serial2:115200n8"; + };
Kevin
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 4 lines · Kevin Hilman
+ Sekhar
Hi Karl,
Quoted 8 lines
Quoted 2 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Machine number is only relevant for legacy (non-DT) boot and this is DT boot, so the machine number bit really relevant for this changelog.
Hi Kevin,
It was purely informative.
Quoted 3 lines
BTW, have you tried legacy boot on LCDK with
board-omapl138-hawk.c? I assume it mostly works?
Yes.
Quoted 11 lines
Quoted 10 lines
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).Signed-off-by Karl Beldan <[email protected]>
Quoted 8 lines
Tested with v4.7 on my LCDK board.
Tested-by Kevin Hilman <[email protected]>Note that I also needed
CONFIG_RTC_DRV_OMAP=menabled indavinci_all_defconfigfor the RTC driver. Could you add a patch for that to this series as well?
No problem. BTW do you also consider CONFIG_ items not arch specific (like CONFIG_NET_VENDOR_SMSC) ?
Quoted 3 lines
Also, plese Cc the co-maintainer Sekhar Nori (now Cc'd) on all future davinci patches.
Sure.
Quoted 10 lines
Quoted 4 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++I think this should be called
da850-lcdk.dts.The OMAP prefix in the DT directory is just going to cause confusion, and the other DTs using this same SoC are already called da850.
That's what I thought too, mainline U-Boot is using omapl138_lcdk but yes da850 is less confusing given the code already present (downside is when you search for da850 on the net there's nothing).
Quoted 4 lines
Sekhar do you have any opinion here?
[...]
Quoted 14 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 19
Quoted 10 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +10
-0+/ { + model = "DA850/AM1808/OMAP-L138 LCDK"; + compatible = "ti,omapl138-lcdk", "ti,da850"; + + aliases { + serial2 = &serial2; + }; + + chosen { + bootargs = "console=ttyS2,115200n8 earlycon";earlycon is kind of a debug option, so probably should be left out of the default DT.
Sure.
Karl
A message that is not in the archive (sent off-list or not yet received): 20160804200522.GB15878@gobelin
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 35 lines · Karl Beldan
Quoted 4 lines · Kevin Hilman
+ Sekhar
Hi Karl,
Quoted 8 lines
Quoted 2 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Machine number is only relevant for legacy (non-DT) boot and this is DT boot, so the machine number bit really relevant for this changelog.
Hi Kevin,
It was purely informative.
Quoted 3 lines
BTW, have you tried legacy boot on LCDK with
board-omapl138-hawk.c? I assume it mostly works?Yes.
Quoted 13 lines
Quoted 10 lines
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).Signed-off-by Karl Beldan <[email protected]>Tested with v4.7 on my LCDK board.
Quoted 8 lines
Quoted 6 lines
Tested-by Kevin Hilman <[email protected]>Note that I also needed
CONFIG_RTC_DRV_OMAP=menabled indavinci_all_defconfigfor the RTC driver. Could you add a patch for that to this series as well?No problem. BTW do you also consider
CONFIG_items not arch specific (likeCONFIG_NET_VENDOR_SMSC) ?
Do you mean for davinci_all_config? Yes.
Quoted 11 lines
Quoted 4 lines
Also, plese Cc the co-maintainer Sekhar Nori (now Cc'd) on all future davinci patches.
Sure.
Quoted 5 lines
Quoted 4 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++
Quoted 8 lines
Quoted 5 lines
I think this should be called
da850-lcdk.dts.The OMAP prefix in the DT directory is just going to cause confusion, and the other DTs using this same SoC are already called da850.
That's what I thought too, mainline U-Boot is using
omapl138_lcdkbut yes da850 is less confusing given the code already present (downside is when you search for da850 on the net there's nothing).
OK, let's stick with da850 for the DT names. The other help texts already list all the names da850/omapl138/am18x so we should be fine.
Kevin
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
In reply to Kevin HilmanQuoted 10 lines · Kevin Hilman
Quoted 3 lines
Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++I think this should be called
da850-lcdk.dts.The OMAP prefix in the DT directory is just going to cause confusion, and the other DTs using this same SoC are already called da850.
Sekhar do you have any opinion here?
Prefer using da850 in file names and in code. The explanatory or help text can contain rest of the part names.
For file names or code catering both to da850 and da830, da8xx should be used.
I know documentation for da850 and da830 is not public, but thats what the parts first came out as, and we want to be consistent with existing code.
Regards,
Sekhar
v2 cover Support for the L138/C6748 Dev Kit (LCDK)
In reply to Karl BeldanThis depends on "ARM: dts: da850: Add missing pin muxing for the UARTs".
Changes from v1:
- s/omapl138/da850/
- Remove earlycon from bootargs
- Remove console=ttyS2,115200n8 from bootargs (workaround for preferred console)
- Add patches for CONFIG_SMSC_PHY=y and CONFIG_RTC_DRV_OMAP=m
Karl Beldan (3):
ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
ARM: davinci_all_defconfig: enable RTC driver as module
ARM: davinci_all_defconfig: enable SMSC ethernet PHY
Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 2 + arch/arm/mach-davinci/da8xx-dt.c | 1 + 5 files changed, 78 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Signature · 1 line
2.9.0.rc1
PATCH v2 1/3 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
The LCDK is the successor to the late Hawkboard.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. phy, audio codec, video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always on).
A DT-only boot with this addition gives functional UART, reboot via watchdog, RTC, ethernet and MMC (I added the CD GPIO for the MMC although davinci_mmc doesn't call the OF facilities of mmc core).
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 76 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Documentation/devicetree/bindings/arm/davinci.txt +4 -0
@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board +Required root node properties: + - compatible = "ti,da850-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;
arch/arm/boot/dts/Makefile +1 -0
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + da850-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \
arch/arm/boot/dts/da850-lcdk.dts new file +70 -0
70 lines not on this page · raw message
arch/arm/mach-davinci/da8xx-dt.c +1 -0
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)static const char *const da850_boards_compat[]__initconst = {"enbw,cmc" , +"ti,da850-lcdk" ,"ti,da850-evm" ,"ti,da850" ,NULL ,
Signature · 1 line
2.9.0.rc1
Rob Herring
maintainerPATCH v2 1/3 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 13 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. phy, audio codec, video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always on).
A DT-only boot with this addition gives functional UART, reboot via watchdog, RTC, ethernet and MMC (I added the CD GPIO for the MMC althoughdavinci_mmcdoesn't call the OF facilities of mmc core).Cc Sekhar Nori <[email protected]>Tested-by Kevin Hilman <[email protected]>Signed-off-by Karl Beldan <[email protected]>
Quoted 7 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 76 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
PATCH v2 2/3 ARM: davinci_all_defconfig: enable RTC driver as module
In reply to Karl BeldanThis driver handles the RTC of most davinci SoCs.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -188,6 +188,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=m CONFIG_LEDS_TRIGGER_HEARTBEAT=m CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_OMAP=m CONFIG_DMADEVICES=y CONFIG_TI_EDMA=y CONFIG_EXT2_FS=y
Signature · 1 line
2.9.0.rc1
PATCH v2 3/3 ARM: davinci_all_defconfig: enable SMSC ethernet PHY
In reply to Karl BeldanThe LCDK embeds a LAN8710.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -88,6 +88,7 @@ CONFIG_BLK_DEV_SD=m CONFIG_NETDEVICES=y CONFIG_TUN=m CONFIG_LXT_PHY=y +CONFIG_SMSC_PHY=y CONFIG_LSI_ET1011C_PHY=y CONFIG_NET_ETHERNET=y CONFIG_MII=y
Signature · 1 line
2.9.0.rc1
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
In reply to Karl BeldanQuoted 11 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).
Quoted 1 line
Signed-off-by Karl Beldan <[email protected]>
C6748 is a pin-compatible DSP-only part which does not run Linux. The OMAP-L138 and C6748 LCDKs are physically different boards. So, I would just stick with subject line ".. for the OMAP-L138 LCDK board"
Quoted 13 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dtsDocumentation/devicetree/bindings/arm/davinci.txt +0
-0
Documentation/devicetree/bindings/arm/davinci.txt DA850/OMAP-L138/AM18x Evaluation Module (EVM) board · line 8
Quoted 4 lines
Documentation/devicetree/bindings/arm/davinci.txt +1
-0@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board
here too, drop reference to C6748.
Documentation/devicetree/bindings/arm/davinci.txt DA850/OMAP-L138/AM18x Evaluation Module (EVM) board · line 10
Quoted 2 lines
Documentation/devicetree/bindings/arm/davinci.txt +2
-0+Required root node properties: + - compatible = "ti,omapl138-lcdk", "ti,da850";
let the compatible be "ti,da850-lcdk" for consistency.
Quoted 22 lines
Documentation/devicetree/bindings/arm/davinci.txt +1
-0+ EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;arch/arm/boot/dts/Makefile +1
-0@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + omapl138-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \arch/arm/boot/dts/omapl138-lcdk.dts new file +0
-0
arch/arm/boot/dts/omapl138-lcdk.dts line 4
Quoted 4 lines
arch/arm/boot/dts/omapl138-lcdk.dts new file +4
-0@@ -0,0 +1,71 @@ +/* + * Copyright (c) 2016 BayLibre, Inc. + * + * Licensed under GPLv2 or later.
are you sure about "or later"?
Thanks,
Sekhar
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 12 lines · Sekhar Nori
Quoted 11 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).
Quoted 6 lines
Quoted 1 line
Signed-off-by Karl Beldan <[email protected]>C6748 is a pin-compatible DSP-only part which does not run Linux. The OMAP-L138 and C6748 LCDKs are physically different boards. So, I would just stick with subject line ".. for the OMAP-L138 LCDK board"
That was my understanding but LCDK stands for L138-C6748-Dev-Kit right ? Anyways, I'll remove the said references as per your request.
Quoted 16 lines
Quoted 16 lines
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omapl138-lcdk.dts | 71 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dtsDocumentation/devicetree/bindings/arm/davinci.txt +0
-0@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850";
Quoted 4 lines
Documentation/devicetree/bindings/arm/davinci.txt DA850/OMAP-L138/AM18x Evaluation Module (EVM) board · line 8
Quoted 1 line
Documentation/devicetree/bindings/arm/davinci.txt +1
-0+DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) boardhere too, drop reference to C6748.
Ditto.
Quoted 5 lines
Documentation/devicetree/bindings/arm/davinci.txt DA850/OMAP-L138/AM18x Evaluation Module (EVM) board · line 10
Quoted 2 lines
Documentation/devicetree/bindings/arm/davinci.txt +2
-0+Required root node properties: + - compatible = "ti,omapl138-lcdk", "ti,da850";let the compatible be "ti,da850-lcdk" for consistency.
Kevin pointed that out.
Quoted 20 lines
Quoted 20 lines
Documentation/devicetree/bindings/arm/davinci.txt +1
-0+ EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;arch/arm/boot/dts/Makefile +1
-0@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + omapl138-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \arch/arm/boot/dts/omapl138-lcdk.dts new file +0
-1--- /dev/null
Quoted 9 lines
arch/arm/boot/dts/omapl138-lcdk.dts line 4
Quoted 6 lines
+++
b/arch/arm/boot/dts/omapl138-lcdk.dtsarch/arm/boot/dts/omapl138-lcdk.dts new file +4
-0@@ -0,0 +1,71 @@ +/* + * Copyright (c) 2016 BayLibre, Inc. + * + * Licensed under GPLv2 or later.are you sure about "or later"?
I will remove it.
Karl
PATCH 1/1 ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
Quoted 13 lines · Karl Beldan
Quoted 12 lines · Sekhar Nori
Quoted 11 lines · Karl Beldan
The LCDK is the successor to the late Hawkboard and has the same machine number.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. PHY, Audio Codec, Video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC althoughdavinci_mmcdoesn't call yet the mmc core OF facilities).
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Karl Beldan <[email protected]>C6748 is a pin-compatible DSP-only part which does not run Linux. The OMAP-L138 and C6748 LCDKs are physically different boards. So, I would just stick with subject line ".. for the OMAP-L138 LCDK board"
That was my understanding but LCDK stands for L138-C6748-Dev-Kit right ? Anyways, I'll remove the said references as per your request.
You are right. And now that you clarify that, I think I am okay leaving what you have as-it-is. Use of C6748 threw me off. But thats just the acronym expansion.
Thanks,
Sekhar
v3 cover Support for the LCDK
In reply to Karl BeldanThis depends on "ARM: dts: da850: Add missing pin muxing for the UARTs".
Changes from v1:
- s/omapl138/da850/
- Remove earlycon from bootargs
- Remove console=ttyS2,115200n8 from bootargs (workaround for preferred console)
- Add patches for CONFIG_SMSC_PHY=y and CONFIG_RTC_DRV_OMAP=m
Changes from v2:
- Remove references to C6748: replace 'L138/C6748 Dev Kit (LCDK)' with 'LCDK'
- Change license from 'GPLv2 or later' to 'GPLv2'
Karl Beldan (3):
ARM: dts: da850: Add basic DTS for the LCDK
ARM: davinci_all_defconfig: enable RTC driver as module
ARM: davinci_all_defconfig: enable SMSC ethernet PHY
Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 2 + arch/arm/mach-davinci/da8xx-dt.c | 1 + 5 files changed, 78 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Signature · 1 line
2.9.0.rc1
PATCH v3 1/3 ARM: dts: da850: Add basic DTS for the LCDK
The LCDK is the successor to the late Hawkboard.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. phy, audio codec, video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always on).
A DT-only boot with this addition gives functional UART, reboot via watchdog, RTC, ethernet and MMC (I added the CD GPIO for the MMC although davinci_mmc doesn't call the OF facilities of mmc core).
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 76 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Documentation/devicetree/bindings/arm/davinci.txt +4 -0
@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x LCDK board +Required root node properties: + - compatible = "ti,da850-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;
arch/arm/boot/dts/Makefile +1 -0
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + da850-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \
arch/arm/boot/dts/da850-lcdk.dts new file +70 -0
70 lines not on this page · raw message
arch/arm/mach-davinci/da8xx-dt.c +1 -0
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)static const char *const da850_boards_compat[]__initconst = {"enbw,cmc" , +"ti,da850-lcdk" ,"ti,da850-evm" ,"ti,da850" ,NULL ,
Signature · 1 line
2.9.0.rc1
PATCH v3 2/3 ARM: davinci_all_defconfig: enable RTC driver as module
In reply to Karl BeldanThis driver handles the RTC of most davinci SoCs.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -188,6 +188,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=m CONFIG_LEDS_TRIGGER_HEARTBEAT=m CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_OMAP=m CONFIG_DMADEVICES=y CONFIG_TI_EDMA=y CONFIG_EXT2_FS=y
Signature · 1 line
2.9.0.rc1
PATCH v3 3/3 ARM: davinci_all_defconfig: enable SMSC ethernet PHY
In reply to Karl BeldanThe LCDK embeds a LAN8710.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -88,6 +88,7 @@ CONFIG_BLK_DEV_SD=m CONFIG_NETDEVICES=y CONFIG_TUN=m CONFIG_LXT_PHY=y +CONFIG_SMSC_PHY=y CONFIG_LSI_ET1011C_PHY=y CONFIG_NET_ETHERNET=y CONFIG_MII=y
Signature · 1 line
2.9.0.rc1
v4 cover Support for the LCDK
In reply to Karl BeldanThis depends on "ARM: dts: da850: Add missing pin muxing for the UARTs".
Changes from v1:
- s/omapl138/da850/
- Remove earlycon from bootargs
- Remove console=ttyS2,115200n8 from bootargs (workaround for preferred console)
- Add patches for CONFIG_SMSC_PHY=y and CONFIG_RTC_DRV_OMAP=m
Changes from v2:
- [1] Remove references to C6748: replace 'L138/C6748 Dev Kit (LCDK)' with 'LCDK'
- Change license from 'GPLv2 or later' to 'GPLv2'
Changes from v3:
- revert v2 [1]
Karl Beldan (3):
ARM: dts: da850: Add basic DTS for the LCDK
ARM: davinci_all_defconfig: enable RTC driver as module
ARM: davinci_all_defconfig: enable SMSC ethernet PHY
Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 2 + arch/arm/mach-davinci/da8xx-dt.c | 1 + 5 files changed, 78 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Signature · 1 line
2.9.2
PATCH v4 1/3 ARM: dts: da850: Add basic DTS for the LCDK
The LCDK is the successor to the late Hawkboard.
Among the differences are the flash (16bits vs 8bits) and some pins (MMC, LEDs, buttons, some external connectors), however the main components remain the same (eth. phy, audio codec, video decoder and DAC) except for the main PMIC, different and hard-wired on the LCDK (the LDOs and DCDCs are always on).
A DT-only boot with this addition gives functional UART, reboot via watchdog, RTC, ethernet and MMC (I added the CD GPIO for the MMC although davinci_mmc doesn't call the OF facilities of mmc core).
--- Documentation/devicetree/bindings/arm/davinci.txt | 4 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/da850-lcdk.dts | 70 +++++++++++++++++++++++ arch/arm/mach-davinci/da8xx-dt.c | 1 + 4 files changed, 76 insertions(+) create mode 100644 arch/arm/boot/dts/da850-lcdk.dts
Documentation/devicetree/bindings/arm/davinci.txt +4 -0
@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board Required root node properties: - compatible = "ti,da850-evm", "ti,da850"; +DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board +Required root node properties: + - compatible = "ti,da850-lcdk", "ti,da850"; + EnBW AM1808 based CMC board Required root node properties: - compatible = "enbw,cmc", "ti,da850;
arch/arm/boot/dts/Makefile +1 -0
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ + da850-lcdk.dtb \ da850-enbw-cmc.dtb \ da850-evm.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \
arch/arm/boot/dts/da850-lcdk.dts new file +70 -0
70 lines not on this page · raw message
arch/arm/mach-davinci/da8xx-dt.c +1 -0
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)static const char *const da850_boards_compat[]__initconst = {"enbw,cmc" , +"ti,da850-lcdk" ,"ti,da850-evm" ,"ti,da850" ,NULL ,
Signature · 1 line
2.9.2
PATCH v4 2/3 ARM: davinci_all_defconfig: enable RTC driver as module
In reply to Karl BeldanThis driver handles the RTC of most davinci SoCs.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -188,6 +188,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=m CONFIG_LEDS_TRIGGER_HEARTBEAT=m CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_OMAP=m CONFIG_DMADEVICES=y CONFIG_TI_EDMA=y CONFIG_EXT2_FS=y
Signature · 1 line
2.9.2
PATCH v4 2/3 ARM: davinci_all_defconfig: enable RTC driver as module
Quoted 5 lines · Karl Beldan
This driver handles the RTC of most davinci SoCs.
Cc Sekhar Nori <[email protected]>Cc Kevin Hilman <[email protected]>Signed-off-by Karl Beldan <[email protected]>
Tested on da850-lcdk using tools/testing/selftests/timers/rtctest.c:
/ # ./rtctest
RTC Driver Test Example.
Counting 5 update (1/sec) interrupts from reading /dev/rtc0: 1 2 3 4 5 Again, from using select(2) on /dev/rtc: 1 2 3 4 5
Current RTC date/time is 1-1-2000, 00:00:25.
Alarm time now set to 00:00:30.
Waiting 5 seconds for alarm... okay. Alarm rang.
Periodic IRQ rate is 1Hz.
Counting 20 interrupts at:
2Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 16Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 32Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 64Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
*** Test complete ***
PATCH v4 3/3 ARM: davinci_all_defconfig: enable SMSC ethernet PHY
In reply to Karl BeldanThe LCDK embeds a LAN8710.
--- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/davinci_all_defconfig +1 -0
@@ -88,6 +88,7 @@ CONFIG_BLK_DEV_SD=m CONFIG_NETDEVICES=y CONFIG_TUN=m CONFIG_LXT_PHY=y +CONFIG_SMSC_PHY=y CONFIG_LSI_ET1011C_PHY=y CONFIG_NET_ETHERNET=y CONFIG_MII=y
Signature · 1 line
2.9.2
PATCH v4 3/3 ARM: davinci_all_defconfig: enable SMSC ethernet PHY
Quoted 5 lines · Karl Beldan
The LCDK embeds a LAN8710.
Cc Sekhar Nori <[email protected]>Cc Kevin Hilman <[email protected]>Signed-off-by Karl Beldan <[email protected]>
Tested on da850-lcdk with an NFS root filesystem.
Kevin
v4 cover Support for the LCDK
In reply to Karl BeldanQuoted 8 lines · Karl Beldan
This depends on "ARM: dts: da850: Add missing pin muxing for the UARTs".
Changes from v1:
- s/omapl138/da850/
- Remove earlycon from bootargs
- Remove console=ttyS2,115200n8 from bootargs (workaround for preferred console)
- Add patches forCONFIG_SMSC_PHY=yandCONFIG_RTC_DRV_OMAP=m
Quoted 6 lines
Changes from v2:
- [1] Remove references to C6748: replace 'L138/C6748 Dev Kit (LCDK)' with 'LCDK'
- Change license from 'GPLv2 or later' to 'GPLv2'Changes from v3:
- revert v2 [1]
Series applied and boot tested on my LCDK.
For future, when posting a new version, please send as an independent series and not reply to the very first posting.
Thanks,
Sekhar