13d713e0eSKim PhillipsWhat: /sys/bus/platform/devices/.../driver_override 23d713e0eSKim PhillipsDate: April 2014 33d713e0eSKim PhillipsContact: Kim Phillips <kim.phillips@freescale.com> 43d713e0eSKim PhillipsDescription: 53d713e0eSKim Phillips This file allows the driver for a device to be specified which 63d713e0eSKim Phillips will override standard OF, ACPI, ID table, and name matching. 73d713e0eSKim Phillips When specified, only a driver with a name matching the value 83d713e0eSKim Phillips written to driver_override will have an opportunity to bind 93d713e0eSKim Phillips to the device. The override is specified by writing a string 103d713e0eSKim Phillips to the driver_override file (echo vfio-platform > \ 113d713e0eSKim Phillips driver_override) and may be cleared with an empty string 123d713e0eSKim Phillips (echo > driver_override). This returns the device to standard 133d713e0eSKim Phillips matching rules binding. Writing to driver_override does not 143d713e0eSKim Phillips automatically unbind the device from its current driver or make 153d713e0eSKim Phillips any attempt to automatically load the specified driver. If no 163d713e0eSKim Phillips driver with a matching name is currently loaded in the kernel, 173d713e0eSKim Phillips the device will not bind to any driver. This also allows 183d713e0eSKim Phillips devices to opt-out of driver binding using a driver_override 193d713e0eSKim Phillips name such as "none". Only a single driver may be specified in 203d713e0eSKim Phillips the override, there is no support for parsing delimiters. 214a60406dSBarry Song 224a60406dSBarry SongWhat: /sys/bus/platform/devices/.../numa_node 234a60406dSBarry SongDate: June 2020 244a60406dSBarry SongContact: Barry Song <song.bao.hua@hisilicon.com> 254a60406dSBarry SongDescription: 264a60406dSBarry Song This file contains the NUMA node to which the platform device 274a60406dSBarry Song is attached. It won't be visible if the node is unknown. The 284a60406dSBarry Song value comes from an ACPI _PXM method or a similar firmware 294a60406dSBarry Song source. Initial users for this file would be devices like 304a60406dSBarry Song arm smmu which are populated by arm64 acpi_iort. 3100ed1401SBarry Song 3200ed1401SBarry SongWhat: /sys/bus/platform/devices/.../msi_irqs/ 3300ed1401SBarry SongDate: August 2021 3400ed1401SBarry SongContact: Barry Song <song.bao.hua@hisilicon.com> 3500ed1401SBarry SongDescription: 3600ed1401SBarry Song The /sys/devices/.../msi_irqs directory contains a variable set 3700ed1401SBarry Song of files, with each file being named after a corresponding msi 3800ed1401SBarry Song irq vector allocated to that device. 3900ed1401SBarry Song 4000ed1401SBarry SongWhat: /sys/bus/platform/devices/.../msi_irqs/<N> 4100ed1401SBarry SongDate: August 2021 4200ed1401SBarry SongContact: Barry Song <song.bao.hua@hisilicon.com> 4300ed1401SBarry SongDescription: 4400ed1401SBarry Song This attribute will show "msi" if <N> is a valid msi irq 45*654e4d5dSMauro Carvalho Chehab 46*654e4d5dSMauro Carvalho ChehabWhat: /sys/bus/platform/devices/.../modalias 47*654e4d5dSMauro Carvalho ChehabDescription: 48*654e4d5dSMauro Carvalho Chehab Same as MODALIAS in the uevent at device creation. 49*654e4d5dSMauro Carvalho Chehab 50*654e4d5dSMauro Carvalho Chehab A platform device that it is exposed via devicetree uses: 51*654e4d5dSMauro Carvalho Chehab 52*654e4d5dSMauro Carvalho Chehab - of:N`of node name`T`type` 53*654e4d5dSMauro Carvalho Chehab 54*654e4d5dSMauro Carvalho Chehab Other platform devices use, instead: 55*654e4d5dSMauro Carvalho Chehab 56*654e4d5dSMauro Carvalho Chehab - platform:`driver name` 57