ARM: dts: Introduce support for rev BeagleBoard-X15 B1
cover ARM: dts: Introduce support for rev BeagleBoard-X15 B1
Hi,
Please find the series to cleanup and support Production version of Beagleboard-X15 rev B1 support.
More details can be found at https://github.com/beagleboard/beagleboard-x15
Bootlog on B1: http://pastebin.ubuntu.com/23123408/ (sd and hdmi hpd tested)
Nishanth Menon (2):
ARM: dts: am57xx-beagle-x15: Remove pinmux configurations
ARM: dts: am57xx-beagle-x15: Add support for rev B1
arch/arm/boot/dts/Makefile | 1 +
...eagle-x15.dts => am57xx-beagle-x15-common.dtsi} | 230 +-----
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts | 24 +
arch/arm/boot/dts/am57xx-beagle-x15.dts | 812 +--------------------
4 files changed, 34 insertions(+), 1033 deletions(-)
copy arch/arm/boot/dts/{am57xx-beagle-x15.dts => am57xx-beagle-x15-common.dtsi} (60%)
create mode 100644 arch/arm/boot/dts/am57xx-beagle-x15-revb1.dtsSignature · 1 line
2.9.1.200.gb1ec08f
PATCH 1/2 ARM: dts: am57xx-beagle-x15: Remove pinmux configurations
pinmuxing for DRA7x/AM57x family of processors need to be done in IO isolation as part of initial bootloader executed from SRAM. This is done as part of iodelay configuration sequence and is required due to the limitations introduced by erratum ID: i869[1] and elaborated in the Technical Reference Manual[2] 18.4.6.1.7 Isolation Requirements.
Only peripheral that is permitted for dynamic pin mux configuration is MMC. This is to accommodate the requirements for varied speeds (which require IO-delay support in kernel as well). Hence with the exception of MMC, all other pin mux configurations are removed from the dts.
[1] http://www.ti.com/lit/pdf/sprz429
[2] http://www.ti.com/lit/pdf/sprui30
--- arch/arm/boot/dts/am57xx-beagle-x15.dts | 222 +------------------------------- 1 file changed, 1 insertion(+), 221 deletions(-)
arch/arm/boot/dts/am57xx-beagle-x15.dts +1 -221
@@ -59,8 +59,6 @@ leds { compatible = "gpio-leds"; - pinctrl-names = "default"; - pinctrl-0 = <&leds_pins_default>; led0 { label = "beagle-x15:usr0";
@@ -116,9 +114,6 @@ tpd12s015: encoder { compatible = "ti,tpd12s015"; - pinctrl-names = "default"; - pinctrl-0 = <&tpd12s015_pins>; - gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ <&gpio6 28 GPIO_ACTIVE_HIGH>, /* gpio6_28, LS OE */ <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */
@@ -173,43 +168,6 @@ }; &dra7_pmx_core { - leds_pins_default: leds_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x37a8, PIN_OUTPUT | MUX_MODE14) /* spi1_d1.gpio7_8 */ - DRA7XX_CORE_IOPAD(0x37ac, PIN_OUTPUT | MUX_MODE14) /* spi1_d0.gpio7_9 */ - DRA7XX_CORE_IOPAD(0x37c0, PIN_OUTPUT | MUX_MODE14) /* spi2_sclk.gpio7_14 */ - DRA7XX_CORE_IOPAD(0x37c4, PIN_OUTPUT | MUX_MODE14) /* spi2_d1.gpio7_15 */ - >; - }; - - i2c1_pins_default: i2c1_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3800, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.sda */ - DRA7XX_CORE_IOPAD(0x3804, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.scl */ - >; - }; - - hdmi_pins: pinmux_hdmi_pins { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3808, PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */ - DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */ - >; - }; - - i2c3_pins_default: i2c3_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x36a4, PIN_INPUT| MUX_MODE10) /* mcasp1_aclkx.i2c3_sda */ - DRA7XX_CORE_IOPAD(0x36a8, PIN_INPUT| MUX_MODE10) /* mcasp1_fsx.i2c3_scl */ - >; - }; - - uart3_pins_default: uart3_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x37f8, PIN_INPUT_SLEW | MUX_MODE2) /* uart2_ctsn.uart3_rxd */ - DRA7XX_CORE_IOPAD(0x37fc, PIN_INPUT_SLEW | MUX_MODE1) /* uart2_rtsn.uart3_txd */ - >; - }; - mmc1_pins_default: mmc1_pins_default { pinctrl-single,pins = < DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */
@@ -236,154 +194,9 @@ DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */ >; }; - - cpsw_pins_default: cpsw_pins_default { - pinctrl-single,pins = < - /* Slave 1 */ - DRA7XX_CORE_IOPAD(0x3650, PIN_OUTPUT | MUX_MODE0) /* rgmii1_tclk */ - DRA7XX_CORE_IOPAD(0x3654, PIN_OUTPUT | MUX_MODE0) /* rgmii1_tctl */ - DRA7XX_CORE_IOPAD(0x3658, PIN_OUTPUT | MUX_MODE0) /* rgmii1_td3 */ - DRA7XX_CORE_IOPAD(0x365c, PIN_OUTPUT | MUX_MODE0) /* rgmii1_td2 */ - DRA7XX_CORE_IOPAD(0x3660, PIN_OUTPUT | MUX_MODE0) /* rgmii1_td1 */ - DRA7XX_CORE_IOPAD(0x3664, PIN_OUTPUT | MUX_MODE0) /* rgmii1_td0 */ - DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE0) /* rgmii1_rclk */ - DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE0) /* rgmii1_rctl */ - DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE0) /* rgmii1_rd3 */ - DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE0) /* rgmii1_rd2 */ - DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE0) /* rgmii1_rd1 */ - DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE0) /* rgmii1_rd0 */ - - /* Slave 2 */ - DRA7XX_CORE_IOPAD(0x3598, PIN_OUTPUT | MUX_MODE3) /* rgmii2_tclk */ - DRA7XX_CORE_IOPAD(0x359c, PIN_OUTPUT | MUX_MODE3) /* rgmii2_tctl */ - DRA7XX_CORE_IOPAD(0x35a0, PIN_OUTPUT | MUX_MODE3) /* rgmii2_td3 */ - DRA7XX_CORE_IOPAD(0x35a4, PIN_OUTPUT | MUX_MODE3) /* rgmii2_td2 */ - DRA7XX_CORE_IOPAD(0x35a8, PIN_OUTPUT | MUX_MODE3) /* rgmii2_td1 */ - DRA7XX_CORE_IOPAD(0x35ac, PIN_OUTPUT | MUX_MODE3) /* rgmii2_td0 */ - DRA7XX_CORE_IOPAD(0x35b0, PIN_INPUT | MUX_MODE3) /* rgmii2_rclk */ - DRA7XX_CORE_IOPAD(0x35b4, PIN_INPUT | MUX_MODE3) /* rgmii2_rctl */ - DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT | MUX_MODE3) /* rgmii2_rd3 */ - DRA7XX_CORE_IOPAD(0x35bc, PIN_INPUT | MUX_MODE3) /* rgmii2_rd2 */ - DRA7XX_CORE_IOPAD(0x35c0, PIN_INPUT | MUX_MODE3) /* rgmii2_rd1 */ - DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT | MUX_MODE3) /* rgmii2_rd0 */ - >; - - }; - - cpsw_pins_sleep: cpsw_pins_sleep { - pinctrl-single,pins = < - /* Slave 1 */ - DRA7XX_CORE_IOPAD(0x3650, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3654, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3658, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x365c, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3660, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3664, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE15) - - /* Slave 2 */ - DRA7XX_CORE_IOPAD(0x3598, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x359c, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35a0, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35a4, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35a8, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35ac, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35b0, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35b4, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35bc, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35c0, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT | MUX_MODE15) - >; - }; - - davinci_mdio_pins_default: davinci_mdio_pins_default { - pinctrl-single,pins = < - /* MDIO */ - DRA7XX_CORE_IOPAD(0x363c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */ - DRA7XX_CORE_IOPAD(0x3640, PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */ - >; - }; - - davinci_mdio_pins_sleep: davinci_mdio_pins_sleep { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x363c, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3640, PIN_INPUT | MUX_MODE15) - >; - }; - - tps659038_pins_default: tps659038_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3818, PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */ - >; - }; - - tmp102_pins_default: tmp102_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x37c8, PIN_INPUT_PULLUP | MUX_MODE14) /* spi2_d0.gpio7_16 */ - >; - }; - - mcp79410_pins_default: mcp79410_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3824, PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */ - >; - }; - - usb1_pins: pinmux_usb1_pins { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */ - >; - }; - - tpd12s015_pins: pinmux_tpd12s015_pins { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x37b0, PIN_OUTPUT | MUX_MODE14) /* gpio7_10 CT_CP_HPD */ - DRA7XX_CORE_IOPAD(0x37b8, PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */ - DRA7XX_CORE_IOPAD(0x3770, PIN_OUTPUT | MUX_MODE14) /* gpio6_28 LS_OE */ - >; - }; - - clkout2_pins_default: clkout2_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3694, PIN_OUTPUT_PULLDOWN | MUX_MODE9) /* xref_clk0.clkout2 */ - >; - }; - - clkout2_pins_sleep: clkout2_pins_sleep { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3694, PIN_INPUT | MUX_MODE15) /* xref_clk0.clkout2 */ - >; - }; - - mcasp3_pins_default: mcasp3_pins_default { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3724, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_aclkx.mcasp3_aclkx */ - DRA7XX_CORE_IOPAD(0x3728, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_fsx.mcasp3_fsx */ - DRA7XX_CORE_IOPAD(0x372c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr0.mcasp3_axr0 */ - DRA7XX_CORE_IOPAD(0x3730, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr1.mcasp3_axr1 */ - >; - }; - - mcasp3_pins_sleep: mcasp3_pins_sleep { - pinctrl-single,pins = < - DRA7XX_CORE_IOPAD(0x3724, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3728, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x372c, PIN_INPUT | MUX_MODE15) - DRA7XX_CORE_IOPAD(0x3730, PIN_INPUT | MUX_MODE15) - >; - }; }; - &i2c1 { status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins_default>; clock-frequency = <400000>; tps659038: tps659038 at 58 {
@@ -392,9 +205,6 @@ interrupt-parent = <&gpio1>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&tps659038_pins_default>; - #interrupt-cells = <2>; interrupt-controller;
@@ -556,8 +366,6 @@ tmp102: tmp102 at 48 { compatible = "ti,tmp102"; reg = <0x48>; - pinctrl-names = "default"; - pinctrl-0 = <&tmp102_pins_default>; interrupt-parent = <&gpio7>; interrupts = <16 IRQ_TYPE_LEVEL_LOW>; #thermal-sensor-cells = <1>;
@@ -567,9 +375,6 @@ #sound-dai-cells = <0>; compatible = "ti,tlv320aic3104"; reg = <0x18>; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&clkout2_pins_default>; - pinctrl-1 = <&clkout2_pins_sleep>; assigned-clocks = <&clkoutmux2_clk_mux>; assigned-clock-parents = <&sys_clk2_dclk_div>;
@@ -590,8 +395,6 @@ &i2c3 { status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&i2c3_pins_default>; clock-frequency = <400000>; mcp_rtc: rtc at 6f {
@@ -601,9 +404,6 @@ <&dra7_pmx_core 0x424>; interrupt-names = "irq", "wakeup"; - pinctrl-names = "default"; - pinctrl-0 = <&mcp79410_pins_default>; - vcc-supply = <&vdd_3v3>; wakeup-source; };
@@ -623,16 +423,10 @@ status = "okay"; interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <&dra7_pmx_core 0x3f8>; - - pinctrl-names = "default"; - pinctrl-0 = <&uart3_pins_default>; }; &mac { status = "okay"; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&cpsw_pins_default>; - pinctrl-1 = <&cpsw_pins_sleep>; dual_emac; };
@@ -648,12 +442,6 @@ dual_emac_res_vlan = <2>; }; -&davinci_mdio { - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&davinci_mdio_pins_default>; - pinctrl-1 = <&davinci_mdio_pins_sleep>; -}; - &mmc1 { status = "okay";
@@ -669,7 +457,7 @@ status = "okay"; pinctrl-names = "default"; - pinctrl-0 = <&mmc2_pins_default>; + pinctrl-0 = <&mmc1_pins_default>; vmmc-supply = <&vdd_3v3>; bus-width = <8>;
@@ -691,8 +479,6 @@ &usb1 { dr_mode = "host"; - pinctrl-names = "default"; - pinctrl-0 = <&usb1_pins>; }; &omap_dwc3_2 {
@@ -768,9 +554,6 @@ status = "ok"; vdda-supply = <&ldo4_reg>; - pinctrl-names = "default"; - pinctrl-0 = <&hdmi_pins>; - port { hdmi_out: endpoint { remote-endpoint = <&tpd12s015_in>;
@@ -784,9 +567,6 @@ &mcasp3 { #sound-dai-cells = <0>; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&mcasp3_pins_default>; - pinctrl-1 = <&mcasp3_pins_sleep>; assigned-clocks = <&mcasp3_ahclkx_mux>; assigned-clock-parents = <&sys_clkin2>; status = "okay";
Signature · 1 line
2.9.1.200.gb1ec08f
Re: [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Remove pinmux configurations
Quoted 8 lines · Nishanth Menon
pinmuxing for DRA7x/AM57x family of processors need to be done in IO isolation as part of initial bootloader executed from SRAM. This is done as part of iodelay configuration sequence and is required due to the limitations introduced by erratum ID: i869[1] and elaborated in the Technical Reference Manual[2] 18.4.6.1.7 Isolation Requirements.
Only peripheral that is permitted for dynamic pin mux configuration is MMC. This is to accommodate the requirements for varied speeds (which
Actually its MMC and DCAN. DCAN because of i893 ("DCAN Initialization Sequence"). But I can see you may have omitted reference to it since DCAN is not really used on the x15.
Thanks,
Sekhar
Re: [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Remove pinmux configurations
Quoted 7 lines · Sekhar Nori
Quoted 6 lines · Nishanth Menon
pinmuxing for DRA7x/AM57x family of processors need to be done in IO isolation as part of initial bootloader executed from SRAM. This is done as part of iodelay configuration sequence and is required due to the limitations introduced by erratum ID: i869[1] and elaborated in the Technical Reference Manual[2] 18.4.6.1.7 Isolation Requirements.
Quoted 6 lines
Quoted 2 lines
Only peripheral that is permitted for dynamic pin mux configuration is MMC. This is to accommodate the requirements for varied speeds (which
Actually its MMC and DCAN. DCAN because of i893 ("DCAN Initialization Sequence"). But I can see you may have omitted reference to it since DCAN is not really used on the x15.
True, I should add that for completeness. will do. thanks for catching the same.
Signature · 2 lines
Regards, Nishanth Menon
PATCH 2/2 ARM: dts: am57xx-beagle-x15: Add support for rev B1
In reply to Nishanth MenonLatest update to the BeagleBoard-X15 platform (revision B1)[1] updates for allowing UHS SD cards to function with the split of supply to SD card from a dedicated LDO.
As a result of this, AM57xx BeagleBoard-X15 now uses gpio2_30 instead of gpio6_28 for HDMI because HDMI_LS_OE should now be switched from GPIO6_28(Y9) to GPIO2_30 (AG8) to avoid a 1.8V GPIO toggling a 3.3V SoC input when the SD card is in UHS 1.8V mode.
NOTE: For UHS mode to function, we need full fledged IODelay support in kernel to be functional. IODelay support is yet to be added.
Further, It does not make much sense to spin off a new board compatible flag since there is no real functional benefit for the same.
Note: Even though production version is supposed to be B1, there is over ~200 boards of previous version (A2)[2] out there which continue to get supported with the existing dts file and the production board is now supported as revb1
[1] https://github.com/beagleboard/beagleboard-x15/blob/master/BEAGLEBOARD_X15_REV_B1.pdf
[2] http://marc.info/?l=linux-arm-kernel&m=147273929820708&w=2
---
NOTE: even though I have used -C -M option with git-format-patch, the diff for x15.dts might look a little weird. we could alternatively split the patch into two by creating a common dtsi and then introducing revb1 -> but, at least for the moment, I felt it to be an overkill.
Also, please note that even though revb1 is the production platform, there are sufficient quantities of x15 A2s (pre-prod) in the wild currently to leave existing dts in sync with A2 and introduce b1 as a seperate dts (instead of the other way around).
arch/arm/boot/dts/Makefile | 1 +
...eagle-x15.dts => am57xx-beagle-x15-common.dtsi} | 8 +-
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts | 24 +
arch/arm/boot/dts/am57xx-beagle-x15.dts | 592 +--------------------
4 files changed, 33 insertions(+), 592 deletions(-)
copy arch/arm/boot/dts/{am57xx-beagle-x15.dts => am57xx-beagle-x15-common.dtsi} (97%)
create mode 100644 arch/arm/boot/dts/am57xx-beagle-x15-revb1.dtsarch/arm/boot/dts/Makefile +1 -0
@@ -570,6 +570,7 @@ dtb-$(CONFIG_SOC_OMAP5) += \ omap5-uevm.dtb dtb-$(CONFIG_SOC_DRA7XX) += \ am57xx-beagle-x15.dtb \ + am57xx-beagle-x15-revb1.dtb \ am57xx-cl-som-am57x.dtb \ am57xx-sbc-am57x.dtb \ am572x-idk.dtb \
arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi renamed from arch/arm/boot/dts/am57xx-beagle-x15.dts +1 -7
@@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ + * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as
@@ -13,7 +13,6 @@ #include <dt-bindings/interrupt-controller/irq.h> / { - model = "TI AM5728 BeagleBoard-X15"; compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; aliases {
@@ -114,10 +113,6 @@ tpd12s015: encoder { compatible = "ti,tpd12s015"; - gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ - <&gpio6 28 GPIO_ACTIVE_HIGH>, /* gpio6_28, LS OE */ - <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */ - ports { #address-cells = <1>; #size-cells = <0>;
@@ -448,7 +443,6 @@ pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins_default>; - vmmc-supply = <&ldo1_reg>; bus-width = <4>; cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */ };
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +24 -0
@@ -0,0 +1,24 @@ +/* + * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "am57xx-beagle-x15-common.dtsi" + +/ { + model = "TI AM5728 BeagleBoard-X15 rev B1"; +}; + +&tpd12s015 { + gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ + <&gpio2 30 GPIO_ACTIVE_HIGH>, /* gpio6_30, LS OE */ + <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */ +}; + +&mmc1 { + vmmc-supply = <&vdd_3v3>; + vmmc-aux-supply = <&ldo1_reg>; +};
arch/arm/boot/dts/am57xx-beagle-x15.dts +7 -585
609 lines not on this page · raw message
Signature · 1 line
2.9.1.200.gb1ec08f
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Quoted 13 lines · Nishanth Menon
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +7
-0@@ -0,0 +1,24 @@ +/* + * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts line 17
Quoted 10 lines
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +10
-0+ +#include "am57xx-beagle-x15-common.dtsi" + +/ { + model = "TI AM5728 BeagleBoard-X15 rev B1"; +}; + +&tpd12s015 { + gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ + <&gpio2 30 GPIO_ACTIVE_HIGH>, /* gpio6_30, LS OE */
Wrong gpio in the comment.
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160902/9a7317e1/attachment.sig>
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Quoted 19 lines · Tomi Valkeinen
Quoted 17 lines · Nishanth Menon
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +11
-0@@ -0,0 +1,24 @@ +/* + * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "am57xx-beagle-x15-common.dtsi" + +/ {
Quoted 8 lines
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts line 17
Quoted 6 lines
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +6
-0+ model = "TI AM5728 BeagleBoard-X15 rev B1"; +}; + +&tpd12s015 { + gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ + <&gpio2 30 GPIO_ACTIVE_HIGH>, /* gpio6_30, LS OE */Wrong gpio in the comment.
Uggh.. thanks for catching that.. should have been gpio2_30
will repost a v2 if there are no further comments at the end of the day..
Signature · 2 lines
Regards, Nishanth Menon
Tomi Valkeinen
Tested-byRe: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Quoted 31 lines · Nishanth Menon
Quoted 21 lines · Tomi Valkeinen
Quoted 19 lines · Nishanth Menon
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +2
-0@@ -0,0 +1,24 @@ +/* + * Copyright (C) 2014-2016 Texas Instruments Incorporated -http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +4
-0+ +#include "am57xx-beagle-x15-common.dtsi" + +/ {Quoted 8 lines
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts line 17
Quoted 6 lines
arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts new file +6
-0+ model = "TI AM5728 BeagleBoard-X15 rev B1"; +}; + +&tpd12s015 { + gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ + <&gpio2 30 GPIO_ACTIVE_HIGH>, /* gpio6_30, LS OE */Wrong gpio in the comment.
Quoted 3 lines
Uggh.. thanks for catching that.. should have been
gpio2_30will repost a v2 if there are no further comments at the end of the day..
Booting and HDMI works fine:
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160902/0865271d/attachment.sig>
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
In reply to Nishanth Menon+ Robert Nelson
Quoted 38 lines · Nishanth Menon
Latest update to the BeagleBoard-X15 platform (revision B1)[1] updates for allowing UHS SD cards to function with the split of supply to SD card from a dedicated LDO.
As a result of this, AM57xx BeagleBoard-X15 now uses
gpio2_30instead ofgpio6_28for HDMI becauseHDMI_LS_OEshould now be switched fromGPIO6_28(Y9)toGPIO2_30(AG8) to avoid a 1.8V GPIO toggling a 3.3V SoC input when the SD card is in UHS 1.8V mode.NOTE: For UHS mode to function, we need full fledged IODelay support in kernel to be functional. IODelay support is yet to be added.
Further, It does not make much sense to spin off a new board compatible flag since there is no real functional benefit for the same.
Note: Even though production version is supposed to be B1, there is over ~200 boards of previous version (A2)[2] out there which continue to get supported with the existing dts file and the production board is now supported as revb1
[1] https://github.com/beagleboard/beagleboard-x15/blob/master/BEAGLEBOARD_X15_REV_B1.pdf
[2] http://marc.info/?l=linux-arm-kernel&m=147273929820708&w=2Signed-off-by Nishanth Menon <[email protected]>---
NOTE: even though I have used -C -M option with git-format-patch, the diff for
x15.dtsmight look a little weird. we could alternatively split the patch into two by creating a common dtsi and then introducing revb1 -> but, at least for the moment, I felt it to be an overkill.Also, please note that even though revb1 is the production platform, there are sufficient quantities of x15 A2s (pre-prod) in the wild currently to leave existing dts in sync with A2 and introduce b1 as a seperate dts (instead of the other way around).
Quoted 4 lines
arch/arm/boot/dts/Makefile | 1 + ...eagle-x15.dts => am57xx-beagle-x15-common.dtsi} | 8 +- arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts | 24 + arch/arm/boot/dts/am57xx-beagle-x15.dts | 592 +--------------------
I understand that there are existing users of A2 boards and so we simply cannot remove support for those boards (at least yet).
But given the small numbers of A2 boards, its also quite likely that we will not have enough test coverage for those boards. Especially as years pass and there are fewer and fewer people with access to working A2 boards.
Given that, aren't we increasing the chance of A2 breakage by creating a common file - this essentially necessitates that any change to am57xx-beagle-x15-common.dtsi is also tested on A2.
Instead, it seems to be easier for maintenance and safer overall if the older version has a file of its own which can be kept alone.
Also, how about renaming the existing dts to am57xx-beagle-x15-reva2.dts and let the production version be called am57xx-beagle-x15.dts? Surely this will cause some inconvenience to A2 users. But there are few users of those and it might be more intuitive for the majority users if the file for production version is without a specific version string attached. Just a thought though, not sure about it myself either.
Regards,
Sekhar
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Quoted 6 lines · Sekhar Nori
Also, how about renaming the existing dts to
am57xx-beagle-x15-reva2.dtsand let the production version be calledam57xx-beagle-x15.dts? Surely this will cause some inconvenience to A2 users. But there are few users of those and it might be more intuitive for the majority users if the file for production version is without a specific version string attached. Just a thought though, not sure about it myself either.
I was about to suggest the same, so yes, this sounds good to me.
Tomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160902/4a4c24ca/attachment.sig>
Robert Nelson
NAKRe: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
In reply to Sekhar NoriQuoted 10 lines · Sekhar Nori
+ Robert Nelson
On Friday 02 September 2016 02:36 PM, Nishanth Menon wrote:
I understand that there are existing users of A2 boards and so we simply cannot remove support for those boards (at least yet).
But given the small numbers of A2 boards, its also quite likely that we will not have enough test coverage for those boards. Especially as years pass and there are fewer and fewer people with access to working A2 boards.
I have a A1, A2 and a B1, that i use for testing for beagleboard.org... The A1 use to be ssh-accessible for developers, but since moving to my new house, I haven't "yet" got that one setup for developers. Right now i'm using the A2 & B1 for development of our default images.
Jason Kridner also has a number of boards
Quoted 7 lines
Given that, aren't we increasing the chance of A2 breakage by creating a common file - this essentially necessitates that any change to
am57xx-beagle-x15-common.dtsiis also tested on A2.Instead, it seems to be easier for maintenance and safer overall if the older version has a file of its own which can be kept alone.
Quoted 6 lines
Also, how about renaming the existing dts to
am57xx-beagle-x15-reva2.dtsand let the production version be calledam57xx-beagle-x15.dts? Surely this will cause some inconvenience to A2 users. But there are few users of those and it might be more intuitive for the majority users if the file for production version is without a specific version string attached. Just a thought though, not sure about it myself either.
Nak, let's NOT do that to A2 users.
The am57xx-beagle-x15.dts went mainline in v3.19, u-boot installed on devices would need to be updated and this would make bisecting a pain. ;)
Side note:
A1/A2 boards (most i believe) did not have the eeprom programmed with an ID.
Where as B1's have a default eeprom for identification:
https://github.com/RobertCNelson/boot-scripts/blob/master/device/x15/X15_B1-eeprom.dump
Regards,
Signature · 2 lines
Robert Nelson https://rcn-ee.com/
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
+ x15 list ( see https://patchwork.kernel.org/patch/9310617/)
Quoted 12 lines · Robert Nelson
Quoted 10 lines · Sekhar Nori
+ Robert Nelson
On Friday 02 September 2016 02:36 PM, Nishanth Menon wrote:
I understand that there are existing users of A2 boards and so we simply cannot remove support for those boards (at least yet).
But given the small numbers of A2 boards, its also quite likely that we will not have enough test coverage for those boards. Especially as years pass and there are fewer and fewer people with access to working A2 boards.
Quoted 6 lines
I have a A1, A2 and a B1, that i use for testing for beagleboard.org... The A1 use to be ssh-accessible for developers, but since moving to my new house, I haven't "yet" got that one setup for developers. Right now i'm using the A2 & B1 for development of our default images.
That said, A1 was never intended to be supported longer term - there were key uart changes and tons of fixes done on top of A1 - and I think you might be one of the last few people to use it. That said, there were so many "mods" of A1, that we stopped even keeping track of it and upstream kernel or bootloader as it exists today wont even boot up on the A1. nutshell: lets keep A1 away from the discussion, unless we have a strong case for the same.
Quoted 16 lines
Jason Kridner also has a number of boards
Quoted 7 lines
Given that, aren't we increasing the chance of A2 breakage by creating a common file - this essentially necessitates that any change to
am57xx-beagle-x15-common.dtsiis also tested on A2.Instead, it seems to be easier for maintenance and safer overall if the older version has a file of its own which can be kept alone.
Quoted 6 lines
Also, how about renaming the existing dts to
am57xx-beagle-x15-reva2.dtsand let the production version be calledam57xx-beagle-x15.dts? Surely this will cause some inconvenience to A2 users. But there are few users of those and it might be more intuitive for the majority users if the file for production version is without a specific version string attached. Just a thought though, not sure about it myself either.
Quoted 5 lines
Nak, let's NOT do that to A2 users.
The
am57xx-beagle-x15.dtswent mainline in v3.19, u-boot installed on devices would need to be updated and this would make bisecting a pain. ;)
Yep, that was my rationale of keeping x15.dts as is for A2 users.
I am going to assume that all agree to leaving x15.dts = A2 (I should really update the comments to indicate that in the patch for a future user), and x15-revb1 to be the new one.
Quoted 4 lines
Side note:
A1/A2 boards (most i believe) did not have the eeprom programmed with an ID.
My understanding was, most A2s should have the eeproms programmed esp the ones that are available to purchase - but then, even if NOT, the default u-boot behavior is to assume "when eeprom not programmed, think it is A2".. so we are pretty much covered both ways.
Quoted 3 lines
Where as B1's have a default eeprom for identification:
https://github.com/RobertCNelson/boot-scripts/blob/master/device/x15/X15_B1-eeprom.dump
Cool.. at least I now know where to find them :D
Signature · 2 lines
Regards, Nishanth Menon
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
In reply to Robert NelsonQuoted 11 lines · Robert Nelson
Quoted 9 lines · Sekhar Nori
Instead, it seems to be easier for maintenance and safer overall if the older version has a file of its own which can be kept alone.
Also, how about renaming the existing dts to
am57xx-beagle-x15-reva2.dtsand let the production version be calledam57xx-beagle-x15.dts? Surely this will cause some inconvenience to A2 users. But there are few users of those and it might be more intuitive for the majority users if the file for production version is without a specific version string attached. Just a thought though, not sure about it myself either.
Quoted 5 lines
Nak, let's NOT do that to A2 users.
The
am57xx-beagle-x15.dtswent mainline in v3.19, u-boot installed on devices would need to be updated and this would make bisecting a pain. ;)
I agree, let's keep things working without forcing people to update their u-boot enviroment for the dtb name.
Regards,
Tony
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
In reply to Robert NelsonQuoted 12 lines · Robert Nelson
Quoted 10 lines · Sekhar Nori
+ Robert Nelson
On Friday 02 September 2016 02:36 PM, Nishanth Menon wrote:
I understand that there are existing users of A2 boards and so we simply cannot remove support for those boards (at least yet).
But given the small numbers of A2 boards, its also quite likely that we will not have enough test coverage for those boards. Especially as years pass and there are fewer and fewer people with access to working A2 boards.
Quoted 7 lines
I have a A1, A2 and a B1, that i use for testing for beagleboard.org... The A1 use to be ssh-accessible for developers, but since moving to my new house, I haven't "yet" got that one setup for developers. Right now i'm using the A2 & B1 for development of our default images.
Jason Kridner also has a number of boards
Availability of hardware _somewhere_ is one aspect. I am still worried about the big difference in scale. A2 are ~200 in number where as the production version should be in thousands.
Reuse is meant to reduce maintenance cost. In this case though, it seems like it will do exactly the opposite - making anyone with a production version rely on few with a non-production version to make any updates at all.
IMHO, a common .dtsi made sense if both the boards went to production and are largely available.
device-tree sources continue to get updates even though hardware itself is pretty much frozen. am335x-bone-common.dtsi created 3 years back is receiving updates still - as recently as 3 months back. So, I do expect that A2 will need to get tested in many years to come. Not sure if it really worth that much effort.
Thanks,
Sekhar
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Hi,
Quoted 25 lines · Sekhar Nori
Quoted 12 lines · Robert Nelson
Quoted 10 lines · Sekhar Nori
+ Robert Nelson
On Friday 02 September 2016 02:36 PM, Nishanth Menon wrote:
I understand that there are existing users of A2 boards and so we simply cannot remove support for those boards (at least yet).
But given the small numbers of A2 boards, its also quite likely that we will not have enough test coverage for those boards. Especially as years pass and there are fewer and fewer people with access to working A2 boards.
Quoted 7 lines
I have a A1, A2 and a B1, that i use for testing for beagleboard.org... The A1 use to be ssh-accessible for developers, but since moving to my new house, I haven't "yet" got that one setup for developers. Right now i'm using the A2 & B1 for development of our default images.
Jason Kridner also has a number of boards
Availability of hardware _somewhere_ is one aspect. I am still worried about the big difference in scale. A2 are ~200 in number where as the production version should be in thousands.
Quoted 7 lines
Reuse is meant to reduce maintenance cost. In this case though, it seems like it will do exactly the opposite - making anyone with a production version rely on few with a non-production version to make any updates at all.
IMHO, a common .dtsi made sense if both the boards went to production and are largely available.
Shared dtsi files are essential for us from maintenance point of view as maintaining non-shared dtsi files is way more work and churn.
Quoted 5 lines
device-tree sources continue to get updates even though hardware itself is pretty much frozen.
am335x-bone-common.dtsicreated 3 years back is receiving updates still - as recently as 3 months back. So, I do expect that A2 will need to get tested in many years to come. Not sure if it really worth that much effort.
And the am335x shared dtsi files are not enough. It's silly how many times we're duplicating the same things over and over again for USB setup for various am335x boards for example.
So my take is that we need more shared dtsi files, not less.
Regards,
Tony
Re: [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Add support for rev B1
Quoted 5 lines · Tony Lindgren
And the am335x shared dtsi files are not enough. It's silly how many times we're duplicating the same things over and over again for USB setup for various am335x boards for example.
So my take is that we need more shared dtsi files, not less.
Alright, thanks for weighing in, Tony.
Regards,
Sekhar
Quoted 10 lines · Nishanth Menon
Hi,
Please find the series to cleanup and support Production version of Beagleboard-X15 rev B1 support.
More details can be found at https://github.com/beagleboard/beagleboard-x15
Bootlog on B1: http://pastebin.ubuntu.com/23123408/ (sd and hdmi hpd tested)
Forgot to add:
this series is based on:
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.9/dt
Also, the upstream u-boot support can only be added once we know what the dt name should be - basically pending dts acceptance..
Quoted 12 lines
Nishanth Menon (2):
ARM: dts: am57xx-beagle-x15: Remove pinmux configurations
ARM: dts: am57xx-beagle-x15: Add support for rev B1arch/arm/boot/dts/Makefile | 1 + ...eagle-x15.dts => am57xx-beagle-x15-common.dtsi} | 230 +----- arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts | 24 + arch/arm/boot/dts/am57xx-beagle-x15.dts | 812 +-------------------- 4 files changed, 34 insertions(+), 1033 deletions(-) copy arch/arm/boot/dts/{am57xx-beagle-x15.dts => am57xx-beagle-x15-common.dtsi} (60%) create mode 100644 arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts
Signature · 2 lines
Regards, Nishanth Menon