Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"
/ {
model = "Medion MD86783";
compatible = "medion,md86783", "zyxel,nsa320s", "marvell,kirkwood-88f6702", "marvell,kirkwood";
memory {
device_type = "memory";
reg = <0x00000000 0x10000000>;
};
chosen {
bootargs = "console=ttyS1,115200";
stdout-path = &uart1;
};
ocp@f1000000 {
pinctrl: pin-controller@10000 {
pinctrl-names = "default";
pmx_sata0: pmx-sata0 {
marvell,pins ; /* NA */
marvell,function = "sata0";
};
pmx_sata1: pmx-sata1 {
marvell,pins ; /* NA */
marvell,function = "sata1";
};
pmx_uart0: pmx-uart0 {
status = "disabled";
};
pmx_uart1: pmx-uart1 {
marvell,pins = "mpp15", "mpp16"; /* OK */
marvell,function = "uart1";
};
pmx_pwr_off: pmx-pwr-off {
marvell,pins = "mpp26";
marvell,function = "gpio";
status = "disabled";
};
pmx_btn_reset: pmx-btn-reset {
marvell,pins = "mpp14";
marvell,function = "gpio";
};
pmx_btn_copy: pmx-btn-copy {
marvell,pins = "mpp35";
marvell,function = "gpio";
};
pmx_btn_power: pmx-btn-power {
marvell,pins = "mpp26";
marvell,function = "gpio";
};
pmx_led_hdd2_red: pmx-led-hdd2-red {
marvell,pins = "mpp22"; /* OK */
marvell,function = "gpio";
};
pmx_led_sys_blue: pmx-led-sys-blue {
marvell,pins = "mpp24"; /* OK */
marvell,function = "gpio";
};
pmx_led_sys_orange: pmx-led-sys-orange {
marvell,pins = "mpp25"; /* OK */
marvell,function = "gpio";
};
pmx_led_hdd1_red: pmx-led-hdd1-red {
marvell,pins = "mpp23"; /* OK */
marvell,function = "gpio";
};
pmx_pwr_sata0: pmx-pwr-sata0 {
marvell,pins = "mpp17";
marvell,function = "gpio";
};
pmx_pwr_sata1: pmx-pwr-sata1 {
marvell,pins = "mpp13";
marvell,function = "gpio";
};
};
serial@12100 {
status = "ok";
};
sata@80000 {
status = "okay";
nr-ports = <2>;
};
rtc@10300 {
status = "disabled";
};
i2c@11000 {
status = "okay";
ht1382: rtc@68 {
compatible = "htk,ht1382";
reg = <0x68>;
};
};
};
gpio_poweroff {
compatible = "gpio-poweroff";
pinctrl-0 = <&pmx_pwr_off>;
pinctrl-names = "default";
gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
pinctrl-names = "default";
power {
label = "Power Button";
linux,code = <KEY_POWER>;
gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
};
copy {
label = "Copy Button";
linux,code = <KEY_COPY>;
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
reset {
label = "Reset Button";
linux,code = <KEY_RESTART>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
gpio-leds {
compatible = "gpio-leds";
pinctrl-0 = <&pmx_led_hdd2_red
&pmx_led_sys_blue
&pmx_led_sys_orange
&pmx_led_hdd1_red>;
pinctrl-names = "default";
blue-sys {
label = "md86783:blue:sys";
gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};
orange-sys {
label = "md86783:orange:sys";
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
};
red-hdd1 {
label = "md86783:red:hdd1";
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
};
red-hdd2 {
label = "md86783:red:hdd2";
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
};
};
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb0_power: regulator@1 {
status = "disabled";
};
sata0_power: regulator@2 {
compatible = "regulator-fixed";
reg = <2>;
pinctrl-0 = <&pmx_pwr_sata0>;
pinctrl-names = "default";
regulator-name = "SATA0 Power";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
startup-delay-us = <2000000>;
regulator-always-on;
regulator-boot-on;
enable-active-high;
gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
status = "ok";
};
sata1_power: regulator@3 {
compatible = "regulator-fixed";
reg = <3>;
pinctrl-0 = <&pmx_pwr_sata1>;
pinctrl-names = "default";
regulator-name = "SATA1 Power";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
startup-delay-us = <4000000>;
regulator-always-on;
regulator-boot-on;
enable-active-high;
gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
status = "ok";
};
};
};
&nand {
status = "okay";
chip-delay = <35>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x0100000>;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x0600000>;
};
partition@180000 {
label = "rootfs";
reg = <0x0700000 0xf900000>;
};
};
&mdio {
status = "okay";
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&eth0 {
status = "okay";
ethernet0-port@0 {
phy-handle = <&ethphy0>;
};
};
&pciec {
status = "okay";
};
&pcie0 {
status = "okay";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.