* [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks @ 2015-03-16 10:28 Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 1/3] ARM: dts: Define stdout-path property for Peach boards Javier Martinez Canillas ` (3 more replies) 0 siblings, 4 replies; 10+ messages in thread From: Javier Martinez Canillas @ 2015-03-16 10:28 UTC (permalink / raw) To: linux-arm-kernel The kernel can use as the default console a serial port if is defined as stdout device in the Device Tree. This allows a board to be booted without the need of having a console parameter in the kernel command line. This small series add a stdout-path property for Exynos5 Chromebooks and is composed of the following patches: Javier Martinez Canillas (3): ARM: dts: Define stdout-path property for Peach boards ARM: dts: Define stdout-path property for Snow board ARM: dts: Define stdout-path property for Spring board arch/arm/boot/dts/exynos5250-snow.dts | 1 + arch/arm/boot/dts/exynos5250-spring.dts | 1 + arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ 4 files changed, 10 insertions(+) Best regards, Javier ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] ARM: dts: Define stdout-path property for Peach boards 2015-03-16 10:28 [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Javier Martinez Canillas @ 2015-03-16 10:28 ` Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 2/3] ARM: dts: Define stdout-path property for Snow board Javier Martinez Canillas ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: Javier Martinez Canillas @ 2015-03-16 10:28 UTC (permalink / raw) To: linux-arm-kernel The kernel can use as the default console a serial port if is defined as stdout device in the Device Tree. This allows a board to be booted without the need of having a console parameter in the kernel command line. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index d0ee55f4d09f..3f4e2feaa927 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -43,6 +43,10 @@ pinctrl-names = "default"; }; + chosen { + stdout-path = "serial3:115200n8"; + }; + fixed-rate-clocks { oscclk { compatible = "samsung,exynos5420-oscclk"; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 7ea1d66dd719..c833bacf873b 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -42,6 +42,10 @@ pinctrl-names = "default"; }; + chosen { + stdout-path = "serial3:115200n8"; + }; + fixed-rate-clocks { oscclk { compatible = "samsung,exynos5420-oscclk"; -- 2.1.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] ARM: dts: Define stdout-path property for Snow board 2015-03-16 10:28 [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 1/3] ARM: dts: Define stdout-path property for Peach boards Javier Martinez Canillas @ 2015-03-16 10:28 ` Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board Javier Martinez Canillas 2015-03-17 1:51 ` [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Kukjin Kim 3 siblings, 0 replies; 10+ messages in thread From: Javier Martinez Canillas @ 2015-03-16 10:28 UTC (permalink / raw) To: linux-arm-kernel The kernel can use as the default console a serial port if is defined as stdout device in the Device Tree. This allows a board to be booted without the need of having a console parameter in the kernel command line. Currently the Snow DTS has a bootargs in the /chosen node and this is kept since users that don't have a serial console on this board might be using it to have the boot log shown in the display. This will have more precedence than the stdout-path but it's fine since is only used when CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is enabled. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> --- arch/arm/boot/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 5be966df7603..2657e842e5a5 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -29,6 +29,7 @@ chosen { bootargs = "console=tty1"; + stdout-path = "serial3:115200n8"; }; gpio-keys { -- 2.1.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board 2015-03-16 10:28 [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 1/3] ARM: dts: Define stdout-path property for Peach boards Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 2/3] ARM: dts: Define stdout-path property for Snow board Javier Martinez Canillas @ 2015-03-16 10:28 ` Javier Martinez Canillas 2015-03-16 11:05 ` Andreas Färber 2015-03-17 1:51 ` [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Kukjin Kim 3 siblings, 1 reply; 10+ messages in thread From: Javier Martinez Canillas @ 2015-03-16 10:28 UTC (permalink / raw) To: linux-arm-kernel The kernel can use as the default console a serial port if is defined as stdout device in the Device Tree. This allows a board to be booted without the need of having a console parameter in the kernel command line. Currently the Spring DTS has bootargs in the /chosen node and this is kept since users that don't have a serial console on this board might be using it to have the boot log shown in the display. This will have more precedence than the stdout-path but it's fine since is only used when CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is enabled. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> --- arch/arm/boot/dts/exynos5250-spring.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5250-spring.dts b/arch/arm/boot/dts/exynos5250-spring.dts index f02775487cd4..b9ec763a5602 100644 --- a/arch/arm/boot/dts/exynos5250-spring.dts +++ b/arch/arm/boot/dts/exynos5250-spring.dts @@ -25,6 +25,7 @@ chosen { bootargs = "console=tty1"; + stdout-path = "serial3:115200n8"; }; gpio-keys { -- 2.1.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board 2015-03-16 10:28 ` [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board Javier Martinez Canillas @ 2015-03-16 11:05 ` Andreas Färber 2015-03-16 11:28 ` Javier Martinez Canillas 0 siblings, 1 reply; 10+ messages in thread From: Andreas Färber @ 2015-03-16 11:05 UTC (permalink / raw) To: linux-arm-kernel Hi, Am 16.03.2015 um 11:28 schrieb Javier Martinez Canillas: > The kernel can use as the default console a serial port if is defined "The kernel can use a serial port as the default console if it's defined ..." > as stdout device in the Device Tree. > > This allows a board to be booted without the need of having a console > parameter in the kernel command line. > > Currently the Spring DTS has bootargs in the /chosen node and this is > kept since users that don't have a serial console on this board might > be using it to have the boot log shown in the display. This will have > more precedence than the stdout-path but it's fine since is only used "since it's" > when CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is enabled. > > Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> > --- > arch/arm/boot/dts/exynos5250-spring.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/boot/dts/exynos5250-spring.dts b/arch/arm/boot/dts/exynos5250-spring.dts > index f02775487cd4..b9ec763a5602 100644 > --- a/arch/arm/boot/dts/exynos5250-spring.dts > +++ b/arch/arm/boot/dts/exynos5250-spring.dts > @@ -25,6 +25,7 @@ > > chosen { > bootargs = "console=tty1"; > + stdout-path = "serial3:115200n8"; Is this a guess or did you verify that against some schematics? > }; > > gpio-keys { Assuming that bootargs still work, Reviewed-by: Andreas F?rber <afaerber@suse.de> I do wonder why this mechanism could not point to the same location as bootargs? ("dp-controller"?) The device does not even have screws for opening it, so accessing the serial port is highly theoretical. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG N?rnberg) ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board 2015-03-16 11:05 ` Andreas Färber @ 2015-03-16 11:28 ` Javier Martinez Canillas 2015-03-17 15:29 ` Kukjin Kim 0 siblings, 1 reply; 10+ messages in thread From: Javier Martinez Canillas @ 2015-03-16 11:28 UTC (permalink / raw) To: linux-arm-kernel Hello Andreas, >> index f02775487cd4..b9ec763a5602 100644 >> --- a/arch/arm/boot/dts/exynos5250-spring.dts >> +++ b/arch/arm/boot/dts/exynos5250-spring.dts >> @@ -25,6 +25,7 @@ >> >> chosen { >> bootargs = "console=tty1"; >> + stdout-path = "serial3:115200n8"; > > Is this a guess or did you verify that against some schematics? > I don't have access to the Spring schematics but it is based on what is defined in the vendor u-boot for Spring [0]. There isn't a Spring specific configuration file but only a chromeos_daisy.h which is shared by Snow, Spring and Kate (not yet in mainline): #define CONFIG_DIRECT_BOOTARGS \ "console=ttySAC3," STRINGIFY(CONFIG_BAUDRATE) " debug earlyprintk" So I assumed that all daisy-based Chromebooks use the same UART for debug. >> }; >> >> gpio-keys { > > Assuming that bootargs still work, > Yes, the semantics are not changed. The std-out property is only used as a default if no console= parameter is passed so if you already are passing one in your bootloader or using the one defined in the /chosen bootargs by enabling CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND, that will be used instead of std-out. > Reviewed-by: Andreas F?rber <afaerber@suse.de> > > I do wonder why this mechanism could not point to the same location as > bootargs? ("dp-controller"?) The device does not even have screws for I did wonder the same indeed but I don't know if you can use a display as std-out or only works for serial consoles. > opening it, so accessing the serial port is highly theoretical. > I see, in that case I think we could just drop this patch if is not possible to have a serial console even with some soldering like is the case in Snow, Peach Pit and Peach Pi. > Regards, > Andreas > Best regards, Javier [0]: https://chromium.googlesource.com/chromiumos/third_party/u-boot/+/firmware-spring-3824.B/include/configs/chromeos_daisy.h ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board 2015-03-16 11:28 ` Javier Martinez Canillas @ 2015-03-17 15:29 ` Kukjin Kim 0 siblings, 0 replies; 10+ messages in thread From: Kukjin Kim @ 2015-03-17 15:29 UTC (permalink / raw) To: linux-arm-kernel On 03/16/15 20:28, Javier Martinez Canillas wrote: > Hello Andreas, > Hi, >>> index f02775487cd4..b9ec763a5602 100644 >>> --- a/arch/arm/boot/dts/exynos5250-spring.dts >>> +++ b/arch/arm/boot/dts/exynos5250-spring.dts >>> @@ -25,6 +25,7 @@ >>> >>> chosen { >>> bootargs = "console=tty1"; >>> + stdout-path = "serial3:115200n8"; >> >> Is this a guess or did you verify that against some schematics? >> > > I don't have access to the Spring schematics but it is based on what > is defined in the vendor u-boot for Spring [0]. > > There isn't a Spring specific configuration file but only a > chromeos_daisy.h which is shared by Snow, Spring and Kate (not yet in > mainline): > > #define CONFIG_DIRECT_BOOTARGS \ > "console=ttySAC3," STRINGIFY(CONFIG_BAUDRATE) " debug earlyprintk" > > So I assumed that all daisy-based Chromebooks use the same UART for debug. > >>> }; >>> >>> gpio-keys { >> >> Assuming that bootargs still work, >> > > Yes, the semantics are not changed. The std-out property is only used > as a default if no console= parameter is passed so if you already are > passing one in your bootloader or using the one defined in the /chosen > bootargs by enabling CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND, that > will be used instead of std-out. > >> Reviewed-by: Andreas F?rber <afaerber@suse.de> >> >> I do wonder why this mechanism could not point to the same location as >> bootargs? ("dp-controller"?) The device does not even have screws for > > I did wonder the same indeed but I don't know if you can use a display > as std-out or only works for serial consoles. > >> opening it, so accessing the serial port is highly theoretical. >> > > I see, in that case I think we could just drop this patch if is not > possible to have a serial console even with some soldering like is the > case in Snow, Peach Pit and Peach Pi. > I've applied this whole series so if you guys find any problem on this, please let me know ;) Thanks, Kukjin ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks 2015-03-16 10:28 [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Javier Martinez Canillas ` (2 preceding siblings ...) 2015-03-16 10:28 ` [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board Javier Martinez Canillas @ 2015-03-17 1:51 ` Kukjin Kim 2015-03-17 5:27 ` Arnd Bergmann 3 siblings, 1 reply; 10+ messages in thread From: Kukjin Kim @ 2015-03-17 1:51 UTC (permalink / raw) To: linux-arm-kernel Javier Martinez Canillas wrote: > > The kernel can use as the default console a serial port if is defined > as stdout device in the Device Tree. > > This allows a board to be booted without the need of having a console > parameter in the kernel command line. > > This small series add a stdout-path property for Exynos5 Chromebooks and > is composed of the following patches: > > Javier Martinez Canillas (3): > ARM: dts: Define stdout-path property for Peach boards > ARM: dts: Define stdout-path property for Snow board > ARM: dts: Define stdout-path property for Spring board > > arch/arm/boot/dts/exynos5250-snow.dts | 1 + > arch/arm/boot/dts/exynos5250-spring.dts | 1 + > arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ > arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ > 4 files changed, 10 insertions(+) > + Arnd Basically, I have no objection to add stdout-path property on board DT but I need to ask other ARM guys how they think about? Always I'm questioned what should be defined in bootloader before entering kernel and IMHO kernel can do it, it should be defined in bootloader though ;) Let's wait for other opinions... Thanks, Kukjin ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks 2015-03-17 1:51 ` [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Kukjin Kim @ 2015-03-17 5:27 ` Arnd Bergmann 2015-03-17 15:28 ` Kukjin Kim 0 siblings, 1 reply; 10+ messages in thread From: Arnd Bergmann @ 2015-03-17 5:27 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 17 March 2015 10:51:13 Kukjin Kim wrote: > Javier Martinez Canillas wrote: > > > > The kernel can use as the default console a serial port if is defined > > as stdout device in the Device Tree. > > > > This allows a board to be booted without the need of having a console > > parameter in the kernel command line. > > > > This small series add a stdout-path property for Exynos5 Chromebooks and > > is composed of the following patches: > > > > Javier Martinez Canillas (3): > > ARM: dts: Define stdout-path property for Peach boards > > ARM: dts: Define stdout-path property for Snow board > > ARM: dts: Define stdout-path property for Spring board > > > > arch/arm/boot/dts/exynos5250-snow.dts | 1 + > > arch/arm/boot/dts/exynos5250-spring.dts | 1 + > > arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ > > arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ > > 4 files changed, 10 insertions(+) > > > + Arnd > > Basically, I have no objection to add stdout-path property on board DT but I > need to ask other ARM guys how they think about? Always I'm questioned what > should be defined in bootloader before entering kernel and IMHO kernel can do > it, it should be defined in bootloader though > > Let's wait for other opinions... > We're trying to do this on all machines now so we can replace debug_ll with earlycon for any normal use case aside from early early boot debugging. Please merge this patch set. Arnd ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks 2015-03-17 5:27 ` Arnd Bergmann @ 2015-03-17 15:28 ` Kukjin Kim 0 siblings, 0 replies; 10+ messages in thread From: Kukjin Kim @ 2015-03-17 15:28 UTC (permalink / raw) To: linux-arm-kernel On 03/17/15 14:27, Arnd Bergmann wrote: > On Tuesday 17 March 2015 10:51:13 Kukjin Kim wrote: >> Javier Martinez Canillas wrote: >>> >>> The kernel can use as the default console a serial port if is defined >>> as stdout device in the Device Tree. >>> >>> This allows a board to be booted without the need of having a console >>> parameter in the kernel command line. >>> >>> This small series add a stdout-path property for Exynos5 Chromebooks and >>> is composed of the following patches: >>> >>> Javier Martinez Canillas (3): >>> ARM: dts: Define stdout-path property for Peach boards >>> ARM: dts: Define stdout-path property for Snow board >>> ARM: dts: Define stdout-path property for Spring board >>> >>> arch/arm/boot/dts/exynos5250-snow.dts | 1 + >>> arch/arm/boot/dts/exynos5250-spring.dts | 1 + >>> arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ >>> arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ >>> 4 files changed, 10 insertions(+) >>> >> + Arnd >> >> Basically, I have no objection to add stdout-path property on board DT but I >> need to ask other ARM guys how they think about? Always I'm questioned what >> should be defined in bootloader before entering kernel and IMHO kernel can do >> it, it should be defined in bootloader though >> >> Let's wait for other opinions... >> > > We're trying to do this on all machines now so we can replace > debug_ll with earlycon for any normal use case aside from early > early boot debugging. > > Please merge this patch set. > OK, got it. Applied. Thanks, Kukjin ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-03-17 15:29 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-03-16 10:28 [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 1/3] ARM: dts: Define stdout-path property for Peach boards Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 2/3] ARM: dts: Define stdout-path property for Snow board Javier Martinez Canillas 2015-03-16 10:28 ` [PATCH 3/3] ARM: dts: Define stdout-path property for Spring board Javier Martinez Canillas 2015-03-16 11:05 ` Andreas Färber 2015-03-16 11:28 ` Javier Martinez Canillas 2015-03-17 15:29 ` Kukjin Kim 2015-03-17 1:51 ` [PATCH 0/3] ARM: dts: Define stdout-patch for Exynos Chromebooks Kukjin Kim 2015-03-17 5:27 ` Arnd Bergmann 2015-03-17 15:28 ` Kukjin Kim
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).