[PATCH V2 06/14] ARM: dts: am437x: cm-t43: add dual emac support
CM-T43 comes with 2 ethernet ports connected to the cpsw subsystem, which has 2 modes of operation: switch mode and dual emac mode. Add the relevant muxing and set it up to work in dual emac mode by default. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Acked-by: Mugunthan V N <mugunthan...@ti.com> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 66 + 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index efabb31..fd97a89 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -73,6 +73,47 @@ AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) >; }; + + cpsw_default: cpsw_default { + pinctrl-single,pins = < + /* Slave 1 */ + AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */ + AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */ + AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */ + AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */ + AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */ + AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */ + AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */ + AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */ + AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */ + AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */ + AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */ + AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */ + AM4372_IOPAD(0xa74, MUX_MODE3) + /* Slave 2 */ + AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.txen */ + AM4372_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rxctl */ + AM4372_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.txd3 */ + AM4372_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.txd2 */ + AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.txd1 */ + AM4372_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.txd0 */ + AM4372_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.tclk */ + AM4372_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rclk */ + AM4372_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rxd3 */ + AM4372_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rxd2 */ + AM4372_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rxd1 */ + AM4372_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rxd0 */ + AM4372_IOPAD(0xa38, MUX_MODE7) + >; + }; + + davinci_mdio_default: davinci_mdio_default { + pinctrl-single,pins = < + /* MDIO */ + AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ + AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ + >; + }; }; { @@ -261,6 +302,31 @@ }; }; + { + pinctrl-names = "default"; + pinctrl-0 = <_default>; + dual_emac = <1>; + status = "okay"; +}; + +_mdio { + pinctrl-names = "default"; + pinctrl-0 = <_mdio_default>; + status = "okay"; +}; + +_emac0 { + phy_id = <_mdio>, <0>; + phy-mode = "rgmii-txid"; + dual_emac_res_vlan = <1>; +}; + +_emac1 { + phy_id = <_mdio>, <1>; + phy-mode = "rgmii-txid"
[PATCH V2 03/14] ARM: dts: am437x: cm-t43: add PMIC support.
Add PMIC support for CompuLab cm-t43 module. For now we keep all regulators enabled until this could be refined with power management support. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index ce33b41..27b748a 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -52,6 +52,69 @@ pinctrl-0 = <_pins>; clock-frequency = <10>; + tps65218: tps65218@24 { + compatible = "ti,tps65218"; + reg = <0x24>; + interrupts = ; /* NMIn */ + interrupt-parent = <>; + interrupt-controller; + #interrupt-cells = <2>; + + dcdc1: regulator-dcdc1 { + compatible = "ti,tps65218-dcdc1"; + regulator-name = "vdd_core"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <1144000>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc2: regulator-dcdc2 { + compatible = "ti,tps65218-dcdc2"; + regulator-name = "vdd_mpu"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <1378000>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc3: regulator-dcdc3 { + compatible = "ti,tps65218-dcdc3"; + regulator-name = "vdcdc3"; + regulator-suspend-enable; + regulator-min-microvolt = <150>; + regulator-max-microvolt = <150>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc5: regulator-dcdc5 { + compatible = "ti,tps65218-dcdc5"; + regulator-name = "v1_0bat"; + regulator-min-microvolt = <100>; + regulator-max-microvolt = <100>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc6: regulator-dcdc6 { + compatible = "ti,tps65218-dcdc6"; + regulator-name = "v1_8bat"; + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: regulator-ldo1 { + compatible = "ti,tps65218-ldo1"; + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-boot-on; + regulator-always-on; + }; + }; + eeprom_module: at24@50 { compatible = "atmel,24c02"; reg = <0x50>; @@ -88,6 +151,7 @@ }; { + cpu0-supply = <>; operating-points = <100 133>, <80 126>, <72 120>, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 00/14] Add support for sbc-t43
This series adds support for CompuLab sbc-t43 single baseboard computer. sbc-t43 is composed of cm-t43 (the TI am437x based core module), and sb-som baseboard. The sbc-t43 features include: CPU:Texas Instruments Sitara AM4379 ARM Cortex-A9, 1GHz, or Texas Instruments Sitara AM4376 ARM Cortex-A9, 800MHz RAM:128MB - 1GB, DDR3-800, 32-bit data bua Storage:NAND flash, 128MB - 512MB, or eMMC flash, 4GB - 32GB SPI-flash 2MB Two 1000/100/10Mbps Ethernet ports WiFi/Bluetooth/NFC Audio codec SD-Card slot, up to 3 USB ports DVI/LCD connectors CM-T43 website: http://www.compulab.co.il/products/computer-on-modules/cm-t43/ SBC-T43 website: http://www.compulab.co.il/products/sbcs/sbc-t43/ This series is based over v4.4-rc3-20-g204187f and depends on the following patch: https://lkml.org/lkml/2015/11/12/955 [pinctrl: Move am4372 and dra7 macros to the the SoC header files] Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> Changes in V2: - Removed unnecessary line breaks in end of file and elsewhere - Added spaces between strings in "compatible" properties - Renamed startek,startek-kd050c to startek,startek-kd050c.txt - s/QS-600/CM-QS600 in compulab-boards.txt - Changed subject lines to start with "ARM: dts:" Nikita Kiryanov (14): ARM: dts: am437x: cm-t43: add basic support for sbc-t43 ARM: dts: am437x: cm-t43: add support for module eeprom ARM: dts: am437x: cm-t43: add PMIC support. ARM: dts: am437x: cm-t43: add spi-flash support ARM: dts: am437x: cm-t43: add NAND support ARM: dts: am437x: cm-t43: add dual emac support ARM: dts: am437x: cm-t43: add USB support ARM: dts: am437x: cm-t43: add eMMC support ARM: dts: am437x: cm-t43: add touchscreen support ARM: dts: am437x: cm-t43: add pca9555 support ARM: dts: am437x: cm-t43: add support for baseboard eeprom ARM: dts: sb-som: introduce SB-SOM baseboard ARM: dts: am437x: cm-t43: add support for mmc1 ARM: dts: am437x: cm-t43: add lcd support .../devicetree/bindings/arm/compulab-boards.txt| 5 + .../devicetree/bindings/arm/omap/omap.txt | 6 + .../display/panel/startek,startek-kd050c.txt | 4 + .../devicetree/bindings/vendor-prefixes.txt| 1 + arch/arm/boot/dts/Makefile | 6 +- arch/arm/boot/dts/am437x-cm-t43.dts| 422 + arch/arm/boot/dts/am437x-sbc-t43.dts | 180 + arch/arm/boot/dts/compulab-sb-som.dtsi | 42 ++ 8 files changed, 664 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/compulab-boards.txt create mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt create mode 100644 arch/arm/boot/dts/am437x-cm-t43.dts create mode 100644 arch/arm/boot/dts/am437x-sbc-t43.dts create mode 100644 arch/arm/boot/dts/compulab-sb-som.dtsi -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 07/14] ARM: dts: am437x: cm-t43: add USB support
Add USB support for CompuLab sbc-t43 single board computer, defaulting to host mode. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 30 ++ arch/arm/boot/dts/am437x-sbc-t43.dts | 22 ++ 2 files changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index fd97a89..a2893c6 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -327,6 +327,36 @@ dual_emac_res_vlan = <2>; }; +_1 { + status = "okay"; +}; + +_phy1 { + status = "okay"; +}; + + { + dr_mode = "host"; + status = "okay"; +}; + +_2 { + status = "okay"; +}; + +_phy2 { + status = "okay"; +}; + + { + dr_mode = "host"; + status = "okay"; + interrupts = , +, +; + interrupt-names = "peripheral", "host", "otg"; +}; + { status = "okay"; }; diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 6ca22b7..3fc824a 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -36,6 +36,18 @@ AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_rtsn.i2c2_scl */ >; }; + + usb2_phy1_default: usb2_phy1_default { + pinctrl-single,pins = < + AM4372_IOPAD(0xac0, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; + + usb2_phy2_default: usb2_phy2_default { + pinctrl-single,pins = < + AM4372_IOPAD(0xac4, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; }; { @@ -54,3 +66,13 @@ pinctrl-names = "default"; pinctrl-0 = <_pins_default>; }; + +_1 { + pinctrl-names = "default"; + pinctrl-0 = <_phy1_default>; +}; + +_2 { + pinctrl-names = "default"; + pinctrl-0 = <_phy2_default>; +}; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 10/14] ARM: dts: am437x: cm-t43: add pca9555 support
SB-SOM comes with a PCA9555 GPIO extender. On SBC-T43 this resides on the i2c1 bus. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-sbc-t43.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 3fc824a..c7a1414 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -54,6 +54,13 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <_pins>; + + pca9555: pca9555@20 { + compatible = "nxp,pca9555"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 04/14] ARM: dts: am437x: cm-t43: add spi-flash support
CM-T43 has an on-board 2MB SPI-flash which stores U-Boot and the U-Boot environment. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - Removed unnecessary line break after pinmux_spi0_pins section. arch/arm/boot/dts/am437x-cm-t43.dts | 40 + 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 27b748a..27e5948 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -44,6 +44,15 @@ AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ >; }; + + spi0_pins: pinmux_spi0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ + AM4372_IOPAD(0x954, PIN_INPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ + AM4372_IOPAD(0x958, PIN_OUTPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ + AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ + >; + }; }; { @@ -146,6 +155,37 @@ status = "okay"; }; + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + dmas = < 16 +17>; + dma-names = "tx0", "rx0"; + + flash: w25q64cvzpig@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <2000>; + partition@0 { + label = "uboot"; + reg = <0x0 0xc>; + }; + + partition@c { + label = "uboot environment"; + reg = <0xc 0x4>; + }; + + partition@10 { + label = "reserved"; + reg = <0x10 0x10>; + }; + }; +}; + { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 12/14] ARM: dts: sb-som: introduce SB-SOM baseboard
CompuLab SB-SOM baseboard is a carrier board for multiple arm-based SoMs. It currently supports (with minor adjustments to assembly) CM-T43, CM-T54, and CM-QS600 modules. It is a building block in the SBC-T43 single board computer, which consists of cm-t43 on top of sb-som-t43. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - Renamed file startek,startek-kd050c to startek,startek-kd050c.txt. - s/QS-600/CM-QS600 in file compulab-boards.txt .../devicetree/bindings/arm/compulab-boards.txt| 5 +++ .../display/panel/startek,startek-kd050c.txt | 4 +++ .../devicetree/bindings/vendor-prefixes.txt| 1 + arch/arm/boot/dts/compulab-sb-som.dtsi | 42 ++ 4 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/compulab-boards.txt create mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt create mode 100644 arch/arm/boot/dts/compulab-sb-som.dtsi diff --git a/Documentation/devicetree/bindings/arm/compulab-boards.txt b/Documentation/devicetree/bindings/arm/compulab-boards.txt new file mode 100644 index 000..71172d5 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/compulab-boards.txt @@ -0,0 +1,5 @@ +CompuLab SB-SOM is a multi-module baseboard capable of carrying CM-T43, CM-T54, +and CM-QS600 modules with minor modifications to the SB-SOM assembly. + +Required root node properties: +- compatible = should be "compulab,sb-som" diff --git a/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt new file mode 100644 index 000..70cd8d1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt @@ -0,0 +1,4 @@ +Startek Electronic Technology Co. KD050C 5.0" WVGA TFT LCD panel + +Required properties: +- compatible: should be "startek,startek-kd050c" diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 55df1d4..409b134 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -218,6 +218,7 @@ sonySony Corporation spansion Spansion Inc. sprd Spreadtrum Communications Inc. st STMicroelectronics +startekStartek steST-Ericsson stericsson ST-Ericsson synology Synology, Inc. diff --git a/arch/arm/boot/dts/compulab-sb-som.dtsi b/arch/arm/boot/dts/compulab-sb-som.dtsi new file mode 100644 index 000..402a143 --- /dev/null +++ b/arch/arm/boot/dts/compulab-sb-som.dtsi @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/ + * + * 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. + */ + +/ { + model = "CompuLab SB-SOM"; + compatible = "compulab,sb-som"; + + vsb_3v3: fixedregulator-v3_3 { + compatible = "regulator-fixed"; + regulator-name = "vsb_3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-always-on; + enable-active-high; + }; + + lcd0: display { + compatible = "startek,startek-kd050c", "panel-dpi"; + label = "lcd"; + + panel-timing { + clock-frequency = <3300>; + hactive = <800>; + vactive = <480>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <43>; + vback-porch = <29>; + vfront-porch = <13>; + vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; +}; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 01/14] ARM: dts: am437x: cm-t43: add basic support for sbc-t43
Add basic support for SBC-T43: a CM-T43 based single board computer. CM-T43 is an AM437x based System-on-Module designed to serve as a building block in embedded applications. SBC-T43 is composed of CM-T43 module on top of the SB-SOM-T43 baseboard. Basic support includes UART, GPIO, and I2C. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Acked-by: Rob Herring <r...@kernel.org> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - Added spaces between strings in "compatible" properties - Removed extra linebreak in end of am437x-sbc-t43.dts file .../devicetree/bindings/arm/omap/omap.txt | 6 ++ arch/arm/boot/dts/Makefile | 6 +- arch/arm/boot/dts/am437x-cm-t43.dts| 90 ++ arch/arm/boot/dts/am437x-sbc-t43.dts | 56 ++ 4 files changed, 156 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/am437x-cm-t43.dts create mode 100644 arch/arm/boot/dts/am437x-sbc-t43.dts diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt index 9f4e513..04161f5 100644 --- a/Documentation/devicetree/bindings/arm/omap/omap.txt +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt @@ -141,6 +141,12 @@ Boards: - OMAP5 EVM : Evaluation Module compatible = "ti,omap5-evm", "ti,omap5" +- AM437x CM-T43 + compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" + +- AM437x SBC-T43 + compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" + - AM43x EPOS EVM compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43" diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 30bbc37..dc3b9af 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -478,9 +478,11 @@ dtb-$(CONFIG_ARCH_OMAP4) += \ omap4-var-stk-om44.dtb dtb-$(CONFIG_SOC_AM43XX) += \ am43x-epos-evm.dtb \ - am437x-sk-evm.dtb \ + am437x-cm-t43.dtb \ + am437x-gp-evm.dtb \ am437x-idk-evm.dtb \ - am437x-gp-evm.dtb + am437x-sbc-t43.dtb \ + am437x-sk-evm.dtb dtb-$(CONFIG_SOC_OMAP5) += \ omap5-cm-t54.dtb \ omap5-igep0050.dtb \ diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts new file mode 100644 index 000..a131b97 --- /dev/null +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/ + * + * 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. + */ + +/dts-v1/; + +#include +#include +#include +#include "am4372.dtsi" + +/ { + model = "CompuLab CM-T43"; + compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"; + + leds { + compatible = "gpio-leds"; + + ledb { + label = "cm-t43:green"; + gpios = < 24 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; +}; + +_pinmux { + pinctrl-names = "default"; + pinctrl-0 = <_t43_led_pins>; + + cm_t43_led_pins: cm_t43_led_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0xa78, MUX_MODE7) + >; + }; + + i2c0_pins: i2c0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ + AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ + >; + }; +}; + + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + clock-frequency = <10>; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + operating-points = <100 133>, + <80 126>, +
[PATCH V2 14/14] ARM: dts: am437x: cm-t43: add lcd support
Add the necessary dss configuration to drive the startek lcd on CompuLab sbc-t43 single board computer. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-sbc-t43.dts | 65 1 file changed, 65 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 6b51151..5f750c0 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -12,6 +12,10 @@ / { model = "CompuLab CM-T43 on SB-SOM-T43"; compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"; + + aliases { + display0 = + }; }; _pinmux { @@ -28,6 +32,41 @@ >; }; + dss_pinctrl_default: dss_pinctrl_default { + pinctrl-single,pins = < + AM4372_IOPAD(0x9b0, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam0 hd -> DSS DATA 23 */ + AM4372_IOPAD(0x9b4, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9b8, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9bc, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c0, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c4, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c8, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam1 data 9 -> DSS DATA 16 */ + + AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */ + AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */ + AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */ + AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */ + AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */ + AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */ + AM4372_IOPAD(0xa20, PIN_OUTPUT_PULLUP | MUX_MODE7) + >; + }; + uart0_pins_default: uart0_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) @@ -99,6 +138,20 @@ wp-gpios = < 7 GPIO_ACTIVE_HIGH>; }; + { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <_pinctrl_default>; + + port { + dpi_lcd_out: endpoint@0 { + remote-endpoint = <_in>; + data-lines = <24>; + }; + }; +}; + { pinctrl-names = "default"; pinctrl-0 = <_pins_default>; @@ -113,3 +166,15 @@ pinctrl-names = "default"; pinctrl-0 = <_phy2_default>; }; + + { + enable-gpios = < 14 GPIO_ACTIVE_HIGH +28 GPIO_ACTIVE_HIGH>; + + port { + lcd_in: endpoint { + remote-endpoint = <_lcd_out>; + data-lines = <24>; + }; + }; +}; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 05/14] ARM: dts: am437x: cm-t43: add NAND support
One of the CompuLab cm-t43 configurations comes with on-board NAND flash as primary storage. It is partitioned into kernel, dtb, and rootfs partitions. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 79 + 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 27e5948..efabb31 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -53,6 +53,81 @@ AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ >; }; + + nand_flash_x8: nand_flash_x8 { + pinctrl-single,pins = < + AM4372_IOPAD(0x800, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x804, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x808, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x80c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x810, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x814, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x818, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x81c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x898, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x894, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x890, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + >; + }; +}; + + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_flash_x8>; + ranges = <0 0 0x0800 0x100>; + nand@0,0 { + reg = <0 0 0>; + ti,nand-ecc-opt = "bch8"; + ti,elm-id = <>; + + nand-bus-width = <8>; + gpmc,device-width = <1>; + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <44>; + gpmc,cs-wr-off-ns = <44>; + gpmc,adv-on-ns = <6>; + gpmc,adv-rd-off-ns = <34>; + gpmc,adv-wr-off-ns = <44>; + gpmc,we-on-ns = <0>; + gpmc,we-off-ns = <40>; + gpmc,oe-on-ns = <0>; + gpmc,oe-off-ns = <54>; + gpmc,access-ns = <64>; + gpmc,rd-cycle-ns = <82>; + gpmc,wr-cycle-ns = <82>; + gpmc,wait-on-read = "true"; + gpmc,wait-on-write = "true"; + gpmc,bus-turnaround-ns = <0>; + gpmc,cycle2cycle-delay-ns = <0>; + gpmc,clk-activation-ns = <0>; + gpmc,wait-monitoring-ns = <0>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; + + gpmc,wait-pin = <0>; + + #address-cells = <1>; + #size-cells = <1>; + /* MTD partition table */ + partition@0 { + label = "kernel"; + reg = <0x0 0x0098>; + }; + partition@98 { + label = "dtb"; + reg = <0x0098 0x0008>; + }; + partition@a0 { + label = "rootfs"; + reg = <0x00a0 0x0>; + }; + }; }; { @@ -186,6 +261,10 @@ }; }; + { + status = "okay"; +}; + { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 02/14] ARM: dts: am437x: cm-t43: add support for module eeprom
CM-T43 has an on-board EEPROM on i2c bus 0. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index a131b97..ce33b41 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -51,6 +51,12 @@ pinctrl-names = "default"; pinctrl-0 = <_pins>; clock-frequency = <10>; + + eeprom_module: at24@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 13/14] ARM: dts: am437x: cm-t43: add support for mmc1
On SBC-T43 the mmc1 interface is connected to an SD-Card slot. Add the necessary muxing and configuration to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-sbc-t43.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 46b2831..6b51151 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -7,6 +7,7 @@ */ #include "am437x-cm-t43.dts" +#include "compulab-sb-som.dtsi" / { model = "CompuLab CM-T43 on SB-SOM-T43"; @@ -14,6 +15,19 @@ }; _pinmux { + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ + AM4372_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ + AM4372_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ + AM4372_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ + AM4372_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ + AM4372_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ + AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ + AM4372_IOPAD(0x964, PIN_INPUT | MUX_MODE7) /* ecap0_in_pwm0_out.gpio0_7 */ + >; + }; + uart0_pins_default: uart0_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) @@ -75,6 +89,16 @@ pinctrl-0 = <_pins>; }; + { + status = "okay"; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + vmmc-supply = <_3v3>; + cd-gpios = < 6 GPIO_ACTIVE_HIGH>; + wp-gpios = < 7 GPIO_ACTIVE_HIGH>; +}; + { pinctrl-names = "default"; pinctrl-0 = <_pins_default>; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 11/14] ARM: dts: am437x: cm-t43: add support for baseboard eeprom
SB-SOM baseboard comes with an on-board EEPROM. On SBC-T43 this EEPROM resides on the i2c1 bus. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-sbc-t43.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index c7a1414..46b2831 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -61,6 +61,12 @@ gpio-controller; #gpio-cells = <2>; }; + + eeprom_base: at24@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 09/14] ARM: dts: am437x: cm-t43: add touchscreen support
AM437x has an internal touchscreen controller. Add support for it on cm-t43. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - No changes. arch/arm/boot/dts/am437x-cm-t43.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 1011acc..8677f4c 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -398,6 +398,20 @@ status = "okay"; }; + { + status = "okay"; + tsc { + ti,wires = <4>; + ti,x-plate-resistance = <200>; + ti,coordiante-readouts = <5>; + ti,wire-config = <0x00 0x11 0x22 0x33>; + }; + + adc { + ti,adc-channels = <4 5 6 7>; + }; +}; + { cpu0-supply = <>; operating-points = <100 133>, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH V2 08/14] ARM: dts: am437x: cm-t43: add eMMC support
One of the CompuLab cm-t43 configurations comes with on-board eMMC as primary storage, residing on the mmc2 interface. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Benoit Cousson <bcous...@baylibre.com> Cc: Rob Herring <r...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Pawel Moll <pawel.m...@arm.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- Changes in V2: - Removed unnecessary line break after fixedregulator-v3_3 section. arch/arm/boot/dts/am437x-cm-t43.dts | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index a2893c6..1011acc 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -26,6 +26,15 @@ linux,default-trigger = "heartbeat"; }; }; + + vmmc_3v3: fixedregulator-v3_3 { + compatible = "regulator-fixed"; + regulator-name = "vmmc_3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-always-on; + enable-active-high; + }; }; _pinmux { @@ -45,6 +54,21 @@ >; }; + emmc_pins: emmc_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x820, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad8.mmc1_dat0 */ + AM4372_IOPAD(0x824, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad9.mmc1_dat1 */ + AM4372_IOPAD(0x828, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad10.mmc1_dat2 */ + AM4372_IOPAD(0x82c, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad11.mmc1_dat3 */ + AM4372_IOPAD(0x830, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad12.mmc1_dat4 */ + AM4372_IOPAD(0x834, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad13.mmc1_dat5 */ + AM4372_IOPAD(0x838, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad14.mmc1_dat6 */ + AM4372_IOPAD(0x83c, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad15.mmc1_dat7 */ + AM4372_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ + AM4372_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ + >; + }; + spi0_pins: pinmux_spi0_pins { pinctrl-single,pins = < AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ @@ -271,6 +295,15 @@ status = "okay"; }; + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + vmmc-supply = <_3v3>; + bus-width = <8>; + ti,non-removable; +}; + { status = "okay"; pinctrl-names = "default"; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 01/14] ARM: am437x: cm-t43: dts: add basic support for sbc-t43
On Wed, Nov 25, 2015 at 05:03:00PM -0600, Rob Herring wrote: > On Tue, Nov 24, 2015 at 03:19:02PM +0200, Nikita Kiryanov wrote: > > Add basic support for SBC-T43: a CM-T43 based single board computer. > > CM-T43 is an AM437x based System-on-Module designed to serve as a building > > block in embedded applications. SBC-T43 is composed of CM-T43 module on > > top of the SB-SOM-T43 baseboard. > > Basic support includes UART, GPIO, and I2C. > > > > Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> > > Cc: Tony Lindgren <t...@atomide.com> > > Cc: Igor Grinberg <grinb...@compulab.co.il> > > Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> > > Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> > > Some minor nits below, otherwise: > > Acked-by: Rob Herring <r...@kernel.org> > V2 coming up. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 12/14] ARM: sb-som: dts: introduce SB-SOM baseboard
On Wed, Nov 25, 2015 at 04:57:34PM -0600, Rob Herring wrote: > On Tue, Nov 24, 2015 at 03:19:13PM +0200, Nikita Kiryanov wrote: > > CompuLab SB-SOM baseboard is a carrier board for multiple arm-based SoMs. > > It currently supports (with minor adjustments to assembly) CM-T43, CM-T54, > > and CM-QS600 modules. It is a building block in the SBC-T43 single board > > computer, which consists of cm-t43 on top of sb-som-t43. > > > > Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> > > Cc: Tony Lindgren <t...@atomide.com> > > Cc: Igor Grinberg <grinb...@compulab.co.il> > > Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> > > Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> > > --- > > .../devicetree/bindings/arm/compulab-boards.txt| 5 +++ > > .../bindings/display/panel/startek,startek-kd050c | 4 +++ > > .txt please. Right, will V2.. > > > .../devicetree/bindings/vendor-prefixes.txt| 1 + > > arch/arm/boot/dts/compulab-sb-som.dtsi | 42 > > ++ > > 4 files changed, 52 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/arm/compulab-boards.txt > > create mode 100644 > > Documentation/devicetree/bindings/display/panel/startek,startek-kd050c > > create mode 100644 arch/arm/boot/dts/compulab-sb-som.dtsi > > > > diff --git a/Documentation/devicetree/bindings/arm/compulab-boards.txt > > b/Documentation/devicetree/bindings/arm/compulab-boards.txt > > new file mode 100644 > > index 000..3e742a5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/arm/compulab-boards.txt > > @@ -0,0 +1,5 @@ > > +CompuLab SB-SOM is a multi-module baseboard capable of carrying CM-T43, > > CM-T54, > > +and QS-600 modules with minor modifications to the SB-SOM assembly. > > All these modules have compatible strings? Yes, although they are currently undocumented. QS-600 should be CM-QS600 though.. Will fix in V2. > > > + > > +Required root node properties: > > +- compatible = should be "compulab,sb-som" > > diff --git > > a/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c > > b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c > > new file mode 100644 > > index 000..70cd8d1 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c > > @@ -0,0 +1,4 @@ > > +Startek Electronic Technology Co. KD050C 5.0" WVGA TFT LCD panel > > + > > +Required properties: > > +- compatible: should be "startek,startek-kd050c" > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt > > b/Documentation/devicetree/bindings/vendor-prefixes.txt > > index 55df1d4..409b134 100644 > > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > > @@ -218,6 +218,7 @@ sonySony Corporation > > spansion Spansion Inc. > > sprd Spreadtrum Communications Inc. > > st STMicroelectronics > > +startekStartek > > steST-Ericsson > > stericsson ST-Ericsson > > synology Synology, Inc. > > diff --git a/arch/arm/boot/dts/compulab-sb-som.dtsi > > b/arch/arm/boot/dts/compulab-sb-som.dtsi > > new file mode 100644 > > index 000..402a143 > > --- /dev/null > > +++ b/arch/arm/boot/dts/compulab-sb-som.dtsi > > @@ -0,0 +1,42 @@ > > +/* > > + * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/ > > + * > > + * 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. > > + */ > > + > > +/ { > > + model = "CompuLab SB-SOM"; > > + compatible = "compulab,sb-som"; > > I would expect this to have a more specific. SB-SOM supports multiple modules. This device tree aggregates what is common to all possible module-baseboard combinations, which is why the compatible string is generic. > > > + lcd0: display { > > + compatible = "startek,startek-kd050c", "panel-dpi"; > > + label = "lcd"; > > This isn't documented, nor do I think it is needed. It is documented in Documentation/devicetree/bindings/display/panel/panel-dpi.txt You're correct about it being optional though. > > Rob > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] regulator: tps65218: add support for LS3 current regulator
Add support for TPS65218 LS3 current regulator, which is capable of 4 current input limit modes: 100, 200, 500, and 1000 uA. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Liam Girdwood <lgirdw...@gmail.com> Cc: Mark Brown <broo...@kernel.org> Cc: Samuel Ortiz <sa...@linux.intel.com> Cc: Lee Jones <lee.jo...@linaro.org> --- drivers/regulator/tps65218-regulator.c | 137 + include/linux/mfd/tps65218.h | 7 +- include/linux/regulator/driver.h | 2 + 3 files changed, 115 insertions(+), 31 deletions(-) diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c index 7f97223..d88eb57 100644 --- a/drivers/regulator/tps65218-regulator.c +++ b/drivers/regulator/tps65218-regulator.c @@ -27,19 +27,22 @@ #include #include -enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 }; +enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, + DCDC5, DCDC6, LDO1, LS3 }; -#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, \ - _lr, _nlr, _delay, _fuv)\ +#define TPS65218_REGULATOR(_name, _id, _type, _ops, _n, _vr, _vm, _er, _em, \ + _cr, _cm, _lr, _nlr, _delay, _fuv) \ { \ .name = _name,\ .id = _id, \ .ops= &_ops,\ .n_voltages = _n, \ - .type = REGULATOR_VOLTAGE,\ + .type = _type,\ .owner = THIS_MODULE, \ .vsel_reg = _vr, \ .vsel_mask = _vm, \ + .csel_reg = _cr, \ + .csel_mask = _cm, \ .enable_reg = _er, \ .enable_mask= _em, \ .volt_table = NULL, \ @@ -80,6 +83,7 @@ static struct tps_info tps65218_pmic_regs[] = { TPS65218_INFO(DCDC5, "DCDC5", 100, 100), TPS65218_INFO(DCDC6, "DCDC6", 180, 180), TPS65218_INFO(LDO1, "LDO1", 90, 340), + TPS65218_INFO(LS3, "LS3", -1, -1), }; #define TPS65218_OF_MATCH(comp, label) \ @@ -96,6 +100,7 @@ static const struct of_device_id tps65218_of_match[] = { TPS65218_OF_MATCH("ti,tps65218-dcdc5", tps65218_pmic_regs[DCDC5]), TPS65218_OF_MATCH("ti,tps65218-dcdc6", tps65218_pmic_regs[DCDC6]), TPS65218_OF_MATCH("ti,tps65218-ldo1", tps65218_pmic_regs[LDO1]), + TPS65218_OF_MATCH("ti,tps65218-ls3", tps65218_pmic_regs[LS3]), { } }; MODULE_DEVICE_TABLE(of, tps65218_of_match); @@ -175,6 +180,68 @@ static struct regulator_ops tps65218_ldo1_dcdc34_ops = { .map_voltage= regulator_map_voltage_linear_range, }; +static const int ls3_currents[] = { 100, 200, 500, 1000 }; + +static int tps65218_pmic_set_input_current_lim(struct regulator_dev *dev, + int lim_uA) +{ + unsigned int index = 0; + unsigned int num_currents = ARRAY_SIZE(ls3_currents); + struct tps65218 *tps = rdev_get_drvdata(dev); + + while (index < num_currents && ls3_currents[index] != lim_uA) + index++; + + if (index == num_currents) + return -EINVAL; + + return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, +index << 2, TPS65218_PROTECT_L1); +} + +static int tps65218_pmic_set_current_limit(struct regulator_dev *dev, + int min_uA, int max_uA) +{ + int index = 0; + unsigned int num_currents = ARRAY_SIZE(ls3_currents); + struct tps65218 *tps = rdev_get_drvdata(dev); + + while (index < num_currents && ls3_currents[index] < max_uA) + index++; + + index--; + + if (index < 0 || ls3_currents[index] < min_uA) + return -EINVAL; + + return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, +index << 2, TPS65218_PROTECT_L1); +} + +static int tps65218_pmic_get_current_limit(struct regulator_dev *dev) +{ + int retval; + unsigned int index; + struct tps65218 *tps = rdev_get_drvdata(dev); + + retval = tps65218_reg_read(tps, dev->desc->csel_reg, ); +
[PATCH 02/14] ARM: am437x: cm-t43: dts: add support for module eeprom
CM-T43 has an on-board EEPROM on i2c bus 0. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 69887c4..a4cd2b8 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -51,6 +51,12 @@ pinctrl-names = "default"; pinctrl-0 = <_pins>; clock-frequency = <10>; + + eeprom_module: at24@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 09/14] ARM: am437x: cm-t43: dts: add touchscreen support
AM437x has an internal touchscreen controller. Add support for it on cm-t43. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 5ca4160..1842087 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -399,6 +399,20 @@ status = "okay"; }; + { + status = "okay"; + tsc { + ti,wires = <4>; + ti,x-plate-resistance = <200>; + ti,coordiante-readouts = <5>; + ti,wire-config = <0x00 0x11 0x22 0x33>; + }; + + adc { + ti,adc-channels = <4 5 6 7>; + }; +}; + { cpu0-supply = <>; operating-points = <100 133>, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 07/14] ARM: am437x: cm-t43: dts: add USB support
Add USB support for CompuLab sbc-t43 single board computer, defaulting to host mode. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 30 ++ arch/arm/boot/dts/am437x-sbc-t43.dts | 22 ++ 2 files changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 856b2ce..70d5c20 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -327,6 +327,36 @@ dual_emac_res_vlan = <2>; }; +_1 { + status = "okay"; +}; + +_phy1 { + status = "okay"; +}; + + { + dr_mode = "host"; + status = "okay"; +}; + +_2 { + status = "okay"; +}; + +_phy2 { + status = "okay"; +}; + + { + dr_mode = "host"; + status = "okay"; + interrupts = , +, +; + interrupt-names = "peripheral", "host", "otg"; +}; + { status = "okay"; }; diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index f3cd76b..5d2919e 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -36,6 +36,18 @@ AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE3) /* uart1_rtsn.i2c2_scl */ >; }; + + usb2_phy1_default: usb2_phy1_default { + pinctrl-single,pins = < + AM4372_IOPAD(0xac0, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; + + usb2_phy2_default: usb2_phy2_default { + pinctrl-single,pins = < + AM4372_IOPAD(0xac4, DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; }; { @@ -55,3 +67,13 @@ pinctrl-0 = <_pins_default>; }; +_1 { + pinctrl-names = "default"; + pinctrl-0 = <_phy1_default>; +}; + +_2 { + pinctrl-names = "default"; + pinctrl-0 = <_phy2_default>; +}; + -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 13/14] ARM: am437x: cm-t43: dts: add support for mmc1
On SBC-T43 the mmc1 interface is connected to an SD-Card slot. Add the necessary muxing and configuration to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-sbc-t43.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 7394aa1..b2c42d9 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -7,6 +7,7 @@ */ #include "am437x-cm-t43.dts" +#include "compulab-sb-som.dtsi" / { model = "CompuLab CM-T43 on SB-SOM-T43"; @@ -14,6 +15,19 @@ }; _pinmux { + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ + AM4372_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ + AM4372_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ + AM4372_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ + AM4372_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ + AM4372_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ + AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ + AM4372_IOPAD(0x964, PIN_INPUT | MUX_MODE7) /* ecap0_in_pwm0_out.gpio0_7 */ + >; + }; + uart0_pins_default: uart0_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) @@ -75,6 +89,16 @@ pinctrl-0 = <_pins>; }; + { + status = "okay"; + bus-width = <4>; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + vmmc-supply = <_3v3>; + cd-gpios = < 6 GPIO_ACTIVE_HIGH>; + wp-gpios = < 7 GPIO_ACTIVE_HIGH>; +}; + { pinctrl-names = "default"; pinctrl-0 = <_pins_default>; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 05/14] ARM: am437x: cm-t43: dts: add NAND support
One of the CompuLab cm-t43 configurations comes with on-board NAND flash as primary storage. It is partitioned into kernel, dtb, and rootfs partitions. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 78 + 1 file changed, 78 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 0761383..370e4e8 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -54,6 +54,80 @@ >; }; + nand_flash_x8: nand_flash_x8 { + pinctrl-single,pins = < + AM4372_IOPAD(0x800, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x804, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x808, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x80c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x810, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x814, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x818, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x81c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x898, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x894, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x890, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + >; + }; +}; + + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_flash_x8>; + ranges = <0 0 0x0800 0x100>; + nand@0,0 { + reg = <0 0 0>; + ti,nand-ecc-opt = "bch8"; + ti,elm-id = <>; + + nand-bus-width = <8>; + gpmc,device-width = <1>; + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <44>; + gpmc,cs-wr-off-ns = <44>; + gpmc,adv-on-ns = <6>; + gpmc,adv-rd-off-ns = <34>; + gpmc,adv-wr-off-ns = <44>; + gpmc,we-on-ns = <0>; + gpmc,we-off-ns = <40>; + gpmc,oe-on-ns = <0>; + gpmc,oe-off-ns = <54>; + gpmc,access-ns = <64>; + gpmc,rd-cycle-ns = <82>; + gpmc,wr-cycle-ns = <82>; + gpmc,wait-on-read = "true"; + gpmc,wait-on-write = "true"; + gpmc,bus-turnaround-ns = <0>; + gpmc,cycle2cycle-delay-ns = <0>; + gpmc,clk-activation-ns = <0>; + gpmc,wait-monitoring-ns = <0>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; + + gpmc,wait-pin = <0>; + + #address-cells = <1>; + #size-cells = <1>; + /* MTD partition table */ + partition@0 { + label = "kernel"; + reg = <0x0 0x0098>; + }; + partition@98 { + label = "dtb"; + reg = <0x0098 0x0008>; + }; + partition@a0 { + label = "rootfs"; + reg = <0x00a0 0x0>; + }; + }; }; { @@ -187,6 +261,10 @@ }; }; + { + status = "okay"; +}; + { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 03/14] ARM: am437x: cm-t43: dts: add PMIC support.
Add PMIC support for CompuLab cm-t43 module. For now we keep all regulators enabled until this could be refined with power management support. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index a4cd2b8..7ef3971 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -52,6 +52,69 @@ pinctrl-0 = <_pins>; clock-frequency = <10>; + tps65218: tps65218@24 { + compatible = "ti,tps65218"; + reg = <0x24>; + interrupts = ; /* NMIn */ + interrupt-parent = <>; + interrupt-controller; + #interrupt-cells = <2>; + + dcdc1: regulator-dcdc1 { + compatible = "ti,tps65218-dcdc1"; + regulator-name = "vdd_core"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <1144000>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc2: regulator-dcdc2 { + compatible = "ti,tps65218-dcdc2"; + regulator-name = "vdd_mpu"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <1378000>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc3: regulator-dcdc3 { + compatible = "ti,tps65218-dcdc3"; + regulator-name = "vdcdc3"; + regulator-suspend-enable; + regulator-min-microvolt = <150>; + regulator-max-microvolt = <150>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc5: regulator-dcdc5 { + compatible = "ti,tps65218-dcdc5"; + regulator-name = "v1_0bat"; + regulator-min-microvolt = <100>; + regulator-max-microvolt = <100>; + regulator-boot-on; + regulator-always-on; + }; + + dcdc6: regulator-dcdc6 { + compatible = "ti,tps65218-dcdc6"; + regulator-name = "v1_8bat"; + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: regulator-ldo1 { + compatible = "ti,tps65218-ldo1"; + regulator-min-microvolt = <180>; + regulator-max-microvolt = <180>; + regulator-boot-on; + regulator-always-on; + }; + }; + eeprom_module: at24@50 { compatible = "atmel,24c02"; reg = <0x50>; @@ -88,6 +151,7 @@ }; { + cpu0-supply = <>; operating-points = <100 133>, <80 126>, <72 120>, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 14/14] ARM: am437x: cm-t43: dts: add lcd support
Add the necessary dss configuration to drive the startek lcd on CompuLab sbc-t43 single board computer. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-sbc-t43.dts | 65 1 file changed, 65 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index b2c42d9..0758094 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -12,6 +12,10 @@ / { model = "CompuLab CM-T43 on SB-SOM-T43"; compatible = "compulab,am437x-sbc-t43","compulab,am437x-cm-t43","ti,am4372","ti,am43"; + + aliases { + display0 = + }; }; _pinmux { @@ -28,6 +32,41 @@ >; }; + dss_pinctrl_default: dss_pinctrl_default { + pinctrl-single,pins = < + AM4372_IOPAD(0x9b0, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam0 hd -> DSS DATA 23 */ + AM4372_IOPAD(0x9b4, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9b8, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9bc, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c0, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c4, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9c8, PIN_OUTPUT_PULLUP | MUX_MODE2) + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLUP | MUX_MODE2) /* cam1 data 9 -> DSS DATA 16 */ + + AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */ + AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */ + AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */ + AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */ + AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */ + AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */ + AM4372_IOPAD(0xa20, PIN_OUTPUT_PULLUP | MUX_MODE7) + >; + }; + uart0_pins_default: uart0_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) @@ -99,6 +138,20 @@ wp-gpios = < 7 GPIO_ACTIVE_HIGH>; }; + { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <_pinctrl_default>; + + port { + dpi_lcd_out: endpoint@0 { + remote-endpoint = <_in>; + data-lines = <24>; + }; + }; +}; + { pinctrl-names = "default"; pinctrl-0 = <_pins_default>; @@ -114,3 +167,15 @@ pinctrl-0 = <_phy2_default>; }; + { + enable-gpios = < 14 GPIO_ACTIVE_HIGH +28 GPIO_ACTIVE_HIGH>; + + port { + lcd_in: endpoint { + remote-endpoint = <_lcd_out>; + data-lines = <24>; + }; + }; +}; + -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 06/14] ARM: am437x: cm-t43: dts: add dual emac support
CM-T43 comes with 2 ethernet ports connected to the cpsw subsystem, which has 2 modes of operation: switch mode and dual emac mode. Add the relevant muxing and set it up to work in dual emac mode by default. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 66 + 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 370e4e8..856b2ce 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -73,6 +73,47 @@ AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) >; }; + + cpsw_default: cpsw_default { + pinctrl-single,pins = < + /* Slave 1 */ + AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */ + AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */ + AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */ + AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */ + AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */ + AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */ + AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */ + AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */ + AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */ + AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */ + AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */ + AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */ + AM4372_IOPAD(0xa74, MUX_MODE3) + /* Slave 2 */ + AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.txen */ + AM4372_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rxctl */ + AM4372_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.txd3 */ + AM4372_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.txd2 */ + AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.txd1 */ + AM4372_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.txd0 */ + AM4372_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.tclk */ + AM4372_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rclk */ + AM4372_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rxd3 */ + AM4372_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rxd2 */ + AM4372_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rxd1 */ + AM4372_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rxd0 */ + AM4372_IOPAD(0xa38, MUX_MODE7) + >; + }; + + davinci_mdio_default: davinci_mdio_default { + pinctrl-single,pins = < + /* MDIO */ + AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ + AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ + >; + }; }; { @@ -261,6 +302,31 @@ }; }; + { + pinctrl-names = "default"; + pinctrl-0 = <_default>; + dual_emac = <1>; + status = "okay"; +}; + +_mdio { + pinctrl-names = "default"; + pinctrl-0 = <_mdio_default>; + status = "okay"; +}; + +_emac0 { + phy_id = <_mdio>, <0>; + phy-mode = "rgmii-txid"; + dual_emac_res_vlan = <1>; +}; + +_emac1 { + phy_id = <_mdio>, <1>; + phy-mode = "rgmii-txid"; + dual_emac_res_vlan = <2>; +}; + { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 00/14] Add support for sbc-t43
This series adds support for CompuLab sbc-t43 single baseboard computer. sbc-t43 is composed of cm-t43 (the TI am437x based core module), and sb-som baseboard. The sbc-t43 features include: CPU:Texas Instruments Sitara AM4379 ARM Cortex-A9, 1GHz, or Texas Instruments Sitara AM4376 ARM Cortex-A9, 800MHz RAM:128MB - 1GB, DDR3-800, 32-bit data bua Storage:NAND flash, 128MB - 512MB, or eMMC flash, 4GB - 32GB SPI-flash 2MB Two 1000/100/10Mbps Ethernet ports WiFi/Bluetooth/NFC Audio codec SD-Card slot, up to 3 USB ports DVI/LCD connectors This series is based over v4.4-rc2-15-gcaa9c04 and depends on the following patch: https://lkml.org/lkml/2015/11/12/955 [pinctrl: Move am4372 and dra7 macros to the the SoC header files] Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> Nikita Kiryanov (14): ARM: am437x: cm-t43: dts: add basic support for sbc-t43 ARM: am437x: cm-t43: dts: add support for module eeprom ARM: am437x: cm-t43: dts: add PMIC support. ARM: am437x: cm-t43: dts: add spi-flash support ARM: am437x: cm-t43: dts: add NAND support ARM: am437x: cm-t43: dts: add dual emac support ARM: am437x: cm-t43: dts: add USB support ARM: am437x: cm-t43: dts: add eMMC support ARM: am437x: cm-t43: dts: add touchscreen support ARM: am437x: cm-t43: dts: add pca9555 support ARM: am437x: cm-t43: dts: add support for baseboard eeprom ARM: sb-som: dts: introduce SB-SOM baseboard ARM: am437x: cm-t43: dts: add support for mmc1 ARM: am437x: cm-t43: dts: add lcd support .../devicetree/bindings/arm/compulab-boards.txt| 5 + .../devicetree/bindings/arm/omap/omap.txt | 6 + .../bindings/display/panel/startek,startek-kd050c | 4 + .../devicetree/bindings/vendor-prefixes.txt| 1 + arch/arm/boot/dts/Makefile | 6 +- arch/arm/boot/dts/am437x-cm-t43.dts| 423 + arch/arm/boot/dts/am437x-sbc-t43.dts | 181 + arch/arm/boot/dts/compulab-sb-som.dtsi | 42 ++ 8 files changed, 666 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/compulab-boards.txt create mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c create mode 100644 arch/arm/boot/dts/am437x-cm-t43.dts create mode 100644 arch/arm/boot/dts/am437x-sbc-t43.dts create mode 100644 arch/arm/boot/dts/compulab-sb-som.dtsi -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 04/14] ARM: am437x: cm-t43: dts: add spi-flash support
CM-T43 has an on-board 2MB SPI-flash which stores U-Boot and the U-Boot environment. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 41 + 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 7ef3971..0761383 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -44,6 +44,16 @@ AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ >; }; + + spi0_pins: pinmux_spi0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ + AM4372_IOPAD(0x954, PIN_INPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ + AM4372_IOPAD(0x958, PIN_OUTPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ + AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ + >; + }; + }; { @@ -146,6 +156,37 @@ status = "okay"; }; + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + dmas = < 16 +17>; + dma-names = "tx0", "rx0"; + + flash: w25q64cvzpig@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <2000>; + partition@0 { + label = "uboot"; + reg = <0x0 0xc>; + }; + + partition@c { + label = "uboot environment"; + reg = <0xc 0x4>; + }; + + partition@10 { + label = "reserved"; + reg = <0x10 0x10>; + }; + }; +}; + { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 08/14] ARM: am437x: cm-t43: dts: add eMMC support
One of the CompuLab cm-t43 configurations comes with on-board eMMC as primary storage, residing on the mmc2 interface. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 70d5c20..5ca4160 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -26,6 +26,16 @@ linux,default-trigger = "heartbeat"; }; }; + + vmmc_3v3: fixedregulator-v3_3 { + compatible = "regulator-fixed"; + regulator-name = "vmmc_3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-always-on; + enable-active-high; + }; + }; _pinmux { @@ -45,6 +55,21 @@ >; }; + emmc_pins: emmc_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x820, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad8.mmc1_dat0 */ + AM4372_IOPAD(0x824, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad9.mmc1_dat1 */ + AM4372_IOPAD(0x828, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad10.mmc1_dat2 */ + AM4372_IOPAD(0x82c, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad11.mmc1_dat3 */ + AM4372_IOPAD(0x830, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad12.mmc1_dat4 */ + AM4372_IOPAD(0x834, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad13.mmc1_dat5 */ + AM4372_IOPAD(0x838, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad14.mmc1_dat6 */ + AM4372_IOPAD(0x83c, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_ad15.mmc1_dat7 */ + AM4372_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ + AM4372_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ + >; + }; + spi0_pins: pinmux_spi0_pins { pinctrl-single,pins = < AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ @@ -271,6 +296,15 @@ status = "okay"; }; + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + vmmc-supply = <_3v3>; + bus-width = <8>; + ti,non-removable; +}; + { status = "okay"; pinctrl-names = "default"; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 01/14] ARM: am437x: cm-t43: dts: add basic support for sbc-t43
Add basic support for SBC-T43: a CM-T43 based single board computer. CM-T43 is an AM437x based System-on-Module designed to serve as a building block in embedded applications. SBC-T43 is composed of CM-T43 module on top of the SB-SOM-T43 baseboard. Basic support includes UART, GPIO, and I2C. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- .../devicetree/bindings/arm/omap/omap.txt | 6 ++ arch/arm/boot/dts/Makefile | 6 +- arch/arm/boot/dts/am437x-cm-t43.dts| 90 ++ arch/arm/boot/dts/am437x-sbc-t43.dts | 57 ++ 4 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/am437x-cm-t43.dts create mode 100644 arch/arm/boot/dts/am437x-sbc-t43.dts diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt index 9f4e513..da84372 100644 --- a/Documentation/devicetree/bindings/arm/omap/omap.txt +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt @@ -141,6 +141,12 @@ Boards: - OMAP5 EVM : Evaluation Module compatible = "ti,omap5-evm", "ti,omap5" +- AM437x CM-T43 + compatible = "compulab,am437x-cm-t43", "ti,am4372", "ti,am43" + +- AM437x SBC-T43 + compatible = "compulab,am437x-sbc-t43","compulab,am437x-cm-t43","ti,am4372","ti,am43" + - AM43x EPOS EVM compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43" diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 30bbc37..dc3b9af 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -478,9 +478,11 @@ dtb-$(CONFIG_ARCH_OMAP4) += \ omap4-var-stk-om44.dtb dtb-$(CONFIG_SOC_AM43XX) += \ am43x-epos-evm.dtb \ - am437x-sk-evm.dtb \ + am437x-cm-t43.dtb \ + am437x-gp-evm.dtb \ am437x-idk-evm.dtb \ - am437x-gp-evm.dtb + am437x-sbc-t43.dtb \ + am437x-sk-evm.dtb dtb-$(CONFIG_SOC_OMAP5) += \ omap5-cm-t54.dtb \ omap5-igep0050.dtb \ diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts new file mode 100644 index 000..69887c4 --- /dev/null +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/ + * + * 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. + */ + +/dts-v1/; + +#include +#include +#include +#include "am4372.dtsi" + +/ { + model = "CompuLab CM-T43"; + compatible = "compulab,am437x-cm-t43","ti,am4372","ti,am43"; + + leds { + compatible = "gpio-leds"; + + ledb { + label = "cm-t43:green"; + gpios = < 24 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; +}; + +_pinmux { + pinctrl-names = "default"; + pinctrl-0 = <_t43_led_pins>; + + cm_t43_led_pins: cm_t43_led_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0xa78, MUX_MODE7) + >; + }; + + i2c0_pins: i2c0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ + AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ + >; + }; +}; + + { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <_pins>; + clock-frequency = <10>; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + status = "okay"; +}; + + { + operating-points = <100 133>, + <80 126>, + <72 120>, + <60 110>, + <30 95>; +}; diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts new file mode 100644 index 000..f3cd76b --- /dev/null +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2015 CompuLab, L
[PATCH 11/14] ARM: am437x: cm-t43: dts: add support for baseboard eeprom
SB-SOM baseboard comes with an on-board EEPROM. On SBC-T43 this EEPROM resides on the i2c1 bus. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-sbc-t43.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index b2e3201..7394aa1 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -61,6 +61,12 @@ gpio-controller; #gpio-cells = <2>; }; + + eeprom_base: at24@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 10/14] ARM: am437x: cm-t43: dts: add pca9555 support
SB-SOM comes with a PCA9555 GPIO extender. On SBC-T43 this resides on the i2c1 bus. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- arch/arm/boot/dts/am437x-sbc-t43.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sbc-t43.dts b/arch/arm/boot/dts/am437x-sbc-t43.dts index 5d2919e..b2e3201 100644 --- a/arch/arm/boot/dts/am437x-sbc-t43.dts +++ b/arch/arm/boot/dts/am437x-sbc-t43.dts @@ -54,6 +54,13 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <_pins>; + + pca9555: pca9555@20 { + compatible = "nxp,pca9555"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; }; { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 12/14] ARM: sb-som: dts: introduce SB-SOM baseboard
CompuLab SB-SOM baseboard is a carrier board for multiple arm-based SoMs. It currently supports (with minor adjustments to assembly) CM-T43, CM-T54, and CM-QS600 modules. It is a building block in the SBC-T43 single board computer, which consists of cm-t43 on top of sb-som-t43. Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Tony Lindgren <t...@atomide.com> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Dmitry Lifshitz <lifsh...@compulab.co.il> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk> --- .../devicetree/bindings/arm/compulab-boards.txt| 5 +++ .../bindings/display/panel/startek,startek-kd050c | 4 +++ .../devicetree/bindings/vendor-prefixes.txt| 1 + arch/arm/boot/dts/compulab-sb-som.dtsi | 42 ++ 4 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/compulab-boards.txt create mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c create mode 100644 arch/arm/boot/dts/compulab-sb-som.dtsi diff --git a/Documentation/devicetree/bindings/arm/compulab-boards.txt b/Documentation/devicetree/bindings/arm/compulab-boards.txt new file mode 100644 index 000..3e742a5 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/compulab-boards.txt @@ -0,0 +1,5 @@ +CompuLab SB-SOM is a multi-module baseboard capable of carrying CM-T43, CM-T54, +and QS-600 modules with minor modifications to the SB-SOM assembly. + +Required root node properties: +- compatible = should be "compulab,sb-som" diff --git a/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c new file mode 100644 index 000..70cd8d1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/startek,startek-kd050c @@ -0,0 +1,4 @@ +Startek Electronic Technology Co. KD050C 5.0" WVGA TFT LCD panel + +Required properties: +- compatible: should be "startek,startek-kd050c" diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 55df1d4..409b134 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -218,6 +218,7 @@ sonySony Corporation spansion Spansion Inc. sprd Spreadtrum Communications Inc. st STMicroelectronics +startekStartek steST-Ericsson stericsson ST-Ericsson synology Synology, Inc. diff --git a/arch/arm/boot/dts/compulab-sb-som.dtsi b/arch/arm/boot/dts/compulab-sb-som.dtsi new file mode 100644 index 000..402a143 --- /dev/null +++ b/arch/arm/boot/dts/compulab-sb-som.dtsi @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2015 CompuLab, Ltd. - http://www.compulab.co.il/ + * + * 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. + */ + +/ { + model = "CompuLab SB-SOM"; + compatible = "compulab,sb-som"; + + vsb_3v3: fixedregulator-v3_3 { + compatible = "regulator-fixed"; + regulator-name = "vsb_3v3"; + regulator-min-microvolt = <330>; + regulator-max-microvolt = <330>; + regulator-always-on; + enable-active-high; + }; + + lcd0: display { + compatible = "startek,startek-kd050c", "panel-dpi"; + label = "lcd"; + + panel-timing { + clock-frequency = <3300>; + hactive = <800>; + vactive = <480>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <43>; + vback-porch = <29>; + vfront-porch = <13>; + vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; +}; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v7 0/6] wlcore: add device-tree support
Hi Eliad, On 03/18/2015 06:38 PM, Eliad Peller wrote: Add device-tree support to the wlcore (wl12xx/wl18xx) driver. Update the current users to use the bindings instead of pdata-quirks. Finally, remove the deprecated wl12xx_platform_data struct (along with the da850 board file code that still uses it) Tested-by: Nikita Kiryanov nik...@compulab.co.il Tested on am437x-gp-evm with WL1835MODCOM8B -- Regards, Nikita Kiryanov -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html