mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 03:53:31 +00:00
7937af120b
Update the am62 and am625 device-trees from linux v6.5-rc1. This needed the following tweaks to the u-boot specific dtsi as well: - Switch tick-timer to the main_timer as it's now defined in the main dtsi - Secure proxies are defined in SoC dtsi - Drop duplicate nodes - u-boot.dtsi is includes in r5-sk, no need for either the definitions from main.dtsi OR duplication from u-boot.dtsi Reviewed-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Maxime Ripard <mripard@kernel.org> Tested-by: Maxime Ripard <mripard@kernel.org> Cc: Francesco Dolcini <francesco@dolcini.it> Cc: Sjoerd Simons <sjoerd@collabora.com> Cc: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Nishanth Menon <nm@ti.com>
53 lines
2.1 KiB
C
53 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* This header provides constants for pinctrl bindings for TI's K3 SoC
|
|
* family.
|
|
*
|
|
* Copyright (C) 2018-2023 Texas Instruments Incorporated - https://www.ti.com/
|
|
*/
|
|
#ifndef DTS_ARM64_TI_K3_PINCTRL_H
|
|
#define DTS_ARM64_TI_K3_PINCTRL_H
|
|
|
|
#define PULLUDEN_SHIFT (16)
|
|
#define PULLTYPESEL_SHIFT (17)
|
|
#define RXACTIVE_SHIFT (18)
|
|
|
|
#define PULL_DISABLE (1 << PULLUDEN_SHIFT)
|
|
#define PULL_ENABLE (0 << PULLUDEN_SHIFT)
|
|
|
|
#define PULL_UP (1 << PULLTYPESEL_SHIFT | PULL_ENABLE)
|
|
#define PULL_DOWN (0 << PULLTYPESEL_SHIFT | PULL_ENABLE)
|
|
|
|
#define INPUT_EN (1 << RXACTIVE_SHIFT)
|
|
#define INPUT_DISABLE (0 << RXACTIVE_SHIFT)
|
|
|
|
/* Only these macros are expected be used directly in device tree files */
|
|
#define PIN_OUTPUT (INPUT_DISABLE | PULL_DISABLE)
|
|
#define PIN_OUTPUT_PULLUP (INPUT_DISABLE | PULL_UP)
|
|
#define PIN_OUTPUT_PULLDOWN (INPUT_DISABLE | PULL_DOWN)
|
|
#define PIN_INPUT (INPUT_EN | PULL_DISABLE)
|
|
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
|
|
#define PIN_INPUT_PULLDOWN (INPUT_EN | PULL_DOWN)
|
|
|
|
#define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define AM62X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define AM64X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define AM64X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define AM65X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define AM65X_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define J721E_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define J721E_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define J721S2_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define J721S2_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#define J784S4_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
#define J784S4_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
|
|
|
|
#endif
|