Trying to get a Pogoplug v4 board description added
From: andrew@lunn.ch (Andrew Lunn)
Date: 2015-08-31 13:11:19
Hi Andrew Once you have the copyright and licence sort out, we should have a header here with this information.
quoted
quoted
kirkwood-pogoplug_v4.dts /dts-v1/; #include "kirkwood.dtsi" #include "kirkwood-6192.dtsi" / { model = "Pogoplug v4"; compatible = "cloudengines,pogoplug-v4", "cloudengines,pogoplug-mobile", "marvell,kirkwood-88f6192", "marvell,kirkwood"; memory { device_type = "memory"; reg = <0x00000000 0x8000000>; }; chosen { bootargs = "console=ttyS0,115200"; stdout-path = &uart0;
You can combine this into one line:
stdout-path = "uart0:115200n8"
I don't think any Kirkwood boards do this yet, but it should work.
quoted
quoted
}; mbus { pcie-controller { status = "okay"; pcie at 1,0 { status = "okay"; };
Optional, but it is nice to comment on what is connected to the PCIe bus. I think it is the USB 3 controller? Adding the make model makes it easier for people to get the driver build into the kernel or as a module.
quoted
quoted
}; }; ocp at f1000000 { pinctrl: pin-controller at 10000 { pmx_led_green: pmx-led-green { marvell,pins = "mpp22"; marvell,function = "gpio"; }; pmx_led_red: pmx-led-red { marvell,pins = "mpp24"; marvell,function = "gpio"; }; pmx_button_eject: pmx-button-eject { marvell,pins = "mpp29"; marvell,function = "gpio"; }; }; serial at 12000 { status = "okay"; }; sata at 80000 { status = "okay"; nr-ports = <1>; phys = <&sata_phy0>; phy-names = "port0";
You should not need these last two lines. They are provided by the .dtsi file.
quoted
quoted
}; mvsdio at 90000 { pinctrl-0 = <&pmx_sdio>; pinctrl-names = "default"; status = "okay"; cd-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
You should have a pinmux definition for this. See for example kirkwood-sheevaplug-esata.dts and kirkwood-sheevaplug-common.dtsi
quoted
quoted
/* No WP GPIO */ }; }; gpio-leds { compatible = "gpio-leds"; pinctrl-0 = <&pmx_led_red &pmx_led_green>; pinctrl-names = "default"; health { label = "status:green:health"; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; default-state = "keep"; }; fault { label = "status:red:fault"; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; };
A common problem here, the labels don't fit what is documented. Documentation/leds/leds.txt says: "devicename:colour:function" so you should change status to pogoplugv4
quoted
quoted
};
Please also add this file to the Makefile, keeping things in order.
Andrew