[linux-sunxi] [PATCH 1/3] arm: dts: sun6i: a31s: bpi-m2: update mmc supply nodes
This patch updates the vmmc-supply properties on the mmc0 and mmc2 node to use the allready existent regulators. We can now remove the sunxi-common-regulators.dtsi include since we don't need it anymore. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts index 51e6f1d21c32..a8d86211c8f3 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -42,7 +42,6 @@ /dts-v1/; #include "sun6i-a31s.dtsi" -#include "sunxi-common-regulators.dtsi" #include / { @@ -118,7 +117,7 @@ &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bpi_m2>; - vmmc-supply = <®_vcc3v0>; + vmmc-supply = <®_dcdc1>; bus-width = <4>; cd-gpios = <&pio 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */ cd-inverted; @@ -132,7 +131,7 @@ &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins_a>; - vmmc-supply = <®_vcc3v0>; + vmmc-supply = <®_dcdc1>; mmc-pwrseq = <&mmc2_pwrseq>; bus-width = <4>; non-removable; -- 2.11.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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] [PATCH 0/3] Fix broken bananapi m2 devicetree/regulators
This patchseries fixes the bananapi m1 devicetree, to be able to boot again. The first two patches update/improve the devicetree and the last patch adds all missing regulators. Regards, Philipp Philipp Rossak (3): arm: dts: sun6i: a31s: bpi-m2: update mmc supply nodes arm: dts: sun6i: a31s: bpi-m2: improve pmic properties arm: dts: sun6i: a31s: fix: bpi-m2: add missing regulators arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 70 +++- 1 file changed, 67 insertions(+), 3 deletions(-) -- 2.11.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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] [PATCH 2/3] arm: dts: sun6i: a31s: bpi-m2: improve pmic properties
The eldoin is supplied from the dcdc1 regulator. The N_VBUSEN pin is connected to an external power regulator (SY6280AAC). With this commit we update the pmic binding properties to support those features. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts index a8d86211c8f3..556528386858 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -162,6 +162,8 @@ reg = <0x68>; interrupt-parent = <&nmi_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + eldoin-supply = <®_dcdc1>; + x-powers,drive-vbus-en; }; }; -- 2.11.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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] [PATCH 3/3] arm: dts: sun6i: a31s: fix: bpi-m2: add missing regulators
This patch fixes a bootproblem with the Bananapi M2 board. Since there are some regulators missing we add them right now. Those values come from the schematic, below you can find a small overview: * reg_aldo1: 3,3V, powers the wifi * reg_aldo2: 2,5V, powers the IO of the RTL8211E * reg_aldo3: 3,3V, powers the audio * reg_dldo1: 3,0V, powers the RTL8211E * reg_dldo2: 2,8V, powers the analog part of the csi * reg_dldo3: 3,3V, powers misc * reg_eldo1: 1,8V, powers the csi * reg_ldo_io1:1,8V, powers the gpio * reg_dc5ldo: needs to be always on Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 56 1 file changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts index 51e6f1d21c32..01fcfe0649ad 100644 --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts @@ -99,6 +99,7 @@ pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_bpi_m2>; phy = <&phy1>; phy-mode = "rgmii"; + phy-supply = <®_dldo1>; snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */ snps,reset-active-low; snps,reset-delays-us = <0 1 3>; @@ -193,7 +194,28 @@ #include "axp22x.dtsi" +®_aldo1 { + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-name = "vcc-wifi"; +}; + +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <250>; + regulator-max-microvolt = <250>; + regulator-name = "vcc-gmac"; +}; + +®_aldo3 { + regulator-always-on; + regulator-min-microvolt = <300>; + regulator-max-microvolt = <300>; + regulator-name = "avcc"; +}; + ®_dc5ldo { + regulator-always-on; regulator-min-microvolt = <70>; regulator-max-microvolt = <132>; regulator-name = "vdd-cpus"; @@ -233,6 +255,40 @@ regulator-name = "vcc-dram"; }; +®_dldo1 { + regulator-min-microvolt = <300>; + regulator-max-microvolt = <300>; + regulator-name = "vcc-mac"; +}; + +®_dldo2 { + regulator-min-microvolt = <280>; + regulator-max-microvolt = <280>; + regulator-name = "avdd-csi"; +}; + +®_dldo3 { + regulator-always-on; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-name = "vcc-pb"; +}; + +®_eldo1 { + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-name = "vdd-csi"; + status = "okay"; +}; + +®_ldo_io1 { + regulator-always-on; + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-name = "vcc-pm-cpus"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; -- 2.11.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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding
On 09/02/18 15:58, Samuel Holland wrote: > On 02/08/18 19:30, Andre Przywara wrote: >> The U-Boot driver for the sun8i-emac was using some preliminary DT >> binding. Now since Linux got its own driver in v4.15 and our driver >> can now cope with both bindings, let's convert the DT nodes used for the >> Pine64+ board over to the new bindings used by the kernel. >> >> Signed-off-by: Andre Przywara >> --- >> arch/arm/dts/sun50i-a64-pine64-plus-u-boot.dtsi | 51 >> +++-- >> 1 file changed, 30 insertions(+), 21 deletions(-) > > Since this is now the same binding as used in Linux, can this file be merged > into the A64 dtsi? This file isn't pine64-specific, and it looks like it's not > currently included from either dts file anyway. I ask because I'd like to get > Ethernet working on the Orange Pi Win. Yeah, I was thinking about this as well, but wanted to keep the diff small for this series. I have patches ready that copy all of the Linux .dts file into U-Boot, so these patches here are somewhat preliminary anyway. But if people don't mind, I could merge this into sun50i-a64.dtsi as well. Cheers, Andre. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding
On 02/08/18 19:30, Andre Przywara wrote: > The U-Boot driver for the sun8i-emac was using some preliminary DT > binding. Now since Linux got its own driver in v4.15 and our driver > can now cope with both bindings, let's convert the DT nodes used for the > Pine64+ board over to the new bindings used by the kernel. > > Signed-off-by: Andre Przywara > --- > arch/arm/dts/sun50i-a64-pine64-plus-u-boot.dtsi | 51 > +++-- > 1 file changed, 30 insertions(+), 21 deletions(-) Since this is now the same binding as used in Linux, can this file be merged into the A64 dtsi? This file isn't pine64-specific, and it looks like it's not currently included from either dts file anyway. I ask because I'd like to get Ethernet working on the Orange Pi Win. Thanks, Samuel -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [PATCH v3 4/4] ARM: dts: sunxi: h3-h5: rename mmc0_pins_a and mmc1_pins_a
Hi, Maxime Ripard: > I've queued all four patches for 4.17, but this isn't needed at all, > since the pull up should already be set in the pinctrl node. Can you > send another patch removing it? Awesome! Thank you for the time you took to review the patches and give me feedback. I will send a patch removing that node hopefully next week. Joonas -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [U-Boot] [PATCH v2 0/7] sunxi: sun8i-emac: Update DT bindings
On Fri, Feb 9, 2018 at 7:00 AM, Andre Przywara wrote: > Compared to the last post, this converts U-Boot's DTs over to use the > new binding, so that the final patch can remove support for the old > binding from U-Boot EMAC driver. > The Linux DTs can be synced in later once we solved the size problem. > > > The existing sun8i-emac driver in U-Boot uses some preliminary bindings, > which matched our own DTs. Now that the Linux kernel got a driver, lets > update our probe code to handle those Linux DTs as well. > The first patch adds the missing compatible strings for the pinctrl drivers, > which is needed for using the sunxi_name_to_gpio() lookup function. > Patch 2/7 updates the pinctrl parser used in the sun8i-emac driver, to cope > with the new, generic Allwinner pinctrl bindings. > Patch 3/7 extends the probe routine in the Ethernet driver to deal > with both the old and the new bindings. > Patches 4, 5 and 6 update U-Boot's DTs for boards using the A64, H3 and H5 > SoC, respectively, to actually use the new binding in their EMAC nodes. > This allows the final patch 7/7 to remove the support for the old binding > in the EMAC driver, so we use the proper binding only. > This series allows to copy in the DTs from the latest kernel. Unfortunately > right now updating the DTs for the H5 and A64 breaks the build, as the > resulting binary (which embeds the DT) gets to large and triggers our new > image size check. As the H5 and H3 share most of the DT, we can't just > update the H3 DTs either. Same case with me with USB PHY changes, better to check size by disabling dts changes on H5/A64 if OK, then will move this to next. Once FAT transition done we can take them back - this is what I'm thinking as of now. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [U-Boot] [PATCH v2 1/7] sunxi: gpio: add missing compatible strings
Hi, On 09/02/18 11:21, Jagan Teki wrote: > On Fri, Feb 9, 2018 at 7:00 AM, Andre Przywara wrote: >> The sunxi GPIO driver is missing some compatible strings for recent >> SoCs. While most of the sunxi GPIO code seems to not rely on this (and >> so works anyway), the sunxi_name_to_gpio() function does and fails at >> the moment (for instance when resolving the MMC CD pin name). >> Add the compatible strings for the A64, H5 and V3s, which were missing >> from the list. This now covers all pinctrl nodes in our own DTs. >> >> Signed-off-by: Andre Przywara >> --- >> drivers/gpio/sunxi_gpio.c | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c >> index 3cf01b6e36..90fd7c1596 100644 >> --- a/drivers/gpio/sunxi_gpio.c >> +++ b/drivers/gpio/sunxi_gpio.c >> @@ -354,12 +354,16 @@ static const struct udevice_id sunxi_gpio_ids[] = { >> ID("allwinner,sun8i-a83t-pinctrl", a_all), >> ID("allwinner,sun8i-h3-pinctrl",a_all), >> ID("allwinner,sun8i-r40-pinctrl", a_all), >> + ID("allwinner,sun8i-v3s-pinctrl", a_all), >> ID("allwinner,sun9i-a80-pinctrl", a_all), >> + ID("allwinner,sun50i-a64-pinctrl", a_all), >> + ID("allwinner,sun50i-h5-pinctrl", a_all), > > h5 is already added after sun5i-a13 Ah, indeed, good catch. Thanks for having a look. Cheers, Andre. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: [U-Boot] [PATCH v2 1/7] sunxi: gpio: add missing compatible strings
On Fri, Feb 9, 2018 at 7:00 AM, Andre Przywara wrote: > The sunxi GPIO driver is missing some compatible strings for recent > SoCs. While most of the sunxi GPIO code seems to not rely on this (and > so works anyway), the sunxi_name_to_gpio() function does and fails at > the moment (for instance when resolving the MMC CD pin name). > Add the compatible strings for the A64, H5 and V3s, which were missing > from the list. This now covers all pinctrl nodes in our own DTs. > > Signed-off-by: Andre Przywara > --- > drivers/gpio/sunxi_gpio.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c > index 3cf01b6e36..90fd7c1596 100644 > --- a/drivers/gpio/sunxi_gpio.c > +++ b/drivers/gpio/sunxi_gpio.c > @@ -354,12 +354,16 @@ static const struct udevice_id sunxi_gpio_ids[] = { > ID("allwinner,sun8i-a83t-pinctrl", a_all), > ID("allwinner,sun8i-h3-pinctrl",a_all), > ID("allwinner,sun8i-r40-pinctrl", a_all), > + ID("allwinner,sun8i-v3s-pinctrl", a_all), > ID("allwinner,sun9i-a80-pinctrl", a_all), > + ID("allwinner,sun50i-a64-pinctrl", a_all), > + ID("allwinner,sun50i-h5-pinctrl", a_all), h5 is already added after sun5i-a13 -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.