61aaaa8110
There's no reason to have "status" properties in examples. "okay" is the default, and "disabled" turns off some schema checks ('required' specifically). Enabling qca,ar71xx causes a warning, so let's fix the node names: Documentation/devicetree/bindings/net/qca,ar71xx.example.dt.yaml: phy@3: '#phy-cells' is a required property From schema: schemas/phy/phy-provider.yaml Cc: Maxime Ripard <mripard@kernel.org> Cc: Chen-Yu Tsai <wens@csie.org> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Robert Marko <robert.marko@sartura.hr> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Ramesh Shanmugasundaram <rashanmu@gmail.com> Cc: "G. Jaya Kumaran" <vineetha.g.jaya.kumaran@intel.com> Cc: ChiYuan Huang <cy_huang@richtek.com> Cc: Wei Xu <xuwei5@hisilicon.com> Cc: Dilip Kota <eswara.kota@linux.intel.com> Cc: Karol Gugala <kgugala@antmicro.com> Cc: Mateusz Holenko <mholenko@antmicro.com> Cc: Olivier Moysan <olivier.moysan@st.com> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com> Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-rtc@vger.kernel.org Cc: alsa-devel@alsa-project.org Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> # For media Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://lore.kernel.org/r/20210720172025.363238-1-robh@kernel.org
132 lines
3.1 KiB
YAML
132 lines
3.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/intel,dwmac-plat.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Intel DWMAC glue layer Device Tree Bindings
|
|
|
|
maintainers:
|
|
- Vineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>
|
|
|
|
select:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- intel,keembay-dwmac
|
|
required:
|
|
- compatible
|
|
|
|
allOf:
|
|
- $ref: "snps,dwmac.yaml#"
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- enum:
|
|
- intel,keembay-dwmac
|
|
- const: snps,dwmac-4.10a
|
|
|
|
clocks:
|
|
items:
|
|
- description: GMAC main clock
|
|
- description: PTP reference clock
|
|
- description: Tx clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: stmmaceth
|
|
- const: ptp_ref
|
|
- const: tx_clk
|
|
|
|
required:
|
|
- compatible
|
|
- clocks
|
|
- clock-names
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
# FIXME: Remove defines and include the correct header file
|
|
# once it is available in mainline.
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#define MOVISOC_KMB_PSS_GBE
|
|
#define MOVISOC_KMB_PSS_AUX_GBE_PTP
|
|
#define MOVISOC_KMB_PSS_AUX_GBE_TX
|
|
|
|
stmmac_axi_setup: stmmac-axi-config {
|
|
snps,lpi_en;
|
|
snps,wr_osr_lmt = <0x0>;
|
|
snps,rd_osr_lmt = <0x2>;
|
|
snps,blen = <0 0 0 0 16 8 4>;
|
|
};
|
|
|
|
mtl_rx_setup: rx-queues-config {
|
|
snps,rx-queues-to-use = <2>;
|
|
snps,rx-sched-sp;
|
|
queue0 {
|
|
snps,dcb-algorithm;
|
|
snps,map-to-dma-channel = <0x0>;
|
|
snps,priority = <0x0>;
|
|
};
|
|
|
|
queue1 {
|
|
snps,dcb-algorithm;
|
|
snps,map-to-dma-channel = <0x1>;
|
|
snps,priority = <0x1>;
|
|
};
|
|
};
|
|
|
|
mtl_tx_setup: tx-queues-config {
|
|
snps,tx-queues-to-use = <2>;
|
|
snps,tx-sched-wrr;
|
|
queue0 {
|
|
snps,weight = <0x10>;
|
|
snps,dcb-algorithm;
|
|
snps,priority = <0x0>;
|
|
};
|
|
|
|
queue1 {
|
|
snps,weight = <0x10>;
|
|
snps,dcb-algorithm;
|
|
snps,priority = <0x1>;
|
|
};
|
|
};
|
|
|
|
gmac0: ethernet@3a000000 {
|
|
compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a";
|
|
interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "macirq";
|
|
reg = <0x3a000000 0x8000>;
|
|
snps,perfect-filter-entries = <128>;
|
|
phy-handle = <ð_phy0>;
|
|
phy-mode = "rgmii";
|
|
rx-fifo-depth = <4096>;
|
|
tx-fifo-depth = <4096>;
|
|
clock-names = "stmmaceth", "ptp_ref", "tx_clk";
|
|
clocks = <&scmi_clk MOVISOC_KMB_PSS_GBE>,
|
|
<&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_PTP>,
|
|
<&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_TX>;
|
|
snps,pbl = <0x4>;
|
|
snps,axi-config = <&stmmac_axi_setup>;
|
|
snps,mtl-rx-config = <&mtl_rx_setup>;
|
|
snps,mtl-tx-config = <&mtl_tx_setup>;
|
|
snps,tso;
|
|
|
|
mdio0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
ethernet-phy@0 {
|
|
reg = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|