74fee4e88f
- Convert more DT code to use of_property_read_* API. - Improve DT overlay support when adding multiple overlays. - Convert printk's to %pOF format specifiers. Most went via subsystem trees, but picked up the remaining orphans. - Correct unittests to use preferred "okay" for "status" property value. - Add a KASLR seed property. - Vendor prefixes for Mellanox, Theobroma System, Adaptrum, Moxa. - Fix modalias buffer handling. - Clean-up of include paths for building dtbs. - Add bindings for amc6821, isl1208, tsl2x7x, srf02, and srf10 devices. - Add nvmem bindings for MediaTek MT7623 and MT7622 SoC. - Add compatible string for Allwinner H5 Mali-450 GPU. - Fix links to old OpenFirmware docs with new mirror on devicetree.org. - Remove status property from binding doc examples. -----BEGIN PGP SIGNATURE----- iQItBAABCAAXBQJZsVkbEBxyb2JoQGtlcm5lbC5vcmcACgkQ+vtdtY28YcPWPhAA gi3Ekc3680YE1iLnXHkDkZHmzE0KvzhIyHrzqIkoxtISfmboVdydMQFnAfyhPJA4 UA5vBKiL4uhWSpHglQpyY2ld+S9tym3IQrGEhEsHxf6njfQpkiNqVKsTYxGAmwxW E5B6sFl5O4q9e84pnselFsmx6TI+SlmPrqbN7BiluqczeUu358QlF2x8GZuJDN35 cLJKZSeE/w2xLIRIpHUoh7My8/d3jJ/OxuqXFyt/f42BtGp++WganCQS5XR0dxSA SMdzHhWDTqCKsih5/80vqVXpDBn8iX6NEx7zKprSRc3mTCNIWHG70m/tNAk6/FQR gvMR3BJOiA0MOIO3M3qaJeVuFkJDixaXmwL0V/Qpuon+6EMdRIfgcVTScAXNnamP IHmN7fzFYE9tNCzkQjEHkQtVxyQi+1CAM61dZQD1rwi4M2YZHmNxdfLj4ilRb+q8 2SDugUjz3tEdEzi6huKc5oGwqmJwLQmSlgP+VGcJnt6kotLy+PEdPK1cYWtwSKmp p/xhbXZSCFcwCHXGbyGE6yOXX4DKaLD11KmAMlJ2zwphfvwE4v/azuLmOtviiYTS 23KGIEZJYwRP1QG/BwsjKhl7x37NeKKKHomryMVF3R7M0mf1VtcdSSYROirNi2+t AZZSyXoK8E/Fx4hR1YHxJ3TX4aBkJ2rBi3+RgABXa10= =IBAh -----END PGP SIGNATURE----- Merge tag 'devicetree-for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull DeviceTree updates from Rob Herring: "There's a few orphans in the conversion to %pOF printf specifiers included here that no one else picked up. Summary: - Convert more DT code to use of_property_read_* API. - Improve DT overlay support when adding multiple overlays - Convert printk's to %pOF format specifiers. Most went via subsystem trees, but picked up the remaining orphans - Correct unittests to use preferred "okay" for "status" property value - Add a KASLR seed property - Vendor prefixes for Mellanox, Theobroma System, Adaptrum, Moxa - Fix modalias buffer handling - Clean-up of include paths for building dtbs - Add bindings for amc6821, isl1208, tsl2x7x, srf02, and srf10 devices - Add nvmem bindings for MediaTek MT7623 and MT7622 SoC - Add compatible string for Allwinner H5 Mali-450 GPU - Fix links to old OpenFirmware docs with new mirror on devicetree.org - Remove status property from binding doc examples" * tag 'devicetree-for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (45 commits) devicetree: Adjust status "ok" -> "okay" under drivers/of/ dt-bindings: Remove "status" from examples dt-bindings: pinctrl: sh-pfc: Use generic node name dt-bindings: Add vendor Mellanox dt-binding: net/phy: fix interrupts description virt: Convert to using %pOF instead of full_name macintosh: Convert to using %pOF instead of full_name ide: pmac: Convert to using %pOF instead of full_name microblaze: Convert to using %pOF instead of full_name dt-bindings: usb: musb: Grammar s/the/to/, s/is/are/ of: Use PLATFORM_DEVID_NONE definition of/device: Fix of_device_get_modalias() buffer handling of/device: Prevent buffer overflow in of_device_modalias() dt-bindings: add amc6821, isl1208 trivial bindings dt-bindings: add vendor prefix for Theobroma Systems of: search scripts/dtc/include-prefixes path for both CPP and DTC of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP of: remove drivers/of/testcase-data from include search path for CPP of: return of_get_cpu_node from of_cpu_device_node_get if CPUs are not registered iio: srf08: add device tree binding for srf02 and srf10 ...
75 lines
2.9 KiB
Plaintext
75 lines
2.9 KiB
Plaintext
Rockchip SoC RK3288 10/100/1000 Ethernet driver(GMAC)
|
|
|
|
The device node has following properties.
|
|
|
|
Required properties:
|
|
- compatible: should be "rockchip,<name>-gamc"
|
|
"rockchip,rk3228-gmac": found on RK322x SoCs
|
|
"rockchip,rk3288-gmac": found on RK3288 SoCs
|
|
"rockchip,rk3328-gmac": found on RK3328 SoCs
|
|
"rockchip,rk3366-gmac": found on RK3366 SoCs
|
|
"rockchip,rk3368-gmac": found on RK3368 SoCs
|
|
"rockchip,rk3399-gmac": found on RK3399 SoCs
|
|
"rockchip,rv1108-gmac": found on RV1108 SoCs
|
|
- reg: addresses and length of the register sets for the device.
|
|
- interrupts: Should contain the GMAC interrupts.
|
|
- interrupt-names: Should contain the interrupt names "macirq".
|
|
- rockchip,grf: phandle to the syscon grf used to control speed and mode.
|
|
- clocks: <&cru SCLK_MAC>: clock selector for main clock, from PLL or PHY.
|
|
<&cru SCLK_MAC_PLL>: PLL clock for SCLK_MAC
|
|
<&cru SCLK_MAC_RX>: clock gate for RX
|
|
<&cru SCLK_MAC_TX>: clock gate for TX
|
|
<&cru SCLK_MACREF>: clock gate for RMII referce clock
|
|
<&cru SCLK_MACREF_OUT> clock gate for RMII reference clock output
|
|
<&cru ACLK_GMAC>: AXI clock gate for GMAC
|
|
<&cru PCLK_GMAC>: APB clock gate for GMAC
|
|
- clock-names: One name for each entry in the clocks property.
|
|
- phy-mode: See ethernet.txt file in the same directory.
|
|
- pinctrl-names: Names corresponding to the numbered pinctrl states.
|
|
- pinctrl-0: pin-control mode. can be <&rgmii_pins> or <&rmii_pins>.
|
|
- clock_in_out: For RGMII, it must be "input", means main clock(125MHz)
|
|
is not sourced from SoC's PLL, but input from PHY; For RMII, "input" means
|
|
PHY provides the reference clock(50MHz), "output" means GMAC provides the
|
|
reference clock.
|
|
- snps,reset-gpio gpio number for phy reset.
|
|
- snps,reset-active-low boolean flag to indicate if phy reset is active low.
|
|
- assigned-clocks: main clock, should be <&cru SCLK_MAC>;
|
|
- assigned-clock-parents = parent of main clock.
|
|
can be <&ext_gmac> or <&cru SCLK_MAC_PLL>.
|
|
|
|
Optional properties:
|
|
- tx_delay: Delay value for TXD timing. Range value is 0~0x7F, 0x30 as default.
|
|
- rx_delay: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default.
|
|
- phy-supply: phandle to a regulator if the PHY needs one
|
|
|
|
Example:
|
|
|
|
gmac: ethernet@ff290000 {
|
|
compatible = "rockchip,rk3288-gmac";
|
|
reg = <0xff290000 0x10000>;
|
|
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "macirq";
|
|
rockchip,grf = <&grf>;
|
|
clocks = <&cru SCLK_MAC>,
|
|
<&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
|
|
<&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
|
|
<&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
|
|
clock-names = "stmmaceth",
|
|
"mac_clk_rx", "mac_clk_tx",
|
|
"clk_mac_ref", "clk_mac_refout",
|
|
"aclk_mac", "pclk_mac";
|
|
phy-mode = "rgmii";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii_pins /*&rmii_pins*/>;
|
|
|
|
clock_in_out = "input";
|
|
snps,reset-gpio = <&gpio4 7 0>;
|
|
snps,reset-active-low;
|
|
|
|
assigned-clocks = <&cru SCLK_MAC>;
|
|
assigned-clock-parents = <&ext_gmac>;
|
|
tx_delay = <0x30>;
|
|
rx_delay = <0x10>;
|
|
|
|
};
|