[linux-sunxi] Re: [PATCH v2] ARM: dts: sunxi: Add regulators for LeMaker BananaPi
Hi Kevin, Kevin Hilman schrieb am 25. Sept 2015 01:57: > On Tue, Aug 18, 2015 at 8:36 AM, Maxime Ripard >wrote: >> On Sun, Aug 02, 2015 at 06:18:25PM +0200, Timo Sigurdsson wrote: >>> sun7i-a20-bananapi.dts doesn't contain regulator nodes for the AXP209 >>> PMU >>> driver, so add them to allow for voltage-scaling with cpufreq-dt. >>> >>> Signed-off-by: Timo Sigurdsson >> >> Queued, thanks! >> Maxime > > kernelci.org started finding boot faiulres[1] on bananapi linux-next > around next-20150918, but it was only failing in some labs and not > others. I finally bisected it down to this patch, which landed in > linux-next in the form of 2d665a8a8350 ARM: dts: sunxi: Add regulators > for LeMaker BananaPi. Reverting that commit on top of next-20150923 > gets my bananapi booting again. > > Note it's kind of an interesting boot failure. The kernel boots fully > to a shell, but panics after running a few commands. In particular > 'dmesg -n1' seems to trigger it usually[2]. > > Kevin > > [1] > http://kernelci.org/boot/sun7i-a20-bananapi/job/next/kernel/next-20150923/defconfig/multi_v7_defconfig/lab/lab-khilman/?_id=5602504359b514be146c326f > [2] > http://storage.kernelci.org/next/next-20150923/arm-multi_v7_defconfig/lab-khilman/boot-sun7i-a20-bananapi.html > Thanks for your feedback. I'm traveling at the moment, so I can't do any testing but just guess wildly. I know, though, that I used dmesg frequently when I did my own testing before submitting the patch and could not see such behavior. Before this commit, the CPU of your BananaPi runs at 1.4 volts constantly. With this commit applied, the CPU voltage should vary between 1.0-1.4 volts depending on the frequency and defined operating points. Hence, one of my guesses would be that your CPU is not stable at the lower voltages. Could you modify the voltages for the defined frequencies in sun7i-a20.dtsi and test if that solves your issue? Say, raise the voltage by 0.1 volts for each operating point (but no higher than 1.4). I actually had a different patch that applied slightly higher voltages taken from the original fex for by LeMaker, but the feedback was, unless there are actual reports about boards not running stable at the current settings, we just keep them instead. So, I'm curious if you happen to have a board that requires slightly higher voltages to run stable. Regards, Timo -- 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.
Re: [linux-sunxi][PATCH v3] ARM: sun7i: dt: Add new Olimex A20 EVB device
On 25 September 2015 at 08:52, Maxime Ripardwrote: > On Wed, Sep 23, 2015 at 08:47:50PM +0200, codekip...@gmail.com wrote: >> From: Marcus Cooper >> >> The A20-SOM-EVB is a reference design of a 2-layer board for the >> A20-SOM. >> It expands the features of A20-SOM by adding VGA connector, HDMI >> connector, audio In/Out, LCD connector, 2 Mpix camera, gigabit >> Ethernet, SATA, USB-OTG and 2 USB hosts. >> >> Signed-off-by: Marcus Cooper >> --- >> Changes since v2: >> - changed dcdc2 to have max voltage of 1.4V >> Changes since v1: >> - renamed dts from sun7i-a20-olinuxino-evb to sun7i-a20-olimex-som-evb >> - added "axp209 dtsi" >> - change regulator settings >> --- >> arch/arm/boot/dts/Makefile | 1 + >> arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 216 >> + >> 2 files changed, 217 insertions(+) >> create mode 100644 arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> >> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile >> index 359dcb5..8419a3e 100644 >> --- a/arch/arm/boot/dts/Makefile >> +++ b/arch/arm/boot/dts/Makefile >> @@ -617,6 +617,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ >> sun7i-a20-i12-tvbox.dtb \ >> sun7i-a20-m3.dtb \ >> sun7i-a20-mk808c.dtb \ >> + sun7i-a20-olimex-som-evb.dtb \ >> sun7i-a20-olinuxino-lime.dtb \ >> sun7i-a20-olinuxino-lime2.dtb \ >> sun7i-a20-olinuxino-micro.dtb \ >> diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> new file mode 100644 >> index 000..41b4b4a >> --- /dev/null >> +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> @@ -0,0 +1,216 @@ >> +/* >> + * Copyright 2015 - Marcus Cooper >> + * >> + * This file is dual-licensed: you can use it either under the terms >> + * of the GPL or the X11 license, at your option. Note that this dual >> + * licensing only applies to this file, and not this project as a >> + * whole. >> + * >> + * a) This file is free software; you can redistribute it and/or >> + * modify it under the terms of the GNU General Public License as >> + * published by the Free Software Foundation; either version 2 of the >> + * License, or (at your option) any later version. >> + * >> + * This file is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + * >> + * Or, alternatively, >> + * >> + * b) Permission is hereby granted, free of charge, to any person >> + * obtaining a copy of this software and associated documentation >> + * files (the "Software"), to deal in the Software without >> + * restriction, including without limitation the rights to use, >> + * copy, modify, merge, publish, distribute, sublicense, and/or >> + * sell copies of the Software, and to permit persons to whom the >> + * Software is furnished to do so, subject to the following >> + * conditions: >> + * >> + * The above copyright notice and this permission notice shall be >> + * included in all copies or substantial portions of the Software. >> + * >> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >> + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >> + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >> + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >> + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> + * OTHER DEALINGS IN THE SOFTWARE. >> + */ >> + >> +/dts-v1/; >> +#include "sun7i-a20.dtsi" >> +#include "sunxi-common-regulators.dtsi" >> + >> +#include >> +#include >> +#include >> + >> +/ { >> + model = "Olimex A20-Olimex-SOM-EVB"; >> + compatible = "olimex,a20-olimex-som-evb", "allwinner,sun7i-a20"; >> + >> + aliases { >> + serial0 = >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + leds { >> + compatible = "gpio-leds"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <_pins_olimex_som_evb>; >> + >> + green { >> + label = "a20-olimex-som-evb:green:usr"; >> + gpios = < 7 2 GPIO_ACTIVE_HIGH>; >> + default-state = "on"; >> + }; >> + }; >> + >> + reg_axp_ipsout: axp_ipsout { >> + compatible = "regulator-fixed"; >> + regulator-name = "axp-ipsout"; >> + regulator-min-microvolt = <500>; >> + regulator-max-microvolt = <500>; >> +
[linux-sunxi] Improving DRAM settings for Allwinner A10/A13/A20 devices
Hello, This is a reply to an old thread http://lists.denx.de/pipermail/u-boot/2015-February/205761.html On Sat, 21 Feb 2015 10:41:48 +0100 Hans de Goedewrote: > On 20-02-15 19:33, Siarhei Siamashka wrote: > > On Fri, 20 Feb 2015 15:11:04 +0100 > > > > The sun4i/sun5i/sun7i DRAM controller code in u-boot is ready for much > > faster DRAM clock speeds since the v2014.10 release. We are only > > missing the appropriate 'dram_para' settings for the boards, which can > > be prepared/verified according to the instructions from the linux-sunxi > > wiki. But there does not seem to be much interest in the performance > > and reliability for the sunxi boards yet. And participation of the > > hardware vendors (for doing large scale tests on many boards) is > > missing too. > > > > Maybe now after the introduction of the Raspberry Pi 2, the Allwinner > > based devboard manufacturers might become a bit more interested in > > tweaking the performance in order to remain competitive. > > > > I believe that every Cubietruck user had more than enough time to > > try my 'highspeedtruck' branches posted at > > > > http://lists.denx.de/pipermail/u-boot/2014-July/183981.html > > > > That's "the proof of the pudding", which demonstrates what is > > possible with this hardware :-) > > I still believe that the only way to get anywhere wrt getting better > DRAM speeds is to just make the change. As said before if you submit > patches to increase DRAM speed on some boards I'll put them in > my personal sunxi-wip and the official u-boot-sunxi/next asap, Just to make it clear. I'm still not in favour of pushing potentially reliability degrading changes to any repository, where they can be picked up by unsuspecting users. And I'm going to be strict about it, so no compromise is possible. Sorry about this. The users must be well aware of what they are trying, which tests to run and what kind of feedback is expected from them. Otherwise very few will notice anything even if they get unreliable DRAM setup. A good example is the unstable "1008MHz, 1.4V" CPU voltage/frequency configuration on the A10-Lime board. Only a small fraction of boards was affected, and the symptoms were not very obvious (it is not like the board fails to boot). And the users had to unnecessarily play the "guinea pig" role for a very long time. As I said, the best possible scenario would be a participation of the board manufacturers (OLIMEX, CubieTech, LeMaker, ...). So that we could collect sufficient statistics from multiple board samples (preferably from different batches) and check whether we can select the settings, which work fine on all of them. But if there is no interested board manufacturer, then the only option is to ask users for help. Unfortunately the users are not always cooperative and disciplined. So it becomes a real hassle in practice. We already got some interesting results though. For example, Adam Sampson tried to follow the guide from the linux-sunxi wiki and run my DRAM settings bruteforcing scripts on two pcDuino3 Nano boards. He also managed to reach 648MHz DRAM clock speed (though increasing MBUS to anything higher than 300MHz resulted in stability problems). It's surely good that we can potentially get into the 600MHz DRAM clock speed range on one more board model in addition to Cubietruck and A13-OLinuXino-Micro. But the most interesting part is that he had the results updated in real time on a web server as the scripts were progressing (now this link contains the final report): http://stuff.offog.org/tpr3.html The Adam's work also demonstrated that the current scripts do not support efficient handling of multiple boards at one. The html report is a bit messy when there is more than one board. I could try to introduce some improvements in this area. And inspired by Adam's web server usage for real-time progress tracking, in fact it may be beneficial to move from the current NFS based setup to a server in the Internet, which could show statistics in realtime, implement a simple communication protocol and coordinate the DRAM settings bruteforcing process by issuing commands to the connected "slave" devices. Anyone who is interested in participating, would only need to use a special bootable SD card and just let the device out in the Internet... However now I'm really disappointed in the whole idea of relying on anyone else, because this proved to be really inefficient. So I have bought 5 pcDuino V2 boards myself from http://www.exp-tech.de/pcduino-v2-linux-android-arduino-dev-board They are currently available at a discounted price 22.5 euro, which seemed to be a reasonably good deal for me :-) I'm just going to take care of tuning the DRAM settings for pcDuino V2. But I'm not setting any deadline and will do it as time permits. And then we can see what happens. After I'm done experimenting with the DRAM settings, I will probably donate extra boards to other people. And we still do have
[linux-sunxi] cpufreq scaling broken on cubietruck
Can someone who knows their way around dt config have a look at this please. I just noticed on Cubietruck that there was no cpufreq scaling. Strange I thought, I know that is working on BananaPi/Pro. Quick look at DT config. Edit Cubietruck dts and removing ... { cpu-supply = <_dcdc2>; }; ... from the config gets cpufreq scaling working again. Which isn't the correct fix. But gives someone with more knowledge than me a clue where to look. ;) -- 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 1/4] ARM: dts: sun4i: gemei-g9: Add accelerometer (bma250) IRQ
On Wed, Sep 23, 2015 at 10:38:31AM +0300, Priit Laes wrote: > Add IRQ configuration for bma250 accelerometer. > > Signed-off-by: Priit LaesApplied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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. signature.asc Description: Digital signature
Re: [linux-sunxi][PATCH v3] ARM: sun7i: dt: Add new Olimex A20 EVB device
On Wed, Sep 23, 2015 at 08:47:50PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper> > The A20-SOM-EVB is a reference design of a 2-layer board for the > A20-SOM. > It expands the features of A20-SOM by adding VGA connector, HDMI > connector, audio In/Out, LCD connector, 2 Mpix camera, gigabit > Ethernet, SATA, USB-OTG and 2 USB hosts. > > Signed-off-by: Marcus Cooper > --- > Changes since v2: > - changed dcdc2 to have max voltage of 1.4V > Changes since v1: > - renamed dts from sun7i-a20-olinuxino-evb to sun7i-a20-olimex-som-evb > - added "axp209 dtsi" > - change regulator settings > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 216 > + > 2 files changed, 217 insertions(+) > create mode 100644 arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 359dcb5..8419a3e 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -617,6 +617,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ > sun7i-a20-i12-tvbox.dtb \ > sun7i-a20-m3.dtb \ > sun7i-a20-mk808c.dtb \ > + sun7i-a20-olimex-som-evb.dtb \ > sun7i-a20-olinuxino-lime.dtb \ > sun7i-a20-olinuxino-lime2.dtb \ > sun7i-a20-olinuxino-micro.dtb \ > diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts > b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts > new file mode 100644 > index 000..41b4b4a > --- /dev/null > +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts > @@ -0,0 +1,216 @@ > +/* > + * Copyright 2015 - Marcus Cooper > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of the > + * License, or (at your option) any later version. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +/dts-v1/; > +#include "sun7i-a20.dtsi" > +#include "sunxi-common-regulators.dtsi" > + > +#include > +#include > +#include > + > +/ { > + model = "Olimex A20-Olimex-SOM-EVB"; > + compatible = "olimex,a20-olimex-som-evb", "allwinner,sun7i-a20"; > + > + aliases { > + serial0 = > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <_pins_olimex_som_evb>; > + > + green { > + label = "a20-olimex-som-evb:green:usr"; > + gpios = < 7 2 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; > + }; > + > + reg_axp_ipsout: axp_ipsout { > + compatible = "regulator-fixed"; > + regulator-name = "axp-ipsout"; > + regulator-min-microvolt = <500>; > + regulator-max-microvolt = <500>; > + regulator-always-on; > + }; Are you using that regulator somewhere? > +}; > + > + { > + target-supply = <_ahci_5v>; > + status = "okay"; > +}; > + > + { > + status = "okay"; > +}; > + > +
Re: [linux-sunxi][PATCH v3] ARM: sun7i: dt: Add new Olimex A20 EVB device
On 25 September 2015 at 08:52, Maxime Ripardwrote: > On Wed, Sep 23, 2015 at 08:47:50PM +0200, codekip...@gmail.com wrote: >> From: Marcus Cooper >> >> The A20-SOM-EVB is a reference design of a 2-layer board for the >> A20-SOM. >> It expands the features of A20-SOM by adding VGA connector, HDMI >> connector, audio In/Out, LCD connector, 2 Mpix camera, gigabit >> Ethernet, SATA, USB-OTG and 2 USB hosts. >> >> Signed-off-by: Marcus Cooper >> --- >> Changes since v2: >> - changed dcdc2 to have max voltage of 1.4V >> Changes since v1: >> - renamed dts from sun7i-a20-olinuxino-evb to sun7i-a20-olimex-som-evb >> - added "axp209 dtsi" >> - change regulator settings >> --- >> arch/arm/boot/dts/Makefile | 1 + >> arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 216 >> + >> 2 files changed, 217 insertions(+) >> create mode 100644 arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> >> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile >> index 359dcb5..8419a3e 100644 >> --- a/arch/arm/boot/dts/Makefile >> +++ b/arch/arm/boot/dts/Makefile >> @@ -617,6 +617,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ >> sun7i-a20-i12-tvbox.dtb \ >> sun7i-a20-m3.dtb \ >> sun7i-a20-mk808c.dtb \ >> + sun7i-a20-olimex-som-evb.dtb \ >> sun7i-a20-olinuxino-lime.dtb \ >> sun7i-a20-olinuxino-lime2.dtb \ >> sun7i-a20-olinuxino-micro.dtb \ >> diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> new file mode 100644 >> index 000..41b4b4a >> --- /dev/null >> +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts >> @@ -0,0 +1,216 @@ >> +/* >> + * Copyright 2015 - Marcus Cooper >> + * >> + * This file is dual-licensed: you can use it either under the terms >> + * of the GPL or the X11 license, at your option. Note that this dual >> + * licensing only applies to this file, and not this project as a >> + * whole. >> + * >> + * a) This file is free software; you can redistribute it and/or >> + * modify it under the terms of the GNU General Public License as >> + * published by the Free Software Foundation; either version 2 of the >> + * License, or (at your option) any later version. >> + * >> + * This file is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + * >> + * Or, alternatively, >> + * >> + * b) Permission is hereby granted, free of charge, to any person >> + * obtaining a copy of this software and associated documentation >> + * files (the "Software"), to deal in the Software without >> + * restriction, including without limitation the rights to use, >> + * copy, modify, merge, publish, distribute, sublicense, and/or >> + * sell copies of the Software, and to permit persons to whom the >> + * Software is furnished to do so, subject to the following >> + * conditions: >> + * >> + * The above copyright notice and this permission notice shall be >> + * included in all copies or substantial portions of the Software. >> + * >> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >> + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >> + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >> + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >> + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> + * OTHER DEALINGS IN THE SOFTWARE. >> + */ >> + >> +/dts-v1/; >> +#include "sun7i-a20.dtsi" >> +#include "sunxi-common-regulators.dtsi" >> + >> +#include >> +#include >> +#include >> + >> +/ { >> + model = "Olimex A20-Olimex-SOM-EVB"; >> + compatible = "olimex,a20-olimex-som-evb", "allwinner,sun7i-a20"; >> + >> + aliases { >> + serial0 = >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + leds { >> + compatible = "gpio-leds"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <_pins_olimex_som_evb>; >> + >> + green { >> + label = "a20-olimex-som-evb:green:usr"; >> + gpios = < 7 2 GPIO_ACTIVE_HIGH>; >> + default-state = "on"; >> + }; >> + }; >> + >> + reg_axp_ipsout: axp_ipsout { >> + compatible = "regulator-fixed"; >> + regulator-name = "axp-ipsout"; >> + regulator-min-microvolt = <500>; >> + regulator-max-microvolt = <500>; >> +
[linux-sunxi] sunxi, Allwinner TDM Support?
Hi, I was wondering if the sunxi parts support TDM mode on their DAI ports? Those parts sure have attractive pricing, and as you may have gathered, I'm all about many microphone channels. :-) Thanks, -Caleb -- 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.
Re: [linux-sunxi] Re: [PATCH 1/3] Revert "ARM: dts: sun8i: Add new sun8i-a33-q8-tzx-723q4.dts file"
Hi, On 25-09-15 08:42, Maxime Ripard wrote: On Thu, Sep 24, 2015 at 05:23:52PM +0200, Hans de Goede wrote: The tzx-723q[a]4 board variant of A33 based Q8 formfactor tablets was given its own dts file because the mmc would not work with a drive strength of 30mA, Android seemed to be using a lower drive-strength and doing the same with the upstream kernel seemed to fix this issue. While working on a similar fix for u-boot I noticed that Android did not use a lower drive strength for mmc0, but for mmc1, so mmc0 should work fine with a drive strength of 30mA. Further investigation has shown that Allwinner is using slightly tweaked clock sample phase settings in newer Android kernels, and that updating the mainstream sunxi mmc driver to these settings fixes this. With this fixed we no longer need a dts file specifically for these pcb varants -> drop this dts file. I dropped the patch. This reverts commit fb61c559a810f1487892b83d2d0606af1d020318. Checkpatch prints an error about this one. Make sure you have the right commit format. going off-topic here (very much so), but that line is actually auto-generated by "git revert" it would be nice if the git and checkpatch people got get together and agree on a common format here. Regards, Hans -- 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.
Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun6i: Add support for Yones Toptech bs1078v2 tablets
On Tue, Sep 22, 2015 at 08:48:07AM -0700, Lawrence Yu wrote: > > > + { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <_pins_a>; > > > + status = "okay"; > > > +}; > > > + > > > + { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <_pins_a>; > > > + status = "okay"; > > > +}; > > > > Is there only these two i2c busses, or is i2c0 used on this board, > > with the PMIC as usual. > > > > The AXP221 PMIC used on the board does not use i2c, it uses a different > p2wi bus. Ah, yes, of course. > The i2c0 bus does not work properly with i2cdetect while the i2c1 and i2c2 > busses do work so I suspect that the i2c0 bus is not present on the board > or is not usable. We had the same issue with the Colombus. The i2c0 is indeed used, but needs some regulator enabled in order to work. What does the FEX file says? Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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. signature.asc Description: Digital signature
[linux-sunxi] Re: [PATCH v2 4/4] ARM: dts: sun4i: gemei-g9: Enable sun4i audio codec support
On Wed, Sep 23, 2015 at 10:38:34AM +0300, Priit Laes wrote: > Gemei G9 has internal speakers and headphone jack. Audio switching > from internal speakers to headphones is automatically handled by > extra FT2012Q audio amplifier chip that works out of the box. > > Signed-off-by: Priit Laes> --- > arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts > b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts > index b7cab72..2db75c4 100644 > --- a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts > +++ b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts > @@ -65,12 +65,19 @@ > /* > * TODO: > * 2x cameras via CSI > - * audio > + * audio input > * AXP battery management > * NAND > * OTG > * Touchscreen - gt801_2plus1 @ i2c adapter 2 @ 0x48 > */ > + { > + routing = > + "Headphone Jack", "HP Left", > + "Headphone Jack", "HP Right"; > + /* TODO: input configuration */ > + status = "okay"; > +}; This doesn't compile, the codec node doesn't exist. Please always base your patches on top of sunxi/for-next, linux-next or some earlier rc, or mention the dependency in your cover letter. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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. signature.asc Description: Digital signature
[linux-sunxi] Re: [PATCH 1/3] Revert "ARM: dts: sun8i: Add new sun8i-a33-q8-tzx-723q4.dts file"
On Thu, Sep 24, 2015 at 05:23:52PM +0200, Hans de Goede wrote: > The tzx-723q[a]4 board variant of A33 based Q8 formfactor tablets was > given its own dts file because the mmc would not work with a drive > strength of 30mA, Android seemed to be using a lower drive-strength > and doing the same with the upstream kernel seemed to fix this issue. > > While working on a similar fix for u-boot I noticed that Android did > not use a lower drive strength for mmc0, but for mmc1, so mmc0 should > work fine with a drive strength of 30mA. > > Further investigation has shown that Allwinner is using slightly > tweaked clock sample phase settings in newer Android kernels, and > that updating the mainstream sunxi mmc driver to these settings fixes > this. > > With this fixed we no longer need a dts file specifically for these > pcb varants -> drop this dts file. I dropped the patch. > This reverts commit fb61c559a810f1487892b83d2d0606af1d020318. Checkpatch prints an error about this one. Make sure you have the right commit format. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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. signature.asc Description: Digital signature
[linux-sunxi] Re: [PATCH v2] ARM: dts: sun6i: Add support for Yones Toptech bs1078v2 tablets
On Tue, Sep 22, 2015 at 08:50:50AM -0700, Lawrence Yu wrote: > The bs1078v2 is a pcb found in 10.1" tablets with an A31 soc, 1G RAM > and 8G NAND, rtl8723as usb wifi, 1 micro USB OTG port, 1 USB HOST port > > This commit adds a dts for v2 of the bs1078 pcb. > > Signed-off-by: Lawrence YuApplied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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. signature.asc Description: Digital signature