Add support for Orange Pi 3
Subsystems (6)
v8 cover Add support for Orange Pi 3
From: Ondrej Jirman <[email protected]>
This series implements support for Xunlong Orange Pi 3 board. There are only a few patches remaining.
- ethernet support - just a DT change (patch 1)
- HDMI support (patches 2-4)
For some people, ethernet doesn't work after reboot because u-boot doesn't support AXP805 PMIC, and will not turn off the etherent PHY regulators. So the regulator controlled by gpio will be shut down, but the other one controlled by the AXP PMIC will not.
This is a problem only when running with a builtin driver. This needs to be fixed in u-boot.
Please take a look.
thank you and regards,
Ondrej Jirman
Changes in v8:
- added reviewed-by tags
- dropped already applied patches
- added more info about the phy initialization issue after reset
Changes in v7:
- dropped stored reference to connector_pdev as suggested by Jernej
- added forgotten dt-bindings reviewed-by tag
Changes in v6:
- added dt-bindings reviewed-by tag
- fix wording in stmmac commit (as suggested by Sergei)
Changes in v5:
- dropped already applied patches (pinctrl patches, mmc1 pinconf patch)
- rename GMAC-3V3 -> GMAC-3V to match the schematic (Jagan)
- changed hdmi-connector's ddc-supply property to ddc-en-gpios (Rob Herring)
Changes in v4:
- fix checkpatch warnings/style issues
- use enum in struct sunxi_desc_function for io_bias_cfg_variant
- collected acked-by's
- fix compile error in drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c:156 caused by missing conversion from has_io_bias_cfg struct member (I've kept the acked-by, because it's a trivial change, but feel free to object.) (reported by Martin A. on github)
I did not have A80 pinctrl enabled for some reason, so I did not catch this sooner.
- dropped brcm firmware patch (was already applied)
- dropped the wifi dts patch (will re-send after H6 RTC gets merged, along with bluetooth support, in a separate series)
Changes in v3:
- dropped already applied patches
- changed pinctrl I/O bias selection constants to enum and renamed
- added /omit-if-no-ref/ to mmc1_pins
- made mmc1_pins default pinconf for mmc1 in H6 dtsi
- move ddc-supply to HDMI connector node, updated patch descriptions, changed dt-bindings docs
Changes in v2:
- added dt-bindings documentation for the board's compatible string (suggested by Clement)
- addressed checkpatch warnings and code formatting issues (on Maxime's suggestions)
- stmmac: dropped useless parenthesis, reworded description of the patch (suggested by Sergei)
- drop useles dev_info() about the selected io bias voltage
- docummented io voltage bias selection variant macros
- wifi: marked WiFi DTS patch and realted mmc1_pins as "DO NOT MERGE", because wifi depends on H6 RTC support that's not merged yet (suggested by Clement)
- added missing signed-of-bys
- changed &usb2otg dr_mode to otg, and added a note about VBUS
- improved wording of HDMI driver's DDC power supply patch
Ondrej Jirman (4):
arm64: dts: allwinner: orange-pi-3: Enable ethernet
dt-bindings: display: hdmi-connector: Support DDC bus enable
drm: sun4i: Add support for enabling DDC I2C bus to sun8i_dw_hdmi glue
arm64: dts: allwinner: orange-pi-3: Enable HDMI output
.../display/connector/hdmi-connector.txt | 1 + .../dts/allwinner/sun50i-h6-orangepi-3.dts | 70 +++++++++++++++++++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 54 ++++++++++++-- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + 4 files changed, 123 insertions(+), 4 deletions(-)
Signature · 1 line
2.22.0
PATCH v8 1/4 arm64: dts: allwinner: orange-pi-3: Enable ethernet
From: Ondrej Jirman <megous-5qf/[email protected]>
Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time, but we can only specify a single phy-supply in the DT.
This can be achieved by making one regulator depedning on the other via vin-supply. While it's not a technically correct description of the hardware, it achieves the purpose.
All values of RX/TX delay were tested exhaustively and a middle one of the working values was chosen.
--- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +44 -0
@@ -15,6 +15,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen {
@@ -44,6 +45,27 @@ regulator-max-microvolt = <5000000>; regulator-always-on; }; + + /* + * The board uses 2.5V RGMII signalling. Power sequence to enable + * the phy is to enable GMAC-2V5 and GMAC-3V (aldo2) power rails + * at the same time and to wait 100ms. + */ + reg_gmac_2v5: gmac-2v5 { + compatible = "regulator-fixed"; + regulator-name = "gmac-2v5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + startup-delay-us = <100000>; + enable-active-high; + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + + /* The real parent of gmac-2v5 is reg_vcc5v, but we need to + * enable two regulators to power the phy. This is one way + * to achieve that. + */ + vin-supply = <®_aldo2>; /* GMAC-3V */ + }; }; &cpu0 {
@@ -58,6 +80,28 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&ext_rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_gmac_2v5>; + allwinner,rx-delay-ps = <1500>; + allwinner,tx-delay-ps = <700>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + + reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */ + reset-assert-us = <15000>; + reset-deassert-us = <40000>; + }; +}; + &mmc0 { vmmc-supply = <®_cldo1>; cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
Signature · 1 line
2.22.0
Re: [linux-sunxi] [PATCH v8 1/4] arm64: dts: allwinner: orange-pi-3: Enable ethernet
Quoted 46 lines · On Tue, Aug 6, 2019 at 11:57 PM <megous-5qf/[email protected]…
From: Ondrej Jirman <megous-5qf/[email protected]>
Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time, but we can only specify a single phy-supply in the DT.
This can be achieved by making one regulator depedning on the other via vin-supply. While it's not a technically correct description of the hardware, it achieves the purpose.
All values of RX/TX delay were tested exhaustively and a middle one of the working values was chosen.
Signed-off-by Ondrej Jirman <megous-5qf/[email protected]>--- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +12
-0@@ -15,6 +15,7 @@ aliases { serial0 = &uart0; + ethernet0 = &emac; }; chosen {@@ -44,6 +45,27 @@ regulator-max-microvolt = <5000000>; regulator-always-on; }; + + /* + * The board uses 2.5V RGMII signalling. Power sequence to enable + * the phy is to enable GMAC-2V5 and GMAC-3V (aldo2) power rails + * at the same time and to wait 100ms. + */ + reg_gmac_2v5: gmac-2v5 { + compatible = "regulator-fixed"; + regulator-name = "gmac-2v5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>;
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts line 68
Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +10
-0+ startup-delay-us = <100000>; + enable-active-high; + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + + /* The real parent of gmac-2v5 is reg_vcc5v, but we need to + * enable two regulators to power the phy. This is one way + * to achieve that. + */ + vin-supply = <®_aldo2>; /* GMAC-3V */ + };
The RTL8211E datasheet I have says:
2.5V (or 1.8/1.5V) RGMII power should be risen simultaneously or slightly earlier than 3.3V power. Rising 2.5V (or 1.8/1.5V) power later than 3.3V power may lead to errors.
Since you can't reverse the parent relationship in your patch, maybe it's time to add a phy-io-supply property?
It also says the rise time for 3.3V must be between 1ms and 100ms. However the PMIC doesn't support voltage ramp control for the LDOs, nor does it list the ramp rate.
ChenYu
Quoted 39 lines
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +22
-1}; &cpu0 {@@ -58,6 +80,28 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&ext_rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_gmac_2v5>; + allwinner,rx-delay-ps = <1500>; + allwinner,tx-delay-ps = <700>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + + reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */ + reset-assert-us = <15000>; + reset-deassert-us = <40000>; + }; +}; + &mmc0 { vmmc-supply = <®_cldo1>; cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ --2.22.0
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-2-megous%40megous.com.
PATCH v8 2/4 dt-bindings: display: hdmi-connector: Support DDC bus enable
In reply to [email protected]From: Ondrej Jirman <megous-5qf/[email protected]>
Some Allwinner SoC using boards (Orange Pi 3 for example) need to enable on-board voltage shifting logic for the DDC bus using a gpio to be able to access DDC bus. Use ddc-en-gpios property on the hdmi-connector to model this.
Add binding documentation for optional ddc-en-gpios property.
--- .../devicetree/bindings/display/connector/hdmi-connector.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/connector/hdmi-connector.txt +1 -0
@@ -9,6 +9,7 @@ Optional properties: - label: a symbolic name for the connector - hpd-gpios: HPD GPIO number - ddc-i2c-bus: phandle link to the I2C controller used for DDC EDID probing +- ddc-en-gpios: signal to enable DDC bus Required nodes: - Video port for HDMI input
Signature · 1 line
2.22.0
PATCH v8 3/4 drm: sun4i: Add support for enabling DDC I2C bus to sun8i_dw_hdmi glue
In reply to [email protected]From: Ondrej Jirman <[email protected]>
Orange Pi 3 board requires enabling a voltage shifting circuit via GPIO for the DDC bus to be usable.
Add support for hdmi-connector node's optional ddc-en-gpios property to support this use case.
--- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 54 +++++++++++++++++++++++++-- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + 2 files changed, 52 insertions(+), 4 deletions(-)
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +50 -4
@@ -97,10 +97,34 @@ static u32 sun8i_dw_hdmi_find_possible_crtcs(struct drm_device *drm,return crtcs; } +static int sun8i_dw_hdmi_find_connector_pdev (struct device *dev, +struct platform_device **pdev_out) +{ +struct platform_device *pdev; +struct device_node *remote; + + remote =of_graph_get_remote_node (dev->of_node,1 ,-1 ); +if (!remote) +return -ENODEV ; + +if (!of_device_is_compatible (remote,"hdmi-connector" )) { +of_node_put (remote); +return -ENODEV ; + } + + pdev =of_find_device_by_node (remote); +of_node_put (remote); +if (!pdev) +return -ENODEV ; + + *pdev_out = pdev; +return 0 ; +} +static int sun8i_dw_hdmi_bind (struct device *dev,struct device *master,void *data) { -struct platform_device *pdev =to_platform_device (dev); +struct platform_device *pdev =to_platform_device (dev), *connector_pdev;struct dw_hdmi_plat_data *plat_data;struct drm_device *drm = data;struct device_node *phy_node;
@@ -150,16 +174,30 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master,return PTR_ERR (hdmi->regulator); } + ret =sun8i_dw_hdmi_find_connector_pdev (dev, &connector_pdev); +if (!ret) { + hdmi->ddc_en =gpiod_get_optional (&connector_pdev->dev, +"ddc-en" ,GPIOD_OUT_HIGH ); +platform_device_put (connector_pdev); + +if (IS_ERR (hdmi->ddc_en)) { +dev_err (dev,"Couldn't get ddc-en gpio\n" ); +return PTR_ERR (hdmi->ddc_en); + } + } + ret =regulator_enable (hdmi->regulator);if (ret) {dev_err (dev,"Failed to enable regulator\n" ); -return ret; + goto err_unref_ddc_en; } +gpiod_set_value (hdmi->ddc_en,1 ); + ret =reset_control_deassert (hdmi->rst_ctrl);if (ret) {dev_err (dev,"Could not deassert ctrl reset control\n" ); - goto err_disable_regulator; + goto err_disable_ddc_en; } ret =clk_prepare_enable (hdmi->clk_tmds);
@@ -212,8 +250,12 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master,clk_disable_unprepare (hdmi->clk_tmds); err_assert_ctrl_reset:reset_control_assert (hdmi->rst_ctrl); -err_disable_regulator: +err_disable_ddc_en: +gpiod_set_value (hdmi->ddc_en,0 );regulator_disable (hdmi->regulator); +err_unref_ddc_en: +if (hdmi->ddc_en) +gpiod_put (hdmi->ddc_en);return ret; }
@@ -227,7 +269,11 @@ static void sun8i_dw_hdmi_unbind(struct device *dev, struct device *master,sun8i_hdmi_phy_remove (hdmi);clk_disable_unprepare (hdmi->clk_tmds);reset_control_assert (hdmi->rst_ctrl); +gpiod_set_value (hdmi->ddc_en,0 );regulator_disable (hdmi->regulator); + +if (hdmi->ddc_en) +gpiod_put (hdmi->ddc_en); }static const struct component_ops sun8i_dw_hdmi_ops = {
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h +2 -0
@@ -9,6 +9,7 @@#include <drm/bridge/dw_hdmi.h> #include <drm/drm_encoder.h> #include <linux/clk.h> +#include <linux/gpio/consumer.h> #include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/reset.h>
@@ -190,6 +191,7 @@ struct sun8i_dw_hdmi {struct regulator *regulator;const struct sun8i_dw_hdmi_quirks *quirks;struct reset_control *rst_ctrl; +struct gpio_desc *ddc_en; }; static inline struct sun8i_dw_hdmi *
Signature · 1 line
2.22.0
PATCH v8 4/4 arm64: dts: allwinner: orange-pi-3: Enable HDMI output
In reply to [email protected]From: Ondrej Jirman <megous-5qf/[email protected]>
Orange Pi 3 has a DDC_CEC_EN signal connected to PH2, that enables the DDC I2C bus voltage shifter. Before EDID can be read, we need to pull PH2 high. This is realized by the ddc-en-gpios property.
--- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +26 -0
@@ -22,6 +22,18 @@ stdout-path = "serial0:115200n8"; }; + connector { + compatible = "hdmi-connector"; + ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds";
@@ -72,6 +84,10 @@ cpu-supply = <®_dcdca>; }; +&de { + status = "okay"; +}; + &ehci0 { status = "okay"; };
@@ -91,6 +107,16 @@ status = "okay"; }; +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22";
Signature · 1 line
2.22.0
Re: [linux-sunxi] [PATCH v8 4/4] arm64: dts: allwinner: orange-pi-3: Enable HDMI output
Quoted 6 lines · On Tue, 6 Aug 2019 at 17:57, <megous-5qf/[email protected]>…
From: Ondrej Jirman <megous-5qf/[email protected]>
Orange Pi 3 has a
DDC_CEC_ENsignal connected to PH2, that enables the DDC I2C bus voltage shifter. Before EDID can be read, we need to pull PH2 high. This is realized by the ddc-en-gpios property.
Great work. Is there any chance you can move this to the arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi?, as all the H6 based orange-pi's have this feature.
BR,
CK
Quoted 64 lines
Signed-off-by Ondrej Jirman <megous-5qf/[email protected]>--- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +26
-1@@ -22,6 +22,18 @@ stdout-path = "serial0:115200n8"; }; + connector { + compatible = "hdmi-connector"; + ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds";@@ -72,6 +84,10 @@ cpu-supply = <®_dcdca>; }; +&de { + status = "okay"; +}; + &ehci0 { status = "okay"; };@@ -91,6 +107,16 @@ status = "okay"; }; +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; --2.22.0
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-5-megous%40megous.com.
Re: [linux-sunxi] [PATCH v8 4/4] arm64: dts: allwinner: orange-pi-3: Enable HDMI output
Quoted 10 lines · Code Kipper
Quoted 6 lines · On Tue, 6 Aug 2019 at 17:57, <[email protected]> wrote:
From: Ondrej Jirman <[email protected]>
Orange Pi 3 has a
DDC_CEC_ENsignal connected to PH2, that enables the DDC I2C bus voltage shifter. Before EDID can be read, we need to pull PH2 high. This is realized by the ddc-en-gpios property.Great work. Is there any chance you can move this to the
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi?, as all the H6 based orange-pi's have this feature.
I plan to do that as a followup patch, once this is merged.
regards,
o.
Quoted 66 lines
BR,
CKQuoted 64 lines
Signed-off-by Ondrej Jirman <[email protected]>--- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +26
-1@@ -22,6 +22,18 @@ stdout-path = "serial0:115200n8"; }; + connector { + compatible = "hdmi-connector"; + ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds";@@ -72,6 +84,10 @@ cpu-supply = <®_dcdca>; }; +&de { + status = "okay"; +}; + &ehci0 { status = "okay"; };@@ -91,6 +107,16 @@ status = "okay"; }; +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; --2.22.0
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-5-megous%40megous.com.
Jernej Škrabec
maintainerDne torek, 06. avgust 2019 ob 17:57:39 CEST je megous-5qf/[email protected] napisal(a):
Quoted 13 lines
From: Ondrej Jirman <megous-5qf/[email protected]>
This series implements support for Xunlong Orange Pi 3 board. There are only a few patches remaining.
- ethernet support - just a DT change (patch 1)
- HDMI support (patches 2-4)For some people, ethernet doesn't work after reboot because u-boot doesn't support AXP805 PMIC, and will not turn off the etherent PHY regulators. So the regulator controlled by gpio will be shut down, but the other one controlled by the AXP PMIC will not.
Quoted 5 lines
This is a problem only when running with a builtin driver. This needs to be fixed in u-boot.
Please take a look.
Is there anything missing? It would be nice to get this in 5.4. There is a lot of H6 boards which needs DDC bus enable mechanism (part of H6 reference design), including Beelink GS1 which already has HDMI node in mainline kernel DT, but due to disabled DDC lines works only with 1024x768 (fallback resolution in DRM core).
Best regards,
Jernej
Quoted 72 lines
thank you and regards,
Ondrej JirmanChanges in v8:
- added reviewed-by tags
- dropped already applied patches
- added more info about the phy initialization issue after resetChanges in v7:
- dropped stored reference toconnector_pdevas suggested by Jernej
- added forgotten dt-bindings reviewed-by tagChanges in v6:
- added dt-bindings reviewed-by tag
- fix wording in stmmac commit (as suggested by Sergei)Changes in v5:
- dropped already applied patches (pinctrl patches, mmc1 pinconf patch)
- rename GMAC-3V3 -> GMAC-3V to match the schematic (Jagan)
- changed hdmi-connector's ddc-supply property to ddc-en-gpios (Rob Herring)Changes in v4:
- fix checkpatch warnings/style issues
- use enum in structsunxi_desc_functionforio_bias_cfg_variant
- collected acked-by's
- fix compile error indrivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c:156caused by missing conversion fromhas_io_bias_cfgstruct member (I've kept the acked-by, because it's a trivial change, but feel free to object.) (reported by Martin A. on github)
I did not have A80 pinctrl enabled for some reason, so I did not catch this sooner.
- dropped brcm firmware patch (was already applied)
- dropped the wifi dts patch (will re-send after H6 RTC gets merged, along with bluetooth support, in a separate series)Changes in v3:
- dropped already applied patches
- changed pinctrl I/O bias selection constants to enum and renamed
- added /omit-if-no-ref/ tommc1_pins
- mademmc1_pinsdefault pinconf for mmc1 in H6 dtsi
- move ddc-supply to HDMI connector node, updated patch descriptions, changed dt-bindings docsChanges in v2:
- added dt-bindings documentation for the board's compatible string (suggested by Clement)
- addressed checkpatch warnings and code formatting issues (on Maxime's suggestions)
- stmmac: dropped useless parenthesis, reworded description of the patch (suggested by Sergei)
- drop uselesdev_info()about the selected io bias voltage
- docummented io voltage bias selection variant macros
- wifi: marked WiFi DTS patch and realtedmmc1_pinsas "DO NOT MERGE", because wifi depends on H6 RTC support that's not merged yet (suggested by Clement)
- added missing signed-of-bys
- changed &usb2otgdr_modeto otg, and added a note about VBUS
- improved wording of HDMI driver's DDC power supply patchOndrej Jirman (4):
arm64: dts: allwinner: orange-pi-3: Enable ethernet
dt-bindings: display: hdmi-connector: Support DDC bus enable
drm: sun4i: Add support for enabling DDC I2C bus tosun8i_dw_hdmiglue
arm64: dts: allwinner: orange-pi-3: Enable HDMI output.../display/connector/hdmi-connector.txt | 1 + .../dts/allwinner/sun50i-h6-orangepi-3.dts | 70 +++++++++++++++++++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 54 ++++++++++++-- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + 4 files changed, 123 insertions(+), 4 deletions(-)
Quoted 19 lines · Jernej Škrabec
Dne torek, 06. avgust 2019 ob 17:57:39 CEST je megous-5qf/[email protected] napisal(a):
Quoted 17 lines
From: Ondrej Jirman <megous-5qf/[email protected]>
This series implements support for Xunlong Orange Pi 3 board. There are only a few patches remaining.
- ethernet support - just a DT change (patch 1)
- HDMI support (patches 2-4)For some people, ethernet doesn't work after reboot because u-boot doesn't support AXP805 PMIC, and will not turn off the etherent PHY regulators. So the regulator controlled by gpio will be shut down, but the other one controlled by the AXP PMIC will not.
This is a problem only when running with a builtin driver. This needs to be fixed in u-boot.
Quoted 7 lines
Quoted 1 line
Please take a look.
Is there anything missing? It would be nice to get this in 5.4. There is a lot of H6 boards which needs DDC bus enable mechanism (part of H6 reference design), including Beelink GS1 which already has HDMI node in mainline kernel DT, but due to disabled DDC lines works only with 1024x768 (fallback resolution in DRM core).
I have a few minor comments about patch 1.
I think the HDMI bits are good, but I don't have maintainership / commit permissions for drm-misc, so I'll have to wait until someone applies patches 2 and 3 before I apply patch 4.
ChenYu
Quoted 83 lines
Best regards,
JernejQuoted 67 lines
thank you and regards,
Ondrej JirmanChanges in v8:
- added reviewed-by tags
- dropped already applied patches
- added more info about the phy initialization issue after resetChanges in v7:
- dropped stored reference toconnector_pdevas suggested by Jernej
- added forgotten dt-bindings reviewed-by tagChanges in v6:
- added dt-bindings reviewed-by tag
- fix wording in stmmac commit (as suggested by Sergei)Changes in v5:
- dropped already applied patches (pinctrl patches, mmc1 pinconf patch)
- rename GMAC-3V3 -> GMAC-3V to match the schematic (Jagan)
- changed hdmi-connector's ddc-supply property to ddc-en-gpios (Rob Herring)Changes in v4:
- fix checkpatch warnings/style issues
- use enum in structsunxi_desc_functionforio_bias_cfg_variant
- collected acked-by's
- fix compile error indrivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c:156caused by missing conversion fromhas_io_bias_cfgstruct member (I've kept the acked-by, because it's a trivial change, but feel free to object.) (reported by Martin A. on github)
I did not have A80 pinctrl enabled for some reason, so I did not catch this sooner.
- dropped brcm firmware patch (was already applied)
- dropped the wifi dts patch (will re-send after H6 RTC gets merged, along with bluetooth support, in a separate series)Changes in v3:
- dropped already applied patches
- changed pinctrl I/O bias selection constants to enum and renamed
- added /omit-if-no-ref/ tommc1_pins
- mademmc1_pinsdefault pinconf for mmc1 in H6 dtsi
- move ddc-supply to HDMI connector node, updated patch descriptions, changed dt-bindings docsChanges in v2:
- added dt-bindings documentation for the board's compatible string (suggested by Clement)
- addressed checkpatch warnings and code formatting issues (on Maxime's suggestions)
- stmmac: dropped useless parenthesis, reworded description of the patch (suggested by Sergei)
- drop uselesdev_info()about the selected io bias voltage
- docummented io voltage bias selection variant macros
- wifi: marked WiFi DTS patch and realtedmmc1_pinsas "DO NOT MERGE", because wifi depends on H6 RTC support that's not merged yet (suggested by Clement)
- added missing signed-of-bys
- changed &usb2otgdr_modeto otg, and added a note about VBUS
- improved wording of HDMI driver's DDC power supply patchOndrej Jirman (4):
arm64: dts: allwinner: orange-pi-3: Enable ethernet
dt-bindings: display: hdmi-connector: Support DDC bus enable
drm: sun4i: Add support for enabling DDC I2C bus tosun8i_dw_hdmiglue
arm64: dts: allwinner: orange-pi-3: Enable HDMI outputQuoted 5 lines
.../display/connector/hdmi-connector.txt | 1 + .../dts/allwinner/sun50i-h6-orangepi-3.dts | 70 +++++++++++++++++++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 54 ++++++++++++-- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + 4 files changed, 123 insertions(+), 4 deletions(-)--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/2218280.0sI6yjypBf%40jernej-laptop.
Signature · 3 lines
You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/CAGb2v67JVG2rhOdUwBmfsO0%2BRYb4DNOPmUo%3DQ_UhL3N%2BniLiEg%40mail.gmail.com.
Quoted 28 lines · Chen-Yu Tsai
Quoted 19 lines · Jernej Škrabec
Dne torek, 06. avgust 2019 ob 17:57:39 CEST je megous-5qf/[email protected] napisal(a):
Quoted 17 lines
From: Ondrej Jirman <megous-5qf/[email protected]>
This series implements support for Xunlong Orange Pi 3 board. There are only a few patches remaining.
- ethernet support - just a DT change (patch 1)
- HDMI support (patches 2-4)For some people, ethernet doesn't work after reboot because u-boot doesn't support AXP805 PMIC, and will not turn off the etherent PHY regulators. So the regulator controlled by gpio will be shut down, but the other one controlled by the AXP PMIC will not.
This is a problem only when running with a builtin driver. This needs to be fixed in u-boot.
Quoted 7 lines
Quoted 1 line
Please take a look.
Is there anything missing? It would be nice to get this in 5.4. There is a lot of H6 boards which needs DDC bus enable mechanism (part of H6 reference design), including Beelink GS1 which already has HDMI node in mainline kernel DT, but due to disabled DDC lines works only with 1024x768 (fallback resolution in DRM core).
Quoted 5 lines
I have a few minor comments about patch 1.
I think the HDMI bits are good, but I don't have maintainership / commit permissions for drm-misc, so I'll have to wait until someone applies patches 2 and 3 before I apply patch 4.
I've applied 2,3 and 4
Thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Signature · 3 lines
You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190812081445.kfsbikfrt3pmsh6d%40flea.