linux-loongson/arch/arm64/boot/dts/tesla/fsd-pinctrl.h
Padmanabhan Rajanbabu 574d6c59da arm64: dts: fsd: fix drive strength macros as per FSD HW UM
Drive strength macros defined for FSD platform is not reflecting actual
names and values as per HW UM. FSD SoC pinctrl has following four levels
of drive-strength and their corresponding values:
Level-1 <-> 0
Level-2 <-> 1
Level-4 <-> 2
Level-6 <-> 3

The commit 684dac402f ("arm64: dts: fsd: Add initial pinctrl support")
used drive strength macros defined for Exynos4 SoC family. For some IPs
the macros values of Exynos4 matched and worked well, but Exynos4 SoC
family drive-strength (names and values) is not exactly matching with
FSD SoC.

Fix the drive strength macros to reflect actual names and values given
in FSD HW UM.

Fixes: 684dac402f ("arm64: dts: fsd: Add initial pinctrl support")
Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20221013104024.50179-2-p.rajanbabu@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2022-10-18 09:23:59 -04:00

34 lines
849 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Tesla FSD DTS pinctrl constants
*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com
* Copyright (c) 2022 Linaro Ltd
* Author: Krzysztof Kozlowski <krzk@kernel.org>
*/
#ifndef __DTS_ARM64_TESLA_FSD_PINCTRL_H__
#define __DTS_ARM64_TESLA_FSD_PINCTRL_H__
#define FSD_PIN_PULL_NONE 0
#define FSD_PIN_PULL_DOWN 1
#define FSD_PIN_PULL_UP 3
#define FSD_PIN_DRV_LV1 0
#define FSD_PIN_DRV_LV2 1
#define FSD_PIN_DRV_LV4 2
#define FSD_PIN_DRV_LV6 3
#define FSD_PIN_FUNC_INPUT 0
#define FSD_PIN_FUNC_OUTPUT 1
#define FSD_PIN_FUNC_2 2
#define FSD_PIN_FUNC_3 3
#define FSD_PIN_FUNC_4 4
#define FSD_PIN_FUNC_5 5
#define FSD_PIN_FUNC_6 6
#define FSD_PIN_FUNC_EINT 0xf
#define FSD_PIN_FUNC_F FSD_PIN_FUNC_EINT
#endif /* __DTS_ARM64_TESLA_FSD_PINCTRL_H__ */