/freebsd/sys/dev/syscon/ |
H A D | syscon.c | 29 * This is a generic syscon driver, whose purpose is to provide access to 58 #include "syscon.h" 61 * Syscon interface details 63 typedef TAILQ_HEAD(syscon_list, syscon) syscon_list_t; 68 static int syscon_method_init(struct syscon *syscon); 69 static int syscon_method_uninit(struct syscon *syscon); 70 static uint32_t syscon_method_read_4(struct syscon *syscon, bus_size_t offset); 71 static int syscon_method_write_4(struct syscon *syscon, bus_size_t offset, 73 static int syscon_method_modify_4(struct syscon *syscon, bus_size_t offset, 77 MALLOC_DEFINE(M_SYSCON, "syscon", "Syscon driver"); [all …]
|
H A D | syscon_if.m | 30 INTERFACE syscon; 33 struct syscon; 34 int syscon_get_handle_default(device_t dev, struct syscon **syscon); 42 syscon_get_handle_default(device_t dev, struct syscon **syscon) 49 return (SYSCON_GET_HANDLE(parent, syscon)); 68 struct syscon *syscon; 72 struct syscon *syscon; 76 * Accessor functions for syscon register space 79 struct syscon *syscon; 84 struct syscon *syscon; [all …]
|
H A D | syscon.h | 38 struct syscon { struct 41 TAILQ_ENTRY(syscon) syscon_link; /* Global list entry */ 45 phandle_t ofw_node; /* OFW node for syscon */ argument 59 void *syscon_get_softc(struct syscon *syscon); argument 64 struct syscon *syscon_create(device_t pdev, syscon_class_t syscon_class); 65 struct syscon *syscon_register(struct syscon *syscon); 66 int syscon_unregister(struct syscon *syscon); 69 struct syscon *syscon_create_ofw_node(device_t pdev, 71 phandle_t syscon_get_ofw_node(struct syscon *syscon); 73 struct syscon **syscon); [all …]
|
H A D | syscon_generic.c | 30 * This is a generic syscon driver, whose purpose is to provide access to 51 #include "syscon.h" 56 static uint32_t syscon_generic_unlocked_read_4(struct syscon *syscon, 58 static int syscon_generic_unlocked_write_4(struct syscon *syscon, 60 static int syscon_generic_unlocked_modify_4(struct syscon *syscon, 64 * Generic syscon driver (FDT) 67 {"syscon", 1}, 74 device_get_nameunit((_sc)->dev), "syscon", MTX_SPIN) 90 syscon_generic_unlocked_read_4(struct syscon *syscon, bus_size_t offset) in syscon_generic_unlocked_read_4() argument 95 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_read_4() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/rockchip/ |
H A D | grf.txt | 22 - "rockchip,px30-grf", "syscon": for px30 23 - "rockchip,rk3036-grf", "syscon": for rk3036 24 - "rockchip,rk3066-grf", "syscon": for rk3066 25 - "rockchip,rk3188-grf", "syscon": for rk3188 26 - "rockchip,rk3228-grf", "syscon": for rk3228 27 - "rockchip,rk3288-grf", "syscon": for rk3288 28 - "rockchip,rk3308-grf", "syscon": for rk3308 29 - "rockchip,rk3328-grf", "syscon": for rk3328 30 - "rockchip,rk3368-grf", "syscon": for rk3368 31 - "rockchip,rk3399-grf", "syscon": for rk3399 [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/gemini/ |
H A D | gemini.dtsi | 21 syscon = <&syscon>; 28 syscon: syscon@40000000 { label 29 compatible = "cortina,gemini-syscon", 30 "syscon", "simple-mfd"; 35 syscon-reboot { 36 compatible = "syscon-reboot"; 37 regmap = <&syscon>; 46 regmap = <&syscon>; 161 resets = <&syscon GEMINI_RESET_WDOG>; 162 clocks = <&syscon GEMINI_CLK_APB>; [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | aspeed-g6.dtsi | 71 clocks = <&syscon ASPEED_CLK_HPLL>; 77 compatible = "aspeed,ast2600-sdram-edac", "syscon"; 102 compatible = "aspeed,ast2600-ahbc", "syscon"; 111 clocks = <&syscon ASPEED_CLK_AHB>; 142 clocks = <&syscon ASPEED_CLK_AHB>; 165 clocks = <&syscon ASPEED_CLK_AHB>; 198 resets = <&syscon ASPEED_RESET_MII>; 209 resets = <&syscon ASPEED_RESET_MII>; 220 resets = <&syscon ASPEED_RESET_MII>; 231 resets = <&syscon ASPEED_RESET_MI 343 syscon: syscon@1e6e2000 { global() label [all...] |
H A D | aspeed-g5.dtsi | 62 clocks = <&syscon ASPEED_CLK_AHB>; 93 clocks = <&syscon ASPEED_CLK_AHB>; 116 clocks = <&syscon ASPEED_CLK_AHB>; 153 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>; 161 clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>; 169 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; 179 clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>; 190 clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>; 202 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; 223 syscon label [all...] |
H A D | aspeed-g4.dtsi | 61 clocks = <&syscon ASPEED_CLK_AHB>; 106 clocks = <&syscon ASPEED_CLK_AHB>; 135 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>; 143 clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>; 151 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; 162 clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>; 174 clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; 188 syscon: syscon@1e6e2000 { label 189 compatible = "aspeed,ast2400-scu", "syscon", "simpl [all...] |
/freebsd/sys/contrib/device-tree/Bindings/arm/mediatek/ |
H A D | mediatek,infracfg.txt | 10 - "mediatek,mt2701-infracfg", "syscon" 11 - "mediatek,mt2712-infracfg", "syscon" 12 - "mediatek,mt6765-infracfg", "syscon" 13 - "mediatek,mt6779-infracfg_ao", "syscon" 14 - "mediatek,mt6797-infracfg", "syscon" 15 - "mediatek,mt7622-infracfg", "syscon" 16 - "mediatek,mt7623-infracfg", "mediatek,mt2701-infracfg", "syscon" 17 - "mediatek,mt7629-infracfg", "syscon" 18 - "mediatek,mt7986-infracfg", "syscon" 19 - "mediatek,mt8135-infracfg", "syscon" [all …]
|
H A D | mediatek,ipu.txt | 9 - "mediatek,mt8183-ipu_conn", "syscon" 10 - "mediatek,mt8183-ipu_adl", "syscon" 11 - "mediatek,mt8183-ipu_core0", "syscon" 12 - "mediatek,mt8183-ipu_core1", "syscon" 21 ipu_conn: syscon@19000000 { 22 compatible = "mediatek,mt8183-ipu_conn", "syscon"; 27 ipu_adl: syscon@19010000 { 28 compatible = "mediatek,mt8183-ipu_adl", "syscon"; 33 ipu_core0: syscon@19180000 { 34 compatible = "mediatek,mt8183-ipu_core0", "syscon"; [all …]
|
H A D | mediatek,mmsys.txt | 10 - "mediatek,mt2701-mmsys", "syscon" 11 - "mediatek,mt2712-mmsys", "syscon" 12 - "mediatek,mt6765-mmsys", "syscon" 13 - "mediatek,mt6779-mmsys", "syscon" 14 - "mediatek,mt6797-mmsys", "syscon" 15 - "mediatek,mt7623-mmsys", "mediatek,mt2701-mmsys", "syscon" 16 - "mediatek,mt8167-mmsys", "syscon" 17 - "mediatek,mt8173-mmsys", "syscon" 18 - "mediatek,mt8183-mmsys", "syscon" 27 mmsys: syscon@14000000 { [all …]
|
H A D | mediatek,imgsys.txt | 9 - "mediatek,mt2701-imgsys", "syscon" 10 - "mediatek,mt2712-imgsys", "syscon" 11 - "mediatek,mt6765-imgsys", "syscon" 12 - "mediatek,mt6779-imgsys", "syscon" 13 - "mediatek,mt6797-imgsys", "syscon" 14 - "mediatek,mt7623-imgsys", "mediatek,mt2701-imgsys", "syscon" 15 - "mediatek,mt8167-imgsys", "syscon" 16 - "mediatek,mt8173-imgsys", "syscon" 17 - "mediatek,mt8183-imgsys", "syscon" 27 compatible = "mediatek,mt8173-imgsys", "syscon";
|
/freebsd/sys/dev/fdt/ |
H A D | simple_mfd.c | 53 #include <dev/syscon/syscon.h> 57 static uint32_t simple_mfd_syscon_read_4(struct syscon *syscon, 59 static int simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, 61 static int simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset, 67 device_get_nameunit((_sc)->dev), "syscon", MTX_SPIN) 83 simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset) in simple_mfd_syscon_read_4() argument 88 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_read_4() 95 simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_write_4() argument 100 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_write_4() 107 simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_modify_4() argument [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/arm/ |
H A D | arm,realview.yaml | 74 "^.*syscon@[0-9a-f]+$": 76 description: All RealView boards must provide a syscon system controller
|
H A D | gemini.txt | 23 - syscon: the soc bus node must have a system controller node pointing to the 25 "cortina,gemini-syscon", "syscon"; 27 Required properties on the syscon: 28 - reg: syscon register location and size. 69 syscon: syscon@40000000 { 70 compatible = "cortina,gemini-syscon", "syscon"; 79 resets = <&syscon GEMINI_RESET_UART>; 80 clocks = <&syscon GEMINI_CLK_UART>; 92 resets = <&syscon GEMINI_RESET_TIMER>; 94 clocks = <&syscon GEMINI_CLK_APB>, [all …]
|
H A D | ste-u300.txt | 11 Required node: syscon 13 - compatible: must be "stericsson,u300-syscon". 25 - syscon: a pointer to the syscon node so we can access the 26 syscon registers to set the board as self-powered. 39 syscon = <&syscon>; 42 syscon: syscon@c0011000 { 43 compatible = "stericsson,u300-syscon";
|
/freebsd/sys/contrib/device-tree/Bindings/mfd/ |
H A D | qcom,tcsr.txt | 5 registers via syscon. 9 "qcom,tcsr-ipq6018", "syscon", "simple-mfd" for IPQ6018 10 "qcom,tcsr-ipq8064", "syscon" for IPQ8064 11 "qcom,tcsr-apq8064", "syscon" for APQ8064 12 "qcom,tcsr-msm8660", "syscon" for MSM8660 13 "qcom,tcsr-msm8953", "syscon" for MSM8953 14 "qcom,tcsr-msm8960", "syscon" for MSM8960 15 "qcom,tcsr-msm8974", "syscon" for MSM8974 16 "qcom,tcsr-apq8084", "syscon" for APQ8084 17 "qcom,tcsr-msm8916", "syscon" for MSM8916 [all …]
|
H A D | atmel-matrix.txt | 8 "atmel,at91sam9260-matrix", "syscon" 9 "atmel,at91sam9261-matrix", "syscon" 10 "atmel,at91sam9263-matrix", "syscon" 11 "atmel,at91sam9rl-matrix", "syscon" 12 "atmel,at91sam9g45-matrix", "syscon" 13 "atmel,at91sam9n12-matrix", "syscon" 14 "atmel,at91sam9x5-matrix", "syscon" 15 "atmel,sama5d3-matrix", "syscon" 16 "microchip,sam9x60-matrix", "syscon" 17 "microchip,sam9x7-matrix", "atmel,at91sam9x5-matrix", "syscon" [all...] |
/freebsd/sys/contrib/device-tree/Bindings/reset/ |
H A D | ti-syscon-reset.txt | 1 TI SysCon Reset Controller 8 functionalities. This register range is best represented as a syscon node to 12 A SysCon Reset Controller node defines a device that uses a syscon node 16 SysCon Reset Controller Node 18 Each of the reset provider/controller nodes should be a child of a syscon 27 "ti,syscon-reset" 34 register from the syscon register base 38 register from the syscon register base 42 from the syscon registe [all...] |
/freebsd/sys/arm/ti/ |
H A D | ti_scm_syscon.c | 49 #include <dev/syscon/syscon.h> 65 struct syscon * syscon; member 79 { "syscon", 1 }, 83 /* --- dev/extres/syscon syscon_method_t interface --- */ 85 ti_scm_syscon_write_4(struct syscon *syscon, bus_size_t offset, uint32_t val) in ti_scm_syscon_write_4() argument 89 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_write_4() 98 ti_scm_syscon_read_4(struct syscon *syscon, bus_size_t offset) in ti_scm_syscon_read_4() argument 103 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_read_4() 112 ti_scm_syscon_modify_4(struct syscon *syscon, bus_size_t offset, uint32_t clr, uint32_t set) in ti_scm_syscon_modify_4() argument 117 sc = device_get_softc(syscon->pdev); in ti_scm_syscon_modify_4() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/phy/ |
H A D | hisilicon,hi3670-usb3.yaml | 22 hisilicon,pericrg-syscon: 24 description: phandle of syscon used to control iso refclk. 26 hisilicon,pctrl-syscon: 28 description: phandle of syscon used to control usb tcxo. 30 hisilicon,sctrl-syscon: 32 description: phandle of syscon used to control phy deep sleep. 45 - hisilicon,pericrg-syscon 46 - hisilicon,pctrl-syscon 47 - hisilicon,sctrl-syscon 59 hisilicon,pericrg-syscon = <&crg_ctrl>; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/power/reset/ |
H A D | axxia-reset.txt | 3 This driver can do reset of the Axxia SoC. It uses the registers in the syscon 8 -syscon: phandle to the syscon node. 12 syscon: syscon@2010030000 { 13 compatible = "lsi,axxia-syscon", "syscon"; 19 syscon = <&syscon>;
|
/freebsd/sys/contrib/device-tree/Bindings/arm/bcm/ |
H A D | brcm,brcmstb.txt | 16 Further, syscon nodes that map platform-specific registers used for general 19 - compatible: "brcm,bcm<chip_id>-sun-top-ctrl", "syscon" 22 "syscon" 23 - compatible: "brcm,bcm<chip_id>-hif-continuation", "syscon" 36 - compatible: must be "brcm,bcm7445-cpu-biu-ctrl", "brcm,brcmstb-cpu-biu-ctrl", "syscon" 51 sun_top_ctrl: syscon@404000 { 52 compatible = "brcm,bcm7445-sun-top-ctrl", "syscon"; 56 hif_cpubiuctrl: syscon@3e2400 { 57 compatible = "brcm,bcm7445-cpu-biu-ctrl", "brcm,brcmstb-cpu-biu-ctrl", "syscon"; 62 hif_continuation: syscon@452000 { [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mips/ |
H A D | mscc.txt | 19 - compatible: Should be "mscc,ocelot-chip-regs", "simple-mfd", "syscon" 23 syscon@71070000 { 24 compatible = "mscc,ocelot-chip-regs", "simple-mfd", "syscon"; 36 - compatible: Should be "mscc,ocelot-cpu-syscon", "syscon" 40 syscon@70000000 { 41 compatible = "mscc,ocelot-cpu-syscon", "syscon"; 52 - compatible: Should be "mscc,ocelot-hsio", "syscon", "simple-mfd" 56 syscon@10d0000 { 57 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
|