Message ID | 1425672435-19031-1-git-send-email-daniels@collabora.com |
---|---|
State | Deferred |
Headers | show |
On 03/06/2015 01:07 PM, Daniel Stone wrote: > Update the pinmux, in particular USB and SD/MMC pin configuration, from > downstream ChromeOS kernel. Fixes external USB falling off completely > during heavy eMMC activity. Simon (and Tomeu), Can you comment on this change? If the data currently in tegra-pinmux-scripts is wrong, where did it come from if not the ChromeOS kernel? > Signed-off-by: Daniel Stone <daniels@collabora.com> > --- > configs/nyan-big.board | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/configs/nyan-big.board b/configs/nyan-big.board > index 6ebe466..03d40d4 100644 > --- a/configs/nyan-big.board > +++ b/configs/nyan-big.board > @@ -94,7 +94,7 @@ pins = ( > ('pex_l1_clkreq_n_pdd6', 'rsvd2', None, 'down', True, False, False, False), > ('pex_l1_rst_n_pdd5', 'rsvd2', None, 'down', True, False, False, False), > ('pex_wake_n_pdd3', 'rsvd2', None, 'down', True, False, False, False), > - ('usb_vbus_en2_pff1', 'rsvd2', None, 'down', True, False, False, False), > + ('usb_vbus_en2_pff1', 'rsvd2', None, 'up', True, True, False, False), > ('pff2', 'rsvd2', None, 'down', True, False, False, False), > ('clk2_out_pw5', 'rsvd2', None, 'down', True, False, False, False), > ('clk2_req_pcc5', 'rsvd2', None, 'down', True, False, False, False), > @@ -105,16 +105,16 @@ pins = ( > ('sdmmc1_dat1_py6', 'sdmmc1', None, 'up', False, True, False, False), > ('sdmmc1_dat2_py5', 'sdmmc1', None, 'up', False, True, False, False), > ('sdmmc1_dat3_py4', 'sdmmc1', None, 'up', False, True, False, False), > - ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, False, False, False), > + ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, True, False, False), > ('sdmmc3_cmd_pa7', 'sdmmc3', None, 'up', False, True, False, False), > ('sdmmc3_dat0_pb7', 'sdmmc3', None, 'up', False, True, False, False), > ('sdmmc3_dat1_pb6', 'sdmmc3', None, 'up', False, True, False, False), > ('sdmmc3_dat2_pb5', 'sdmmc3', None, 'up', False, True, False, False), > ('sdmmc3_dat3_pb4', 'sdmmc3', None, 'up', False, True, False, False), > - ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, False, False, False), > + ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, True, False, False), > ('sdmmc3_clk_lb_in_pee5', 'sdmmc3', None, 'up', False, True, False, False), > ('sdmmc4_clk_pcc4', 'sdmmc4', None, 'none', False, True, False, False), > - ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'none', False, True, False, False), > + ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'up', False, True, False, False), > ('sdmmc4_dat0_paa0', 'sdmmc4', None, 'up', False, True, False, False), > ('sdmmc4_dat1_paa1', 'sdmmc4', None, 'up', False, True, False, False), > ('sdmmc4_dat2_paa2', 'sdmmc4', None, 'up', False, True, False, False), > @@ -183,14 +183,14 @@ pins = ( > ('uart3_rxd_pw7', 'rsvd2', None, 'down', True, False, False, False), > ('uart3_txd_pw6', 'rsvd2', None, 'down', True, False, False, False), > ('owr', 'rsvd2', None, 'down', True, False, False, False), > - ('hdmi_cec_pee3', 'cec', None, 'none', False, True, True, False), > - ('hdmi_int_pn7', None, 'in', 'down', False, True, False, False), > + ('hdmi_cec_pee3', 'cec', None, 'none', False, True, False, False), > + ('hdmi_int_pn7', 'rsvd1', 'in', 'down', False, True, False, False), > ('ddc_scl_pv4', 'i2c4', None, 'none', False, True, False, False), > ('ddc_sda_pv5', 'i2c4', None, 'none', False, True, False, False), > ('spdif_out_pk5', 'rsvd2', None, 'down', True, False, False, False), > ('spdif_in_pk6', None, 'out0', 'down', False, False, False, False), > - ('usb_vbus_en0_pn4', 'usb', None, 'none', False, True, True, False), > - ('usb_vbus_en1_pn5', 'usb', None, 'none', False, True, True, False), > + ('usb_vbus_en0_pn4', 'usb', None, 'up', False, True, False, False), > + ('usb_vbus_en1_pn5', 'usb', None, 'up', False, True, False, False), > ('dp_hpd_pff0', 'dp', None, 'none', False, True, False, False), > ) > > -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Stephen, On 6 March 2015 at 13:31, Stephen Warren <swarren@wwwdotorg.org> wrote: > On 03/06/2015 01:07 PM, Daniel Stone wrote: >> >> Update the pinmux, in particular USB and SD/MMC pin configuration, from >> downstream ChromeOS kernel. Fixes external USB falling off completely >> during heavy eMMC activity. > > > Simon (and Tomeu), > > Can you comment on this change? If the data currently in > tegra-pinmux-scripts is wrong, where did it come from if not the ChromeOS > kernel? Sorry, I have no direct knowledge. > >> Signed-off-by: Daniel Stone <daniels@collabora.com> >> --- >> configs/nyan-big.board | 16 ++++++++-------- >> 1 file changed, 8 insertions(+), 8 deletions(-) >> >> diff --git a/configs/nyan-big.board b/configs/nyan-big.board >> index 6ebe466..03d40d4 100644 >> --- a/configs/nyan-big.board >> +++ b/configs/nyan-big.board >> @@ -94,7 +94,7 @@ pins = ( >> ('pex_l1_clkreq_n_pdd6', 'rsvd2', None, 'down', True, >> False, False, False), >> ('pex_l1_rst_n_pdd5', 'rsvd2', None, 'down', True, >> False, False, False), >> ('pex_wake_n_pdd3', 'rsvd2', None, 'down', True, >> False, False, False), >> - ('usb_vbus_en2_pff1', 'rsvd2', None, 'down', True, >> False, False, False), >> + ('usb_vbus_en2_pff1', 'rsvd2', None, 'up', True, >> True, False, False), >> ('pff2', 'rsvd2', None, 'down', True, >> False, False, False), >> ('clk2_out_pw5', 'rsvd2', None, 'down', True, >> False, False, False), >> ('clk2_req_pcc5', 'rsvd2', None, 'down', True, >> False, False, False), >> @@ -105,16 +105,16 @@ pins = ( >> ('sdmmc1_dat1_py6', 'sdmmc1', None, 'up', False, >> True, False, False), >> ('sdmmc1_dat2_py5', 'sdmmc1', None, 'up', False, >> True, False, False), >> ('sdmmc1_dat3_py4', 'sdmmc1', None, 'up', False, >> True, False, False), >> - ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, >> False, False, False), >> + ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, >> True, False, False), >> ('sdmmc3_cmd_pa7', 'sdmmc3', None, 'up', False, >> True, False, False), >> ('sdmmc3_dat0_pb7', 'sdmmc3', None, 'up', False, >> True, False, False), >> ('sdmmc3_dat1_pb6', 'sdmmc3', None, 'up', False, >> True, False, False), >> ('sdmmc3_dat2_pb5', 'sdmmc3', None, 'up', False, >> True, False, False), >> ('sdmmc3_dat3_pb4', 'sdmmc3', None, 'up', False, >> True, False, False), >> - ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, >> False, False, False), >> + ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, >> True, False, False), >> ('sdmmc3_clk_lb_in_pee5', 'sdmmc3', None, 'up', False, >> True, False, False), >> ('sdmmc4_clk_pcc4', 'sdmmc4', None, 'none', False, >> True, False, False), >> - ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'none', False, >> True, False, False), >> + ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'up', False, >> True, False, False), >> ('sdmmc4_dat0_paa0', 'sdmmc4', None, 'up', False, >> True, False, False), >> ('sdmmc4_dat1_paa1', 'sdmmc4', None, 'up', False, >> True, False, False), >> ('sdmmc4_dat2_paa2', 'sdmmc4', None, 'up', False, >> True, False, False), >> @@ -183,14 +183,14 @@ pins = ( >> ('uart3_rxd_pw7', 'rsvd2', None, 'down', True, >> False, False, False), >> ('uart3_txd_pw6', 'rsvd2', None, 'down', True, >> False, False, False), >> ('owr', 'rsvd2', None, 'down', True, >> False, False, False), >> - ('hdmi_cec_pee3', 'cec', None, 'none', False, >> True, True, False), >> - ('hdmi_int_pn7', None, 'in', 'down', False, >> True, False, False), >> + ('hdmi_cec_pee3', 'cec', None, 'none', False, >> True, False, False), >> + ('hdmi_int_pn7', 'rsvd1', 'in', 'down', False, >> True, False, False), >> ('ddc_scl_pv4', 'i2c4', None, 'none', False, >> True, False, False), >> ('ddc_sda_pv5', 'i2c4', None, 'none', False, >> True, False, False), >> ('spdif_out_pk5', 'rsvd2', None, 'down', True, >> False, False, False), >> ('spdif_in_pk6', None, 'out0', 'down', False, >> False, False, False), >> - ('usb_vbus_en0_pn4', 'usb', None, 'none', False, >> True, True, False), >> - ('usb_vbus_en1_pn5', 'usb', None, 'none', False, >> True, True, False), >> + ('usb_vbus_en0_pn4', 'usb', None, 'up', False, >> True, False, False), >> + ('usb_vbus_en1_pn5', 'usb', None, 'up', False, >> True, False, False), >> ('dp_hpd_pff0', 'dp', None, 'none', False, >> True, False, False), >> ) >> >> > Regards, Simon -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 03/06/2015 01:42 PM, Simon Glass wrote: > Hi Stephen, > > On 6 March 2015 at 13:31, Stephen Warren <swarren@wwwdotorg.org> wrote: >> On 03/06/2015 01:07 PM, Daniel Stone wrote: >>> >>> Update the pinmux, in particular USB and SD/MMC pin configuration, from >>> downstream ChromeOS kernel. Fixes external USB falling off completely >>> during heavy eMMC activity. >> >> >> Simon (and Tomeu), >> >> Can you comment on this change? If the data currently in >> tegra-pinmux-scripts is wrong, where did it come from if not the ChromeOS >> kernel? > > Sorry, I have no direct knowledge. Oh, I see the answer in the patch description: > commit 4a5373e4bd6477addd3764e25989f74d34eba8c6 > Author: Simon Glass <sjg@chromium.org> > Date: Tue Feb 3 11:29:03 2015 +0100 > > Add support for Nyan-big > > Add support for Tegra124 Nyan-big. Pinmux is based on norrin with a single > change for the reset GPIO. The need for Daniel's patch seems like a good reason not to base one board's pinmux on another board, assuming they're identical... Daniel, have you confirmed that 100% of the data in your patch matches that used by the ChromeOS kernel, such that there shouldn't be any more fixes needed down the line? -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Stephen, Stephen Warren <swarren@...> writes: > On 03/06/2015 01:42 PM, Simon Glass wrote: > > On 6 March 2015 at 13:31, Stephen Warren <swarren@...> wrote: > >> Can you comment on this change? If the data currently in > >> tegra-pinmux-scripts is wrong, where did it come from if not the ChromeOS > >> kernel? > > > > Sorry, I have no direct knowledge. > > Oh, I see the answer in the patch description: Thanks for looking at this. > > commit 4a5373e4bd6477addd3764e25989f74d34eba8c6 > > Author: Simon Glass <sjg@...> > > Date: Tue Feb 3 11:29:03 2015 +0100 > > > > Add support for Nyan-big > > > > Add support for Tegra124 Nyan-big. Pinmux is based on norrin with a single > > change for the reset GPIO. > > The need for Daniel's patch seems like a good reason not to base one > board's pinmux on another board, assuming they're identical... Indeed. > Daniel, have you confirmed that 100% of the data in your patch matches > that used by the ChromeOS kernel, such that there shouldn't be any more > fixes needed down the line? Actually, no, I hadn't. The diff is annoying to produce, as the format used in chromeos-3.10 is totally different (different pin naming scheme, aggregation of one entry to multiple nvidia,pins entries), but I managed to get a full diff with a blindingly horrible bit of Perl[0] (take chromeos-3.10 entries, map names -> numbers, map back from numbers to current upstream names, produce DT fragment), and then manually reconcile that back to tegra-pinmux-scripts to remove the delta. There is only a small delta remaining between the two after manually harmonising these. First, the nvidia,lock property was set downstream but t-p-s doesn't seem to have any facility for handling this - is that a problem? Secondly, chromeos-3.10 used TEGRA_PIN_PULL_DOWN for rcv-sel being enabled, which just happened to map to 1 (ENABLED). And lastly, there are a number of entries in nyan-big.config which aren't present in the downstream config. If these entries are unneeded (presumably unused ... ?), should they be removed? These patches are sitting in git://git.collabora.com/git/user/daniels/tegra-pinmux-scripts - I'll post them after myself & Tomeu have done some more testing on them, as there are a rather worrying amount of changes. I can do the same to Blaze as well, but that'll have to wait a couple of days as I don't actually have one on my desk. Cheers, Daniel [0]: It really is horrible, and is only intended to be throwaway. http://people.collabora.com/~daniels/tmp/reconcile-downstream-dt.pl -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 03/09/2015 09:36 AM, Daniel Stone wrote: > Hi Stephen, > Thanks for looking at this. > > On Fri, 6 Mar, 2015 at 8:46 PM, Stephen Warren <swarren@wwwdotorg.org> > wrote: >> On 03/06/2015 01:42 PM, Simon Glass wrote: >> >> On 6 March 2015 at 13:31, Stephen Warren <swarren@wwwdotorg.org >> <mailto:swarren@wwwdotorg.org>> wrote: >> >> Can you comment on this change? If the data currently in >> tegra-pinmux-scripts is wrong, where did it come from if not >> the ChromeOS kernel? >> >> Sorry, I have no direct knowledge. >> >> Oh, I see the answer in the patch description: >> >> commit 4a5373e4bd6477addd3764e25989f74d34eba8c6 Author: Simon >> Glass <sjg@chromium.org <mailto:sjg@chromium.org>> Date: Tue Feb 3 >> 11:29:03 2015 +0100 Add support for Nyan-big Add support for >> Tegra124 Nyan-big. Pinmux is based on norrin with a single change >> for the reset GPIO. >> >> The need for Daniel's patch seems like a good reason not to base one >> board's pinmux on another board, assuming they're identical... > > Indeed. > >> Daniel, have you confirmed that 100% of the data in your patch matches >> that used by the ChromeOS kernel, such that there shouldn't be any >> more fixes needed down the line? > > Actually, no, I hadn't. The diff is annoying to produce, as the format > used in chromeos-3.10 is totally different (different pin naming scheme, > aggregation of one entry to multiple nvidia,pins entries), I guess this is roughly what your Perl script does, but in the past I've written one-off scripts to import our downstream DT files into the *.board format that tegra-pinmux-scripts uses, and then diff'd that. The advantage here is that I can then use the output with tegra-pinmux-scripts. > but I managed > to get a full diff with a blindingly horrible bit of Perl[0] (take > chromeos-3.10 entries, map names -> numbers, map back from numbers to > current upstream names, produce DT fragment), and then manually > reconcile that back to tegra-pinmux-scripts to remove the delta. > > There is only a small delta remaining between the two after manually > harmonising these. First, the nvidia,lock property was set downstream > but t-p-s doesn't seem to have any facility for handling this - is that > a problem? Lock doesn't do anything that would functionally affect the pinmux assuming there are no SW bugs that come along and corrupt the pinmux registers later. All lock does is prevent any changes to that particular register/pin after the bit is set. Good for safety, but shouldn't have any impact. > Secondly, chromeos-3.10 used TEGRA_PIN_PULL_DOWN for rcv-sel > being enabled, which just happened to map to 1 (ENABLED). Yikes! > And lastly, > there are a number of entries in nyan-big.config which aren't present in > the downstream config. If these entries are unneeded (presumably unused > ... ?), should they be removed? Typically I'd hope that every pin had an explicit configuration, so that we know we've actively avoided any conflicting settings. Do you have a list of the pins that aren't configured in the ChromeOS kernel but are in the updated tegra-pinmux-scripts config file? > These patches are sitting in > git://git.collabora.com/git/user/daniels/tegra-pinmux-scripts - I'll > post them after myself & Tomeu have done some more testing on them, as > there are a rather worrying amount of changes. I can do the same to > Blaze as well, but that'll have to wait a couple of days as I don't > actually have one on my desk. > > Cheers, > Daniel > > [0]: It really is horrible, and is only intended to be throwaway. > http://people.collabora.com/~daniels/tmp/reconcile-downstream-dt.pl -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, Stephen Warren <swarren@...> writes: > On 03/09/2015 09:36 AM, Daniel Stone wrote: > > Actually, no, I hadn't. The diff is annoying to produce, as the format > > used in chromeos-3.10 is totally different (different pin naming scheme, > > aggregation of one entry to multiple nvidia,pins entries), > > I guess this is roughly what your Perl script does, but in the past I've > written one-off scripts to import our downstream DT files into the > *.board format that tegra-pinmux-scripts uses, and then diff'd that. The > advantage here is that I can then use the output with tegra-pinmux- scripts. Fair enough. I came into this hoping to spend rather less time on it than I did. ;) > > And lastly, > > there are a number of entries in nyan-big.config which aren't present in > > the downstream config. If these entries are unneeded (presumably unused > > ... ?), should they be removed? > > Typically I'd hope that every pin had an explicit configuration, so that > we know we've actively avoided any conflicting settings. Do you have a > list of the pins that aren't configured in the ChromeOS kernel but are > in the updated tegra-pinmux-scripts config file? Sure, I've attached it, after having done Blaze as well (pushed to the same tree, totally untested in any way; Big at least boots and gives me USB/eMMC/eDP/HDMI). The only difference between the two is that Blaze does have a definition for kb_row11_ps[34]. I've not checked to see if these are actually required / in use, i.e. whether we do need them or if we're just getting lucky with existing/default configuration. I'll do this before I post the final patchset. Thanks for walking me through this! (Oh and also, just realised: if you want to actually use that horrendous script, you need to change board-to-kernel-dt.py to output in conf order rather than pin order.) Cheers, Daniel NO DEFINED MAPPING FOR dap_mclk1_req_pee2 (reg 0x3348, cros name dap_mclk1_req_pee2) NO DEFINED MAPPING FOR dap1_din_pn1 (reg 0x333c, cros name dap1_din_pn1) NO DEFINED MAPPING FOR dap1_dout_pn2 (reg 0x3340, cros name dap1_dout_pn2) NO DEFINED MAPPING FOR dap1_fs_pn0 (reg 0x3338, cros name dap1_fs_pn0) NO DEFINED MAPPING FOR dap1_sclk_pn3 (reg 0x3344, cros name dap1_sclk_pn3) NO DEFINED MAPPING FOR gpio_x4_aud_px4 (reg 0x3378, cros name gpio_x4_aud_px4) NO DEFINED MAPPING FOR gpio_x5_aud_px5 (reg 0x337c, cros name gpio_x5_aud_px5) NO DEFINED MAPPING FOR gpio_x6_aud_px6 (reg 0x3380, cros name gpio_x6_aud_px6) NO DEFINED MAPPING FOR gpio_w2_aud_pw2 (reg 0x33ec, cros name gpio_w2_aud_pw2) NO DEFINED MAPPING FOR gpio_x1_aud_px1 (reg 0x336c, cros name gpio_x1_aud_px1) NO DEFINED MAPPING FOR gpio_x3_aud_px3 (reg 0x3370, cros name gpio_x3_aud_px3) NO DEFINED MAPPING FOR dap3_din_pp1 (reg 0x3034, cros name dap3_din_pp1) NO DEFINED MAPPING FOR dap3_fs_pp0 (reg 0x3030, cros name dap3_fs_pp0) NO DEFINED MAPPING FOR dap3_sclk_pp3 (reg 0x303c, cros name dap3_sclk_pp3) NO DEFINED MAPPING FOR pv0 (reg 0x3040, cros name pv0) NO DEFINED MAPPING FOR pv1 (reg 0x3044, cros name pv1) NO DEFINED MAPPING FOR ulpi_data0_po1 (reg 0x3000, cros name ulpi_data0_po1) NO DEFINED MAPPING FOR ulpi_data1_po2 (reg 0x3004, cros name ulpi_data1_po2) NO DEFINED MAPPING FOR ulpi_data2_po3 (reg 0x3008, cros name ulpi_data2_po3) NO DEFINED MAPPING FOR ulpi_data3_po4 (reg 0x300c, cros name ulpi_data3_po4) NO DEFINED MAPPING FOR ulpi_data4_po5 (reg 0x3010, cros name ulpi_data4_po5) NO DEFINED MAPPING FOR ulpi_data5_po6 (reg 0x3014, cros name ulpi_data5_po6) NO DEFINED MAPPING FOR ulpi_data6_po7 (reg 0x3018, cros name ulpi_data6_po7) NO DEFINED MAPPING FOR ulpi_data7_po0 (reg 0x301c, cros name ulpi_data7_po0) NO DEFINED MAPPING FOR cam_mclk_pcc0 (reg 0x3284, cros name cam_mclk_pcc0) NO DEFINED MAPPING FOR pbb0 (reg 0x328c, cros name pbb0) NO DEFINED MAPPING FOR pbb3 (reg 0x3298, cros name pbb3) NO DEFINED MAPPING FOR pbb4 (reg 0x329c, cros name pbb4) NO DEFINED MAPPING FOR pbb5 (reg 0x32a0, cros name pbb5) NO DEFINED MAPPING FOR pbb6 (reg 0x32a4, cros name pbb6) NO DEFINED MAPPING FOR pbb7 (reg 0x32a8, cros name pbb7) NO DEFINED MAPPING FOR pcc1 (reg 0x3288, cros name pcc1) NO DEFINED MAPPING FOR pcc2 (reg 0x32ac, cros name pcc2) NO DEFINED MAPPING FOR pb0 (reg 0x3234, cros name pb0) NO DEFINED MAPPING FOR pb1 (reg 0x3238, cros name pb1) NO DEFINED MAPPING FOR pg0 (reg 0x31f0, cros name pg0) NO DEFINED MAPPING FOR pg1 (reg 0x31f4, cros name pg1) NO DEFINED MAPPING FOR ph3 (reg 0x321c, cros name ph3) NO DEFINED MAPPING FOR ph5 (reg 0x3224, cros name ph5) NO DEFINED MAPPING FOR pg2 (reg 0x31f8, cros name pg2) NO DEFINED MAPPING FOR pg3 (reg 0x31fc, cros name pg3) NO DEFINED MAPPING FOR ph0 (reg 0x3210, cros name ph0) NO DEFINED MAPPING FOR pj2 (reg 0x31d8, cros name pj2) NO DEFINED MAPPING FOR pk3 (reg 0x31dc, cros name pk3) NO DEFINED MAPPING FOR pi2 (reg 0x3248, cros name pi2) NO DEFINED MAPPING FOR pi1 (reg 0x3244, cros name pi1) NO DEFINED MAPPING FOR pi4 (reg 0x324c, cros name pi4) NO DEFINED MAPPING FOR pc7 (reg 0x31c0, cros name pc7) NO DEFINED MAPPING FOR pi0 (reg 0x3240, cros name pi0) NO DEFINED MAPPING FOR pex_l0_clkreq_n_pdd2 (reg 0x33c0, cros name pex_l0_clkreq_n_pdd2) NO DEFINED MAPPING FOR pex_l0_rst_n_pdd1 (reg 0x33bc, cros name pex_l0_rst_n_pdd1) NO DEFINED MAPPING FOR pex_l1_clkreq_n_pdd6 (reg 0x33d0, cros name pex_l1_clkreq_n_pdd6) NO DEFINED MAPPING FOR pex_l1_rst_n_pdd5 (reg 0x33cc, cros name pex_l1_rst_n_pdd5) NO DEFINED MAPPING FOR pex_wake_n_pdd3 (reg 0x33c4, cros name pex_wake_n_pdd3) NO DEFINED MAPPING FOR pff2 (reg 0x3418, cros name pff2) NO DEFINED MAPPING FOR clk2_out_pw5 (reg 0x3068, cros name clk2_out_pw5) NO DEFINED MAPPING FOR clk2_req_pcc5 (reg 0x306c, cros name clk2_req_pcc5) NO DEFINED MAPPING FOR sdmmc1_wp_n_pv3 (reg 0x33e4, cros name sdmmc1_wp_n_pv3) NO DEFINED MAPPING FOR kb_col1_pq1 (reg 0x3300, cros name kb_col1_pq1) NO DEFINED MAPPING FOR kb_col2_pq2 (reg 0x3304, cros name kb_col2_pq2) NO DEFINED MAPPING FOR kb_col3_pq3 (reg 0x3308, cros name kb_col3_pq3) NO DEFINED MAPPING FOR kb_col5_pq5 (reg 0x3310, cros name kb_col5_pq5) NO DEFINED MAPPING FOR kb_col6_pq6 (reg 0x3314, cros name kb_col6_pq6) NO DEFINED MAPPING FOR kb_col7_pq7 (reg 0x3318, cros name kb_col7_pq7) NO DEFINED MAPPING FOR kb_row13_ps5 (reg 0x32f0, cros name kb_row13_ps5) NO DEFINED MAPPING FOR kb_row14_ps6 (reg 0x32f4, cros name kb_row14_ps6) NO DEFINED MAPPING FOR kb_row16_pt0 (reg 0x340c, cros name kb_row16_pt0) NO DEFINED MAPPING FOR kb_row17_pt1 (reg 0x3410, cros name kb_row17_pt1) NO DEFINED MAPPING FOR kb_row2_pr2 (reg 0x32c4, cros name kb_row2_pr2) NO DEFINED MAPPING FOR kb_row3_pr3 (reg 0x32c8, cros name kb_row3_pr3) NO DEFINED MAPPING FOR kb_row5_pr5 (reg 0x32d0, cros name kb_row5_pr5) NO DEFINED MAPPING FOR kb_row6_pr6 (reg 0x32d4, cros name kb_row6_pr6) NO DEFINED MAPPING FOR kb_row8_ps0 (reg 0x32dc, cros name kb_row8_ps0) NO DEFINED MAPPING FOR clk3_req_pee1 (reg 0x31bc, cros name clk3_req_pee1) NO DEFINED MAPPING FOR dap4_din_pp5 (reg 0x31ac, cros name dap4_din_pp5) NO DEFINED MAPPING FOR dap4_dout_pp6 (reg 0x31b0, cros name dap4_dout_pp6) NO DEFINED MAPPING FOR dap4_fs_pp4 (reg 0x31a8, cros name dap4_fs_pp4) NO DEFINED MAPPING FOR dap4_sclk_pp7 (reg 0x31b4, cros name dap4_sclk_pp7) NO DEFINED MAPPING FOR pu0 (reg 0x3184, cros name pu0) NO DEFINED MAPPING FOR pu1 (reg 0x3188, cros name pu1) NO DEFINED MAPPING FOR pu2 (reg 0x318c, cros name pu2) NO DEFINED MAPPING FOR pu3 (reg 0x3190, cros name pu3) NO DEFINED MAPPING FOR pu4 (reg 0x3194, cros name pu4) NO DEFINED MAPPING FOR pu5 (reg 0x3198, cros name pu5) NO DEFINED MAPPING FOR pu6 (reg 0x319c, cros name pu6) NO DEFINED MAPPING FOR uart2_cts_n_pj5 (reg 0x3170, cros name uart2_cts_n_pj5) NO DEFINED MAPPING FOR uart2_rts_n_pj6 (reg 0x316c, cros name uart2_rts_n_pj6) NO DEFINED MAPPING FOR uart2_rxd_pc3 (reg 0x3164, cros name uart2_rxd_pc3) NO DEFINED MAPPING FOR uart2_txd_pc2 (reg 0x3168, cros name uart2_txd_pc2) NO DEFINED MAPPING FOR uart3_cts_n_pa1 (reg 0x317c, cros name uart3_cts_n_pa1) NO DEFINED MAPPING FOR uart3_rts_n_pc0 (reg 0x3180, cros name uart3_rts_n_pc0) NO DEFINED MAPPING FOR uart3_rxd_pw7 (reg 0x3178, cros name uart3_rxd_pw7) NO DEFINED MAPPING FOR uart3_txd_pw6 (reg 0x3174, cros name uart3_txd_pw6) NO DEFINED MAPPING FOR owr (reg 0x3334, cros name owr) NO DEFINED MAPPING FOR spdif_out_pk5 (reg 0x3354, cros name spdif_out_pk5) NO DEFINED MAPPING FOR dp_hpd_pff0 (reg 0x3430, cros name dp_hpd_pff0) -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 03/09/2015 10:40 AM, Daniel Stone wrote: > Hi, > > Stephen Warren <swarren@...> writes: >> On 03/09/2015 09:36 AM, Daniel Stone wrote: >>> Actually, no, I hadn't. The diff is annoying to produce, as the format >>> used in chromeos-3.10 is totally different (different pin naming scheme, >>> aggregation of one entry to multiple nvidia,pins entries), >> >> I guess this is roughly what your Perl script does, but in the past I've >> written one-off scripts to import our downstream DT files into the >> *.board format that tegra-pinmux-scripts uses, and then diff'd that. The >> advantage here is that I can then use the output with tegra-pinmux- > scripts. > > Fair enough. I came into this hoping to spend rather less time on it than I > did. ;) > >>> And lastly, >>> there are a number of entries in nyan-big.config which aren't present in >>> the downstream config. If these entries are unneeded (presumably unused >>> ... ?), should they be removed? >> >> Typically I'd hope that every pin had an explicit configuration, so that >> we know we've actively avoided any conflicting settings. Do you have a >> list of the pins that aren't configured in the ChromeOS kernel but are >> in the updated tegra-pinmux-scripts config file? > > Sure, I've attached it That's quite a large list. I guess since ChromeOS works without configuring all those missing pins, we should probably not put values/configuration for those pins into tegra-pinmux-scripts. Otherwise, we can't know what values to set for any of those pins. I think missing information is better than present information that might be actively wrong. That is, unless you want to extract the actual configuration that's programmed into HW from a running system, under the ChromeOS kernel. At least we'd then have a set of data that's 100% aligned with what's actually in use on production systems. I wish the ChromeOS boards had had one of the NVIDIA syseng-supplied pinmux spreadsheets created. Then, we'd know exactly how everything was supposed to be configured, or even if there were bugs in the spreadsheet, at least have a single canonical source for the data, and source to fix. >after having done Blaze as well (pushed to the same > tree, totally untested in any way; Big at least boots and gives me > USB/eMMC/eDP/HDMI). The only difference between the two is that Blaze does > have a definition for kb_row11_ps[34]. I've not checked to see if these are > actually required / in use, i.e. whether we do need them or if we're just > getting lucky with existing/default configuration. I'll do this before I > post the final patchset. It's good the two boards are very similar. At least that corresponds well with them both having been derived from the same reference board. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/configs/nyan-big.board b/configs/nyan-big.board index 6ebe466..03d40d4 100644 --- a/configs/nyan-big.board +++ b/configs/nyan-big.board @@ -94,7 +94,7 @@ pins = ( ('pex_l1_clkreq_n_pdd6', 'rsvd2', None, 'down', True, False, False, False), ('pex_l1_rst_n_pdd5', 'rsvd2', None, 'down', True, False, False, False), ('pex_wake_n_pdd3', 'rsvd2', None, 'down', True, False, False, False), - ('usb_vbus_en2_pff1', 'rsvd2', None, 'down', True, False, False, False), + ('usb_vbus_en2_pff1', 'rsvd2', None, 'up', True, True, False, False), ('pff2', 'rsvd2', None, 'down', True, False, False, False), ('clk2_out_pw5', 'rsvd2', None, 'down', True, False, False, False), ('clk2_req_pcc5', 'rsvd2', None, 'down', True, False, False, False), @@ -105,16 +105,16 @@ pins = ( ('sdmmc1_dat1_py6', 'sdmmc1', None, 'up', False, True, False, False), ('sdmmc1_dat2_py5', 'sdmmc1', None, 'up', False, True, False, False), ('sdmmc1_dat3_py4', 'sdmmc1', None, 'up', False, True, False, False), - ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, False, False, False), + ('sdmmc3_clk_pa6', 'sdmmc3', None, 'none', False, True, False, False), ('sdmmc3_cmd_pa7', 'sdmmc3', None, 'up', False, True, False, False), ('sdmmc3_dat0_pb7', 'sdmmc3', None, 'up', False, True, False, False), ('sdmmc3_dat1_pb6', 'sdmmc3', None, 'up', False, True, False, False), ('sdmmc3_dat2_pb5', 'sdmmc3', None, 'up', False, True, False, False), ('sdmmc3_dat3_pb4', 'sdmmc3', None, 'up', False, True, False, False), - ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, False, False, False), + ('sdmmc3_clk_lb_out_pee4', 'sdmmc3', None, 'none', False, True, False, False), ('sdmmc3_clk_lb_in_pee5', 'sdmmc3', None, 'up', False, True, False, False), ('sdmmc4_clk_pcc4', 'sdmmc4', None, 'none', False, True, False, False), - ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'none', False, True, False, False), + ('sdmmc4_cmd_pt7', 'sdmmc4', None, 'up', False, True, False, False), ('sdmmc4_dat0_paa0', 'sdmmc4', None, 'up', False, True, False, False), ('sdmmc4_dat1_paa1', 'sdmmc4', None, 'up', False, True, False, False), ('sdmmc4_dat2_paa2', 'sdmmc4', None, 'up', False, True, False, False), @@ -183,14 +183,14 @@ pins = ( ('uart3_rxd_pw7', 'rsvd2', None, 'down', True, False, False, False), ('uart3_txd_pw6', 'rsvd2', None, 'down', True, False, False, False), ('owr', 'rsvd2', None, 'down', True, False, False, False), - ('hdmi_cec_pee3', 'cec', None, 'none', False, True, True, False), - ('hdmi_int_pn7', None, 'in', 'down', False, True, False, False), + ('hdmi_cec_pee3', 'cec', None, 'none', False, True, False, False), + ('hdmi_int_pn7', 'rsvd1', 'in', 'down', False, True, False, False), ('ddc_scl_pv4', 'i2c4', None, 'none', False, True, False, False), ('ddc_sda_pv5', 'i2c4', None, 'none', False, True, False, False), ('spdif_out_pk5', 'rsvd2', None, 'down', True, False, False, False), ('spdif_in_pk6', None, 'out0', 'down', False, False, False, False), - ('usb_vbus_en0_pn4', 'usb', None, 'none', False, True, True, False), - ('usb_vbus_en1_pn5', 'usb', None, 'none', False, True, True, False), + ('usb_vbus_en0_pn4', 'usb', None, 'up', False, True, False, False), + ('usb_vbus_en1_pn5', 'usb', None, 'up', False, True, False, False), ('dp_hpd_pff0', 'dp', None, 'none', False, True, False, False), )
Update the pinmux, in particular USB and SD/MMC pin configuration, from downstream ChromeOS kernel. Fixes external USB falling off completely during heavy eMMC activity. Signed-off-by: Daniel Stone <daniels@collabora.com> --- configs/nyan-big.board | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)