dcc34574ef
Reboot the oxnas target based on Linux 4.14 by rebasing our support on top of the now-existing upstream kernel support. This commit brings oxnas support to the level of v4.17 having upstream drivers for Ethernet, Serial and NAND flash. Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the new platform code and device-tree. Re-introduce base-files from old oxnas target which works for now but needs further clean-up towards generic board support. Functional issues: * PCIe won't come up (hence no USB3 on Shuttle KD20) * I2C bus of Akitio myCloud device is likely not to work (missing debounce support in new pinctrl driver) Code-style issues: * plla/pllb needs further cleanup -- currently their users or writing into the syscon regmap after acquireling the clk instead of using defined clk_*_*() functions to setup multipliers and dividors. * PCIe phy needs its own little driver. * SATA driver is a monster and should be split into an mfd having a raidctrl regmap, sata controller, sata ports and sata phy. Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
157 lines
2.5 KiB
Text
157 lines
2.5 KiB
Text
/dts-v1/;
|
|
|
|
#include "ox820.dtsi"
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "Akitio MyCloud";
|
|
|
|
compatible = "akitio,mycloud", "oxsemi,ox820";
|
|
|
|
chosen {
|
|
bootargs = "earlyprintk";
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
memory {
|
|
/* 128Mbytes DDR */
|
|
reg = <0x60000000 0x8000000>;
|
|
};
|
|
|
|
aliases {
|
|
serial0 = &uart0;
|
|
gpio0 = &gpio0;
|
|
gpio1 = &gpio1;
|
|
};
|
|
|
|
i2c-gpio {
|
|
compatible = "i2c-gpio";
|
|
gpios = <&gpio1 9 0 &gpio1 10 0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_i2c>;
|
|
i2c-gpio,delay-us = <10>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
ds1307: rtc@68 {
|
|
compatible = "dallas,ds1307";
|
|
reg = <0x68>;
|
|
};
|
|
};
|
|
|
|
gpio-keys-polled {
|
|
compatible = "gpio-keys-polled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_buttons>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
poll-interval = <100>;
|
|
power {
|
|
label = "power";
|
|
gpios = <&gpio0 11 1>;
|
|
linux,code = <KEY_POWER>;
|
|
};
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio1 6 1>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_leds>;
|
|
status {
|
|
label = "akitio:red:status";
|
|
gpios = <&gpio0 29 0>;
|
|
};
|
|
};
|
|
|
|
gpio-poweroff {
|
|
compatible = "gpio-poweroff";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_poweroff>;
|
|
gpios = <&gpio1 13 2>;
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl_i2c: i2c-0 {
|
|
i2c {
|
|
pins = "gpio41", "gpio42"; /* MF_B9, MF_B10 */
|
|
function = "gpio";
|
|
/* ToDo: find a way to set debounce for those pins */
|
|
};
|
|
};
|
|
pinctrl_buttons: buttons-0 {
|
|
buttons {
|
|
pins = "gpio11", "gpio38"; /* MF_A11, MF_B6 GPIO */
|
|
function = "gpio";
|
|
};
|
|
};
|
|
pinctrl_leds: leds-0 {
|
|
leds {
|
|
pins = "gpio29"; /* MF_A29 GPIO */
|
|
function = "gpio";
|
|
};
|
|
};
|
|
pinctrl_poweroff: poweroff-0 {
|
|
poweroff {
|
|
pins = "gpio45"; /* MF_B13 GPIO */
|
|
function = "gpio";
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart0>;
|
|
};
|
|
|
|
&nandc {
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_nand>;
|
|
|
|
nand@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
nand-ecc-mode = "soft";
|
|
nand-ecc-algo = "hamming";
|
|
|
|
partition@0 {
|
|
label = "boot";
|
|
reg = <0x0 0x26c0000>;
|
|
};
|
|
|
|
partition@26c0000 {
|
|
label = "ubi";
|
|
reg = <0x26c0000 0xd940000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ða {
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_etha_mdio>;
|
|
};
|
|
|
|
&ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&sata {
|
|
status = "okay";
|
|
nr-ports = <2>;
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
};
|