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

dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support

Add StarFive JH8100 dwmac support.
The JH8100 dwmac shares the same driver code as the JH7110 dwmac
and has only one reset signal.

Please refer to below:

JH8100: reset-names = "stmmaceth";
JH7110: reset-names = "stmmaceth", "ahb";
JH7100: reset-names = "ahb";

Example usage of JH8100 in the device tree:

gmac0: ethernet@16030000 {
compatible = "starfive,jh8100-dwmac",
"starfive,jh7110-dwmac",
"snps,dwmac-5.20";
...
};

Signed-off-by: Tan Chun Hau <chunhau.tan@starfivetech.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240403100549.78719-2-chunhau.tan@starfivetech.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Tan Chun Hau and committed by
Jakub Kicinski
1a9de564 cf1ca1f6

+22 -4
+22 -4
Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
··· 30 30 - items: 31 31 - const: starfive,jh7110-dwmac 32 32 - const: snps,dwmac-5.20 33 + - items: 34 + - const: starfive,jh8100-dwmac 35 + - const: starfive,jh7110-dwmac 36 + - const: snps,dwmac-5.20 33 37 34 38 reg: 35 39 maxItems: 1 ··· 120 116 minItems: 3 121 117 maxItems: 3 122 118 123 - resets: 124 - minItems: 2 119 + if: 120 + properties: 121 + compatible: 122 + contains: 123 + const: starfive,jh8100-dwmac 124 + then: 125 + properties: 126 + resets: 127 + maxItems: 1 125 128 126 - reset-names: 127 - minItems: 2 129 + reset-names: 130 + const: stmmaceth 131 + else: 132 + properties: 133 + resets: 134 + minItems: 2 135 + 136 + reset-names: 137 + minItems: 2 128 138 129 139 unevaluatedProperties: false 130 140