Thread (1 message) 1 message, 1 author, 2015-10-07

[PATCH] ARM: bcm2835: add label for uart0

From: Stefan Wahren <hidden>
Date: 2015-10-07 06:47:15
Also in: linux-devicetree

Am 07.10.2015 um 04:26 schrieb Stephen Warren:
On 10/06/2015 03:53 PM, Eric Anholt wrote:
quoted
Stefan Wahren [off-list ref] writes:
quoted
This patch adds a label for uart0 to allow changing of uart0
pins.

Signed-off-by: Stefan Wahren <redacted>
This patch seems innocuous, but could you clarify for me how
exactly you change the uart0 pins, and why one would do that?
I /assume/ this is so that some other DT file (that includes the
edited file) can add some pinctrl-related properties to this DT node,
using syntax such as:

&uart0 {
    new content;
};

If so, the patch,
Acked-by: Stephen Warren <redacted>
Your assumption is correct. In case the UART should be used on a custom
board with Raspberry Pi Compute Module and a microcontroller this change
is necessary to reference the UART:

&gpio {
  // ...

  uart0_pins: uart0_pins {
    brcm,pins = <36 37>;
    brcm,function = <BCM2835_FSEL_ALT2>;
  };
}

&uart0 {
  pinctrl-names = "default";
  pinctrl-0 = <&uart0_pins>;
  status = "okay";
};

Thanks

Stefan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help