mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:50:53 +07:00
91dc985c5e
Add support for retrieving TTC configuration from device tree. This includes the ability to pull information about the driving clocks from the of_clk bindings. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
45 lines
1011 B
Plaintext
45 lines
1011 B
Plaintext
/*
|
|
* Copyright (C) 2011 Xilinx
|
|
* Copyright (C) 2012 National Instruments Corp.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
/dts-v1/;
|
|
/include/ "zynq-7000.dtsi"
|
|
|
|
/ {
|
|
model = "Zynq ZC702 Development Board";
|
|
compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x0 0x40000000>;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyPS1,115200 earlyprintk";
|
|
};
|
|
|
|
};
|
|
|
|
&ps_clk {
|
|
clock-frequency = <33333330>;
|
|
};
|
|
|
|
&ttc0_0 {
|
|
status = "ok";
|
|
compatible = "xlnx,ttc-counter-clocksource";
|
|
};
|
|
|
|
&ttc0_1 {
|
|
status = "ok";
|
|
compatible = "xlnx,ttc-counter-clockevent";
|
|
};
|