[Linux-Xtensa] RE: [RFC 6/6] xtensa: add xtavnet DTS

Marc Gauthier marc at tensilica.com
Tue Nov 6 13:18:06 PST 2012


Max Filippov wrote:
> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> ---
>  arch/xtensa/boot/dts/xtavnet.dts |   47
> ++++++++++++++++++++++++++++++++++++++
>  1 files changed, 47 insertions(+), 0 deletions(-)
>  create mode 100644 arch/xtensa/boot/dts/xtavnet.dts
>
> diff --git a/arch/xtensa/boot/dts/xtavnet.dts
> b/arch/xtensa/boot/dts/xtavnet.dts
> new file mode 100644
> index 0000000..e49d7bd
> --- /dev/null
> +++ b/arch/xtensa/boot/dts/xtavnet.dts
> @@ -0,0 +1,47 @@
> +/dts-v1/;
> +/ {
> +     compatible = "xtensa,lx60";
> +     #address-cells = <1>;
> +     #size-cells = <1>;
> +     interrupt-parent = <&pic>;
> +
> +     chosen {
> +             bootargs = "console=ttyS0,115200n ip=dhcp
> root=/dev/nfs rw debug";
> +     };
> +
> +     memory at 0 {
> +             device_type = "memory";
> +             reg = <0x00000000 0x06000000>;
> +     };
> +
> +     cpus {
> +             #address-cells = <1>;
> +             #size-cells = <0>;
> +             cpu at 0 {
> +                     compatible = "xtensa";
> +                     reg = <0>;
> +                     clock-frequency = <10000000>;
> +             };
> +     };
> +
> +     pic: pic {
> +             compatible = "xtensa,pic";
> +             #interrupt-cells = <1>;
> +             interrupt-controller;
> +     };
> +
> +     serial0: serial at fd050000 {
> +             compatible = "ns16550a";
> +             no-loopback-test;
> +             reg = <0xfd050020 0x20>;
> +             reg-shift = <2>;
> +             interrupts = <0>;
> +             clock-frequency = <100000000>;


Is there any way with device trees, to have parameters
(such as UART clock frequency here) be determined
dynamically rather than be fixed?
(eg. in this case, by reading the frequency from an FPGA register)

-Marc


> +     };
> +
> +     enet0: ethoc at fd030000 {
> +             compatible = "opencores,ethoc";
> +             reg = <0xfd030000 0x4000 0xfd800000 0x4000>;
> +             interrupts = <1>;
> +     };
> +};
> --
> 1.7.7.6
>
>


More information about the linux-xtensa mailing list