diff mbox series

[v2,6/6] ARM: tegra_defconfig: Enable options useful for Nexus 7 and Acer A500

Message ID 20200406194110.21283-7-digetx@gmail.com
State New
Headers show
Series Support NVIDIA Tegra-based Acer A500 and Nexus 7 devices | expand

Commit Message

Dmitry Osipenko April 6, 2020, 7:41 p.m. UTC
Enable several drivers for hardware that is found on Nexus 7 and Acer A500
tablet devices. Please note that some drivers may require firmware files
extracted from original Android image.

Link: https://github.com/digetx/linux-firmware
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 arch/arm/configs/tegra_defconfig | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Thierry Reding April 7, 2020, 10:08 a.m. UTC | #1
On Mon, Apr 06, 2020 at 10:41:10PM +0300, Dmitry Osipenko wrote:
> Enable several drivers for hardware that is found on Nexus 7 and Acer A500
> tablet devices. Please note that some drivers may require firmware files
> extracted from original Android image.
> 
> Link: https://github.com/digetx/linux-firmware

What's the license for these files? Can they be made available through
the official linux-firmware repository?

Thierry
Dmitry Osipenko April 7, 2020, 4:38 p.m. UTC | #2
07.04.2020 13:08, Thierry Reding пишет:
> On Mon, Apr 06, 2020 at 10:41:10PM +0300, Dmitry Osipenko wrote:
>> Enable several drivers for hardware that is found on Nexus 7 and Acer A500
>> tablet devices. Please note that some drivers may require firmware files
>> extracted from original Android image.
>>
>> Link: https://github.com/digetx/linux-firmware
> 
> What's the license for these files?

It's either GPL (like touchscreen config) or something else
redistributeable.

> Can they be made available through the official linux-firmware repository?

Yes, but I don't know yet for sure whether it's really needed for all
firmware files.

For example, the T30 Broadcom WiFi doesn't work using stock
linux-firmware, it's on my to-do list to try to figure out why.

While Bluetooth FW seems to be reusable be many different devices,
although (AFAIK) nobody cared to upstream it to the linux-firmware.
Peter Geis April 8, 2020, 12:37 a.m. UTC | #3
On Tue, Apr 7, 2020 at 12:38 PM Dmitry Osipenko <digetx@gmail.com> wrote:
>
> 07.04.2020 13:08, Thierry Reding пишет:
> > On Mon, Apr 06, 2020 at 10:41:10PM +0300, Dmitry Osipenko wrote:
> >> Enable several drivers for hardware that is found on Nexus 7 and Acer A500
> >> tablet devices. Please note that some drivers may require firmware files
> >> extracted from original Android image.
> >>
> >> Link: https://github.com/digetx/linux-firmware
> >
> > What's the license for these files?
>
> It's either GPL (like touchscreen config) or something else
> redistributeable.
>
> > Can they be made available through the official linux-firmware repository?
>
> Yes, but I don't know yet for sure whether it's really needed for all
> firmware files.
>
> For example, the T30 Broadcom WiFi doesn't work using stock
> linux-firmware, it's on my to-do list to try to figure out why.

I've encountered the same issue on the Ouya, only the original
firmware that came with it will work with the chip. (AW-NH660)
I wonder if it's an azurewave quirk.

I've also noticed the Ouya specific configuration txt file seems a lot
more involved than the standard brcm configs.

>
> While Bluetooth FW seems to be reusable be many different devices,
> although (AFAIK) nobody cared to upstream it to the linux-firmware.
Dmitry Osipenko April 8, 2020, 2:40 p.m. UTC | #4
08.04.2020 03:37, Peter Geis пишет:
...
>> For example, the T30 Broadcom WiFi doesn't work using stock
>> linux-firmware, it's on my to-do list to try to figure out why.
> 
> I've encountered the same issue on the Ouya, only the original
> firmware that came with it will work with the chip. (AW-NH660)
> I wonder if it's an azurewave quirk.
> 
> I've also noticed the Ouya specific configuration txt file seems a lot
> more involved than the standard brcm configs.

The T20 boards also use Azurewave module and it works fine with the
stock linux-firmware, although that is BCM4329.

It could be that the configuration format differs for the stock
firmware, but we don't really know yet.
diff mbox series

Patch

diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig
index 0029259a6bf5..6b78a9ad4d57 100644
--- a/arch/arm/configs/tegra_defconfig
+++ b/arch/arm/configs/tegra_defconfig
@@ -63,11 +63,17 @@  CONFIG_BT_RFCOMM=y
 CONFIG_BT_BNEP=y
 CONFIG_BT_HIDP=y
 CONFIG_BT_HCIBTUSB=m
+CONFIG_BT_HCIUART=y
+CONFIG_BT_HCIUART_BCM=y
 CONFIG_CFG80211=y
 CONFIG_MAC80211=y
 CONFIG_RFKILL=y
 CONFIG_RFKILL_INPUT=y
 CONFIG_RFKILL_GPIO=y
+CONFIG_NFC=y
+CONFIG_NFC_HCI=y
+CONFIG_NFC_SHDLC=y
+CONFIG_NFC_PN544_I2C=y
 CONFIG_PCI=y
 CONFIG_PCIEPORTBUS=y
 CONFIG_PCI_MSI=y
@@ -106,20 +112,24 @@  CONFIG_INPUT_JOYDEV=y
 CONFIG_INPUT_EVDEV=y
 CONFIG_KEYBOARD_GPIO=y
 CONFIG_KEYBOARD_TEGRA=y
+CONFIG_KEYBOARD_CAP11XX=y
 CONFIG_KEYBOARD_CROS_EC=y
 CONFIG_MOUSE_PS2_ELANTECH=y
 CONFIG_INPUT_TOUCHSCREEN=y
 CONFIG_TOUCHSCREEN_ATMEL_MXT=y
+CONFIG_TOUCHSCREEN_ELAN=y
 CONFIG_TOUCHSCREEN_WM97XX=y
 # CONFIG_TOUCHSCREEN_WM9705 is not set
 # CONFIG_TOUCHSCREEN_WM9713 is not set
 CONFIG_TOUCHSCREEN_STMPE=y
 CONFIG_INPUT_MISC=y
+CONFIG_INPUT_GPIO_VIBRA=y
 # CONFIG_LEGACY_PTYS is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_SERIAL_TEGRA=y
+CONFIG_SERIAL_DEV_BUS=y
 # CONFIG_HW_RANDOM is not set
 # CONFIG_I2C_COMPAT is not set
 CONFIG_I2C_CHARDEV=y
@@ -135,6 +145,7 @@  CONFIG_PINCTRL_PALMAS=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_PCA953X_IRQ=y
+CONFIG_GPIO_MAX77620=y
 CONFIG_GPIO_PALMAS=y
 CONFIG_GPIO_TPS6586X=y
 CONFIG_GPIO_TPS65910=y
@@ -142,13 +153,18 @@  CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_AS3722=y
 CONFIG_POWER_RESET_GPIO=y
 CONFIG_BATTERY_SBS=y
+CONFIG_BATTERY_BQ27XXX=y
+CONFIG_CHARGER_GPIO=y
+CONFIG_CHARGER_SMB347=y
 CONFIG_CHARGER_TPS65090=y
 CONFIG_SENSORS_LM90=y
 CONFIG_SENSORS_LM95245=y
 CONFIG_WATCHDOG=y
+CONFIG_MAX77620_WATCHDOG=y
 CONFIG_TEGRA_WATCHDOG=y
 CONFIG_MFD_AS3722=y
 CONFIG_MFD_CROS_EC=y
+CONFIG_MFD_MAX77620=y
 CONFIG_MFD_MAX8907=y
 CONFIG_MFD_STMPE=y
 CONFIG_MFD_PALMAS=y
@@ -159,6 +175,7 @@  CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_AS3722=y
 CONFIG_REGULATOR_GPIO=y
+CONFIG_REGULATOR_MAX77620=y
 CONFIG_REGULATOR_MAX8907=y
 CONFIG_REGULATOR_PALMAS=y
 CONFIG_REGULATOR_TPS51632=y
@@ -174,7 +191,10 @@  CONFIG_USB_GSPCA=y
 CONFIG_DRM=y
 CONFIG_DRM_NOUVEAU=m
 CONFIG_DRM_TEGRA=y
+CONFIG_DRM_TEGRA_STAGING=y
+CONFIG_DRM_PANEL_LVDS=y
 CONFIG_DRM_PANEL_SIMPLE=y
+CONFIG_DRM_LVDS_ENCODER=y
 # CONFIG_LCD_CLASS_DEVICE is not set
 CONFIG_BACKLIGHT_CLASS_DEVICE=y
 # CONFIG_BACKLIGHT_GENERIC is not set
@@ -238,6 +258,7 @@  CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_AS3722=y
 CONFIG_RTC_DRV_DS1307=y
 CONFIG_RTC_DRV_MAX8907=y
+CONFIG_RTC_DRV_MAX77686=y
 CONFIG_RTC_DRV_PALMAS=y
 CONFIG_RTC_DRV_TPS6586X=y
 CONFIG_RTC_DRV_TPS65910=y
@@ -259,11 +280,18 @@  CONFIG_ARCH_TEGRA_2x_SOC=y
 CONFIG_ARCH_TEGRA_3x_SOC=y
 CONFIG_ARCH_TEGRA_114_SOC=y
 CONFIG_ARCH_TEGRA_124_SOC=y
+CONFIG_PM_DEVFREQ=y
+CONFIG_ARM_TEGRA_DEVFREQ=y
+CONFIG_ARM_TEGRA20_DEVFREQ=y
 CONFIG_MEMORY=y
 CONFIG_IIO=y
+CONFIG_KXCJK1013=y
 CONFIG_MPU3050_I2C=y
+CONFIG_INV_MPU6050_I2C=y
+CONFIG_AL3010=y
 CONFIG_SENSORS_ISL29018=y
 CONFIG_SENSORS_ISL29028=y
+CONFIG_AK8974=y
 CONFIG_AK8975=y
 CONFIG_PWM=y
 CONFIG_PWM_TEGRA=y