Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: dt: keystone: provide SoC specific compatible flags

Keystone2 devices are used on more platforms than just Texas
Instruments reference evaluation platforms called EVMs. Providing a
generic compatible "ti,keystone" is not sufficient to differentiate
various SoC definitions possible on various platforms for the
following reasons:
a) Userspace applications have no way of knowing which SoC they are
functioning, providing the compatible matches provide a mechanism for
them to enable SoC specific functionality. Such userspace applications
are typically automated test framework or SoC custom hardware
acceleration entitlement from a common file system.
b) Provides an accurate hardware description. This allows
SoC specific logic to be run time handled based on
of_machine_is_compatible("ti,k2hk") or as needed for the dependent
processor instead of needing to use board dependent compatibles that
are needed now.

Hence, provide compatible matches for each SoC in the Keystone family.

Acked-By: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>

authored by

Nishanth Menon and committed by
Santosh Shilimkar
2df7b0f0 1a344e9b

+17 -3
+17 -3
Documentation/devicetree/bindings/arm/keystone/keystone.txt
··· 9 9 the form "ti,keystone-*". Generic devices like gic, arch_timers, ns16550 10 10 type UART should use the specified compatible for those devices. 11 11 12 + SoC families: 13 + 14 + - Keystone 2 generic SoC: 15 + compatible = "ti,keystone" 16 + 17 + SoCs: 18 + 19 + - Keystone 2 Hawking/Kepler 20 + compatible = ti,k2hk", "ti,keystone" 21 + - Keystone 2 Lamarr 22 + compatible = ti,k2l", "ti,keystone" 23 + - Keystone 2 Edison 24 + compatible = ti,k2e", "ti,keystone" 25 + 12 26 Boards: 13 27 - Keystone 2 Hawking/Kepler EVM 14 - compatible = "ti,k2hk-evm","ti,keystone" 28 + compatible = "ti,k2hk-evm", "ti,k2hk", "ti,keystone" 15 29 16 30 - Keystone 2 Lamarr EVM 17 - compatible = "ti,k2l-evm","ti,keystone" 31 + compatible = "ti,k2l-evm", "ti, k2l", "ti,keystone" 18 32 19 33 - Keystone 2 Edison EVM 20 - compatible = "ti,k2e-evm","ti,keystone" 34 + compatible = "ti,k2e-evm", "ti,k2e", "ti,keystone"