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

Configure Feed

Select the types of activity you want to include in your feed.

riscv: dts: starfive: jh7100-common: Setup pinmux and enable gmac

Add pinmux configuration for DWMAC found on the JH7100 based boards and
enable the related DT node, providing a basic PHY configuration.

Co-developed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

authored by

Cristian Ciocaltea and committed by
Conor Dooley
6e204aa2 5ca37ca2

+84
+84
arch/riscv/boot/dts/starfive/jh7100-common.dtsi
··· 72 72 }; 73 73 }; 74 74 75 + &gmac { 76 + pinctrl-names = "default"; 77 + pinctrl-0 = <&gmac_pins>; 78 + phy-mode = "rgmii-id"; 79 + status = "okay"; 80 + 81 + mdio: mdio { 82 + #address-cells = <1>; 83 + #size-cells = <0>; 84 + compatible = "snps,dwmac-mdio"; 85 + }; 86 + }; 87 + 75 88 &gpio { 89 + gmac_pins: gmac-0 { 90 + gtxclk-pins { 91 + pins = <PAD_FUNC_SHARE(115)>; 92 + bias-pull-up; 93 + drive-strength = <35>; 94 + input-enable; 95 + input-schmitt-enable; 96 + slew-rate = <0>; 97 + }; 98 + miitxclk-pins { 99 + pins = <PAD_FUNC_SHARE(116)>; 100 + bias-pull-up; 101 + drive-strength = <14>; 102 + input-enable; 103 + input-schmitt-disable; 104 + slew-rate = <0>; 105 + }; 106 + tx-pins { 107 + pins = <PAD_FUNC_SHARE(117)>, 108 + <PAD_FUNC_SHARE(119)>, 109 + <PAD_FUNC_SHARE(120)>, 110 + <PAD_FUNC_SHARE(121)>, 111 + <PAD_FUNC_SHARE(122)>, 112 + <PAD_FUNC_SHARE(123)>, 113 + <PAD_FUNC_SHARE(124)>, 114 + <PAD_FUNC_SHARE(125)>, 115 + <PAD_FUNC_SHARE(126)>; 116 + bias-pull-up; 117 + drive-strength = <35>; 118 + input-disable; 119 + input-schmitt-disable; 120 + slew-rate = <0>; 121 + }; 122 + rxclk-pins { 123 + pins = <PAD_FUNC_SHARE(127)>; 124 + bias-pull-up; 125 + drive-strength = <14>; 126 + input-enable; 127 + input-schmitt-disable; 128 + slew-rate = <6>; 129 + }; 130 + rxer-pins { 131 + pins = <PAD_FUNC_SHARE(129)>; 132 + bias-pull-up; 133 + drive-strength = <14>; 134 + input-enable; 135 + input-schmitt-disable; 136 + slew-rate = <0>; 137 + }; 138 + rx-pins { 139 + pins = <PAD_FUNC_SHARE(128)>, 140 + <PAD_FUNC_SHARE(130)>, 141 + <PAD_FUNC_SHARE(131)>, 142 + <PAD_FUNC_SHARE(132)>, 143 + <PAD_FUNC_SHARE(133)>, 144 + <PAD_FUNC_SHARE(134)>, 145 + <PAD_FUNC_SHARE(135)>, 146 + <PAD_FUNC_SHARE(136)>, 147 + <PAD_FUNC_SHARE(137)>, 148 + <PAD_FUNC_SHARE(138)>, 149 + <PAD_FUNC_SHARE(139)>, 150 + <PAD_FUNC_SHARE(140)>, 151 + <PAD_FUNC_SHARE(141)>; 152 + bias-pull-up; 153 + drive-strength = <14>; 154 + input-enable; 155 + input-schmitt-enable; 156 + slew-rate = <0>; 157 + }; 158 + }; 159 + 76 160 i2c0_pins: i2c0-0 { 77 161 i2c-pins { 78 162 pinmux = <GPIOMUX(62, GPO_LOW,