This series ports PHY polarity inversion support via generic device tree properties from Linux kernel, synchronizing with Merge tag 'phy-for-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.
Patch 1 introduces a new PHY_COMMON_PROPS library providing helper functions (phy_get_rx_polarity, phy_get_tx_polarity, and their "manual" variants) for PHY drivers to read standard polarity properties from the device tree. The PHY_POL_NORMAL, PHY_POL_INVERT, and PHY_POL_AUTO constants are consumed from dts/upstream/include, which is already on the compiler include path. Patch 2 updates the Airoha EN8811H PHY driver to use the new standard rx-polarity and tx-polarity properties, with backward compatibility fallback to the now-deprecated airoha,pnswap-rx and airoha,pnswap-tx boolean properties. Changes in v2: - Drop DT binding patches (v1 patches 1 and 3): already merged via the DTS upstream subtree merge (tag 'v7.0-rc2-dts') - Drop creation of include/dt-bindings/phy/phy.h: the header is now provided by dts/upstream/include/dt-bindings/phy/phy.h, which is already in the build's include search path Lucien.Jheng (2): phy: add common PHY properties support net: phy: air_en8811h: use standard rx-polarity/tx-polarity properties drivers/net/phy/airoha/Kconfig | 1 + drivers/net/phy/airoha/air_en8811.c | 91 +++++++-- drivers/phy/Kconfig | 8 + drivers/phy/Makefile | 1 + drivers/phy/phy-common-props.c | 286 +++++++++++++++++++++++++++ include/linux/phy/phy-common-props.h | 70 +++++++ 6 files changed, 442 insertions(+), 15 deletions(-) create mode 100644 drivers/phy/phy-common-props.c create mode 100644 include/linux/phy/phy-common-props.h -- 2.34.1

