kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* small device nodes in syscon, simple-mfd node in device tree
@ 2022-05-24  8:27 Chan Kim
  0 siblings, 0 replies; only message in thread
From: Chan Kim @ 2022-05-24  8:27 UTC (permalink / raw)
  To: kernelnewbies

Hi,

In arch/arm64/boot/dts/ti/k3-am65-main.dtsi, I see this node scm_conf.

scm_conf: scm-conf@100000 {
        compatible = "syscon", "simple-mfd";
        reg = <0 0x00100000 0 0x1c000>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0x0 0x0 0x00100000 0x1c000>;

        pcie0_mode: pcie-mode@4060 {
            compatible = "syscon";
            reg = <0x00004060 0x4>;
        };

        pcie1_mode: pcie-mode@4070 {
            compatible = "syscon";
            reg = <0x00004070 0x4>;
        };

        pcie_devid: pcie-devid@210 {
            compatible = "syscon";
            reg = <0x00000210 0x4>;
        };

        serdes0_clk: clock@4080 {
            compatible = "syscon";
            reg = <0x00004080 0x4>;
        };

        serdes1_clk: clock@4090 {
            compatible = "syscon";
            reg = <0x00004090 0x4>;
        };

The manual
https://www.kernel.org/doc/Documentation/devicetree/bindings/mfd/mfd.txt
says the subnodes of "syscon" should be considered as separate devices.
In the above example, does it mean the SoC just contains a system control
block containing many registers for controlling pcie mode, clock settings,
etc?
If that is true, maybe I'll have to use this trick myself for pass system
settings to the kernel. 

Any comment will be appreciated.
Thank you!

Chan Kim




_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-24  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24  8:27 small device nodes in syscon, simple-mfd node in device tree Chan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).