Re: [PATCH v4 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

From: Mark Rutland
Date: Fri Mar 13 2015 - 12:25:55 EST


On Fri, Mar 13, 2015 at 03:50:42PM +0000, Kumar Gala wrote:
>
> On Mar 13, 2015, at 5:52 AM, Mark Rutland <mark.rutland@xxxxxxx> wrote:
>
> >> +/ {
> >> + chosen {
> >> + stdout-path = &blsp1_uart2;
> >> + };
> >
> > It would be good if we had the configuration too (see
> > Documentation/devicetree/bindings/chosen.txt), as that avoids any
> > reliance on kernel defaults.
> >
> > You can refer to an alias, so this could be:
> >
> > aliases {
> > serial0 = &blsp1_uart2;
> > };
> >
> > chosen {
> > stdout-path = "serial0:115200n8";
> > };
> >
> > ...assuming that 115200n8 is correct for your UART, of course.
> >
> >
> > [â]
>
> Where is the code that actually handles this parsing? Iâm not see it
> in early_init_dt_scan_chosen_serial and I donât believe
> fdt_path_offset does anything special with â:'

Take a look at commit 7914a7c5651a5161 ("of: support passing console options with
stdout-path").

Early on of_alias_scan will find the options and in of_console_check
we'll call add_preferred_console as appropriate. That'll be called in
uart_add_one_port.

> Iâll kill off usage of skeleton.dtsi

Cheers.

Mark.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/