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

dt-bindings: net: c_can: Update binding for clock and power-domains property

CAN driver uses the clk_get_rate call to determine the frequency of the
functional clock. OMAP based SoCs do not require the clock property since
hwmod already handles creating a "fck" clock thats accessible to drivers.
However, this isn't the case for 66AK2G which makes the clocks property
require for that SoC.

66AK2G requires a new property. Therefore, update the binding to also make
this property requirement clear. Also clarify that for OMAP based SoCs
ti,hwmod is a required property.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>

authored by

Franklin S Cooper Jr and committed by
Santosh Shilimkar
42eaad80 edd404e0

+12 -1
+12 -1
Documentation/devicetree/bindings/net/can/c_can.txt
··· 11 11 - interrupts : property with a value describing the interrupt 12 12 number 13 13 14 - Optional properties: 14 + The following are mandatory properties for DRA7x, AM33xx and AM43xx SoCs only: 15 15 - ti,hwmods : Must be "d_can<n>" or "c_can<n>", n being the 16 16 instance number 17 + 18 + The following are mandatory properties for Keystone 2 66AK2G SoCs only: 19 + - power-domains : Should contain a phandle to a PM domain provider node 20 + and an args specifier containing the DCAN device id 21 + value. This property is as per the binding, 22 + Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt 23 + - clocks : CAN functional clock phandle. This property is as per the 24 + binding, 25 + Documentation/devicetree/bindings/clock/ti,sci-clk.txt 26 + 27 + Optional properties: 17 28 - syscon-raminit : Handle to system control region that contains the 18 29 RAMINIT register, register offset to the RAMINIT 19 30 register and the CAN instance number (0 offset).