From: Alexandre Mergnat <amergnat@baylibre.com> To: Zhiyong Tao <zhiyong.tao@mediatek.com>, Guenter Roeck <linux@roeck-us.net>, Linus Walleij <linus.walleij@linaro.org>, Bernhard Rosenkränzer <bero@baylibre.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Ulf Hansson <ulf.hansson@linaro.org>, Wim Van Sebroeck <wim@linux-watchdog.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chaotian Jing <chaotian.jing@mediatek.com>, Rob Herring <robh+dt@kernel.org>, Wenbin Mei <wenbin.mei@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com> Cc: linux-mmc@vger.kernel.org, Alexandre Bailon <abailon@baylibre.com>, devicetree@vger.kernel.org, Amjad Ouled-Ameur <aouledameur@baylibre.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat <amergnat@baylibre.com>, linux-mediatek@lists.infradead.org, Fabien Parent <fparent@baylibre.com> Subject: [PATCH v2 14/18] arm64: dts: mediatek: add ethernet support for mt8365-evk Date: Tue, 07 Mar 2023 14:17:43 +0100 [thread overview] Message-ID: <20230203-evk-board-support-v2-14-6ec7cdb10ccf@baylibre.com> (raw) In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> - Enable "vibr" and "vsim2" regulators to power the ethernet chip. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 868ee0d160e4..1820daad6da3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,28 @@ optee_reserved: optee@43200000 { }; }; +ðernet { + pinctrl-names = "default"; + pinctrl-0 = <ðernet_pins>; + phy-handle = <ð_phy>; + phy-mode = "rmii"; + /* + * Ethernet and HDMI (DSI0) are sharing pins. + * Only one can be enabled at a time and require the physical switch + * SW2101 to be set on LAN position + */ + status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + reg = <0>; + }; + }; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; @@ -140,12 +162,47 @@ &mt6357_pmic { #interrupt-cells = <2>; }; +/* Needed by analog switch (multiplexer), HDMI and ethernet */ +&mt6357_vibr_reg { + regulator-always-on; +}; + /* Needed by MSDC1 */ &mt6357_vmc_reg { regulator-always-on; }; +/* Needed by ethernet */ +&mt6357_vsim2_reg { + regulator-always-on; +}; + &pio { + ethernet_pins: ethernet-pins { + phy_reset_pins { + pinmux = <MT8365_PIN_133_TDM_TX_DATA1__FUNC_GPIO133>; + }; + + rmii_pins { + pinmux = <MT8365_PIN_0_GPIO0__FUNC_EXT_TXD0>, + <MT8365_PIN_1_GPIO1__FUNC_EXT_TXD1>, + <MT8365_PIN_2_GPIO2__FUNC_EXT_TXD2>, + <MT8365_PIN_3_GPIO3__FUNC_EXT_TXD3>, + <MT8365_PIN_4_GPIO4__FUNC_EXT_TXC>, + <MT8365_PIN_5_GPIO5__FUNC_EXT_RXER>, + <MT8365_PIN_6_GPIO6__FUNC_EXT_RXC>, + <MT8365_PIN_7_GPIO7__FUNC_EXT_RXDV>, + <MT8365_PIN_8_GPIO8__FUNC_EXT_RXD0>, + <MT8365_PIN_9_GPIO9__FUNC_EXT_RXD1>, + <MT8365_PIN_10_GPIO10__FUNC_EXT_RXD2>, + <MT8365_PIN_11_GPIO11__FUNC_EXT_RXD3>, + <MT8365_PIN_12_GPIO12__FUNC_EXT_TXEN>, + <MT8365_PIN_13_GPIO13__FUNC_EXT_COL>, + <MT8365_PIN_14_GPIO14__FUNC_EXT_MDIO>, + <MT8365_PIN_15_GPIO15__FUNC_EXT_MDC>; + }; + }; + gpio_keys: gpio-keys-pins { pins { pinmux = <MT8365_PIN_24_KPCOL0__FUNC_KPCOL0>; -- b4 0.10.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Mergnat <amergnat@baylibre.com> To: Zhiyong Tao <zhiyong.tao@mediatek.com>, Guenter Roeck <linux@roeck-us.net>, Linus Walleij <linus.walleij@linaro.org>, Bernhard Rosenkränzer <bero@baylibre.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Ulf Hansson <ulf.hansson@linaro.org>, Wim Van Sebroeck <wim@linux-watchdog.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chaotian Jing <chaotian.jing@mediatek.com>, Rob Herring <robh+dt@kernel.org>, Wenbin Mei <wenbin.mei@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com> Cc: linux-mmc@vger.kernel.org, Alexandre Bailon <abailon@baylibre.com>, devicetree@vger.kernel.org, Amjad Ouled-Ameur <aouledameur@baylibre.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat <amergnat@baylibre.com>, linux-mediatek@lists.infradead.org, Fabien Parent <fparent@baylibre.com> Subject: [PATCH v2 14/18] arm64: dts: mediatek: add ethernet support for mt8365-evk Date: Tue, 07 Mar 2023 14:17:43 +0100 [thread overview] Message-ID: <20230203-evk-board-support-v2-14-6ec7cdb10ccf@baylibre.com> (raw) In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> - Enable "vibr" and "vsim2" regulators to power the ethernet chip. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 868ee0d160e4..1820daad6da3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,28 @@ optee_reserved: optee@43200000 { }; }; +ðernet { + pinctrl-names = "default"; + pinctrl-0 = <ðernet_pins>; + phy-handle = <ð_phy>; + phy-mode = "rmii"; + /* + * Ethernet and HDMI (DSI0) are sharing pins. + * Only one can be enabled at a time and require the physical switch + * SW2101 to be set on LAN position + */ + status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + reg = <0>; + }; + }; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; @@ -140,12 +162,47 @@ &mt6357_pmic { #interrupt-cells = <2>; }; +/* Needed by analog switch (multiplexer), HDMI and ethernet */ +&mt6357_vibr_reg { + regulator-always-on; +}; + /* Needed by MSDC1 */ &mt6357_vmc_reg { regulator-always-on; }; +/* Needed by ethernet */ +&mt6357_vsim2_reg { + regulator-always-on; +}; + &pio { + ethernet_pins: ethernet-pins { + phy_reset_pins { + pinmux = <MT8365_PIN_133_TDM_TX_DATA1__FUNC_GPIO133>; + }; + + rmii_pins { + pinmux = <MT8365_PIN_0_GPIO0__FUNC_EXT_TXD0>, + <MT8365_PIN_1_GPIO1__FUNC_EXT_TXD1>, + <MT8365_PIN_2_GPIO2__FUNC_EXT_TXD2>, + <MT8365_PIN_3_GPIO3__FUNC_EXT_TXD3>, + <MT8365_PIN_4_GPIO4__FUNC_EXT_TXC>, + <MT8365_PIN_5_GPIO5__FUNC_EXT_RXER>, + <MT8365_PIN_6_GPIO6__FUNC_EXT_RXC>, + <MT8365_PIN_7_GPIO7__FUNC_EXT_RXDV>, + <MT8365_PIN_8_GPIO8__FUNC_EXT_RXD0>, + <MT8365_PIN_9_GPIO9__FUNC_EXT_RXD1>, + <MT8365_PIN_10_GPIO10__FUNC_EXT_RXD2>, + <MT8365_PIN_11_GPIO11__FUNC_EXT_RXD3>, + <MT8365_PIN_12_GPIO12__FUNC_EXT_TXEN>, + <MT8365_PIN_13_GPIO13__FUNC_EXT_COL>, + <MT8365_PIN_14_GPIO14__FUNC_EXT_MDIO>, + <MT8365_PIN_15_GPIO15__FUNC_EXT_MDC>; + }; + }; + gpio_keys: gpio-keys-pins { pins { pinmux = <MT8365_PIN_24_KPCOL0__FUNC_KPCOL0>; -- b4 0.10.1
next prev parent reply other threads:[~2023-03-07 13:27 UTC|newest] Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-07 13:17 [PATCH v2 00/18] Improve the MT8365 SoC and EVK board support Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 01/18] dt-bindings: watchdog: mediatek,mtk-wdt: add mt8365 Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-10 8:30 ` Krzysztof Kozlowski 2023-03-10 8:30 ` Krzysztof Kozlowski 2023-03-07 13:17 ` [PATCH v2 02/18] dt-bindings: mmc: mediatek,mtk-sd: " Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-10 8:30 ` Krzysztof Kozlowski 2023-03-10 8:30 ` Krzysztof Kozlowski 2023-03-10 15:14 ` Ulf Hansson 2023-03-10 15:14 ` Ulf Hansson 2023-03-07 13:17 ` [PATCH v2 03/18] dt-bindings: pinctrl: mediatek,mt8365-pinctrl: add drive strength property Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-09 13:56 ` Linus Walleij 2023-03-09 13:56 ` Linus Walleij 2023-03-10 8:32 ` Krzysztof Kozlowski 2023-03-10 8:32 ` Krzysztof Kozlowski 2023-03-10 9:46 ` AngeloGioacchino Del Regno 2023-03-10 9:46 ` AngeloGioacchino Del Regno 2023-03-10 9:49 ` AngeloGioacchino Del Regno 2023-03-10 9:49 ` AngeloGioacchino Del Regno 2023-03-15 8:11 ` Alexandre Mergnat 2023-03-15 8:11 ` Alexandre Mergnat 2023-03-15 10:45 ` AngeloGioacchino Del Regno 2023-03-15 10:45 ` AngeloGioacchino Del Regno 2023-03-07 13:17 ` [PATCH v2 04/18] arm64: dts: mediatek: Increase the size BL31 reserved memory Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 05/18] arm64: dts: mediatek: add watchdog support for mt8365 SoC Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 06/18] arm64: dts: mediatek: add mt6357 device-tree Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 07/18] arm64: dts: mediatek: add pwrap support to mt8365 SoC Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 08/18] arm64: dts: mediatek: add mt6357 PMIC support for mt8365-evk Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 09/18] arm64: dts: mediatek: add mmc support for mt8365 SoC Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 10/18] arm64: dts: mediatek: add mmc support for mt8365-evk Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 11/18] arm64: dts: mediatek: set vmc regulator as always on Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 12/18] arm64: dts: mediatek: add usb controller support for mt8365-evk Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 13/18] arm64: dts: mediatek: add ethernet support for mt8365 SoC Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat [this message] 2023-03-07 13:17 ` [PATCH v2 14/18] arm64: dts: mediatek: add ethernet support for mt8365-evk Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 15/18] arm64: dts: mediatek: add OPP support for mt8365 SoC Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 16/18] arm64: dts: mediatek: add cpufreq support for mt8365-evk Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-07 13:17 ` [PATCH v2 17/18] arm64: dts: mediatek: fix systimer properties Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat 2023-03-09 13:32 ` AngeloGioacchino Del Regno 2023-03-09 13:32 ` AngeloGioacchino Del Regno 2023-03-09 14:51 ` Bernhard Rosenkränzer 2023-03-09 14:51 ` Bernhard Rosenkränzer 2023-03-07 13:17 ` [PATCH v2 18/18] arm64: dts: mediatek: Add CPU Idle support Alexandre Mergnat 2023-03-07 13:17 ` Alexandre Mergnat
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230203-evk-board-support-v2-14-6ec7cdb10ccf@baylibre.com \ --to=amergnat@baylibre.com \ --cc=abailon@baylibre.com \ --cc=angelogioacchino.delregno@collabora.com \ --cc=aouledameur@baylibre.com \ --cc=bero@baylibre.com \ --cc=chaotian.jing@mediatek.com \ --cc=devicetree@vger.kernel.org \ --cc=fparent@baylibre.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=linux-mmc@vger.kernel.org \ --cc=linux-watchdog@vger.kernel.org \ --cc=linux@roeck-us.net \ --cc=matthias.bgg@gmail.com \ --cc=robh+dt@kernel.org \ --cc=ulf.hansson@linaro.org \ --cc=wenbin.mei@mediatek.com \ --cc=wim@linux-watchdog.org \ --cc=zhiyong.tao@mediatek.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.