Re: [PATCH] pinctrl: tegra: Add APB misc MIPI pad control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 3, 2014 at 11:34 AM, Stephen Warren <swarren@xxxxxxxxxxxxx> wrote:
> On 09/03/2014 09:24 AM, Sean Paul wrote:
>>
>> On Tue, Sep 2, 2014 at 4:31 PM, Stephen Warren <swarren@xxxxxxxxxxxxx>
>> wrote:
>>>
>>> On 09/02/2014 11:18 AM, Sean Paul wrote:
>>>>
>>>>
>>>> This patch adds MIPI CSI/DSIB pad control mux register
>>>> from the APB misc block to tegra pinctrl.
>>>>
>>>> Without writing to this register, the dsib pads are
>>>> muxed as csi, and cannot be used.
>>>>
>>>> The register is not yet documented in the TRM, here is
>>>> the description:
>>>>
>>>> 70000820: APB_MISC_GP_MIPI_PAD_CTRL_0
>>>>          [31:02] RESERVED
>>>>          [01:01] DSIB_MODE       [CSI=0,DSIB=1]
>>>>          [00:00] RESERVED
>
>
>>>> diff --git a/drivers/pinctrl/pinctrl-tegra124.c
>>>> b/drivers/pinctrl/pinctrl-tegra124.c
>>>
>>>
>>>
>>>> +#define TEGRA_PIN_CSI_DSIB                     _PIN(8)
>>>
>>>
>>>
>>> Is that actually the name of the pin on the Tegra package? I don't see
>>> anything like that the board schematic I have.
>>
>>
>> Well, there's more than one pin affected by this register. They're named:
>>
>> DSI_B_CLK_P
>> DSI_B_CLK_N
>> DSI_B_D0_P
>> DSI_B_D0_N
>> DSI_B_D1_P
>> DSI_B_D1_N
>> DSI_B_D2_P
>> DSI_B_D2_N
>> DSI_B_D3_P
>> DSI_B_D3_N
>>
>> I'll change this to TEGRA_PIN_DSI_B, does that work for you?
>
>
> Would it be possible to add a pin entry for each individual pin, and then
> create a DSI_B group that contains all those pins?

Sure, sounds good to me.

Sean

> Mux selections are made
> on pin groups rather than individual pins, so this shouldn't affect anything
> except for a few data tables in the patch. This way, it keeps the PIN macros
> purely as pins, rather than sometimes using them for groups of pins. As
> background: On Tegra30+, there's a 1:1 mapping between pins and groups for
> the regular pinmux registers, but if you look at the Tegra20 HW/driver,
> you'll see a much smaller set of groups than pins there.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux