apalis-tk1: updates for v1.1 hw
Subsystems (2)
cover apalis-tk1: updates for v1.1 hw
From: Marcel Ziswiler <[email protected]>
This series updates the device tree for the upcoming V1.1 HW samples. All changes are purely opportunistic meaning they fix stuff which on older HW was anyway broken so there should be no backwards compatibility issues.
Marcel Ziswiler (6):
apalis-tk1: remove spurious new lines
apalis-tk1: temp alert pull-up
apalis-tk1: optional displayport hot-plug detect
apalis-tk1: adjust pin muxing for v1.1 hw
apalis-tk1: working sd card detect on v1.1 hw
apalis-tk1: update compatibility comment
arch/arm/boot/dts/tegra124-apalis-eval.dts | 11 +---- arch/arm/boot/dts/tegra124-apalis.dtsi | 73 +++++++++++------------------- 2 files changed, 29 insertions(+), 55 deletions(-)
Signature · 1 line
2.9.3
PATCH RESEND 1/6 apalis-tk1: remove spurious new lines
From: Marcel Ziswiler <[email protected]>
Remove some spurious new lines.
---
arch/arm/boot/dts/tegra124-apalis-eval.dts | 1 - arch/arm/boot/dts/tegra124-apalis.dtsi | 12 ------------ 2 files changed, 13 deletions(-)
arch/arm/boot/dts/tegra124-apalis-eval.dts +0 -1
@@ -232,7 +232,6 @@ backlight: backlight { compatible = "pwm-backlight"; - /* BKL1_PWM */ pwms = <&pwm 3 5000000>; brightness-levels = <255 231 223 207 191 159 127 0>;
arch/arm/boot/dts/tegra124-apalis.dtsi +0 -12
@@ -56,7 +56,6 @@ pcie-controller at 01003000 { status = "okay"; - avddio-pex-supply = <&vdd_1v05>; avdd-pex-pll-supply = <&vdd_1v05>; avdd-pll-erefe-supply = <&avdd_1v05>;
@@ -85,7 +84,6 @@ hdmi at 54280000 { pll-supply = <®_1v05_avdd_hdmi_pll>; vdd-supply = <®_3v3_avdd_hdmi>; - nvidia,ddc-i2c-bus = <&hdmi_ddc>; nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
@@ -1607,15 +1605,11 @@ compatible = "ams,as3722"; reg = <0x40>; interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; - ams,system-power-controller; - #interrupt-cells = <2>; interrupt-controller; - gpio-controller; #gpio-cells = <2>; - pinctrl-names = "default"; pinctrl-0 = <&as3722_default>;
@@ -1790,7 +1784,6 @@ reg = <0x4c>; interrupt-parent = <&gpio>; interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>; - #thermal-sensor-cells = <1>; }; };
@@ -1823,7 +1816,6 @@ sata at 70020000 { phys = <&{/padctl@7009f000/pads/sata/lanes/sata-0}>; phy-names = "sata-0"; - avdd-supply = <&vdd_1v05>; hvdd-supply = <®_3v3>; vddio-supply = <&vdd_1v05>;
@@ -1837,7 +1829,6 @@ <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>; phy-names = "usb2-0", "usb3-1", "usb2-1", "usb2-2", "usb3-0"; - avddio-pex-supply = <&vdd_1v05>; avdd-pll-erefe-supply = <&avdd_1v05>; avdd-pll-utmip-supply = <&vddio_1v8>;
@@ -1919,7 +1910,6 @@ usb2-0 { status = "okay"; mode = "otg"; - vbus-supply = <®_usbo1_vbus>; };
@@ -1927,7 +1917,6 @@ usb2-1 { status = "okay"; mode = "host"; - vbus-supply = <®_usbh_vbus>; };
@@ -1935,7 +1924,6 @@ usb2-2 { status = "okay"; mode = "host"; - vbus-supply = <®_usbh_vbus>; };
Signature · 1 line
2.9.3
PATCH RESEND 2/6 apalis-tk1: temp alert pull-up
In reply to [email protected]From: Marcel Ziswiler <[email protected]>
Pull-up GPIO_PI6 connected to TMP451's ALERT#/THERM2#.
---
arch/arm/boot/dts/tegra124-apalis.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/tegra124-apalis.dtsi +2 -2
@@ -1151,11 +1151,11 @@ nvidia,enable-input = <TEGRA_PIN_DISABLE>; }; - /* GPIO_PI6 aka TEMP_ALERT_L */ + /* GPIO_PI6 aka TMP451 ALERT#/THERM2# */ pi6 { nvidia,pins = "pi6"; nvidia,function = "rsvd1"; - nvidia,pull = <TEGRA_PIN_PULL_NONE>; + nvidia,pull = <TEGRA_PIN_PULL_UP>; nvidia,tristate = <TEGRA_PIN_ENABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>; };
Signature · 1 line
2.9.3
PATCH RESEND 3/6 apalis-tk1: optional displayport hot-plug detect
In reply to [email protected]From: Marcel Ziswiler <[email protected]>
Configure DP_HPD_PFF0 pin as optional DisplayPort hot-plug detect.
---
arch/arm/boot/dts/tegra124-apalis.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra124-apalis.dtsi +1 -1
@@ -255,7 +255,7 @@ }; dp_hpd_pff0 { nvidia,pins = "dp_hpd_pff0"; - nvidia,function = "rsvd2"; + nvidia,function = "dp"; nvidia,pull = <TEGRA_PIN_PULL_NONE>; nvidia,tristate = <TEGRA_PIN_DISABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Signature · 1 line
2.9.3
PATCH RESEND 4/6 apalis-tk1: adjust pin muxing for v1.1 hw
In reply to [email protected]From: Marcel Ziswiler <[email protected]>
Configure Apalis MMC1 D6 GPIO on SDMMC3_CLK_LB_IN as reserved function without any pull-up/down.
Configure GPIO_PV2 as SD1_CD# according to latest V1.1 HW.
Leave SDMMC3_CLK_LB_OUT muxed as SDMMC3 with output driver enabled aka not tristated and input driver enabled as well as it features some magic properties even though the external loopback is disabled and the internal loopback used as per SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits being set to 0xfffd according to the TRM! This pin is now a not-connect on V1.1 HW in order to avoid any interference.
---
arch/arm/boot/dts/tegra124-apalis.dtsi | 53 +++++++++++++++------------------- 1 file changed, 23 insertions(+), 30 deletions(-)
arch/arm/boot/dts/tegra124-apalis.dtsi +23 -30
@@ -414,18 +414,10 @@ nvidia,tristate = <TEGRA_PIN_DISABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>; }; - /* - * Don't use MMC1_D6 aka SDMMC3_CLK_LB_IN for now as it - * features some magic properties even though the - * external loopback is disabled and the internal - * loopback used as per SDMMC_VENDOR_MISC_CNTRL_0 - * register's SDMMC_SPARE1 bits being set to 0xfffd - * according to the TRM! - */ sdmmc3_clk_lb_in_pee5 { /* D6 GPIO */ nvidia,pins = "sdmmc3_clk_lb_in_pee5"; - nvidia,function = "sdmmc3"; - nvidia,pull = <TEGRA_PIN_PULL_UP>; + nvidia,function = "rsvd2"; + nvidia,pull = <TEGRA_PIN_PULL_NONE>; nvidia,tristate = <TEGRA_PIN_DISABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>; };
@@ -520,20 +512,12 @@ nvidia,tristate = <TEGRA_PIN_DISABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>; }; - /* - * Don't use SD1_CD# aka SDMMC3_CLK_LB_OUT for now as it - * features some magic properties even though the - * external loopback is disabled and the internal - * loopback used as per SDMMC_VENDOR_MISC_CNTRL_0 - * register's SDMMC_SPARE1 bits being set to 0xfffd - * according to the TRM! - */ - sdmmc3_clk_lb_out_pee4 { /* CD# GPIO */ - nvidia,pins = "sdmmc3_clk_lb_out_pee4"; - nvidia,function = "rsvd2"; - nvidia,pull = <TEGRA_PIN_PULL_NONE>; + sdmmc3_cd_n_pv2 { /* CD# GPIO */ + nvidia,pins = "sdmmc3_cd_n_pv2"; + nvidia,function = "rsvd3"; + nvidia,pull = <TEGRA_PIN_PULL_UP>; nvidia,tristate = <TEGRA_PIN_ENABLE>; - nvidia,enable-input = <TEGRA_PIN_DISABLE>; + nvidia,enable-input = <TEGRA_PIN_ENABLE>; }; /* Apalis SPDIF */
@@ -1512,13 +1496,6 @@ nvidia,tristate = <TEGRA_PIN_ENABLE>; nvidia,enable-input = <TEGRA_PIN_DISABLE>; }; - sdmmc3_cd_n_pv2 { /* NC */ - nvidia,pins = "sdmmc3_cd_n_pv2"; - nvidia,function = "rsvd3"; - nvidia,pull = <TEGRA_PIN_PULL_DOWN>; - nvidia,tristate = <TEGRA_PIN_ENABLE>; - nvidia,enable-input = <TEGRA_PIN_DISABLE>; - }; gpio_x1_aud_px1 { /* NC */ nvidia,pins = "gpio_x1_aud_px1"; nvidia,function = "rsvd2";
@@ -1568,6 +1545,22 @@ nvidia,tristate = <TEGRA_PIN_ENABLE>; nvidia,enable-input = <TEGRA_PIN_DISABLE>; }; + /* + * Leave SDMMC3_CLK_LB_OUT muxed as SDMMC3 with output + * driver enabled aka not tristated and input driver + * enabled as well as it features some magic properties + * even though the external loopback is disabled and the + * internal loopback used as per + * SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 + * bits being set to 0xfffd according to the TRM! + */ + sdmmc3_clk_lb_out_pee4 { /* NC */ + nvidia,pins = "sdmmc3_clk_lb_out_pee4"; + nvidia,function = "sdmmc3"; + nvidia,pull = <TEGRA_PIN_PULL_NONE>; + nvidia,tristate = <TEGRA_PIN_DISABLE>; + nvidia,enable-input = <TEGRA_PIN_ENABLE>; + }; }; };
Signature · 1 line
2.9.3
PATCH RESEND 5/6 apalis-tk1: working sd card detect on v1.1 hw
In reply to [email protected]From: Marcel Ziswiler <[email protected]>
Add sd card detect SD1_CD# applicable for V1.1 modules using GPIO_PV2.
---
arch/arm/boot/dts/tegra124-apalis-eval.dts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
arch/arm/boot/dts/tegra124-apalis-eval.dts +2 -8
@@ -187,14 +187,8 @@ /* Apalis SD1 */ sdhci at 700b0400 { status = "okay"; - /* - * Don't use SD1_CD# aka SDMMC3_CLK_LB_OUT for now as it - * features some magic properties even though the external - * loopback is disabled and the internal loopback used as per - * SDMMC_VENDOR_MISC_CNTRL_0 register's SDMMC_SPARE1 bits being - * set to 0xfffd according to the TRM! - * cd-gpios = <&gpio TEGRA_GPIO(EE, 4) GPIO_ACTIVE_LOW>; - */ + /* SD1_CD# */ + cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; bus-width = <4>; vqmmc-supply = <&vddio_sdmmc3>; };
Signature · 1 line
2.9.3
PATCH RESEND 6/6 apalis-tk1: update compatibility comment
In reply to [email protected]From: Marcel Ziswiler <[email protected]>
Now with the new V1.1A HW card detect being implemented update resp. compatibility information.
---
arch/arm/boot/dts/tegra124-apalis.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra124-apalis.dtsi +1 -1
@@ -44,7 +44,7 @@ /* * Toradex Apalis TK1 Module Device Tree - * Compatible for Revisions 2GB: V1.0A + * Compatible for Revisions 2GB: V1.0A, V1.0B, V1.1A */ / { model = "Toradex Apalis TK1";
Signature · 1 line
2.9.3
Quoted 17 lines · marcel at ziswiler.com
From: Marcel Ziswiler <[email protected]>
This series updates the device tree for the upcoming V1.1 HW samples. All changes are purely opportunistic meaning they fix stuff which on older HW was anyway broken so there should be no backwards compatibility issues.
Marcel Ziswiler (6):
? apalis-tk1: remove spurious new lines
? apalis-tk1: temp alert pull-up
? apalis-tk1: optional displayport hot-plug detect ? apalis-tk1: adjust pin muxing for v1.1 hw ? apalis-tk1: working sd card detect on v1.1 hw ? apalis-tk1: update compatibility comment
Quoted 4 lines
?arch/arm/boot/dts/tegra124-apalis-eval.dts | 11 +---- ?arch/arm/boot/dts/tegra124-apalis.dtsi?????| 73 +++++++++++---------
----------
?2 files changed, 29 insertions(+), 55 deletions(-)
Ping.
Thierry Reding
AppliedQuoted 18 lines · Marcel Ziswiler
Quoted 17 lines · marcel at ziswiler.com
From: Marcel Ziswiler <[email protected]>
This series updates the device tree for the upcoming V1.1 HW samples. All changes are purely opportunistic meaning they fix stuff which on older HW was anyway broken so there should be no backwards compatibility issues.
Marcel Ziswiler (6):
? apalis-tk1: remove spurious new lines
? apalis-tk1: temp alert pull-up
? apalis-tk1: optional displayport hot-plug detect ? apalis-tk1: adjust pin muxing for v1.1 hw ? apalis-tk1: working sd card detect on v1.1 hw ? apalis-tk1: update compatibility comment
Quoted 4 lines
Quoted 4 lines
?arch/arm/boot/dts/tegra124-apalis-eval.dts | 11 +---- ?arch/arm/boot/dts/tegra124-apalis.dtsi?????| 73 +++++++++++---------
----------
?2 files changed, 29 insertions(+), 55 deletions(-)
Applied all but the first, thanks.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170125/fd02828b/attachment.sig>