STRUCT TI_OPP_SUPPLY_OF_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ti_opp_supply_of_data(9) β€” the vibes

okay so this is a page from the Kernel API Manual, and bestie, we're diving into struct ti_opp_supply_of_data β€” the device tree match data. yes, the whole struct is literally just here to hold the info that says "hey, which kind of opp supply are we dealing with." it's giving backstage pass energy πŸŽ€


✨ NAME ✨

struct ti_opp_supply_of_data β€” device tree match data. that's it, that's the whole job. iconic, honestly πŸ‘‘


🌸 SYNOPSIS 🌸

struct ti_opp_supply_of_data {
  #define OPPDM_EFUSE_CLASS0_OPTIMIZED_VOLTAGE    BIT(1);
  #define OPPDM_HAS_NO_ABB                        BIT(2);
    const u8 flags;
    const u32 efuse_voltage_mask;
    const bool efuse_voltage_uv;
 };

look at her. three little members and two #defines living rent-free inside the struct body. she's compact, she's const-heavy, she knows what she wants πŸ’–


πŸ¦‹ Members πŸ¦‹

  • flags β€” the specific type of opp supply. that's the whole description, no elaboration, we love a mysterious queen ✨ (peep those two defines up in the synopsis: OPPDM_EFUSE_CLASS0_OPTIMIZED_VOLTAGE is BIT(1); and OPPDM_HAS_NO_ABB is BIT(2); β€” those are the flag bits at play, fr fr.)
  • efuse_voltage_mask β€” the mask required for the efuse register that represents voltage. think of it as the little filter that says which bits are the voltage bits πŸ”₯
  • efuse_voltage_uv β€” the question of the century: are the efuse entries in micro-volts? πŸ‘€ if not, then assume milli-volts. and yes, it's a bool, so it's a straight yes/no vibe check on the units. don't mix them up, bestie, the math will Not be mathing 😭

🫢 SEE ALSO 🫢

go read those next, i'm obsessed with the whole little friend group over in ./drivers/opp 🌈⭐


lowkey reminder: everything lives under ./drivers/opp β€” that's the neighborhood, that's the block, that's where you'll find all of these πŸ’…

and that's the page!! mwah πŸ’‹ this one was documented with <rainbow>October 2026</rainbow> energy straight from ./drivers/opp, so go forth and match your device tree data correctly, you absolute main character πŸ§šπŸ’œ

πŸ“¦ where this page comes from