mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 23:35:26 +07:00
929267cb35
When a skeleton "clocks { .. }" remain in .dtsi, the child node can be moved to .dts, "ref12" is then found by of_clk_get(). Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com> Signed-off-by: Olof Johansson <olof@lixom.net>
118 lines
1.9 KiB
Plaintext
118 lines
1.9 KiB
Plaintext
/* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX
|
|
*
|
|
* Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com>
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/include/ "moxart.dtsi"
|
|
|
|
/ {
|
|
model = "MOXA UC-7112-LX";
|
|
compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x0 0x2000000>;
|
|
};
|
|
|
|
clocks {
|
|
ref12: ref12M {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <12000000>;
|
|
};
|
|
};
|
|
|
|
flash@80000000,0 {
|
|
compatible = "numonyx,js28f128", "cfi-flash";
|
|
reg = <0x80000000 0x1000000>;
|
|
bank-width = <2>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
partition@0 {
|
|
label = "bootloader";
|
|
reg = <0x0 0x40000>;
|
|
};
|
|
partition@40000 {
|
|
label = "linux kernel";
|
|
reg = <0x40000 0x1C0000>;
|
|
};
|
|
partition@200000 {
|
|
label = "root filesystem";
|
|
reg = <0x200000 0x800000>;
|
|
};
|
|
partition@a00000 {
|
|
label = "user filesystem";
|
|
reg = <0xa00000 0x600000>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
user-led {
|
|
label = "ready-led";
|
|
gpios = <&gpio 27 0x1>;
|
|
default-state = "on";
|
|
linux,default-trigger = "default-on";
|
|
};
|
|
};
|
|
|
|
gpio_keys_polled {
|
|
compatible = "gpio-keys-polled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
poll-interval = <500>;
|
|
button@25 {
|
|
label = "GPIO Reset";
|
|
linux,code = <116>;
|
|
gpios = <&gpio 25 1>;
|
|
};
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p1 rw rootwait";
|
|
};
|
|
};
|
|
|
|
&clk_pll {
|
|
clocks = <&ref12>;
|
|
};
|
|
|
|
&sdhci {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
ethphy0: ethernet-phy@1 {
|
|
device_type = "ethernet-phy";
|
|
compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
|
|
reg = <1>;
|
|
};
|
|
};
|
|
|
|
&mdio1 {
|
|
status = "okay";
|
|
|
|
ethphy1: ethernet-phy@1 {
|
|
device_type = "ethernet-phy";
|
|
compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
|
|
reg = <1>;
|
|
};
|
|
};
|
|
|
|
&mac0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mac1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|