pwm: qti-lpg: Fix DT property for reading tick duration

Tick duration defines the tick duration (in microseconds) for the clock
that PPG uses, which is used to program the ramp step duration for the
pattern. It's currently read via "qcom,tick-period-us" property which is
not matching with DT binding "qcom,tick-duration-us". Fix it.

Change-Id: I92cf4b8acc0cb36ec970a8644126fd92652b0091
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
This commit is contained in:
Anjelique Melendez 2021-11-09 15:42:39 -08:00 committed by David Collins
parent 0963865b68
commit 642889346a

View File

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@ -1880,7 +1881,7 @@ static int qpnp_lpg_parse_dt(struct qpnp_lpg_chip *chip)
}
chip->lut->ramp_step_tick_us = DEFAULT_TICK_DURATION_US;
of_property_read_u32(chip->dev->of_node, "qcom,tick-period-us",
of_property_read_u32(chip->dev->of_node, "qcom,tick-duration-us",
&chip->lut->ramp_step_tick_us);
rc = qpnp_lpg_parse_pattern_dt(chip, SDAM_LUT_COUNT_MAX);