Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: renesas,ether: Update example to match reality

- Drop unneeded interrupt-parent,
- Convert to new style CPG/MSSR bindings,
- Add missing power-domains and resets properties,
- Update PHY subnode:
- Add example compatible values,
- Add micrel,led-mode and reset-gpios examples.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Geert Uytterhoeven and committed by
David S. Miller
63b1bae9 1643771e

+12 -5
+12 -5
Documentation/devicetree/bindings/net/renesas,ether.yaml
··· 100 100 examples: 101 101 # Lager board 102 102 - | 103 - #include <dt-bindings/clock/r8a7790-clock.h> 104 - #include <dt-bindings/interrupt-controller/irq.h> 103 + #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 104 + #include <dt-bindings/interrupt-controller/arm-gic.h> 105 + #include <dt-bindings/power/r8a7790-sysc.h> 106 + #include <dt-bindings/gpio/gpio.h> 105 107 106 108 ethernet@ee700000 { 107 109 compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether"; 108 110 reg = <0xee700000 0x400>; 109 - interrupt-parent = <&gic>; 110 - interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>; 111 - clocks = <&mstp8_clks R8A7790_CLK_ETHER>; 111 + interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>; 112 + clocks = <&cpg CPG_MOD 813>; 113 + power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 114 + resets = <&cpg 813>; 112 115 phy-mode = "rmii"; 113 116 phy-handle = <&phy1>; 114 117 renesas,ether-link-active-low; ··· 119 116 #size-cells = <0>; 120 117 121 118 phy1: ethernet-phy@1 { 119 + compatible = "ethernet-phy-id0022.1537", 120 + "ethernet-phy-ieee802.3-c22"; 122 121 reg = <1>; 123 122 interrupt-parent = <&irqc0>; 124 123 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 124 + micrel,led-mode = <1>; 125 + reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; 125 126 }; 126 127 };