Hi Fabrizio,
On Fri, Jun 14, 2019 at 3:17 PM Fabrizio Castro
<[email protected]> wrote:
> This patch adds LEDs support to the HiHope RZ/G2[MN] Main Board
> common device tree.
>
> Signed-off-by: Fabrizio Castro <[email protected]>
Thanks for your patch!
> --- a/arch/arm64/boot/dts/renesas/hihope-common.dtsi
> +++ b/arch/arm64/boot/dts/renesas/hihope-common.dtsi
> @@ -17,6 +17,30 @@
> stdout-path = "serial0:115200n8";
> };
>
> + leds {
> + compatible = "gpio-leds";
> +
> + led0 {
> + gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
> + label = "LED0";
There's no need for a label property, if it matches the node name
(applies to all four LEDs).
Note that this GPIO is shared with a switch, like on Salvator-X(S) and
ULCB. As currently Linux cannot handle both, describing the LED
precludes adding the switch later.
(applies to the first 3 LEDs).
> + led3 {
> + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
> + label = "LED3";
> + };
I cannot find LED3. According to the schematics GP0_0 == CS0n is used
as the chipselect for the LVDS switch?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds