linux-stable/Documentation/devicetree/bindings/net
Ard Biesheuvel acd7aaf51b netsec: ignore 'phy-mode' device property on ACPI systems
Since commit bbc4d71d63 ("net: phy: realtek: fix rtl8211e rx/tx
delay config"), the Realtek PHY driver will override any TX/RX delay
set by hardware straps if the phy-mode device property does not match.

This is causing problems on SynQuacer based platforms (the only SoC
that incorporates the netsec hardware), since many were built with
this Realtek PHY, and shipped with firmware that defines the phy-mode
as 'rgmii', even though the PHY is configured for TX and RX delay using
pull-ups.

From the driver's perspective, we should not make any assumptions in
the general case that the PHY hardware does not require any initial
configuration. However, the situation is slightly different for ACPI
boot, since it implies rich firmware with AML abstractions to handle
hardware details that are not exposed to the OS. So in the ACPI case,
it is reasonable to assume that the PHY comes up in the right mode,
regardless of whether the mode is set by straps, by boot time firmware
or by AML executed by the ACPI interpreter.

So let's ignore the 'phy-mode' device property when probing the netsec
driver in ACPI mode, and hardcode the mode to PHY_INTERFACE_MODE_NA,
which should work with any PHY provided that it is configured by the
time the driver attaches to it. While at it, document that omitting
the mode is permitted for DT probing as well, by setting the phy-mode
DT property to the empty string.

Fixes: 533dd11a12 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201018163625.2392-1-ardb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-20 15:59:43 -07:00
..
can networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
dsa networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
ieee802154
nfc dt-bindings: net: nfc: s3fwrn5: Remove wrong vendor prefix from GPIOs 2020-09-10 15:22:16 -07:00
wireless networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
adi,adin.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
allwinner,sun4i-a10-emac.yaml dt-bindings: Change maintainer address 2019-12-12 18:38:10 -06:00
allwinner,sun4i-a10-mdio.yaml dt-bindings: Change maintainer address 2019-12-12 18:38:10 -06:00
allwinner,sun7i-a20-gmac.yaml dt-bindings: Change maintainer address 2019-12-12 18:38:10 -06:00
allwinner,sun8i-a83t-emac.yaml dt-bindings: Clean-up schema indentation formatting 2020-04-16 16:59:22 -05:00
altera_tse.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
amd-xgbe.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
amlogic,meson-dwmac.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
anarion-gmac.txt
apm-xgene-enet.txt
apm-xgene-mdio.txt
arc_emac.txt
aspeed,ast2600-mdio.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
bluetooth.txt
brcm,amac.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
brcm,bcm7445-switch-v4.0.txt dt-bindings: net: Document Broadcom SF2 switch clocks 2020-09-03 15:08:03 -07:00
brcm,bcmgenet.txt dt-bindings: net: bcmgenet: Add BCM2711 support 2019-11-12 20:07:59 -08:00
brcm,iproc-mdio.txt
brcm,mdio-mux-iproc.txt
brcm,systemport.txt dt-bindings: net: Document Broadcom SYSTEMPORT clocks 2020-09-03 15:06:03 -07:00
brcm,unimac-mdio.txt
broadcom-bcm87xx.txt
broadcom-bluetooth.txt dt-bindings: serial: Convert slave-device bindings to json-schema 2020-03-23 11:08:28 -06:00
btusb.txt
calxeda-xgmac.yaml dt-bindings: net: Convert Calxeda Ethernet binding to json-schema 2020-05-03 11:10:41 -05:00
cavium-mdio.txt
cavium-mix.txt
cavium-pip.txt
cirrus,cs89x0.txt
cortina,gemini-ethernet.txt
cortina.txt
cpsw-phy-sel.txt
cpsw.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
davicom-dm9000.txt
davinci_emac.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
emac_rockchip.txt
ethernet-controller.yaml networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
ethernet-phy.yaml dt-bindings: Explicitly allow additional properties in common schemas 2020-10-07 11:30:06 -05:00
ethernet.txt dt-bindings: net: Add YAML schemas for the generic Ethernet options 2019-06-28 13:27:45 -06:00
ezchip_enet.txt
faraday,ftmac.txt
fixed-link.txt dt-bindings: net: Add YAML schemas for the generic Ethernet options 2019-06-28 13:27:45 -06:00
fsl-enetc.txt dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint 2019-08-02 18:22:18 -07:00
fsl-fec.txt dt-bindings: fec: update the gpr property 2020-05-26 20:21:43 -07:00
fsl-fman.txt dt-bindings: net: FMan erratum A050385 2020-03-06 21:55:32 -08:00
fsl-tsec-phy.txt
ftgmac100.txt dt-bindings: net: ftgmac100: Describe clock properties 2019-10-11 20:37:38 -07:00
gpmc-eth.txt
hisilicon-femac-mdio.txt
hisilicon-femac.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
hisilicon-hip04-net.txt net: hisilicon: dt-bindings: Add an field of port-handle 2019-07-09 14:29:26 -07:00
hisilicon-hix5hd2-gmac.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
hisilicon-hns-dsaf.txt
hisilicon-hns-mdio.txt
hisilicon-hns-nic.txt
ibm,emac.txt
icplus-ip101ag.txt
imx-dwmac.txt dt-bindings: net: imx-dwmac: Add NXP imx8 DWMAC glue layer 2020-05-29 17:01:26 -07:00
intel,dwmac-plat.yaml dt-bindings: net: Add bindings for Intel Keem Bay 2020-08-26 15:52:29 -07:00
ipq806x-dwmac.txt
keystone-netcp.txt dt-bindings: doc: net: keystone-netcp: document cpts 2019-06-09 12:53:06 -07:00
lantiq,xrx200-net.txt
lpc-eth.txt dt-bindings: net: lpc-eth: document optional properties 2019-10-18 13:12:35 -07:00
macb.txt macb: bindings doc: update sifive fu540-c000 binding 2019-08-28 14:05:48 -07:00
marvell,mvusb.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
marvell,prestera.txt dt-bindings: marvell,prestera: Add description for device-tree bindings 2020-09-17 16:35:47 -07:00
marvell-armada-370-neta.txt
marvell-bluetooth.txt Bluetooth: hci_mrvl: Add serdev support 2019-07-06 12:53:56 +02:00
marvell-bt-8xxx.txt
marvell-neta-bm.txt
marvell-orion-mdio.txt dt-bindings: allow up to four clocks for orion-mdio 2019-07-09 13:03:04 -07:00
marvell-orion-net.txt
marvell-pp2.txt
marvell-pxa168.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
maxim,ds26522.txt
mdio-gpio.txt
mdio-mux-gpio.txt
mdio-mux-meson-g12a.txt dt-bindings: net: phy: add g12a mdio mux documentation 2019-04-06 18:16:58 -07:00
mdio-mux-mmioreg.txt
mdio-mux-multiplexer.txt
mdio-mux.txt
mdio.txt dt-bindings: net: Add a YAML schemas for the generic MDIO options 2019-06-28 13:27:45 -06:00
mdio.yaml dt-bindings: Explicitly allow additional properties in common schemas 2020-10-07 11:30:06 -05:00
mediatek,mt7620-gsw.txt
mediatek,star-emac.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
mediatek-bluetooth.txt dt: fix broken links due to txt->yaml renames 2020-06-18 10:45:05 -06:00
mediatek-dwmac.txt net-next: dt-binding: dwmac-mediatek: add more description for RMII 2019-12-17 13:48:30 -08:00
mediatek-net.txt dt-bindings: net: mediatek: Add support for MediaTek MT7628/88 SoC 2019-08-18 14:15:50 -07:00
micrel-ks8851.txt
micrel-ks8995.txt
micrel-ksz90x1.txt dt-bindings: net: Correct the documentation of KSZ9021 skew values 2019-09-19 18:19:58 -07:00
micrel.txt
microchip,enc28j60.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
microchip,lan78xx.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
mscc-miim.txt
mscc-ocelot.txt Documentation/bindings: net: ocelot: document the PTP ready IRQ 2019-08-15 16:31:11 -07:00
mscc-phy-vsc8531.txt dt-bindings: net: phy: vsc8531: document the load/save GPIO 2020-06-24 14:33:16 -07:00
nixge.txt
nokia-bluetooth.txt
nxp,lpc1850-dwmac.txt
nxp,tja11xx.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
opencores-ethoc.txt
oxnas-dwmac.txt
phy.txt dt-bindings: net: Add a YAML schemas for the generic PHY options 2019-06-28 13:27:45 -06:00
qca,ar71xx.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
qca,ar803x.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
qca,qca7000.txt dt-bindings: serial: Convert slave-device bindings to json-schema 2020-03-23 11:08:28 -06:00
qcom,ethqos.txt
qcom,ipa.yaml dt-bindings: Another round of adding missing 'additionalProperties' 2020-10-06 10:55:25 -05:00
qcom,ipq4019-mdio.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
qcom,ipq8064-mdio.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
qcom-emac.txt
qualcomm-bluetooth.txt Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next 2020-05-13 12:20:12 -07:00
ralink,rt2880-net.txt
ralink,rt3050-esw.txt
realtek-bluetooth.yaml dt-bindings: Another round of adding missing 'additionalProperties' 2020-10-06 10:55:25 -05:00
renesas,ether.yaml dt-bindings: net: renesas, ether: Improve schema validation 2020-08-20 16:30:56 -07:00
renesas,etheravb.yaml Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
rockchip-dwmac.txt
samsung-sxgbe.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
sff,sfp.txt
smsc-lan87xx.txt dt-bindings: net: phy: smsc: document reference clock 2020-09-09 14:15:02 -07:00
smsc-lan91c111.txt
smsc911x.txt
snps,dwc-qos-ethernet.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
snps,dwmac.yaml dt-bindings: Explicitly allow additional properties in common schemas 2020-10-07 11:30:06 -05:00
socfpga-dwmac.txt dt-bindings: socfpga-dwmac: add "altr, socfpga-stmmac-a10-s10" binding 2019-06-06 14:21:06 -07:00
socionext,uniphier-ave4.yaml dt-bindings: Whitespace clean-ups in schema files 2020-08-14 08:55:58 -06:00
socionext-netsec.txt netsec: ignore 'phy-mode' device property on ACPI systems 2020-10-20 15:59:43 -07:00
sti-dwmac.txt
stm32-dwmac.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
stmmac.txt dt-bindings: net: stmmac: Convert the binding to a schemas 2019-06-28 13:27:46 -06:00
ti,cpsw-switch.yaml dt-bindings: Whitespace clean-ups in schema files 2020-08-14 08:55:58 -06:00
ti,davinci-mdio.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
ti,dp83822.yaml dt-bindings: net: dp83822: Add TI dp83822 phy 2020-08-28 06:57:58 -07:00
ti,dp83867.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
ti,dp83869.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
ti,k3-am654-cpsw-nuss.yaml dt-bindings: Whitespace clean-ups in schema files 2020-08-14 08:55:58 -06:00
ti,k3-am654-cpts.yaml dt-bindings: Fix more incorrect 'reg' property sizes in examples 2020-06-11 14:12:09 -06:00
ti-bluetooth.txt dt-bindings: serial: Convert slave-device bindings to json-schema 2020-03-23 11:08:28 -06:00
via-rhine.txt
via-velocity.txt
wiznet,w5x00.txt dt-bindings: net: wiznet: add w5x00 support 2019-06-12 09:52:20 -07:00
xilinx_axienet.txt net: axienet: document axistream-connected attribute 2019-06-06 16:24:30 -07:00
xilinx_gmii2rgmii.txt