mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
eth: G12B bringup [1/1]
PD#SWPL-104285 Problem: G12B bringup Solution: G12B bringup Verify: A311D-W400#248 Change-Id: I4a5cd566f2266e3a6740dbc12e550fc7ef2825aa Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
This commit is contained in:
committed by
yao zhang1
parent
56e6b00f44
commit
7650dfad26
@@ -1463,14 +1463,9 @@
|
||||
};
|
||||
|
||||
ðmac {
|
||||
status = "disable"
|
||||
/* //conflict with isp i2c
|
||||
* pinctrl-names = "internal_eth_pins";
|
||||
* pinctrl-0 = <&internal_eth_pins>;
|
||||
*/
|
||||
mc_val = <0x4be04>;
|
||||
|
||||
internal_phy=<1>;
|
||||
status = "okay";
|
||||
phy-handle = <&internal_ephy>;
|
||||
phy-mode = "rmii";
|
||||
};
|
||||
|
||||
&uart_A {
|
||||
|
||||
@@ -369,19 +369,58 @@
|
||||
};
|
||||
|
||||
ethmac: ethernet@ff3f0000 {
|
||||
compatible = "amlogic, g12a-eth-dwmac","snps,dwmac";
|
||||
reg = <0x0 0xff3f0000 0x0 0x10000
|
||||
0x0 0xff634540 0x0 0x8
|
||||
0x0 0xff64c000 0x0 0xa0
|
||||
0x0 0xffd01008 0x0 0x4>;
|
||||
reg-names = "eth_base", "eth_cfg", "eth_pll", "eth_reset";
|
||||
interrupts = <0 8 1>;
|
||||
compatible = "amlogic,meson-axg-dwmac",
|
||||
"snps,dwmac-3.70a",
|
||||
"snps,dwmac";
|
||||
reg = <0x0 0xff3f0000 0x0 0x10000>,
|
||||
<0x0 0xff634540 0x0 0x8>;
|
||||
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq";
|
||||
clocks = <&clkc CLKID_ETH>,
|
||||
<&clkc CLKID_FCLK_DIV2>,
|
||||
<&clkc CLKID_MPLL2>;
|
||||
clock-names = "stmmaceth", "clkin0", "clkin1";
|
||||
rx-fifo-depth = <4096>;
|
||||
tx-fifo-depth = <2048>;
|
||||
status = "disabled";
|
||||
//clocks = <&clkc CLKID_ETH_CORE>;
|
||||
//clock-names = "ethclk81";
|
||||
pll_val = <0x9c0040a 0x927e0000 0xac5f49e5>;
|
||||
analog_val = <0x20200000 0x0000c000 0x00000023>;
|
||||
|
||||
mdio0: mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "snps,dwmac-mdio";
|
||||
};
|
||||
};
|
||||
|
||||
eth_phy: mdio-multiplexer@ff64c000 {
|
||||
compatible = "amlogic,g12a-mdio-mux";
|
||||
reg = <0x0 0xff64c000 0x0 0xa4>;
|
||||
clocks = <&clkc CLKID_ETH_PHY>,
|
||||
<&xtal>,
|
||||
<&clkc CLKID_MPLL_50M>;
|
||||
clock-names = "pclk", "clkin0", "clkin1";
|
||||
mdio-parent-bus = <&mdio0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ext_mdio: mdio@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
int_mdio: mdio@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
internal_ephy: ethernet_phy@8 {
|
||||
compatible = "ethernet-phy-id0180.3301",
|
||||
"ethernet-phy-ieee802.3-c22";
|
||||
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg = <8>;
|
||||
max-speed = <100>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pinctrl_aobus: pinctrl@ff800014{
|
||||
|
||||
Reference in New Issue
Block a user