Add Devicetree binding documentation for the embedded r8169soc Ethernet controller found on Realtek STB SoCs, starting with the RTD1625 SoC ("realtek,rtd1625-r8169soc"). The schema is named realtek,r8169soc.yaml so additional Realtek STB SoC variants sharing this controller architecture can be documented in the same binding. Signed-off-by: Eric Wang <eric…@realtek.com> --- .../bindings/net/realtek,r8169soc.yaml | 102 ++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek,r8169soc.yaml diff --git a/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml b/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml new file mode 100644 index 000000000000..604ff1ddfb0a --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek,r8169soc.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/realtek,r8169soc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek STB SoC r8169soc Ethernet Controller + +maintainers: + - Eric Wang <eric…@realtek.com> + +description: + The embedded Realtek STB SoC r8169soc Ethernet controller integrates a + Fast Ethernet MAC with an internal Fast Ethernet PHY, using ISO and + MAIN2 system controller regmaps for SoC-specific PHY and bus control. + Since the controller connects directly to the internal PHY, external + phy-mode and phy-handle properties are not required. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: realtek,rtd1625-r8169soc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: 250MHz reference clock + - description: Ethernet system clock + - description: ISO misc clock + + clock-names: + items: + - const: etn_250m + - const: etn_sys + - const: misc + + resets: + items: + - description: GMAC reset + - description: GPHY reset + - description: Misc reset + + reset-names: + items: + - const: gmac + - const: gphy + - const: misc + + power-domains: + maxItems: 1 + + realtek,iso: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the ISO system controller syscon node used for Ethernet + PHY interrupt clearing, bypass mode control, and autoload status. + + realtek,m2tmx: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the MAIN2 misc syscon node used for Ethernet DBUS clock + gating and power-cut configuration. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + - realtek,iso + - realtek,m2tmx + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + ethe…@16000 { + compatible = "realtek,rtd1625-r8169soc"; + reg = <0x16000 0x1000>; + interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ic 11>, <&ic 12>, <&cc 5>; + clock-names = "etn_250m", "etn_sys", "misc"; + resets = <&ic 7>, <&ic 8>, <&cc 0>; + reset-names = "gmac", "gphy", "misc"; + pinctrl-names = "default"; + pinctrl-0 = <&etn_led_loc0_pins>; + power-domains = <&pd>; + local-mac-address = [00 10 20 30 40 50]; + realtek,iso = <&iso>; + realtek,m2tmx = <&m2tmx>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 05b2d9e36b6d..319ec17b5ce6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23693,6 +23693,12 @@ S: Maintained F: Documentation/devicetree/bindings/net/pse-pd/realtek,pse-mcu-gen1.yaml F: drivers/net/pse-pd/realtek-pse-mcu* +REALTEK R8169SOC ETHERNET DRIVER +M: Eric Wang <eric…@realtek.com> +L: netd…@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/net/realtek,r8169soc.yaml + REALTEK RTL83xx SMI DSA ROUTER CHIPS M: Linus Walleij <linu…@kernel.org> M: Luiz Angelo Daros de Luca <luiz…@gmail.com>
-- 2.49.0