| /kernel/linux/linux-5.10/scripts/dtc/ |
| D | livetree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 if (streq(new->label, label)) { in add_label() 20 new->deleted = 0; in add_label() 26 new->label = label; in add_label() 27 new->next = *labels; in add_label() 36 label->deleted = 1; in delete_labels() 46 new->name = name; in build_property() 47 new->val = val; in build_property() 48 new->srcpos = srcpos_copy(srcpos); in build_property() 59 new->name = name; in build_property_delete() [all …]
|
| D | checks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 fprintf(stderr, "=== %s: ", (c)->name); \ 29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 62 struct node *node, in check_msg() argument 71 if (!(c->warn && (quiet < 1)) && !(c->error && (quiet < 2))) in check_msg() 74 if (prop && prop->srcpos) in check_msg() 75 pos = prop->srcpos; in check_msg() 76 else if (node && node->srcpos) in check_msg() 77 pos = node->srcpos; in check_msg() 83 } else if (streq(dti->outname, "-")) { in check_msg() [all …]
|
| /kernel/linux/linux-4.19/scripts/dtc/ |
| D | livetree.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 33 if (streq(new->label, label)) { in add_label() 34 new->deleted = 0; in add_label() 40 new->label = label; in add_label() 41 new->next = *labels; in add_label() 50 label->deleted = 1; in delete_labels() 59 new->name = name; in build_property() 60 new->val = val; in build_property() 71 new->name = name; in build_property_delete() 72 new->deleted = 1; in build_property_delete() [all …]
|
| D | checks.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 26 fprintf(stderr, "=== %s: ", (c)->name); \ 43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 76 struct node *node, in check_msg() argument 83 if ((c->warn && (quiet < 1)) in check_msg() 84 || (c->error && (quiet < 2))) { in check_msg() 86 strcmp(dti->outname, "-") ? dti->outname : "<stdout>", in check_msg() 87 (c->error) ? "ERROR" : "Warning", c->name); in check_msg() 88 if (node) { in check_msg() 89 fprintf(stderr, "%s", node->fullpath); in check_msg() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/rockchip/ |
| D | power_domain.txt | 7 - compatible: Should be one of the following. 8 "rockchip,px30-power-controller" - for PX30 SoCs. 9 "rockchip,rk3036-power-controller" - for RK3036 SoCs. 10 "rockchip,rk3066-power-controller" - for RK3066 SoCs. 11 "rockchip,rk3128-power-controller" - for RK3128 SoCs. 12 "rockchip,rk3188-power-controller" - for RK3188 SoCs. 13 "rockchip,rk3228-power-controller" - for RK3228 SoCs. 14 "rockchip,rk3288-power-controller" - for RK3288 SoCs. 15 "rockchip,rk3328-power-controller" - for RK3328 SoCs. 16 "rockchip,rk3366-power-controller" - for RK3366 SoCs. [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/soc/rockchip/ |
| D | power_domain.txt | 7 - compatible: Should be one of the following. 8 "rockchip,px30-power-controller" - for PX30 SoCs. 9 "rockchip,rk3036-power-controller" - for RK3036 SoCs. 10 "rockchip,rk3128-power-controller" - for RK3128 SoCs. 11 "rockchip,rk3228-power-controller" - for RK3228 SoCs. 12 "rockchip,rk3288-power-controller" - for RK3288 SoCs. 13 "rockchip,rk3328-power-controller" - for RK3328 SoCs. 14 "rockchip,rk3366-power-controller" - for RK3366 SoCs. 15 "rockchip,rk3368-power-controller" - for RK3368 SoCs. 16 "rockchip,rk3399-power-controller" - for RK3399 SoCs. [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/ |
| D | usage-model.txt | 2 ------------------------- 13 The "Open Firmware Device Tree", or simply Device Tree (DT), is a data 19 Structurally, the DT is a tree, or acyclic graph with named nodes, and 22 links from one node to another outside of the natural tree structure. 30 maximize use of existing support code, but since property and node 40 ---------- 41 The DT was originally created by Open Firmware as part of the 52 In 2005, when PowerPC Linux began a major cleanup and to merge 32-bit 53 and 64-bit support, the decision was made to require DT support on all 55 Firmware. To do this, a DT representation called the Flattened Device [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/ |
| D | usage-model.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 The "Open Firmware Device Tree", or simply Device Tree (DT), is a data 23 Structurally, the DT is a tree, or acyclic graph with named nodes, and 26 links from one node to another outside of the natural tree structure. 34 maximize use of existing support code, but since property and node 44 ---------- 45 The DT was originally created by Open Firmware as part of the 56 In 2005, when PowerPC Linux began a major cleanup and to merge 32-bit 57 and 64-bit support, the decision was made to require DT support on all 59 Firmware. To do this, a DT representation called the Flattened Device [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/ |
| D | maxim,max77686.txt | 4 multi-function device. More information can be found in MFD DT binding 12 dt-bindings/clock/maxim,max77686.h. 17 dt-bindings/clock/maxim,max77802.h. 21 dt-bindings/clock/maxim,max77620.h. 23 Following properties should be presend in main device node of the MFD chip. 27 - #clock-cells: from common clock binding; shall be set to 1. 30 - clock-output-names: From common clock binding. 34 - 0: 32khz_ap clock (max77686, max77802), 32khz_out0 (max77620) 35 - 1: 32khz_cp clock (max77686, max77802), 36 - 2: 32khz_pmic clock (max77686). [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/clock/ |
| D | maxim,max77686.txt | 4 multi-function device. More information can be found in MFD DT binding 12 dt-bindings/clock/maxim,max77686.h. 17 dt-bindings/clock/maxim,max77802.h. 21 dt-bindings/clock/maxim,max77620.h. 23 Following properties should be presend in main device node of the MFD chip. 27 - #clock-cells: from common clock binding; shall be set to 1. 30 - clock-output-names: From common clock binding. 34 - 0: 32khz_ap clock (max77686, max77802), 32khz_out0 (max77620) 35 - 1: 32khz_cp clock (max77686, max77802), 36 - 2: 32khz_pmic clock (max77686). [all …]
|
| /kernel/linux/linux-5.10/drivers/perf/ |
| D | arm-ccn.c | 1 // SPDX-License-Identifier: GPL-2.0-only 112 #define CCN_TYPE_RND_1P 0x18 /* RN-D = RN-I + DVM */ 120 #define CCN_NUM_XP_WATCHPOINTS 2 /* See DT.dbg_id.num_watchpoints */ 121 #define CCN_NUM_PMU_EVENT_COUNTERS 8 /* See DT.dbg_id.num_pmucntr */ 143 struct arm_ccn_dt, pmu), struct arm_ccn, dt) 164 struct hlist_node node; member 178 struct arm_ccn_component *node; member 183 struct arm_ccn_dt dt; member 187 static int arm_ccn_node_to_xp(int node) in arm_ccn_node_to_xp() argument 189 return node / CCN_NUM_XP_PORTS; in arm_ccn_node_to_xp() [all …]
|
| /kernel/linux/linux-4.19/drivers/perf/ |
| D | arm-ccn.c | 119 #define CCN_TYPE_RND_1P 0x18 /* RN-D = RN-I + DVM */ 127 #define CCN_NUM_XP_WATCHPOINTS 2 /* See DT.dbg_id.num_watchpoints */ 128 #define CCN_NUM_PMU_EVENT_COUNTERS 8 /* See DT.dbg_id.num_pmucntr */ 150 struct arm_ccn_dt, pmu), struct arm_ccn, dt) 171 struct hlist_node node; member 185 struct arm_ccn_component *node; member 190 struct arm_ccn_dt dt; member 194 static int arm_ccn_node_to_xp(int node) in arm_ccn_node_to_xp() argument 196 return node / CCN_NUM_XP_PORTS; in arm_ccn_node_to_xp() 199 static int arm_ccn_node_to_xp_port(int node) in arm_ccn_node_to_xp_port() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/clocksource/ |
| D | timer-digicolor.c | 13 * Maxime Ripard <maxime.ripard@free-electrons.com> 74 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() local 75 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); in dc_timer_disable() 80 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() local 81 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); in dc_timer_enable() 87 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() local 88 writel(count, dt->base + COUNT(dt->timer_id)); in dc_timer_set_count() 106 struct digicolor_timer *dt = dc_timer(ce); in digicolor_clkevt_set_periodic() local 109 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic() 142 evt->event_handler(evt); in digicolor_timer_interrupt() [all …]
|
| /kernel/linux/linux-4.19/drivers/clocksource/ |
| D | timer-digicolor.c | 13 * Maxime Ripard <maxime.ripard@free-electrons.com> 74 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() local 75 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); in dc_timer_disable() 80 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() local 81 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); in dc_timer_enable() 87 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() local 88 writel(count, dt->base + COUNT(dt->timer_id)); in dc_timer_set_count() 106 struct digicolor_timer *dt = dc_timer(ce); in digicolor_clkevt_set_periodic() local 109 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic() 142 evt->event_handler(evt); in digicolor_timer_interrupt() [all …]
|
| /kernel/linux/linux-5.10/drivers/irqchip/ |
| D | irq-riscv-intc.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2017-2018 SiFive 8 #define pr_fmt(fmt) "riscv-intc: " fmt 24 unsigned long cause = regs->cause & ~CAUSE_IRQ_FLAG; in riscv_intc_irq() 34 * non-SMP system gets one, then we don't know what to do. in riscv_intc_irq() 46 * On RISC-V systems local interrupts are masked or unmasked by writing 54 csr_clear(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_mask() 59 csr_set(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_unmask() 75 .name = "RISC-V INTC", 84 irq_domain_set_info(d, irq, hwirq, &riscv_intc_chip, d->host_data, in riscv_intc_domain_map() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/thermal/ |
| D | thermal.txt | 15 - thermal sensors: devices which may be used to take temperature 17 - cooling devices: devices which may be used to dissipate heat. 18 - trip points: describe key temperatures at which cooling is recommended. The 20 - cooling maps: used to describe links between trip points and cooling devices; 21 - thermal zones: used to describe thermal data within the hardware; 23 The following is a description of each of these node types. 33 - #thermal-sensor-cells: Used to provide sensor device specific information 62 - #cooling-cells: Used to provide cooling device specific information 73 The trip node is a node to describe a point in the temperature domain 74 in which the system takes an action. This node describes just the point, [all …]
|
| /kernel/linux/linux-5.10/arch/arm/kernel/ |
| D | devtree.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <asm/mach-types.h> 35 static int __init set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument 40 if (of_property_read_string(node, "enable-method", &method)) in set_smp_ops_by_method() 43 for (; m->method; m++) in set_smp_ops_by_method() 44 if (!strcmp(m->method, method)) { in set_smp_ops_by_method() 45 smp_set_ops(m->ops); in set_smp_ops_by_method() 52 static inline int set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument 60 * arm_dt_init_cpu_maps - Function retrieves cpu nodes from the device tree 79 u32 tmp_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID }; in arm_dt_init_cpu_maps() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_of.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * A set of helper functions to aid DRM drivers in parsing standard DT 27 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node 29 * @port: port OF node 31 * Given a port OF node, return the possible mask of the corresponding 41 if (tmp->port == port) in drm_of_crtc_port_mask() 52 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port 85 * drm_of_component_match_add - Add a component helper OF node match rule 89 * @node: of_node 94 struct device_node *node) in drm_of_component_match_add() argument [all …]
|
| /kernel/linux/linux-5.10/arch/mips/generic/ |
| D | board-sead3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <asm/yamon-dt.h> 56 /* leave the GIC node intact if a GIC is present */ in remove_gic() 61 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic() 63 pr_err("unable to find DT GIC node: %d\n", gic_off); in remove_gic() 69 pr_err("unable to nop GIC node\n"); in remove_gic() 73 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic() 74 "mti,cpu-interrupt-controller"); in remove_gic() 76 pr_err("unable to find CPU intc node: %d\n", cpu_off); in remove_gic() 83 return -EINVAL; in remove_gic() [all …]
|
| /kernel/linux/linux-4.19/arch/mips/generic/ |
| D | board-sead3.c | 21 #include <asm/yamon-dt.h> 60 /* leave the GIC node intact if a GIC is present */ in remove_gic() 65 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic() 67 pr_err("unable to find DT GIC node: %d\n", gic_off); in remove_gic() 73 pr_err("unable to nop GIC node\n"); in remove_gic() 77 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic() 78 "mti,cpu-interrupt-controller"); in remove_gic() 80 pr_err("unable to find CPU intc node: %d\n", cpu_off); in remove_gic() 87 return -EINVAL; in remove_gic() 90 uart_off = fdt_node_offset_by_compatible(fdt, -1, "ns16550a"); in remove_gic() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/kernel/ |
| D | devtree.c | 29 #include <asm/mach-types.h> 39 static int __init set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument 44 if (of_property_read_string(node, "enable-method", &method)) in set_smp_ops_by_method() 47 for (; m->method; m++) in set_smp_ops_by_method() 48 if (!strcmp(m->method, method)) { in set_smp_ops_by_method() 49 smp_set_ops(m->ops); in set_smp_ops_by_method() 56 static inline int set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument 64 * arm_dt_init_cpu_maps - Function retrieves cpu nodes from the device tree 83 u32 tmp_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID }; in arm_dt_init_cpu_maps() 95 if (of_node_cmp(cpu->type, "cpu")) in arm_dt_init_cpu_maps() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/ |
| D | thermal-zones.yaml | 1 # SPDX-License-Identifier: (GPL-2.0) 4 --- 5 $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml# 6 $schema: http://devicetree.org/meta-schemas/base.yaml# 11 - Amit Kucheria <amitk@kernel.org> 18 The following node types are used to completely describe a thermal management 20 - thermal-sensor: device that measures temperature, has SoC-specific bindings 21 - cooling-device: device used to dissipate heat either passively or actively 22 - thermal-zones: a container of the following node types used to describe all 25 This binding describes the thermal-zones. [all …]
|
| /kernel/linux/linux-5.10/arch/riscv/kernel/ |
| D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Returns the hart ID of the given device tree node, or -ENODEV if the node 13 * isn't an enabled and valid RISC-V hart node. 15 int riscv_of_processor_hartid(struct device_node *node) in riscv_of_processor_hartid() argument 20 if (!of_device_is_compatible(node, "riscv")) { in riscv_of_processor_hartid() 22 return -ENODEV; in riscv_of_processor_hartid() 25 if (of_property_read_u32(node, "reg", &hart)) { in riscv_of_processor_hartid() 27 return -ENODEV; in riscv_of_processor_hartid() 30 if (!of_device_is_available(node)) { in riscv_of_processor_hartid() 32 return -ENODEV; in riscv_of_processor_hartid() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/mti-malta/ |
| D | malta-dtshim.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include <asm/mips-boards/generic.h> 16 #include <asm/mips-boards/malta.h> 17 #include <asm/mips-cps.h> 91 size -= size_preio; in gen_fdt_mem_array() 99 * obscures 256MB from 0x10000000-0x1fffffff. in gen_fdt_mem_array() 105 size -= SZ_256M; in gen_fdt_mem_array() 115 * obscures 256MB from 0x10000000-0x1fffffff in the low alias in gen_fdt_mem_array() 143 /* if a memory node already exists, leave it alone */ in append_memory() 169 * SOC-it swaps, or perhaps doesn't swap, when DMA'ing in append_memory() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
| D | renesas,vin.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Renesas R-Car Video Input (VIN) 11 - Niklas Söderlund <niklas.soderlund@ragnatech.se> 14 The R-Car Video Input (VIN) device provides video input capabilities for the 15 Renesas R-Car family of devices. 20 on Gen3 and RZ/G2 platforms to a CSI-2 receiver. 25 - items: 26 - enum: [all …]
|