From: simon.guinot@sequanux.org (Simon Guinot)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ARM: dts: kirkwood: add Seagate GoFlex Home
Date: Thu, 5 Nov 2015 10:20:55 +0100 [thread overview]
Message-ID: <20151105092055.GL4665@kw.sim.vm.gnt> (raw)
In-Reply-To: <00000150d49a8745-1c2bc8d4-1333-46bb-bf0e-5508ef988c73-000000@email.amazonses.com>
Hi Luka,
On Wed, Nov 04, 2015 at 10:25:08PM +0000, Luka Perkov wrote:
> Based on dts files from OpenWrt.
>
> Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
> ---
> .../devicetree/bindings/arm/marvell,kirkwood.txt | 1 +
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/kirkwood-goflexhome.dts | 127 +++++++++++++++++++++
> 3 files changed, 129 insertions(+)
> create mode 100644 arch/arm/boot/dts/kirkwood-goflexhome.dts
>
> diff --git a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> index ed381a3..37bd190 100644
> --- a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> +++ b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> @@ -72,6 +72,7 @@ board. Currently known boards are:
> "raidsonic,ib-nas6220-b"
> "raidsonic,ib-nas62x0"
> "seagate,dockstar"
> +"seagate,goflexhome"
> "seagate,goflexnet"
> "synology,ds109"
> "synology,ds110jv10"
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index ebe5b73..1d6fb0d 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -170,6 +170,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
> kirkwood-ds411slim.dtb \
> kirkwood-ea3500.dtb \
> kirkwood-ea4500.dtb \
> + kirkwood-goflexhome.dtb \
> kirkwood-goflexnet.dtb \
> kirkwood-guruplug-server-plus.dtb \
> kirkwood-ib62x0.dtb \
> diff --git a/arch/arm/boot/dts/kirkwood-goflexhome.dts b/arch/arm/boot/dts/kirkwood-goflexhome.dts
> new file mode 100644
> index 0000000..5f933d4
> --- /dev/null
> +++ b/arch/arm/boot/dts/kirkwood-goflexhome.dts
> @@ -0,0 +1,127 @@
> +/dts-v1/;
> +
> +#include "kirkwood.dtsi"
> +#include "kirkwood-6281.dtsi"
> +
> +/ {
> + model = "Seagate GoFlex Home";
> + compatible = "seagate,goflexhome", "marvell,kirkwood-88f6281", "marvell,kirkwood";
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x8000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
> + stdout-path = &uart0;
> + };
> +
> + ocp at f1000000 {
> + pinctrl: pin-controller at 10000 {
> + pmx_usb_power_enable: pmx-usb-power-enable {
> + marvell,pins = "mpp29";
> + marvell,function = "gpio";
> + };
> + pmx_led_white: pmx-led-white {
> + marvell,pins = "mpp40";
> + marvell,function = "gpio";
> + };
> + pmx_led_green: pmx-led_green {
> + marvell,pins = "mpp46";
> + marvell,function = "gpio";
> + };
> + pmx_led_orange: pmx-led-orange {
> + marvell,pins = "mpp47";
> + marvell,function = "gpio";
> + };
> + };
> + serial at 12000 {
> + status = "ok";
> + };
> +
> + sata at 80000 {
> + status = "okay";
> + nr-ports = <2>;
I think nr-ports should be set to 1. This device only allows to plug a
single HDD and there is no eSATA connectors.
> + };
> +
> + };
> + gpio-leds {
> + compatible = "gpio-leds";
> +
> + health {
> + label = "status:green:health";
> + gpios = <&gpio1 14 1>;
It would be better to use GPIO_ACTIVE_LOW instead of 1. The same comment
applies to the other LEDs.
> + linux,default-trigger = "default-on";
> + };
> + fault {
> + label = "status:orange:fault";
> + gpios = <&gpio1 15 1>;
> + };
> + misc {
> + label = "status:white:misc";
> + gpios = <&gpio1 8 1>;
> + linux,default-trigger = "ide-disk";
ide-disk ? Really ? There is no way this can be correct :)
> + };
> + };
> + regulators {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + pinctrl-0 = <&pmx_usb_power_enable>;
> + pinctrl-names = "default";
> +
> + usb_power: regulator at 1 {
> + compatible = "regulator-fixed";
> + reg = <1>;
> + regulator-name = "USB Power";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + enable-active-high;
> + regulator-always-on;
> + regulator-boot-on;
> + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
> + };
> + };
> +};
> +
> +&nand {
> + chip-delay = <40>;
> + status = "okay";
> +
> + partition at 0 {
> + label = "u-boot";
> + reg = <0x0000000 0x100000>;
> + read-only;
> + };
> +
> + partition at 100000 {
> + label = "uImage";
> + reg = <0x0100000 0x400000>;
> + };
> +
> + partition at 500000 {
> + label = "pogoplug";
> + reg = <0x0500000 0x2000000>;
> + };
> +
> + partition at 2500000 {
> + label = "root";
> + reg = <0x02500000 0xd800000>;
> + };
> +};
> +
> +&mdio {
> + status = "okay";
> +
> + ethphy0: ethernet-phy at 0 {
> + reg = <0>;
> + };
> +};
> +
> +ð0 {
> + status = "okay";
> + ethernet0-port at 0 {
> + phy-handle = <ðphy0>;
> + };
> +};
Is there a power-off GPIO on this board ?
Regards,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151105/08cee255/attachment-0001.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Simon Guinot <simon.guinot-jKBdWWKqtFpg9hUCZPvPmw@public.gmane.org>
To: Luka Perkov <luka.perkov-RnoqsreqS2Fd2+I6+x7OVA@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org,
andrew-g2DYL2Zd6BY@public.gmane.org,
jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org,
Vincent Donnefort
<vdonnefort-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Yoann Sculo <yoann-SEL7PEOQfnBQFI55V6+gNQ@public.gmane.org>
Subject: Re: [PATCH 3/4] ARM: dts: kirkwood: add Seagate GoFlex Home
Date: Thu, 5 Nov 2015 10:20:55 +0100 [thread overview]
Message-ID: <20151105092055.GL4665@kw.sim.vm.gnt> (raw)
In-Reply-To: <00000150d49a8745-1c2bc8d4-1333-46bb-bf0e-5508ef988c73-000000-p/GC64/jrecnJqMo6gzdpkEOCMrvLtNR@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 4894 bytes --]
Hi Luka,
On Wed, Nov 04, 2015 at 10:25:08PM +0000, Luka Perkov wrote:
> Based on dts files from OpenWrt.
>
> Signed-off-by: Luka Perkov <luka.perkov-RnoqsreqS2Fd2+I6+x7OVA@public.gmane.org>
> ---
> .../devicetree/bindings/arm/marvell,kirkwood.txt | 1 +
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/kirkwood-goflexhome.dts | 127 +++++++++++++++++++++
> 3 files changed, 129 insertions(+)
> create mode 100644 arch/arm/boot/dts/kirkwood-goflexhome.dts
>
> diff --git a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> index ed381a3..37bd190 100644
> --- a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> +++ b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> @@ -72,6 +72,7 @@ board. Currently known boards are:
> "raidsonic,ib-nas6220-b"
> "raidsonic,ib-nas62x0"
> "seagate,dockstar"
> +"seagate,goflexhome"
> "seagate,goflexnet"
> "synology,ds109"
> "synology,ds110jv10"
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index ebe5b73..1d6fb0d 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -170,6 +170,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
> kirkwood-ds411slim.dtb \
> kirkwood-ea3500.dtb \
> kirkwood-ea4500.dtb \
> + kirkwood-goflexhome.dtb \
> kirkwood-goflexnet.dtb \
> kirkwood-guruplug-server-plus.dtb \
> kirkwood-ib62x0.dtb \
> diff --git a/arch/arm/boot/dts/kirkwood-goflexhome.dts b/arch/arm/boot/dts/kirkwood-goflexhome.dts
> new file mode 100644
> index 0000000..5f933d4
> --- /dev/null
> +++ b/arch/arm/boot/dts/kirkwood-goflexhome.dts
> @@ -0,0 +1,127 @@
> +/dts-v1/;
> +
> +#include "kirkwood.dtsi"
> +#include "kirkwood-6281.dtsi"
> +
> +/ {
> + model = "Seagate GoFlex Home";
> + compatible = "seagate,goflexhome", "marvell,kirkwood-88f6281", "marvell,kirkwood";
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x8000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
> + stdout-path = &uart0;
> + };
> +
> + ocp@f1000000 {
> + pinctrl: pin-controller@10000 {
> + pmx_usb_power_enable: pmx-usb-power-enable {
> + marvell,pins = "mpp29";
> + marvell,function = "gpio";
> + };
> + pmx_led_white: pmx-led-white {
> + marvell,pins = "mpp40";
> + marvell,function = "gpio";
> + };
> + pmx_led_green: pmx-led_green {
> + marvell,pins = "mpp46";
> + marvell,function = "gpio";
> + };
> + pmx_led_orange: pmx-led-orange {
> + marvell,pins = "mpp47";
> + marvell,function = "gpio";
> + };
> + };
> + serial@12000 {
> + status = "ok";
> + };
> +
> + sata@80000 {
> + status = "okay";
> + nr-ports = <2>;
I think nr-ports should be set to 1. This device only allows to plug a
single HDD and there is no eSATA connectors.
> + };
> +
> + };
> + gpio-leds {
> + compatible = "gpio-leds";
> +
> + health {
> + label = "status:green:health";
> + gpios = <&gpio1 14 1>;
It would be better to use GPIO_ACTIVE_LOW instead of 1. The same comment
applies to the other LEDs.
> + linux,default-trigger = "default-on";
> + };
> + fault {
> + label = "status:orange:fault";
> + gpios = <&gpio1 15 1>;
> + };
> + misc {
> + label = "status:white:misc";
> + gpios = <&gpio1 8 1>;
> + linux,default-trigger = "ide-disk";
ide-disk ? Really ? There is no way this can be correct :)
> + };
> + };
> + regulators {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + pinctrl-0 = <&pmx_usb_power_enable>;
> + pinctrl-names = "default";
> +
> + usb_power: regulator@1 {
> + compatible = "regulator-fixed";
> + reg = <1>;
> + regulator-name = "USB Power";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + enable-active-high;
> + regulator-always-on;
> + regulator-boot-on;
> + gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
> + };
> + };
> +};
> +
> +&nand {
> + chip-delay = <40>;
> + status = "okay";
> +
> + partition@0 {
> + label = "u-boot";
> + reg = <0x0000000 0x100000>;
> + read-only;
> + };
> +
> + partition@100000 {
> + label = "uImage";
> + reg = <0x0100000 0x400000>;
> + };
> +
> + partition@500000 {
> + label = "pogoplug";
> + reg = <0x0500000 0x2000000>;
> + };
> +
> + partition@2500000 {
> + label = "root";
> + reg = <0x02500000 0xd800000>;
> + };
> +};
> +
> +&mdio {
> + status = "okay";
> +
> + ethphy0: ethernet-phy@0 {
> + reg = <0>;
> + };
> +};
> +
> +ð0 {
> + status = "okay";
> + ethernet0-port@0 {
> + phy-handle = <ðphy0>;
> + };
> +};
Is there a power-off GPIO on this board ?
Regards,
Simon
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2015-11-05 9:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1446675888-24495-1-git-send-email-luka.perkov@sartura.hr>
2015-11-04 22:25 ` [PATCH 2/4] ARM: dts: kirkwood: add Linksys EA3500 Luka Perkov
2015-11-04 22:25 ` Luka Perkov
2015-11-04 23:38 ` Andrew Lunn
2015-11-04 23:38 ` Andrew Lunn
2015-11-05 0:27 ` Andrew Lunn
2015-11-05 0:27 ` Andrew Lunn
2015-11-05 11:00 ` Imre Kaloz
2015-11-05 11:00 ` Imre Kaloz
2015-11-04 22:25 ` [PATCH 3/4] ARM: dts: kirkwood: add Seagate GoFlex Home Luka Perkov
2015-11-04 22:25 ` Luka Perkov
2015-11-05 0:23 ` Andrew Lunn
2015-11-05 0:23 ` Andrew Lunn
2015-11-05 9:20 ` Simon Guinot [this message]
2015-11-05 9:20 ` Simon Guinot
2015-11-06 16:05 ` Yoann Sculo
2015-11-06 16:05 ` Yoann Sculo
2015-12-18 9:32 ` Yoann Sculo
2015-12-18 9:32 ` Yoann Sculo
2015-11-04 22:25 ` [PATCH 4/4] ARM: dts: kirkwood: add ZyXEL NSA310s Luka Perkov
2015-11-04 22:25 ` Luka Perkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151105092055.GL4665@kw.sim.vm.gnt \
--to=simon.guinot@sequanux.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.