* Trying to get a Pogoplug v4 board description added
[not found] ` <20150829153646.GB31545@lunn.ch>
@ 2015-08-30 1:11 ` Andrew Innes
2015-08-30 7:11 ` Andrew Lunn
2015-08-31 13:11 ` Andrew Lunn
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Innes @ 2015-08-30 1:11 UTC (permalink / raw)
To: linux-arm-kernel
I have found the author and I have sent ebbix a pivate message
informing him of what I'm doing and asking for his email address.
http://archlinuxarm.org/forum/
There is a severe lack of licence information.
The following is me trying to find the author.
This is the first dts I remember being available
Postby ebbix ? Tue Mar 11, 2014 4:25 pm
http://archlinuxarm.org/forum/viewtopic.php?f=53&t=6974
ebbix posting it to a thread for bodhi
http://forum.doozan.com/read.php?3,14697,17934,quote=1
The fIle I included in the previous e-mail is from this 4.1 kernel
maintained by bodhi <mibodhi@gmail.com> just with the commented out
sections removed
He credits ebbix for the original dts in the 3.17 credits
Credits: Thanks the ALARM devs at Arch site for the GoFlex Home and
Pogo E02 DTS, and forum member ebbix for Pogo V4 DTS, and pkirchhofer
for the NSA325 DTS.
http://forum.doozan.com/read.php?2,12096
Then there are various different versions around the Internet
moonman made a committ on github containing it
https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux-kirkwood-dt/pogoplugv4_fdt.patch
line 2041
https://github.com/davidedg/NAS-NSA325-mod/blob/57c412d98295ee25a53f9a2f326a4e44159074ab/kernel/linux-4.1.0-kirkwood-tld-2.patch
Openwrt
https://www.mail-archive.com/openwrt-devel at lists.openwrt.org/msg27147.html
Even a bsd lisenced one from freebsd that looks like it was written from scratch
https://bz-attachments.freebsd.org/attachment.cgi?id=155083
On Sat, Aug 29, 2015 at 11:36 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Sat, Aug 29, 2015 at 01:04:54PM +0800, Andrew Innes wrote:
>> Hi Andrew
>> Sorry to contact you like this but I was a little bit unsure on how to
>> go about getting a device tree description added to the kernel.
>
> No problems as a first contact. However, the rest should be done on
> list.
>
>> I own a couple of these devices and there is an out of tree patch with
>> this description.
>> I haven't seen any attempt to get them added on the device tree
>> mailing list archives so I thought I would try.
>
> Device tree would actually be the wrong list. You should send it to
> the four maintainers, me, Jason, Gregory and Sebastian. You can find
> emails addresses in the MAINTAINERS file, section:
>
> ARM/Marvell Kirkwood and Armada 370, 375, 38x, XP SOC support
>
> and also CC linux-arm-kernel at lists.infradead.org
>
>> Would you be able to offer any advice on the quality of the included file.
>
> At a first look, it seems pretty good. Once you post it, i will take a
> proper look.
>
> What does need to be sorted out is copyright and license. Who actually
> wrote it, and what license is it released under. Can you try to find
> that out?
>
> Thanks
> Andrew
>
>
>>
>>
>> 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;
>> };
>>
>> mbus {
>> pcie-controller {
>> status = "okay";
>>
>> pcie at 1,0 {
>> status = "okay";
>> };
>> };
>> };
>>
>> 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";
>> };
>>
>> mvsdio at 90000 {
>> pinctrl-0 = <&pmx_sdio>;
>> pinctrl-names = "default";
>> status = "okay";
>> cd-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
>> /* 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>;
>> };
>> };
>>
>> gpio_keys {
>> compatible = "gpio-keys";
>> #address-cells = <1>;
>> #size-cells = <0>;
>> pinctrl-0 = <&pmx_button_eject>;
>> pinctrl-names = "default";
>>
>> button at 1 {
>> label = "Eject Button";
>> linux,code = <KEY_EJECTCD>;
>> gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
>> };
>> };
>> };
>>
>> &nand {
>> status = "okay";
>>
>> partition at 0 {
>> label = "u-boot";
>> reg = <0x0000000 0x200000>;
>> read-only;
>> };
>>
>> partition at 200000 {
>> label = "uImage";
>> reg = <0x200000 0x300000>;
>> };
>>
>> partition at 500000 {
>> label = "uImage2";
>> reg = <0x500000 0x300000>;
>> };
>>
>> partition at 800000 {
>> label = "failsafe";
>> reg = <0x800000 0x800000>;
>> };
>>
>> partition at 1000000 {
>> label = "root";
>> reg = <0x1000000 0x7000000>;
>> };
>> };
>>
>> &mdio {
>> status = "okay";
>>
>> ethphy0: ethernet-phy at 0 {
>> reg = <0>;
>> };
>> };
>>
>> ð0 {
>> status = "okay";
>> ethernet0-port at 0 {
>> phy-handle = <ðphy0>;
>> };
>> };
^ permalink raw reply [flat|nested] 3+ messages in thread
* Trying to get a Pogoplug v4 board description added
2015-08-30 1:11 ` Trying to get a Pogoplug v4 board description added Andrew Innes
@ 2015-08-30 7:11 ` Andrew Lunn
2015-08-31 13:11 ` Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2015-08-30 7:11 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Aug 30, 2015 at 09:11:08AM +0800, Andrew Innes wrote:
> I have found the author and I have sent ebbix a pivate message
> informing him of what I'm doing and asking for his email address.
> http://archlinuxarm.org/forum/
> There is a severe lack of licence information.
The author is the one who gets to decide the license. So ask ebbix.
Generally it is GPL, but for some DT files, but less so for Kirkwood,
we are trying for dual license GPL and X11. That would allow for
example FreeBSD to use it, or a boot loader which is not GPL. But
Kirkwood files are at the moment all GPL, and we have not made any
attempts yet to get the core .dtsi files re-licensed. So if its GPL,
thats O.K.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Trying to get a Pogoplug v4 board description added
2015-08-30 1:11 ` Trying to get a Pogoplug v4 board description added Andrew Innes
2015-08-30 7:11 ` Andrew Lunn
@ 2015-08-31 13:11 ` Andrew Lunn
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2015-08-31 13:11 UTC (permalink / raw)
To: linux-arm-kernel
Hi Andrew
Once you have the copyright and licence sort out, we should have a
header here with this information.
> >> 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.
> >> };
> >>
> >> 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.
> >> };
> >> };
> >>
> >> 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.
> >> };
> >>
> >> 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
> >> /* 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
> >> };
> >>
Please also add this file to the Makefile, keeping things in order.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-31 13:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAAKvOShfrRn-E9o2Gjek5xb8xfGucUmO_FRu7c3T7S2V=co-2g@mail.gmail.com>
[not found] ` <20150829153646.GB31545@lunn.ch>
2015-08-30 1:11 ` Trying to get a Pogoplug v4 board description added Andrew Innes
2015-08-30 7:11 ` Andrew Lunn
2015-08-31 13:11 ` Andrew Lunn
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).