1. 09 8月, 2013 1 次提交
  2. 28 5月, 2013 2 次提交
  3. 27 5月, 2013 1 次提交
    • T
      arm: kirkwood: nsa310: move pinmux configs to the right devices · 7a2c9bb5
      Thomas Petazzoni 提交于
      When the pinmux mechanism was added in Kirkwood, the device driver
      core was not yet providing the possibility of attaching pinmux
      configurations to all devices, drivers had to do it explicitly, and
      not all drivers were doing this.
      
      Now that the driver core does that in a generic way, it makes sense to
      attach the pinmux configuration to their corresponding devices.
      
      This allows the pinctrl subsystem to show in debugfs to which device
      is related which pins, for example:
      
      pin 41 (PIN41): gpio-leds.1 mvebu-gpio:41 function gpio group mpp41
      pin 42 (PIN42): gpio-leds.1 mvebu-gpio:42 function gpio group mpp42
      pin 43 (PIN43): gpio-leds.1 mvebu-gpio:43 function gpio group mpp43
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Acked-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      7a2c9bb5
  4. 09 3月, 2013 1 次提交
    • J
      ARM: kirkwood: of_serial: fix clock gating by removing clock-frequency · 93fff4ce
      Jason Cooper 提交于
      When DT support for kirkwood was first introduced, there was no clock
      infrastructure.  As a result, we had to manually pass the
      clock-frequency to the driver from the device node.
      
      Unfortunately, on kirkwood, with minimal config or all module configs,
      clock-frequency breaks booting because of_serial doesn't consume the
      gate_clk when clock-frequency is defined.
      
      The end result on kirkwood is that runit gets gated, and then the boot
      fails when the kernel tries to write to the serial port.
      
      Fix the issue by removing the clock-frequency parameter from all
      kirkwood dts files.
      
      Booted on dreamplug without earlyprintk and successfully logged in via
      ttyS0.
      Reported-by: NSimon Baatz <gmbnomis@gmail.com>
      Tested-by: NSimon Baatz <gmbnomis@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      93fff4ce
  5. 01 3月, 2013 4 次提交
  6. 22 11月, 2012 1 次提交
    • T
      arm: kirkwood: add support for ZyXEL NSA310 · afcad884
      Tero Jaasko 提交于
      Hello, Andrew
      
      > > +#define NSA310_GPIO_LED_ESATA_GREEN	12
      > > <..>
      > > +#define NSA310_GPIO_POWER_OFF		48
      >
      > It looks like most of these are not used. Please remove them.
      
      True. Fixed.
      
      > > +static struct mtd_partition nsa310_mtd_parts[] = {
      > > +	{
      > > +		.name	= "uboot",
      > > +		.offset	= 0,
      > > +		.size	= 0x100000,
      > > +		.mask_flags = MTD_WRITEABLE,
      > > +	}, {
      > > <..>
      > You should be able to put all that into DT. Take a look at
      
      Correct. I did the conversion and tested that the partitions
      can be read with dd and produce exactly the same data before and
      after conversion. So, the partition offsets at least should be fine.
      
      > > +static struct i2c_board_info __initdata nsa310_i2c_info[] = {
      > > +	{ I2C_BOARD_INFO("adt7476", 0x2e) },
      > > +};
      >
      > You can also do this in DT as well. kirkwood-ts219.dtsi has
      >
      >                 i2c@11000 {
      >                         status = "okay";
      >                         clock-frequency = <400000>;
      
      Ok, I did convert the i2c definition to use the devicetree.
      The adt7476 device itself is not at reach of device tree,
      AFAIK and requires more work at there?
      
      Thanks for your valuable comments. Following is a new patch that
      should address the problems and mistakes you pointed and also
      some of the pointed by Jason Cooper. The nand and i2c are now
      defined at DT and I also removed the pointless defines and
      ARM_APPENDED_DTB. It is based against the Linus' official
      3.6 version.
      
      Best regards,
      Tero
      Signed-off-by: NJason Cooper <jason@lakedaemon.net>
      afcad884