mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
ARM: kirkwood: Add device-tree for ib62x0
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
committed by
Stefan Roese
parent
3f023b2c81
commit
c8faf97e9a
146
arch/arm/dts/kirkwood-ib62x0.dts
Normal file
146
arch/arm/dts/kirkwood-ib62x0.dts
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "kirkwood.dtsi"
|
||||||
|
#include "kirkwood-6281.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
|
||||||
|
compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
|
||||||
|
|
||||||
|
memory {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0x00000000 0x10000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200n8 earlyprintk";
|
||||||
|
stdout-path = &uart0;
|
||||||
|
};
|
||||||
|
|
||||||
|
ocp@f1000000 {
|
||||||
|
pinctrl: pin-controller@10000 {
|
||||||
|
pmx_led_os_red: pmx-led-os-red {
|
||||||
|
marvell,pins = "mpp22";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
pmx_power_off: pmx-power-off {
|
||||||
|
marvell,pins = "mpp24";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
pmx_led_os_green: pmx-led-os-green {
|
||||||
|
marvell,pins = "mpp25";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
pmx_led_usb_transfer: pmx-led-usb-transfer {
|
||||||
|
marvell,pins = "mpp27";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
pmx_button_reset: pmx-button-reset {
|
||||||
|
marvell,pins = "mpp28";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
pmx_button_usb_copy: pmx-button-usb-copy {
|
||||||
|
marvell,pins = "mpp29";
|
||||||
|
marvell,function = "gpio";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
serial@12000 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
sata@80000 {
|
||||||
|
status = "okay";
|
||||||
|
nr-ports = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio_keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
copy {
|
||||||
|
label = "USB Copy";
|
||||||
|
linux,code = <KEY_COPY>;
|
||||||
|
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
reset {
|
||||||
|
label = "Reset";
|
||||||
|
linux,code = <KEY_RESTART>;
|
||||||
|
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio-leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
|
||||||
|
&pmx_led_usb_transfer>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
green-os {
|
||||||
|
label = "ib62x0:green:os";
|
||||||
|
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
|
||||||
|
default-state = "keep";
|
||||||
|
};
|
||||||
|
red-os {
|
||||||
|
label = "ib62x0:red:os";
|
||||||
|
gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
usb-copy {
|
||||||
|
label = "ib62x0:red:usb_copy";
|
||||||
|
gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio_poweroff {
|
||||||
|
compatible = "gpio-poweroff";
|
||||||
|
pinctrl-0 = <&pmx_power_off>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&nand {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
partition@0 {
|
||||||
|
label = "u-boot";
|
||||||
|
reg = <0x0000000 0xe0000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@e0000 {
|
||||||
|
label = "u-boot environment";
|
||||||
|
reg = <0xe0000 0x20000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@100000 {
|
||||||
|
label = "uImage";
|
||||||
|
reg = <0x0100000 0x600000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@700000 {
|
||||||
|
label = "root";
|
||||||
|
reg = <0x0700000 0xf900000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
ethphy0: ethernet-phy@8 {
|
||||||
|
reg = <8>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ð0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
ethernet0-port@0 {
|
||||||
|
phy-handle = <ðphy0>;
|
||||||
|
};
|
||||||
|
};
|
@@ -3,6 +3,7 @@ CONFIG_KIRKWOOD=y
|
|||||||
CONFIG_SYS_TEXT_BASE=0x600000
|
CONFIG_SYS_TEXT_BASE=0x600000
|
||||||
CONFIG_TARGET_IB62X0=y
|
CONFIG_TARGET_IB62X0=y
|
||||||
CONFIG_IDENT_STRING=" RaidSonic ICY BOX IB-NAS62x0"
|
CONFIG_IDENT_STRING=" RaidSonic ICY BOX IB-NAS62x0"
|
||||||
|
CONFIG_DEFAULT_DEVICE_TREE="kirkwood-ib62x0"
|
||||||
CONFIG_BOOTDELAY=3
|
CONFIG_BOOTDELAY=3
|
||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
CONFIG_HUSH_PARSER=y
|
CONFIG_HUSH_PARSER=y
|
||||||
@@ -22,6 +23,7 @@ CONFIG_CMD_JFFS2=y
|
|||||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),-@0x100000(root)"
|
CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),-@0x100000(root)"
|
||||||
CONFIG_CMD_UBI=y
|
CONFIG_CMD_UBI=y
|
||||||
CONFIG_ISO_PARTITION=y
|
CONFIG_ISO_PARTITION=y
|
||||||
|
CONFIG_OF_CONTROL=y
|
||||||
CONFIG_ENV_IS_IN_NAND=y
|
CONFIG_ENV_IS_IN_NAND=y
|
||||||
CONFIG_MVSATA_IDE=y
|
CONFIG_MVSATA_IDE=y
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
@@ -32,4 +34,3 @@ CONFIG_USB=y
|
|||||||
CONFIG_USB_EHCI_HCD=y
|
CONFIG_USB_EHCI_HCD=y
|
||||||
CONFIG_USB_STORAGE=y
|
CONFIG_USB_STORAGE=y
|
||||||
CONFIG_LZMA=y
|
CONFIG_LZMA=y
|
||||||
CONFIG_OF_LIBFDT=y
|
|
||||||
|
Reference in New Issue
Block a user