/Linux-v6.6/scripts/dtc/libfdt/ |
D | fdt_overlay.c | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 3 * libfdt - Flat Device Tree manipulation 15 * overlay_get_target_phandle - retrieves the target phandle of a fragment 16 * @fdto: pointer to the device tree overlay blob 21 * property) instead of a path (target-path property). 26 * -1, if the phandle was malformed 37 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle() 38 return (uint32_t)-1; in overlay_get_target_phandle() 52 if (phandle == (uint32_t)-1) in fdt_overlay_target_offset() 53 return -FDT_ERR_BADPHANDLE; in fdt_overlay_target_offset() [all …]
|
D | libfdt.h | 1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ 5 * libfdt - Flat Device Tree manipulation 27 /* FDT_ERR_NOSPACE: Operation needed to expand the device 28 * tree, but its buffer did not have sufficient space to 29 * contain the expanded tree. Use fdt_open_into() to move the 30 * device tree to a buffer with more space. */ 35 * offset which is out-of-bounds, or which points to an 44 * length, or the phandle value was either 0 or -1, which are 47 /* FDT_ERR_BADSTATE: Function was passed an incomplete device 48 * tree created by the sequential-write functions, which is [all …]
|
D | libfdt_internal.h | 1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ 5 * libfdt - Flat Device Tree manipulation 10 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) 50 * Internal helpers to access tructural elements of the device tree 83 * You should have another method of validating the device tree, such as a 91 * This does essentially no checks. Only the latest device-tree 92 * version is correctly handled. Inconsistencies or errors in the device 93 * tree may cause undefined behaviour or crashes. Invalid parameters 96 * If an error occurs when modifying the tree it may leave the tree in 102 * Only use this if you have a fully validated device tree with [all …]
|
/Linux-v6.6/Documentation/devicetree/ |
D | of_unittest.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 is attached to the live tree dynamically, independent of the machine's 18 (1) Documentation/devicetree/usage-model.rst 22 provided to device driver developers to fetch the device information..etc. 23 from the unflattened device tree data structure. This interface is used by 24 most of the device drivers in various use cases. 45 from 'scripts/dtc/of_unittest_expect --help'. 48 3. Test-data 51 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains 53 drivers/of/unittest.c. Currently, following Device Tree Source Include files [all …]
|
D | usage-model.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 The Linux usage model for device tree data 11 This article describes how Linux uses the device tree. An overview of 12 the device tree data format can be found on the device tree usage page 17 The "Open Firmware Device Tree", or simply Devicetree (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. 29 is defined for how data should appear in the tree to describe typical 44 ---------- 48 Device Tree to discover the topology of the hardware at runtime, and [all …]
|
/Linux-v6.6/arch/arm/mach-spear/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 30 bool "SPEAr1310 Machine support with Device Tree" 34 Supports ST SPEAr1310 machine configured via the device-tree 37 bool "SPEAr1340 Machine support with Device Tree" 41 Supports ST SPEAr1340 machine configured via the device-tree 57 bool "SPEAr300 Machine support with Device Tree" 60 Supports ST SPEAr300 machine configured via the device-tree 63 bool "SPEAr310 Machine support with Device Tree" 66 Supports ST SPEAr310 machine configured via the device-tree 69 bool "SPEAr320 Machine support with Device Tree" [all …]
|
/Linux-v6.6/drivers/of/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 6 bool "Device Tree and Open Firmware support" 8 This option enables the device tree infrastructure. 11 compile-coverage. 16 bool "Device Tree runtime unit tests" 22 This option builds in test cases for the device tree infrastructure 41 bool "Build all Device Tree Blobs" 45 This option builds all possible Device Tree Blobs (DTBs) for the 70 bool "Support for dynamic device trees" if OF_UNITTEST 73 On some platforms, the device tree can be manipulated at runtime. [all …]
|
D | fdt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Functions for working with the Flattened Device Tree data format 36 * of_fdt_limit_memory - limit the number of regions in the /memory node 39 * Adjust the flattened device tree to have at most 'limit' number of 60 "#address-cells", NULL); in of_fdt_limit_memory() 65 "#size-cells", NULL); in of_fdt_limit_memory() 119 pprev = &np->properties; in populate_properties() 146 /* We accept flattened tree phandles either in in populate_properties() 147 * ePAPR-style "phandle" properties, or the in populate_properties() 154 if (!np->phandle) in populate_properties() [all …]
|
D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 #include <linux/device.h> 16 #include <linux/dma-mapping.h> 27 { .compatible = "simple-bus", }, 28 { .compatible = "simple-mfd", }, 31 { .compatible = "arm,amba-bus", }, 37 * of_find_device_by_node - Find the platform_device associated with a node 38 * @np: Pointer to device tree node 40 * Takes a reference to the embedded struct device which needs to be dropped 47 struct device *dev; in of_find_device_by_node() [all …]
|
/Linux-v6.6/Documentation/arch/arm/google/ |
D | chromebook-boot-flow.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Most recent Chromebooks that use device tree are using the opensource 9 Image`_ which contains an OS image as well as a collection of device trees. It 10 is up to depthcharge_ to pick the right device tree from the `FIT Image`_ and 13 The scheme that depthcharge_ uses to pick the device tree takes into account 16 - Board name, specified at depthcharge_ compile time. This is $(BOARD) below. 17 - Board revision number, determined at runtime (perhaps by reading GPIO 19 - SKU number, read from GPIO strappings at boot time. This is $(SKU) below. 23 - google,$(BOARD)-rev$(REV)-sku$(SKU) 24 - google,$(BOARD)-rev$(REV) [all …]
|
/Linux-v6.6/Documentation/powerpc/ |
D | bootwrapper.rst | 17 others. U-Boot is typically found on embedded PowerPC hardware, but there 28 U-Boot (for versions that don't understand the device 29 tree). This image embeds a device tree blob inside 30 the image. The boot wrapper, kernel and device tree 31 are all embedded inside the U-Boot uImage file format 33 bd_info structure and loads the data into the device 34 tree before jumping into the kernel. 37 bd_info structure used in the old U-Boot interfaces, 39 U-Boot platform has a different platform init file 40 which populates the embedded device tree with data [all …]
|
D | booting.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------------ 9 bootloader <-> kernel interfaces, in order to avoid the degeneration that had 12 this scheme, but no new board support will be accepted in the main tree that 14 merged architecture for ppc32 and ppc64, new 32-bit platforms and 32-bit 19 of a device-tree whose format is defined after Open Firmware specification. 21 doesn't require the device-tree to represent every device in the system and only 23 not require you to create a node for every PCI device in the system. It is a 28 kernel can then probe those and match drivers to device, without having to hard 47 bindings to powerpc. Only the 32-bit client interface [all …]
|
/Linux-v6.6/Documentation/ABI/testing/ |
D | sysfs-firmware-ofw | 5 When using OpenFirmware or a Flattened Device Tree to enumerate 6 hardware, the device tree structure will be exposed in this 9 It is possible for multiple device-tree directories to exist. 10 Some device drivers use a separate detached device tree which 11 have no attachment to the system tree and will appear in a 15 path directly, but instead should follow /proc/device-tree 19 The /proc/device-tree symlink replaces the devicetree /proc 24 hierarchy of directories, one per device tree node. The 28 binary data from the device tree. 42 /sys/firmware/device-tree is deliberate: FDT is also used
|
/Linux-v6.6/Documentation/devicetree/bindings/fpga/ |
D | fpga-region.txt | 1 FPGA Region Device Tree Binding 6 - Introduction 7 - Terminology 8 - Sequence 9 - FPGA Region 10 - Supported Use Models 11 - Device Tree Examples 12 - Constraints 19 the Device Tree. FPGA Regions provide a way to program FPGAs under device tree 22 This device tree binding document hits some of the high points of FPGA usage and [all …]
|
/Linux-v6.6/arch/arm/mach-omap2/ |
D | board-generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 8 * Modified from the original mach-omap/omap2/board-generic.c did by Paul 9 * to support the OMAP2+ device tree boards with an unique board file. 24 { .compatible = "simple-bus", }, 25 { .compatible = "ti,omap-infra", }, 42 /* Used by am437x for ARM timer in non-SMP configurations */ 55 DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") 72 DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") 86 "nokia,omap3-n900", [all …]
|
/Linux-v6.6/arch/arm/mach-mvebu/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 37 on the Marvell Armada 370 SoC with device tree. 53 on the Marvell Armada 375 SoC with device tree. 71 on the Marvell Armada 380/385 SoC with device tree. 86 on the Marvell Armada 39x SoC with device tree. 98 on the Marvell Armada XP SoC with device tree. 113 Marvell Dove using flattened device tree. 129 on the Marvell Kirkwood device tree.
|
/Linux-v6.6/Documentation/arch/arm/ |
D | microchip.rst | 7 ------------ 11 It is important to note that the Microchip (previously Atmel) ARM-based MPU 15 git branches/tags and email subject always contain this "at91" sub-string. 19 --------- 25 - at91rm9200 29 …http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-1768-32-bit-ARM920T-Embedded-Microprocessor-… 32 - at91sam9260 36 …ttp://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-6221-32-bit-ARM926EJ-S-Embedded-Microprocesso… 38 - at91sam9xe 42 …ttp://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-6254-32-bit-ARM926EJ-S-Embedded-Microprocesso… [all …]
|
/Linux-v6.6/arch/arm/mach-orion5x/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 15 Orion-1 (5181), Orion-VoIP (5181L), Orion-NAS (5182), 16 Orion-2 (5281), Orion-1-90 (6183). 21 bool "Marvell Orion5x Flattened Device Tree" 29 Marvell Orion5x using flattened device tree. 32 bool "Marvell Orion-NAS Reference Design (Flattened Device Tree)" 37 Orion-NAS (88F5182) RD2, Flattened Device Tree. 48 bool "D-Link DNS-323" 53 D-Link DNS-323 platform. 56 bool "QNAP TS-109/TS-209" [all …]
|
/Linux-v6.6/sound/hda/ |
D | hdac_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sysfs support for HD-audio core device 8 #include <linux/device.h> 20 static ssize_t type##_show(struct device *dev, \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 30 static ssize_t type##_show(struct device *dev, \ 36 codec->type ? codec->type : ""); \ 49 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() 79 * Widget tree sysfs 81 * This is a tree showing the attributes of each widget. It appears like [all …]
|
/Linux-v6.6/arch/powerpc/include/uapi/asm/ |
D | bootx.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 54 the map is optional and current BootX will only build it for pre-PCI 64 * Note that the kernel arguments and the device tree are appended 83 /* The device tree (internal addresses relative to the beginning of the tree, 84 * device tree offset relative to the beginning of this structure). 85 * On pre-PCI macintosh (BOOT_ARCH_PCI bit set to 0 in architecture), this 88 __u32 deviceTreeOffset; /* Device tree offset */ 89 __u32 deviceTreeSize; /* Size of the device tree */ 111 (non-PCI) only. On PCI, memory is contiguous and it's size is in the 112 device-tree. */ [all …]
|
/Linux-v6.6/Documentation/ABI/stable/ |
D | sysfs-devices | 2 This documents additional properties of any device beyond what 3 is documented in Documentation/admin-guide/sysfs-rules.rst 7 Contact: Device Tree mailing list <devicetree@vger.kernel.org> 9 Any device associated with a device-tree node will have 10 an of_path symlink pointing to the corresponding device 15 Contact: Device Tree mailing list <devicetree@vger.kernel.org> 18 read, it returns full name of the device node. 22 Contact: Device Tree mailing list <devicetree@vger.kernel.org> 25 read, it returns full name of the device node. 29 Contact: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/iio/ |
D | common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jonathan Cameron <jic23@kernel.org> 11 - Guido Günther <agx@sigxcpu.org> 14 This document defines device tree properties common to several iio 15 sensors. It doesn't constitute a device tree binding specification by itself but 16 is meant to be referenced by device tree bindings. 18 When referenced from sensor tree bindings the properties defined in this 19 document are defined as follows. The sensor tree bindings are responsible for [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/display/bridge/ |
D | synopsys,dw-hdmi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/synopsys,dw-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 13 This document defines device tree properties for the Synopsys DesignWare HDMI 14 TX controller (DWC HDMI TX) IP core. It doesn't constitute a full device tree 15 binding specification by itself but is meant to be referenced by device tree 16 bindings for the platform-specific integrations of the DWC HDMI TX. 18 When referenced from platform device tree bindings the properties defined in [all …]
|
D | snps,dw-mipi-dsi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/snps,dw-mipi-dsi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Philippe CORNU <philippe.cornu@foss.st.com> 13 This document defines device tree properties for the Synopsys DesignWare MIPI 14 DSI host controller. It doesn't constitute a device tree binding specification 15 by itself but is meant to be referenced by platform-specific device tree 18 When referenced from platform device tree bindings the properties defined in 19 this document are defined as follows. The platform device tree bindings are [all …]
|
/Linux-v6.6/arch/arm/mach-pxa/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "PXA2xx/PXA3xx-based" 20 bool "Support PXA25x platforms from device tree" 27 the device tree. Needn't select any other machine while 31 bool "Support PXA27x platforms from device tree" 38 the device tree. Needn't select any other machine while 42 bool "Support PXA3xx platforms from device tree" 52 the device tree. Needn't select any other machine while 64 Basix, Connex, ws-200ax, ws-400ax systems 79 bool "SHARP Zaurus SL-5600, SL-C7xx and SL-Cxx00 Models" [all …]
|