Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-04-10 Thread Vagrant Cascadian
On 2016-03-13, Ian Campbell wrote:
> That makes sense, thanks for the info. Since MMC + serial in 4.4 is a
> basically useful thing (and I'm hoping the WiFi is some preexisting
> driver too) this seemed like a useful set of stuff to enable. So I have
> done so in git.

Thanks for enabling it!

I was able to get it to boot with both 4.4 and 4.5 to an initramfs
prompt and a serial console, but MMC support still needs to be enabled
in the device-tree, along with USB, wireless, and just about anything
else you might actually want to use. :)

For wireless it needs additional drivers enabled in the kernel:

  # on 4.4.x
  CONFIG_WL_TI=y
  # on 4.5+
  CONFIG_WLAN_VENDOR_TI=y

  CONFIG_WL18XX=m

Still need these drivers enabled in 4.5.x:

  CONFIG_COMMON_RESET_HI6220=m
  CONFIG_PHY_HI6220_USB=m

And when the time comes, these in 4.6+:

  CONFIG_HI6220_MBOX=m

  # while this is present in mainline, it seems to depend on
  # MFD_HI655X_PMIC which isn't yet present... so hrm.
  CONFIG_REGULATOR_HI655X=m


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-03-13 Thread Ian Campbell
On Sat, 2016-03-12 at 09:00 -0800, Vagrant Cascadian wrote:
> On 2016-03-12, Ian Campbell wrote:
> > On Fri, 2016-03-11 at 20:03 -0800, Vagrant Cascadian wrote:
> >> On 2016-03-10, Martin Michlmayr wrote:
> >> > * Ian Campbell  [2016-01-25 09:57]:
> >> Most drivers aren't even available in 4.4.x, and some aren't even
> in
> >> 4.5.x yet. From a breif glance, the dts files for
> >> arch/arm64/boot/dts/hisilicon/hi6220*, don't look to contain
> support
> >> for
> >> much more than the CPU, memory and serial...
> >> 
> >> 
> >> > This might be a good starting point:
> >> > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg109
> 864
> >> 4.html
> >> 
> >> Reading that patch, I'm guessing the following are available and
> >> possibly needed or desired, though possibly may require device-
> tree
> >> patches as well:
> >> 
> >> available in 4.4.x:
> >> 
> >> CONFIG_ARCH_HISI=y
> >> CONFIG_POWER_RESET_HISI=y
> >> CONFIG_HISI_THERMAL=m
> >> CONFIG_MMC_DW=m
> >> CONFIG_MMC_DW_K3=m
> >> CONFIG_I2C_DESIGNWARE_PLATFORM=m
> >> 
> >> available in 4.5.x:
> >> 
> >> CONFIG_COMMON_RESET_HI6220=m
> >> CONFIG_PHY_HI6220_USB=m
> >> 
> >> linux-next tag next-20160311:
> >> 
> >> CONFIG_HI6220_MBOX=m
> >> CONFIG_REGULATOR_HI655X=m
> >> 
> >> 
> >> Will build a few test kernels and report back...
> >
> > Thanks, for things other than the ones listed above the ones I'd be
> > most curious about would be serial and networking (wifi only on
> this
> > platform IIRC). Both of those could possibly be supported already
> via
> > existing generic drivers, I've no idea...
> 
> Not sure about WIFI, but serial seems already enabled:
> 
>   CONFIG_SERIAL_AMBA_PL011=y
>   CONFIG_SERIAL_AMBA_PL011_CONSOLE=y

That makes sense, thanks for the info. Since MMC + serial in 4.4 is a
basically useful thing (and I'm hoping the WiFi is some preexisting
driver too) this seemed like a useful set of stuff to enable. So I have
done so in git.

Ian.



Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-03-12 Thread Vagrant Cascadian
On 2016-03-12, Ian Campbell wrote:
> On Fri, 2016-03-11 at 20:03 -0800, Vagrant Cascadian wrote:
>> On 2016-03-10, Martin Michlmayr wrote:
>> > * Ian Campbell  [2016-01-25 09:57]:
>> Most drivers aren't even available in 4.4.x, and some aren't even in
>> 4.5.x yet. From a breif glance, the dts files for
>> arch/arm64/boot/dts/hisilicon/hi6220*, don't look to contain support
>> for
>> much more than the CPU, memory and serial...
>> 
>> 
>> > This might be a good starting point:
>> > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg109864
>> 4.html
>> 
>> Reading that patch, I'm guessing the following are available and
>> possibly needed or desired, though possibly may require device-tree
>> patches as well:
>> 
>> available in 4.4.x:
>> 
>> CONFIG_ARCH_HISI=y
>> CONFIG_POWER_RESET_HISI=y
>> CONFIG_HISI_THERMAL=m
>> CONFIG_MMC_DW=m
>> CONFIG_MMC_DW_K3=m
>> CONFIG_I2C_DESIGNWARE_PLATFORM=m
>> 
>> available in 4.5.x:
>> 
>> CONFIG_COMMON_RESET_HI6220=m
>> CONFIG_PHY_HI6220_USB=m
>> 
>> linux-next tag next-20160311:
>> 
>> CONFIG_HI6220_MBOX=m
>> CONFIG_REGULATOR_HI655X=m
>> 
>> 
>> Will build a few test kernels and report back...
>
> Thanks, for things other than the ones listed above the ones I'd be
> most curious about would be serial and networking (wifi only on this
> platform IIRC). Both of those could possibly be supported already via
> existing generic drivers, I've no idea...

Not sure about WIFI, but serial seems already enabled:

  CONFIG_SERIAL_AMBA_PL011=y
  CONFIG_SERIAL_AMBA_PL011_CONSOLE=y

arch/arm64/boot/dts/hisilicon/hi6220.dtsi:

uart0: uart@f8015000 {/* console */
compatible = "arm,pl011", "arm,primecell";
reg = <0x0 0xf8015000 0x0 0x1000>;
interrupts = ;
clocks = <_ctrl HI6220_UART0_PCLK>,
 <_ctrl HI6220_UART0_PCLK>;
clock-names = "uartclk", "apb_pclk";
};


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-03-12 Thread Ian Campbell
On Fri, 2016-03-11 at 20:03 -0800, Vagrant Cascadian wrote:
> On 2016-03-10, Martin Michlmayr wrote:
> > * Ian Campbell  [2016-01-25 09:57]:
> >> I suppose it will need more than just ARCH_HISI. Are you able to
> identify
> >> the full set of options (e.g. drivers and such) which are needed
> to make
> >> useful Lemaker support? If so I'd appreciate it (if not I can
> probably try
> >> and dig those out myself, but it might take me a while to around
> to it).
> 
> Most drivers aren't even available in 4.4.x, and some aren't even in
> 4.5.x yet. From a breif glance, the dts files for
> arch/arm64/boot/dts/hisilicon/hi6220*, don't look to contain support
> for
> much more than the CPU, memory and serial...
> 
> 
> > This might be a good starting point:
> > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg109864
> 4.html
> 
> Reading that patch, I'm guessing the following are available and
> possibly needed or desired, though possibly may require device-tree
> patches as well:
> 
> available in 4.4.x:
> 
> CONFIG_ARCH_HISI=y
> CONFIG_POWER_RESET_HISI=y
> CONFIG_HISI_THERMAL=m
> CONFIG_MMC_DW=m
> CONFIG_MMC_DW_K3=m
> CONFIG_I2C_DESIGNWARE_PLATFORM=m
> 
> available in 4.5.x:
> 
> CONFIG_COMMON_RESET_HI6220=m
> CONFIG_PHY_HI6220_USB=m
> 
> linux-next tag next-20160311:
> 
> CONFIG_HI6220_MBOX=m
> CONFIG_REGULATOR_HI655X=m
> 
> 
> Will build a few test kernels and report back...

Thanks, for things other than the ones listed above the ones I'd be
most curious about would be serial and networking (wifi only on this
platform IIRC). Both of those could possibly be supported already via
existing generic drivers, I've no idea...

Ian.



Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-03-11 Thread Vagrant Cascadian
On 2016-03-10, Martin Michlmayr wrote:
> * Ian Campbell  [2016-01-25 09:57]:
>> I suppose it will need more than just ARCH_HISI. Are you able to identify
>> the full set of options (e.g. drivers and such) which are needed to make
>> useful Lemaker support? If so I'd appreciate it (if not I can probably try
>> and dig those out myself, but it might take me a while to around to it).

Most drivers aren't even available in 4.4.x, and some aren't even in
4.5.x yet. From a breif glance, the dts files for
arch/arm64/boot/dts/hisilicon/hi6220*, don't look to contain support for
much more than the CPU, memory and serial...


> This might be a good starting point:
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1098644.html

Reading that patch, I'm guessing the following are available and
possibly needed or desired, though possibly may require device-tree
patches as well:

available in 4.4.x:

CONFIG_ARCH_HISI=y
CONFIG_POWER_RESET_HISI=y
CONFIG_HISI_THERMAL=m
CONFIG_MMC_DW=m
CONFIG_MMC_DW_K3=m
CONFIG_I2C_DESIGNWARE_PLATFORM=m

available in 4.5.x:

CONFIG_COMMON_RESET_HI6220=m
CONFIG_PHY_HI6220_USB=m

linux-next tag next-20160311:

CONFIG_HI6220_MBOX=m
CONFIG_REGULATOR_HI655X=m


Will build a few test kernels and report back...


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-03-10 Thread Martin Michlmayr
* Ian Campbell  [2016-01-25 09:57]:
> > Please enable it so we can add HiKey support to Debian.
> 
> I suppose it will need more than just ARCH_HISI. Are you able to identify
> the full set of options (e.g. drivers and such) which are needed to make
> useful Lemaker support? If so I'd appreciate it (if not I can probably try
> and dig those out myself, but it might take me a while to around to it).

This might be a good starting point:
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1098644.html

-- 
Martin Michlmayr
http://www.cyrius.com/



Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-01-25 Thread Ian Campbell
On Sun, 2016-01-24 at 21:21 +0100, Kilian Krause wrote:
> Package: linux
> Version: 4.3.3-7
> Severity: wishlist
> Tags: d-i
> 
> Dear kernel maintainers,
> 
> while trying to get a d-i booted on a Lemaker HiKey, tbm pointed out
> that ARCH_HISI is not (yet) activated on linux.
> 
> Please enable it so we can add HiKey support to Debian.

I suppose it will need more than just ARCH_HISI. Are you able to identify
the full set of options (e.g. drivers and such) which are needed to make
useful Lemaker support? If so I'd appreciate it (if not I can probably try
and dig those out myself, but it might take me a while to around to it).

Lemaker HiKey is the 96boards thing, right? Good to finally see that
hitting upstream, was it properly supported in 4.3.x or should this change
be made in experimental (currently 4.4.x)?

Thanks,
Ian.



Bug#812540: Add ARCH_HISI for Lemaker HiKey support

2016-01-24 Thread Kilian Krause
Package: linux
Version: 4.3.3-7
Severity: wishlist
Tags: d-i

Dear kernel maintainers,

while trying to get a d-i booted on a Lemaker HiKey, tbm pointed out
that ARCH_HISI is not (yet) activated on linux.

Please enable it so we can add HiKey support to Debian.

TIA!

Best,
Kilian