arm: pia-am335x: cleanup revision based code and audio init

- move complete audio initialization routines to tlv init function
- remove unused clkout2 code
- fix output typo

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: add IRQs to LIS3 config

- previous configuration was missing both GPIO IRQ lines

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: disable more prototype-only code

- update SPI, USB and CAN config

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: fix pinmux for LED driver OE

- should be muxed as GPIO

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: mmi: rework LCD init code

- add generic i2c device register function
- move display and touch controller init to a better place

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: move PMIC init to board specific setup

- we need to define the PMIC interrupt GPIO for each board individually
- initialize PMIC later to avoid unnecessary code duplication
- TODO: fix PMIC init for MMI boards

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: add generic gpio initialization

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: init gpios after everything else

- move gpio init to the end of the init process

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x: group interface mux tables

- move all device/bus specific tables to the same place
- update comments

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-335x: update naming of structs and functions

- use a similar naming scheme for all struct definitions,
  board specific methods

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-mmi: move led pinmux to gpio pin mux table

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-mmi: update board revision parser and cleanup

- cleanup old comments and unused code
- disable USB1 mux table, interface is only used in prototype devices

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
Merge branch 'pia335x-e2-dev' into pia335x-mmi-dev

* pia335x-e2-dev:
  arm: pia-am335x: fix pinmux for LED driver OE
  arm: pia-am335x: disable more prototype-only code
arm: pia-am335x: more code reordering

- put GPIO configuration above any functions touching any GPIO
- reorder rest

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-mmi: add basic board mux

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-a335x: update LED configuration

- use GPIO macros for MMI LEDs
- configure pinmux in board GPIO mux function

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-e2: use GPIO config for LED driver OE signal

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-335x-mmi: add stub for I2C bus 2 init

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-mmi: add lcd board eeprom

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>
arm: pia-am335x-mmi: update audio initialization

- move to generic pia335x_add_i2c_device function

Signed-off-by: Björn Krombholz <b.krombholz@pironex.de>