linux-xiaomi-chiron/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 ieee802154: Add device tree documentation for MCR20A 2018-02-21 09:08:15 +01:00
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 dt-bindings: net: Document bindings for anarion-gmac 2017-08-06 21:31:32 -07:00
apm-xgene-enet.txt Documentation: dtb: xgene: Add rxlos GPIO mapping 2016-08-13 11:48:53 -07:00
apm-xgene-mdio.txt Documentation: dtb: xgene: Add MDIO node 2016-07-25 21:51:44 -07:00
arc_emac.txt net: arc_emac: add phy reset is optional for device tree 2016-03-16 19:28:01 -04:00
aspeed,ast2600-mdio.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
bluetooth.txt dt-bindings: net: document Bluetooth bindings in one place 2017-10-06 20:35:47 +02:00
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 dt-bindings: net: Broadcom iProc MDIO bus driver device tree binding 2015-10-08 04:44:44 -07:00
brcm,mdio-mux-iproc.txt dt-bindings: net: Add clock handle to Broadcom iProc mdio mux 2018-08-02 14:36:49 -07:00
brcm,systemport.txt dt-bindings: net: Document Broadcom SYSTEMPORT clocks 2020-09-03 15:06:03 -07:00
brcm,unimac-mdio.txt net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider 2018-09-21 19:08:24 -07:00
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 dt-bindings: net: btusb: add QCA6174A IDs 2019-02-27 08:50:15 +01:00
calxeda-xgmac.yaml dt-bindings: net: Convert Calxeda Ethernet binding to json-schema 2020-05-03 11:10:41 -05:00
cavium-mdio.txt phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses. 2016-03-14 15:27:22 -04:00
cavium-mix.txt DT: net: document Ethernet bindings in one place 2014-02-18 17:05:39 -05:00
cavium-pip.txt Documentation/devicetree: document cavium-pip rx-delay/tx-delay properties 2016-07-18 17:18:35 -05:00
cirrus,cs89x0.txt dt: bindings: Add bindings for Cirrus Logic CS89x0 ethernet chip 2016-06-15 12:17:57 -07:00
cortina,gemini-ethernet.txt net: ethernet: Add DT bindings for the Gemini ethernet 2018-01-15 14:38:55 -05:00
cortina.txt dt-bindings: net: Add Cortina device tree bindings 2017-05-30 12:42:27 -04:00
cpsw-phy-sel.txt dt-bindings: net: ti: deprecate cpsw-phy-sel bindings 2019-02-20 08:14:04 -08:00
cpsw.txt dt-bindings: doc: reflect new NVMEM of_get_mac_address behaviour 2019-05-05 21:47:07 -07:00
davicom-dm9000.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
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 net: arc_emac: make the rockchip emac document more compatible 2016-03-16 19:28:01 -04:00
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 NET: Add ezchip ethernet driver 2015-06-23 07:16:25 -07:00
faraday,ftmac.txt dt-bindings: net: generalize moxart-mac to support all faraday based ftmac IP 2017-03-21 14:45:38 -05:00
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 dt-bindings: ptp: add ptp-qoriq.txt 2018-05-28 23:05:12 -04:00
ftgmac100.txt dt-bindings: net: ftgmac100: Describe clock properties 2019-10-11 20:37:38 -07:00
gpmc-eth.txt dt-bindings: gpmc: Correct location of generic gpmc binding 2017-06-22 21:12:15 +02:00
hisilicon-femac-mdio.txt net: Add MDIO bus driver for the Hisilicon FEMAC 2016-07-16 21:32:58 -07:00
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 dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
hisilicon-hns-mdio.txt net: hisilicon: fix binding document of mdio 2015-11-18 15:08:22 -05:00
hisilicon-hns-nic.txt Devicetree for 4.7: 2016-05-20 14:51:34 -07:00
ibm,emac.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
icplus-ip101ag.txt dt-bindings: net: phy: add bindings for the IC Plus Corp. IP101A/G PHYs 2018-11-18 16:16:20 -08:00
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 net: stmmac: ipq806x: document device tree bindings 2015-05-30 17:04:37 -07:00
keystone-netcp.txt dt-bindings: doc: net: keystone-netcp: document cpts 2019-06-09 12:53:06 -07:00
lantiq,xrx200-net.txt dt-bindings: net: lantiq, xrx200-net: Use lower case in hex 2018-09-17 08:12:11 -07:00
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 dt-bindings: net: mvneta: add phys property 2019-02-07 18:10:26 -08:00
marvell-bluetooth.txt Bluetooth: hci_mrvl: Add serdev support 2019-07-06 12:53:56 +02:00
marvell-bt-8xxx.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
marvell-neta-bm.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
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 net: mv643xx_eth: Fetch the phy connection type from DT 2016-10-29 15:11:36 -04:00
marvell-pp2.txt Documentation/bindings: net: marvell-pp2: update the IRQs description 2018-09-19 21:09:53 -07:00
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 powerpc/t104xd4rdb: add DS26522 nodes to device tree 2015-10-16 19:32:11 -05:00
mdio-gpio.txt net: mdio-gpio: fix device-tree binding documentation 2014-05-09 15:51:19 -04:00
mdio-mux-gpio.txt DT: phy.txt: Clarify expected compatible values 2016-01-28 22:53:16 -08:00
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 net: mdio-mux-mmioreg: Add support for 16bit and 32bit register sizes 2016-11-09 12:50:55 -05:00
mdio-mux-multiplexer.txt dt-bindings: net: Add bindings for mdio mux consumers 2019-02-27 12:52:20 -08:00
mdio-mux.txt binding: Make "mdio-parent-bus" property from mandatory to optional 2016-06-10 23:24:54 -07:00
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 dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
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 devicetree: bindings: Properly document micrel ks8851 SPI chips 2014-05-24 14:03:21 -04:00
micrel-ks8995.txt dt-bindings: net: ks8995: add bindings documentation for ks8995 2016-02-11 11:34:25 -05:00
micrel-ksz90x1.txt dt-bindings: net: Correct the documentation of KSZ9021 skew values 2019-09-19 18:19:58 -07:00
micrel.txt net: phy: micrel: Add KSZ8041FTL fiber mode support 2016-07-15 11:53:02 -07:00
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 dt-bindings: net: add DT bindings for Microsemi MIIM 2018-05-15 16:41:14 -04:00
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 dt-bindings: net: Add fixed-link support 2019-02-05 10:34:34 -08:00
nokia-bluetooth.txt dt-bindings: net: bluetooth: Add nokia-bluetooth 2017-04-13 10:32:23 +02:00
nxp,lpc1850-dwmac.txt doc: dt: add documentation for nxp,lpc1850-dwmac 2015-05-15 12:44:21 -04:00
nxp,tja11xx.yaml dt-bindings: Add missing 'unevaluatedProperties' 2020-10-07 11:26:41 -05:00
opencores-ethoc.txt net: ethoc: document OF bindings 2014-02-19 16:36:13 -05:00
oxnas-dwmac.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
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 dt-bindings: net: Add Qualcomm ethqos binding 2019-01-22 19:37:59 -08:00
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 net: emac: emac gigabit ethernet controller driver 2016-09-01 23:32:05 -07:00
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 dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
ralink,rt3050-esw.txt dt-bindings: remove 'interrupt-parent' from bindings 2018-07-25 14:09:39 -06:00
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 net: ethernet: stmmac: dwmac-rk: Add GMAC support for px30 2018-06-29 22:19:05 +09:00
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 Documentation/bindings: net: the sfp i2c-bus property is now mandatory 2018-05-23 14:34:27 -04:00
smsc-lan87xx.txt dt-bindings: net: phy: smsc: document reference clock 2020-09-09 14:15:02 -07:00
smsc-lan91c111.txt net: smsc91x: add u16 workaround for pxa platforms 2016-10-18 14:14:21 -04:00
smsc911x.txt dt-bindings: net: sms911x: Add missing optional VDD regulators 2017-06-20 15:14:56 -04:00
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 dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
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 net: via-rhine: add OF bus binding 2014-04-23 15:24:06 -04:00
via-velocity.txt net: velocity: Add platform device support to VIA velocity driver 2013-05-20 13:40:39 -07:00
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 Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation 2016-08-12 16:57:20 -07:00