1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/dts-v1/; 3*f126890aSEmmanuel Vadot 4*f126890aSEmmanuel Vadot#include "kirkwood.dtsi" 5*f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi" 6*f126890aSEmmanuel Vadot 7*f126890aSEmmanuel Vadot/ { 8*f126890aSEmmanuel Vadot model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)"; 9*f126890aSEmmanuel Vadot compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot memory { 12*f126890aSEmmanuel Vadot device_type = "memory"; 13*f126890aSEmmanuel Vadot reg = <0x00000000 0x10000000>; 14*f126890aSEmmanuel Vadot }; 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot chosen { 17*f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200n8 earlyprintk"; 18*f126890aSEmmanuel Vadot stdout-path = &uart0; 19*f126890aSEmmanuel Vadot }; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot ocp@f1000000 { 22*f126890aSEmmanuel Vadot pinctrl: pin-controller@10000 { 23*f126890aSEmmanuel Vadot pmx_led_os_red: pmx-led-os-red { 24*f126890aSEmmanuel Vadot marvell,pins = "mpp22"; 25*f126890aSEmmanuel Vadot marvell,function = "gpio"; 26*f126890aSEmmanuel Vadot }; 27*f126890aSEmmanuel Vadot pmx_power_off: pmx-power-off { 28*f126890aSEmmanuel Vadot marvell,pins = "mpp24"; 29*f126890aSEmmanuel Vadot marvell,function = "gpio"; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot pmx_led_os_green: pmx-led-os-green { 32*f126890aSEmmanuel Vadot marvell,pins = "mpp25"; 33*f126890aSEmmanuel Vadot marvell,function = "gpio"; 34*f126890aSEmmanuel Vadot }; 35*f126890aSEmmanuel Vadot pmx_led_usb_transfer: pmx-led-usb-transfer { 36*f126890aSEmmanuel Vadot marvell,pins = "mpp27"; 37*f126890aSEmmanuel Vadot marvell,function = "gpio"; 38*f126890aSEmmanuel Vadot }; 39*f126890aSEmmanuel Vadot pmx_button_reset: pmx-button-reset { 40*f126890aSEmmanuel Vadot marvell,pins = "mpp28"; 41*f126890aSEmmanuel Vadot marvell,function = "gpio"; 42*f126890aSEmmanuel Vadot }; 43*f126890aSEmmanuel Vadot pmx_button_usb_copy: pmx-button-usb-copy { 44*f126890aSEmmanuel Vadot marvell,pins = "mpp29"; 45*f126890aSEmmanuel Vadot marvell,function = "gpio"; 46*f126890aSEmmanuel Vadot }; 47*f126890aSEmmanuel Vadot }; 48*f126890aSEmmanuel Vadot 49*f126890aSEmmanuel Vadot serial@12000 { 50*f126890aSEmmanuel Vadot status = "okay"; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot sata@80000 { 54*f126890aSEmmanuel Vadot status = "okay"; 55*f126890aSEmmanuel Vadot nr-ports = <2>; 56*f126890aSEmmanuel Vadot }; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot 59*f126890aSEmmanuel Vadot gpio_keys { 60*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 61*f126890aSEmmanuel Vadot #address-cells = <1>; 62*f126890aSEmmanuel Vadot #size-cells = <0>; 63*f126890aSEmmanuel Vadot pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>; 64*f126890aSEmmanuel Vadot pinctrl-names = "default"; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot copy { 67*f126890aSEmmanuel Vadot label = "USB Copy"; 68*f126890aSEmmanuel Vadot linux,code = <KEY_COPY>; 69*f126890aSEmmanuel Vadot gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot reset { 72*f126890aSEmmanuel Vadot label = "Reset"; 73*f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 74*f126890aSEmmanuel Vadot gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot }; 77*f126890aSEmmanuel Vadot 78*f126890aSEmmanuel Vadot gpio-leds { 79*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 80*f126890aSEmmanuel Vadot pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green 81*f126890aSEmmanuel Vadot &pmx_led_usb_transfer>; 82*f126890aSEmmanuel Vadot pinctrl-names = "default"; 83*f126890aSEmmanuel Vadot 84*f126890aSEmmanuel Vadot green-os { 85*f126890aSEmmanuel Vadot label = "ib62x0:green:os"; 86*f126890aSEmmanuel Vadot gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 87*f126890aSEmmanuel Vadot default-state = "keep"; 88*f126890aSEmmanuel Vadot }; 89*f126890aSEmmanuel Vadot red-os { 90*f126890aSEmmanuel Vadot label = "ib62x0:red:os"; 91*f126890aSEmmanuel Vadot gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; 92*f126890aSEmmanuel Vadot }; 93*f126890aSEmmanuel Vadot usb-copy { 94*f126890aSEmmanuel Vadot label = "ib62x0:red:usb_copy"; 95*f126890aSEmmanuel Vadot gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot }; 98*f126890aSEmmanuel Vadot 99*f126890aSEmmanuel Vadot gpio_poweroff { 100*f126890aSEmmanuel Vadot compatible = "gpio-poweroff"; 101*f126890aSEmmanuel Vadot pinctrl-0 = <&pmx_power_off>; 102*f126890aSEmmanuel Vadot pinctrl-names = "default"; 103*f126890aSEmmanuel Vadot gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 104*f126890aSEmmanuel Vadot }; 105*f126890aSEmmanuel Vadot}; 106*f126890aSEmmanuel Vadot 107*f126890aSEmmanuel Vadot&nand { 108*f126890aSEmmanuel Vadot status = "okay"; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot partition@0 { 111*f126890aSEmmanuel Vadot label = "u-boot"; 112*f126890aSEmmanuel Vadot reg = <0x0000000 0xe0000>; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot partition@e0000 { 116*f126890aSEmmanuel Vadot label = "u-boot environment"; 117*f126890aSEmmanuel Vadot reg = <0xe0000 0x20000>; 118*f126890aSEmmanuel Vadot }; 119*f126890aSEmmanuel Vadot 120*f126890aSEmmanuel Vadot partition@100000 { 121*f126890aSEmmanuel Vadot label = "uImage"; 122*f126890aSEmmanuel Vadot reg = <0x0100000 0x600000>; 123*f126890aSEmmanuel Vadot }; 124*f126890aSEmmanuel Vadot 125*f126890aSEmmanuel Vadot partition@700000 { 126*f126890aSEmmanuel Vadot label = "root"; 127*f126890aSEmmanuel Vadot reg = <0x0700000 0xf900000>; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot 130*f126890aSEmmanuel Vadot}; 131*f126890aSEmmanuel Vadot 132*f126890aSEmmanuel Vadot&mdio { 133*f126890aSEmmanuel Vadot status = "okay"; 134*f126890aSEmmanuel Vadot 135*f126890aSEmmanuel Vadot ethphy0: ethernet-phy@8 { 136*f126890aSEmmanuel Vadot reg = <8>; 137*f126890aSEmmanuel Vadot }; 138*f126890aSEmmanuel Vadot}; 139*f126890aSEmmanuel Vadot 140*f126890aSEmmanuel Vadotð0 { 141*f126890aSEmmanuel Vadot status = "okay"; 142*f126890aSEmmanuel Vadot 143*f126890aSEmmanuel Vadot ethernet0-port@0 { 144*f126890aSEmmanuel Vadot phy-handle = <ðphy0>; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot}; 147