From: yanok@emcraft.com (Ilya Yanok)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] mt_ventoux: support for TeeJet Mt.Ventoux board
Date: Wed, 28 Dec 2011 03:02:52 +0400 [thread overview]
Message-ID: <4EFA4E9C.30307@emcraft.com> (raw)
In-Reply-To: <4EF97A41.7050605@compulab.co.il>
Hi Igor,
thanks for your comments.
On 27.12.2011 11:56, Igor Grinberg wrote:
>> +/*
>> + * use fake regulator for vdds_dsi as we can't find this pin inside
>> + * AM3517 datasheet.
>> + */
>> +static struct regulator_consumer_supply mt_ventoux_vdds_dsi_supply[] = {
>> + REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
>> + REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi.0"),
>> +};
>
> Although the TRM states that there is a vdds_dsi signal,
> it looks, from the datasheet, that VDDSHV is used to power the DSS.
> Either way, it can't be switched off, I think...
> Therefore, depending on your board wiring, you can leave it as fixed
> regulator or bind to a supply on TPS65023.
I will forward this info to hardware guys and ask about wiring. For now
I will leave it as is. Thanks for this information it turned to be some
kind of mystery. It would be great if you could give some pointer to the
datasheet regarding VDDSHV and DSS.
>> +static struct i2c_board_info __initdata mt_ventoux_i2c1_devices[] = {
>> + {
>> + I2C_BOARD_INFO("tps65023", 0x48),
>> + .flags = I2C_CLIENT_WAKE,
>> + .platform_data = &mt_ventoux_regulator_data[0],
>> + },
>> + {
>> + I2C_BOARD_INFO("24c02", 0x50),
>> + },
>> +};
>
> Here (and may be in some other places) you have spaces for
> indentation. Can it be tabs instead for uniformity (and file size)?
Argh.. Surely. I should have noticed this myself.
>> +#if defined(CONFIG_TOUCHSCREEN_ADS7846)
>
> Can't the ADS7846 be module?
Surely. Fixed.
>> +static struct ads7846_platform_data tsc2046_config __initdata = {
>> + .x_max = 0x0fff,
>> + .y_max = 0x0fff,
>> + .x_plate_ohms = 180,
>> + .pressure_max = 255,
>> + .debounce_max = 30,
>> + .debounce_tol = 10,
>> + .debounce_rep = 1,
>> + .keep_vref_on = 1,
>> + .settle_delay_usecs = 100,
>> +};
>> +#endif
>
> [...]
>
>> +static void __init mt_ventoux_init(void)
>> +{
>> + omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
>> + mt_ventoux_i2c_init();
>> + platform_add_devices(mt_ventoux_devices, ARRAY_SIZE(mt_ventoux_devices));
>> + mt_ventoux_serial_init();
>> + omap_sdrc_init(NULL, NULL);
>> +
>> + mt_ventoux_display_init();
>> +
>> + /* Configure EHCI ports */
>> + omap_mux_init_gpio(USB_PHY1_RESET, OMAP_PIN_OUTPUT);
>> + usbhs_init(&usbhs_bdata);
>> +
>> + /* NAND */
>> + omap_nand_flash_init(NAND_BUSWIDTH_16, mt_ventoux_nand_partitions,
>> + ARRAY_SIZE(mt_ventoux_nand_partitions));
>> +
>> + /* touchscreen */
>> + omap_mux_init_gpio(TS_IRQ_PIN, OMAP_PIN_INPUT);
>> + omap_ads7846_init(1, TS_IRQ_PIN, 310, &tsc2046_config);
>
> Here you call omap_ads7846_init() irregardless to
> CONFIG_TOUCHSCREEN_ADS7846, but the tsc2046_config is defined only
> if it is enabled...
> I think, either remove the #ifdef CONFIG_TOUCHSCREEN_ADS7846
> or move the above to a separate function like
> mt_ventoux_touch_init() and provide a static inline version of it
> in case the CONFIG_TOUCHSCREEN_ADS7846 is not enabled (just like you
> did for adc128s_init()).
> Otherwise, various rand_configs will fail...
Agreed. Fixed.
>> + /* Ethernet */
>> + am35xx_ethernet_init(MCX_MDIO_FREQUENCY, 1);
>> +
>> + /* MMC init */
>> + omap_mux_init_gpio(SD_CARD_CD, OMAP_PIN_INPUT);
>> + omap2_hsmmc_init(mmc);
>> +
>> + /* ADC128S022 init */
>> + adc128s_init();
>
> I think you are missing the __init annotation in the adc128s_init()
> function definition (just noticed after snipping).
Well, it's declared as inline so I think there is no much use for the
__init annotation...
Regards, Ilya.
next prev parent reply other threads:[~2011-12-27 23:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-26 23:08 [PATCH 0/2] Support for TeeJet Mt.Ventoux Ilya Yanok
2011-12-26 23:08 ` [PATCH 1/2] mt_ventoux: very basic support for TeeJet Mt.Ventoux board Ilya Yanok
2012-01-04 19:54 ` Grant Likely
2012-01-05 8:40 ` Igor Grinberg
2011-12-26 23:08 ` [PATCH 2/2] mt_ventoux: " Ilya Yanok
2011-12-27 7:56 ` Igor Grinberg
2011-12-27 23:02 ` Ilya Yanok [this message]
2012-01-03 9:48 ` Igor Grinberg
2012-01-11 20:04 ` Ilya Yanok
2011-12-27 23:09 ` [PATCH V2] " Ilya Yanok
2012-02-01 10:51 ` Stefano Babic
2012-03-05 21:46 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EFA4E9C.30307@emcraft.com \
--to=yanok@emcraft.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).