Path: blob/main/sys/contrib/device-tree/Bindings/bus/ti-sysc.txt
48375 views
Texas Instruments sysc interconnect target module wrapper binding12Texas Instruments SoCs can have a generic interconnect target module3hardware for devices connected to various interconnects such as L34interconnect (Arteris NoC) and L4 interconnect (Sonics s3220). The sysc5is mostly used for interaction between module and PRCM. It participates6in the OCP Disconnect Protocol but other than that is mostly independent7of the interconnect.89Each interconnect target module can have one or more devices connected to10it. There is a set of control registers for managing interconnect target11module clocks, idle modes and interconnect level resets for the module.1213These control registers are sprinkled into the unused register address14space of the first child device IP block managed by the interconnect15target module and typically are named REVISION, SYSCONFIG and SYSSTATUS.1617Required standard properties:1819- compatible shall be one of the following generic types:2021"ti,sysc"22"ti,sysc-omap2"23"ti,sysc-omap4"24"ti,sysc-omap4-simple"2526or one of the following derivative types for hardware27needing special workarounds:2829"ti,sysc-omap2-timer"30"ti,sysc-omap4-timer"31"ti,sysc-omap3430-sr"32"ti,sysc-omap3630-sr"33"ti,sysc-omap4-sr"34"ti,sysc-omap3-sham"35"ti,sysc-omap-aes"36"ti,sysc-mcasp"37"ti,sysc-dra7-mcasp"38"ti,sysc-usb-host-fs"39"ti,sysc-dra7-mcan"40"ti,sysc-pruss"4142- reg shall have register areas implemented for the interconnect43target module in question such as revision, sysc and syss4445- reg-names shall contain the register names implemented for the46interconnect target module in question such as47"rev, "sysc", and "syss"4849- ranges shall contain the interconnect target module IO range50available for one or more child device IP blocks managed51by the interconnect target module, the ranges may include52multiple ranges such as device L4 range for control and53parent L3 range for DMA access5455Optional properties:5657- ti,sysc-mask shall contain mask of supported register bits for the58SYSCONFIG register as documented in the Technical Reference59Manual (TRM) for the interconnect target module6061- ti,sysc-midle list of master idle modes supported by the interconnect62target module as documented in the TRM for SYSCONFIG63register MIDLEMODE bits6465- ti,sysc-sidle list of slave idle modes supported by the interconnect66target module as documented in the TRM for SYSCONFIG67register SIDLEMODE bits6869- ti,sysc-delay-us delay needed after OCP softreset before accssing70SYSCONFIG register again7172- ti,syss-mask optional mask of reset done status bits as described in the73TRM for SYSSTATUS registers, typically 1 with some devices74having separate reset done bits for children like OHCI and75EHCI7677- clocks clock specifier for each name in the clock-names as78specified in the binding documentation for ti-clkctrl,79typically available for all interconnect targets on TI SoCs80based on omap4 except if it's read-only register in hwauto81mode as for example omap4 L4_CFG_CLKCTRL8283- clock-names should contain at least "fck", and optionally also "ick"84depending on the SoC and the interconnect target module,85some interconnect target modules also need additional86optional clocks that can be specified as listed in TRM87for the related CLKCTRL register bits 8 to 15 such as88"dbclk" or "clk32k" depending on their role8990- ti,hwmods optional TI interconnect module name to use legacy91hwmod platform data9293- ti,no-reset-on-init interconnect target module should not be reset at init9495- ti,no-idle-on-init interconnect target module should not be idled at init9697- ti,no-idle interconnect target module should not be idled9899Example: Single instance of MUSB controller on omap4 using interconnect ranges100using offsets from l4_cfg second segment (0x4a000000 + 0x80000 = 0x4a0ab000):101102target-module@2b000 { /* 0x4a0ab000, ap 84 12.0 */103compatible = "ti,sysc-omap2";104ti,hwmods = "usb_otg_hs";105reg = <0x2b400 0x4>,106<0x2b404 0x4>,107<0x2b408 0x4>;108reg-names = "rev", "sysc", "syss";109clocks = <&l3_init_clkctrl OMAP4_USB_OTG_HS_CLKCTRL 0>;110clock-names = "fck";111ti,sysc-mask = <(SYSC_OMAP2_ENAWAKEUP |112SYSC_OMAP2_SOFTRESET |113SYSC_OMAP2_AUTOIDLE)>;114ti,sysc-midle = <SYSC_IDLE_FORCE>,115<SYSC_IDLE_NO>,116<SYSC_IDLE_SMART>;117ti,sysc-sidle = <SYSC_IDLE_FORCE>,118<SYSC_IDLE_NO>,119<SYSC_IDLE_SMART>,120<SYSC_IDLE_SMART_WKUP>;121ti,syss-mask = <1>;122#address-cells = <1>;123#size-cells = <1>;124ranges = <0 0x2b000 0x1000>;125126usb_otg_hs: otg@0 {127compatible = "ti,omap4-musb";128reg = <0x0 0x7ff>;129interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,130<GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;131usb-phy = <&usb2_phy>;132...133};134};135136Note that other SoCs, such as am335x can have multiple child devices. On am335x137there are two MUSB instances, two USB PHY instances, and a single CPPI41 DMA138instance as children of a single interconnect target module.139140141