mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
Merge "ARM: dts: msm: Add support for TSC & ETU node for cinder"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
268d95e8f9
57
bindings/ptp/qcom,ptp-tsc.txt
Normal file
57
bindings/ptp/qcom,ptp-tsc.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
* Qualcomm Technologies, Inc. Timestamp Counter(TSC) based PTP clock
|
||||
|
||||
TSC module is a timestamp generator, which runs a 64 bit counter for
|
||||
system timekeeping.
|
||||
ETU is event timestamp module, which captures the timestamp from TSC
|
||||
and global counter bus for a given event. The event is selected from
|
||||
a set of GPIOs and SW triggered events. The design is parameterized
|
||||
to detect multiple events, using different “slices”.
|
||||
One slice is used for every event.
|
||||
|
||||
Required properties:
|
||||
- compatible: should contain the compatibility string.
|
||||
"qcom,tsc"
|
||||
- reg: address and length of the TSC registers.
|
||||
Address and length of the ETU registers(optional).
|
||||
- reg-names: must contain "tsc", "etu" (optional).
|
||||
- clocks: list of clock phandles required to access TSC/ETU.
|
||||
- clock-names: list of clock names for the above clock phandles.
|
||||
- assigned-clocks: clock phandles to assign clock rates.
|
||||
- assigned-clock-rates: clock rates in HZ.
|
||||
|
||||
Optional properties:
|
||||
- qcom,tsc-nsec-update: boolean property to indicate the TSC counters
|
||||
have values in nanoseconds, rather than in secs
|
||||
and nanoseconds.
|
||||
- qcom,etu-event-sel: array of ETU slice numbers.
|
||||
- qcom,etu-event-names: ETU slice names for the corresponding
|
||||
event slice numbers.
|
||||
- interrupts: interrupt numbers associated with the ETU slice.
|
||||
- interrupt-names: names corresponding to the above interrupt numbers.
|
||||
- pinctrl-<#> : pinctrl configurations
|
||||
- pinctrl-names: pinctrl names
|
||||
|
||||
Example:
|
||||
|
||||
tsc@1da0000 {
|
||||
compatible = "qcom,tsc";
|
||||
reg = <0x1da0000 0x2000>, <0x01db0000 0x10000>;
|
||||
reg-names = "tsc", "etu";
|
||||
|
||||
clocks = <&gcc GCC_TSC_CFG_AHB_CLK>, <&gcc GCC_TSC_CNTR_CLK >,
|
||||
<&gcc GCC_TSC_ETU_CLK>;
|
||||
clock-names = "cfg_ahb", "cntr", "etu";
|
||||
assigned-clocks = <&gcc GCC_TSC_CNTR_CLK>, <&gcc GCC_TSC_ETU_CLK>;
|
||||
assigned-clock-rates = <500000000> , <500000000>;
|
||||
|
||||
qcom,etu-event-sel = <1 3>;
|
||||
qcom,etu-event-names = "gps_pps", "tod_pps";
|
||||
|
||||
interrupts = <GIC_SPI 331 IRQ_TYPE_EDGE_RISING>,
|
||||
<GIC_SPI 329 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "tod_pps", "gps_pps";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&etu_tod_pps_active>, <&etu_gps_pps_active>;
|
||||
};
|
||||
|
||||
@@ -40,6 +40,47 @@
|
||||
};
|
||||
};
|
||||
|
||||
tsc_etu_pps_pins: tsc_etu_tod_pps_pins {
|
||||
etu_tod_pps_active: etu_tod_pps_active {
|
||||
mux {
|
||||
pins = "gpio48";
|
||||
function = "tod_pps_in";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio48";
|
||||
drive-strength= <2>;
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
etu_gps_pps_active: etu_gps_pps_active {
|
||||
mux {
|
||||
pins = "gpio49";
|
||||
function = "gps_pps_in";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio49";
|
||||
drive-strength= <2>;
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
etu_pps_sleep: etu_pps_sleep {
|
||||
mux {
|
||||
pins = "gpio48", "gpio49";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio48", "gpio49";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sdc1_on: sdc1_on {
|
||||
clk {
|
||||
pins = "sdc1_clk";
|
||||
|
||||
@@ -1177,6 +1177,24 @@
|
||||
qcom,freq-hw-domain = <&cpufreq_hw 0>;
|
||||
};
|
||||
|
||||
tsc@1da0000 {
|
||||
compatible = "qcom,tsc";
|
||||
reg = <0x1da0000 0x2000>, <0x01db0000 0x10000>;
|
||||
reg-names = "tsc", "etu";
|
||||
clocks = <&gcc GCC_TSC_CFG_AHB_CLK>, <&gcc GCC_TSC_CNTR_CLK >,
|
||||
<&gcc GCC_TSC_ETU_CLK>;
|
||||
clock-names = "cfg_ahb", "cntr", "etu";
|
||||
assigned-clocks = <&gcc GCC_TSC_CNTR_CLK>, <&gcc GCC_TSC_ETU_CLK>;
|
||||
assigned-clock-rates = <500000000>, <500000000>;
|
||||
interrupts = <GIC_SPI 331 IRQ_TYPE_EDGE_RISING>,
|
||||
<GIC_SPI 329 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "tod_pps", "gps_pps";
|
||||
qcom,etu-event-sel = <1 3>;
|
||||
qcom,etu-event-names = "gps_pps", "tod_pps";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&etu_tod_pps_active>, <&etu_gps_pps_active>;
|
||||
};
|
||||
|
||||
/* GCC GDSCs */
|
||||
gcc_pcie_0_gdsc: qcom,gdsc@11d004 {
|
||||
reg = <0x11d004 0x4>;
|
||||
|
||||
Reference in New Issue
Block a user