From: Samin Guo Date: Mon, 27 Feb 2023 10:26:04 +0000 (+0800) Subject: dt-bindings: net: snps,dwmac: Add 'ahb' reset/reset-name X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=010594a458bc93628fa314bf3d9fef5a5216d9dd;p=platform%2Fkernel%2Flinux-starfive.git dt-bindings: net: snps,dwmac: Add 'ahb' reset/reset-name According to: stmmac_platform.c: stmmac_probe_config_dt stmmac_main.c: stmmac_dvr_probe dwmac controller may require one (stmmaceth) or two (stmmaceth+ahb) reset signals, and the maxItems of resets/reset-names is going to be 2. The gmac of Starfive Jh7110 SOC must have two resets. it uses snps,dwmac-5.20 IP. Signed-off-by: Samin Guo Tested-by: Tommaso Merciai --- diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index e26c3e76ebb7..8fb8a0d24c08 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -133,12 +133,16 @@ properties: - ptp_ref resets: - maxItems: 1 - description: - MAC Reset signal. + minItems: 1 + items: + - description: GMAC stmmaceth reset + - description: AHB reset reset-names: - const: stmmaceth + minItems: 1 + items: + - const: stmmaceth + - const: ahb power-domains: maxItems: 1