Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/fdt/dts/mips/fbsd-mt7620a.dtsi
/* $FreeBSD$ */ | /* $FreeBSD$ */ | ||||
/ { | / { | ||||
/* Specify alias for serial0 so we have a working console */ | |||||
/* | aliases { | ||||
* FreeBSD's stdin and stdout, so we can have a console | serial0 = "/palmbus@10000000/uartlite@c00"; | ||||
*/ | |||||
chosen { | |||||
stdin = &uartlite; | |||||
stdout = &uartlite; | |||||
}; | }; | ||||
/* | /* | ||||
* OpenWRT doesn't define a clock controller, but we currently need one | * OpenWRT doesn't define a clock controller, but we currently need one | ||||
*/ | */ | ||||
clkctrl: cltctrl { | clkctrl: cltctrl { | ||||
compatible = "ralink,rt2880-clock"; | compatible = "ralink,rt2880-clock"; | ||||
#clock-cells = <1>; | #clock-cells = <1>; | ||||
}; | }; | ||||
palmbus@10000000 { | /* Specify the clocks node for the usbphy */ | ||||
/* | |||||
* Make palmbus compatible to our simplebus | |||||
*/ | |||||
compatible = "simple-bus"; | |||||
/* | |||||
* Reference uartlite@c00 as uartlite, so we can address it | |||||
* within the chosen node above | |||||
*/ | |||||
uartlite: uartlite@c00 {}; | |||||
}; | |||||
usbphy: usbphy { | usbphy: usbphy { | ||||
clocks = <&clkctrl 22 &clkctrl 25>; | clocks = <&clkctrl 22 &clkctrl 25>; | ||||
clock-names = "host", "device"; | |||||
}; | }; | ||||
pcie@10140000 { | pcie@10140000 { | ||||
/* | /* | ||||
* Our driver is different that OpenWRT's, so we need slightly | * Our driver is different that OpenWRT's, so we need slightly | ||||
* different values for the reg property | * different values for the reg property | ||||
*/ | */ | ||||
reg = <0x10140000 0x10000>; | reg = <0x10140000 0x10000>; | ||||
/* | /* | ||||
* Also, we need resets and clocks defined, so we can properly | * Also, we need resets and clocks defined, so we can properly | ||||
* initialize the PCIe | * initialize the PCIe | ||||
*/ | */ | ||||
clocks = <&clkctrl 26>; | clocks = <&clkctrl 26>; | ||||
}; | }; | ||||
}; | }; |