[PATCH V3 0/4] soc/tegra: Add support for IO pads power and voltage control

2016-05-04 Thread Laxman Dewangan
older APIs to configure IO rail and related macros. Laxman Dewangan (4): soc/tegra: pmc: Use BIT macro for register field definition soc/tegra: pmc: Correct type of variable for tegra_pmc_readl() soc/tegra: pmc: Add support for IO pads power state and voltage soc/tegra: pmc: Register PMC

[PATCH V3 4/4] soc/tegra: pmc: Register PMC child devices as platform device

2016-05-04 Thread Laxman Dewangan
child devices table for Tegra124 and Tegra210. Signed-off-by: Laxman Dewangan --- Changes from V1: Reworked on DT for having flat entry and register all child devices as simple platform device instead of of_populate_device(). Changes from V2: - Handling of the release of child devices on error

[PATCH V3 2/4] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-04 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for tegra_pmc_readl. Changes from V2

[PATCH V3 1/4] soc/tegra: pmc: Use BIT macro for register field definition

2016-05-04 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan --- Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes from V2: - None --- drivers/soc

[PATCH V3 3/4] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-04 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The sor driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan --- Changes from V1: This is reworked on

[PATCH V3 2/4] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-05 Thread Laxman Dewangan
On Thursday 05 May 2016 03:19 PM, Jon Hunter wrote: > On 04/05/16 12:39, Laxman Dewangan wrote: >> The function tegra_pmc_readl() returns the u32 type data and hence >> change the data type of variable where this data is stored to u32 >> type. >> >&g

[PATCH V3 3/4] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-05 Thread Laxman Dewangan
On Thursday 05 May 2016 03:43 PM, Jon Hunter wrote: > On 04/05/16 12:39, Laxman Dewangan wrote: > + return -EINVAL; > + > + for (i = 0; i < soc->num_io_pads; ++i) { > + if (soc->io_pads_control[i].pad_id == pad_id) > + re

[PATCH V3 2/4] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-05 Thread Laxman Dewangan
On Thursday 05 May 2016 06:13 PM, Jon Hunter wrote: > On 05/05/16 10:52, Laxman Dewangan wrote: >> On Thursday 05 May 2016 03:19 PM, Jon Hunter wrote: >>> On 04/05/16 12:39, Laxman Dewangan wrote: >>>> The function tegra_pmc_readl() returns the u32 type data and henc

[PATCH V3 3/4] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-05 Thread Laxman Dewangan
On Thursday 05 May 2016 06:38 PM, Jon Hunter wrote: > On 05/05/16 11:32, Laxman Dewangan wrote: >> On Thursday 05 May 2016 03:43 PM, Jon Hunter wrote: >>> On 04/05/16 12:39, Laxman Dewangan wrote: >>> +return -EINVAL; >>> + >>> +for (i = 0;

[PATCH V3 3/4] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-05 Thread Laxman Dewangan
On Thursday 05 May 2016 07:03 PM, Jon Hunter wrote: > On 05/05/16 14:09, Laxman Dewangan wrote: >> On Thursday 05 May 2016 06:38 PM, Jon Hunter wrote: >>> On 05/05/16 11:32, Laxman Dewangan wrote: >>>> On Thursday 05 May 2016 03:43 PM, Jon Hunter wrote: >>&g

[PATCH V4 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-05-06 Thread Laxman Dewangan
config - Make the io pad tables common for all SoC. - Make io_pads enums. - Add enums for voltage. - Drop patch of adding sub devs Laxman Dewangan (3): soc/tegra: pmc: Use BIT macro for register field definition soc/tegra: pmc: Correct type of variable for tegra_pmc_readl() soc/tegra: pm

[PATCH V4 1/3] soc/tegra: pmc: Use BIT macro for register field definition

2016-05-06 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan --- Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes from V2: - None --- drivers/soc

[PATCH V4 2/3] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-06 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for tegra_pmc_readl. Changes from V2

[PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-06 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The SOR driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan --- Changes from V1: This is reworked on

[PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-06 Thread Laxman Dewangan
On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: > On 06/05/16 11:45, Laxman Dewangan wrote: > + > + /* Last entry */ > + TEGRA_IO_PAD_MAX, > Nit should these be TEGRA_IO_PADS_xxx? Because this was name of single pad and hence I said T

[PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-11 Thread Laxman Dewangan
On Sunday 08 May 2016 05:43 PM, Jon Hunter wrote: > On 06/05/16 16:32, Laxman Dewangan wrote: >> On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: >>> On 06/05/16 11:45, Laxman Dewangan wrote: >>> + >>> +/* Last entry */ >>> +TEGRA_IO_PAD_M

[PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-11 Thread Laxman Dewangan
On Wednesday 11 May 2016 09:05 PM, Jon Hunter wrote: > On 11/05/16 14:28, Laxman Dewangan wrote: >> On Sunday 08 May 2016 05:43 PM, Jon Hunter wrote: >>> On 06/05/16 16:32, Laxman Dewangan wrote: >>>> On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: >>>>

[PATCH V5 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-05-12 Thread Laxman Dewangan
config - Make the io pad tables common for all SoC. - Make io_pads enums. - Add enums for voltage. - Drop patch of adding sub devs Changes from V4: - Change IO_PAD to IO_PADS. - Change enum for voltage config Laxman Dewangan (3): soc/tegra: pmc: Use BIT macro for register field definition soc

[PATCH V5 1/3] soc/tegra: pmc: Use BIT macro for register field definition

2016-05-12 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan Acked-by: Jon Hunter --- Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes fro

[PATCH V5 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-12 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The SOR driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan --- Changes from V1: This is reworked on

[PATCH V5 2/3] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-12 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan Reviewed-by: Jon Hunter --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for

[PATCH V5 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-05-19 Thread Laxman Dewangan
Hi Jon/Thierry, On Thursday 12 May 2016 05:51 PM, Laxman Dewangan wrote: > The IO pins of Tegra SoCs are grouped for common control of IO interface > like setting voltage signal levels and power state of the interface. The > group is generally referred as IO pads. The power state an

[PATCH V5 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-19 Thread Laxman Dewangan
On Thursday 19 May 2016 09:24 PM, Jon Hunter wrote: > On 12/05/16 13:21, Laxman Dewangan wrote: >> The IO pins of Tegra SoCs are grouped for common control of IO >> interface like setting voltage signal levels and power state of >> the interface. The group is generally ref

[PATCH V5 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-20 Thread Laxman Dewangan
On Friday 20 May 2016 03:32 PM, Jon Hunter wrote: > On 12/05/16 13:21, Laxman Dewangan wrote: > +#define TEGRA_IO_PADS_T124_T210 (TEGRA_IO_PADS_T124 | \ > + TEGRA_IO_PADS_T210) > + > What about T30 and T114? The TRM includes the

[PATCH V6 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-05-20 Thread Laxman Dewangan
se and refactor APIs to convert io-pads to bit. Laxman Dewangan (3): soc/tegra: pmc: Use BIT macro for register field definition soc/tegra: pmc: Correct type of variable for tegra_pmc_readl() soc/tegra: pmc: Add support for IO pads power state and voltage drivers/gpu/drm/tegra/sor.c

[PATCH V6 1/3] soc/tegra: pmc: Use BIT macro for register field definition

2016-05-20 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan Acked-by: Jon Hunter --- Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes fro

[PATCH V6 2/3] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-20 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan Reviewed-by: Jon Hunter --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for

[PATCH V6 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-20 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The SOR driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan --- Changes from V1: This is reworked on

[PATCH V7 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-05-20 Thread Laxman Dewangan
se and refactor APIs to convert io-pads to bit. Changes from V7: - Fix document format. - Document public APIs. - Fix teh bit check. - Add check of pad ID validatity. Laxman Dewangan (3): soc/tegra: pmc: Use BIT macro for register field definition soc/tegra: pmc: Correct type of variab

[PATCH V7 1/3] soc/tegra: pmc: Use BIT macro for register field definition

2016-05-20 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan Acked-by: Jon Hunter Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes from V2: - N

[PATCH V7 2/3] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-05-20 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan Reviewed-by: Jon Hunter --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for

[PATCH V7 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-20 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The SOR driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan --- Changes from V1: This is reworked on

[PATCH V7 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-06-16 Thread Laxman Dewangan
Hi Thierry, On Tuesday 24 May 2016 04:18 PM, Jon Hunter wrote: > On 23/05/16 10:03, Jon Hunter wrote: >> On 20/05/16 15:45, Laxman Dewangan wrote: >>> The IO pins of Tegra SoCs are grouped for common control of IO >>> interface like setting voltage signal levels

[PATCH V8 2/3] soc/tegra: pmc: Correct type of variable for tegra_pmc_readl()

2016-06-17 Thread Laxman Dewangan
The function tegra_pmc_readl() returns the u32 type data and hence change the data type of variable where this data is stored to u32 type. Signed-off-by: Laxman Dewangan Reviewed-by: Jon Hunter --- Changes from V1: -This is new in series as per discussion on V1 series to use u32 for

[PATCH V8 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-06-17 Thread Laxman Dewangan
applicable for all generation os Tegra SoC. IO pads ID and information of bit field for power state and voltage level controls are added for Tegra124, Tegra132 and Tegra210. The SOR driver is modified to use the new APIs. Signed-off-by: Laxman Dewangan Tested-by: Jon Hunter Acked-by: Jon Hunter

[PATCH V8 1/3] soc/tegra: pmc: Use BIT macro for register field definition

2016-06-17 Thread Laxman Dewangan
Use BIT macro for register field definition and make constant as U when using in shift operator like (3 << 30) to (3U << 30) Signed-off-by: Laxman Dewangan Acked-by: Jon Hunter Changes from V1: - Remove the indenting of line which is not for BIT macro usage. Changes from V2: - N

[PATCH V8 0/3] soc/tegra: Add support for IO pads power and voltage control

2016-06-17 Thread Laxman Dewangan
se and refactor APIs to convert io-pads to bit. Changes from V7: - Fix document format. - Document public APIs. - Fix the bit check. - Add check of pad ID validatity. Changes from V8: - Fix comment style and typo. - Rebase the series on 20160617 Laxman Dewangan (3): soc/tegra: pmc: Use BIT mac