linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm: dts: add support for am437x sk
@ 2014-06-23 18:20 Felipe Balbi
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Felipe Balbi @ 2014-06-23 18:20 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Felipe Balbi

Hi,

here's v3 of am437x sk support. Patches tested on top of next-20140617.

Note that this series was tested with the following extra patches:

http://marc.info/?l=linux-omap&m=140299431732700&w=2
http://marc.info/?l=linux-omap&m=140300146503126&w=2
http://marc.info/?l=linux-omap&m=140299231232123
http://marc.info/?l=linux-omap&m=140310472709968&w=2
http://marc.info/?l=linux-omap&m=140310471409959&w=2

A branch is also available with all these patches at [1].

[1] http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=am437x-starterkit

Felipe Balbi (2):
  arm: dts: am4372: let boards access all nodes through phandles
  arm: dts: add support for AM437x StarterKit

 .../devicetree/bindings/arm/omap/omap.txt          |   3 +
 arch/arm/boot/dts/Makefile                         |   1 +
 arch/arm/boot/dts/am4372.dtsi                      |   8 +-
 arch/arm/boot/dts/am437x-sk-evm.dts                | 613 +++++++++++++++++++++
 4 files changed, 621 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/boot/dts/am437x-sk-evm.dts

-- 
2.0.0.390.gcb682f8


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-23 18:20 [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
@ 2014-06-23 18:20 ` Felipe Balbi
  2014-06-24 18:39   ` Cooper Jr., Franklin
                     ` (2 more replies)
  2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
  2014-06-30 16:45 ` [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
  2 siblings, 3 replies; 13+ messages in thread
From: Felipe Balbi @ 2014-06-23 18:20 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Felipe Balbi

by providing phandles to rtc, wdt, cpu and dispc nodes,
boards can access them to add board-specific data.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---

Changes since v1:
	- added phandles to cpu and dispc

 arch/arm/boot/dts/am4372.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 49fa596..8d3c163 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -30,7 +30,7 @@
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		cpu@0 {
+		cpu: cpu@0 {
 			compatible = "arm,cortex-a9";
 			device_type = "cpu";
 			reg = <0>;
@@ -270,7 +270,7 @@
 			ti,hwmods = "counter_32k";
 		};
 
-		rtc@44e3e000 {
+		rtc: rtc@44e3e000 {
 			compatible = "ti,am4372-rtc","ti,da830-rtc";
 			reg = <0x44e3e000 0x1000>;
 			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH
@@ -279,7 +279,7 @@
 			status = "disabled";
 		};
 
-		wdt@44e35000 {
+		wdt: wdt@44e35000 {
 			compatible = "ti,am4372-wdt","ti,omap3-wdt";
 			reg = <0x44e35000 0x1000>;
 			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
@@ -871,7 +871,7 @@
 			#size-cells = <1>;
 			ranges;
 
-			dispc@4832a400 {
+			dispc: dispc@4832a400 {
 				compatible = "ti,omap3-dispc";
 				reg = <0x4832a400 0x400>;
 				interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
-- 
2.0.0.390.gcb682f8


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit
  2014-06-23 18:20 [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
@ 2014-06-23 18:20 ` Felipe Balbi
  2014-06-24 18:36   ` Cooper Jr., Franklin
                     ` (2 more replies)
  2014-06-30 16:45 ` [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
  2 siblings, 3 replies; 13+ messages in thread
From: Felipe Balbi @ 2014-06-23 18:20 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Felipe Balbi, Josh Elliot,
	Darren Etheridge

Add support for TI's AM437x StarterKit Evaluation
Module.

Cc: Josh Elliot <jelliott@ti.com>
Cc: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
---

changes since v1:
	- add pinctrl for leds and matrix keypad
	- added i2c1 and i2c0 speeds of 400k
	- added voltage for vdds_ddr
	- reordered mmc1 node

left the USB supply thing out because a) the driver doesn't use it and b) the
regulator will be automatically sitched off iff DRVVBUS signal goes low (that's
done automatically by the HW). Not to mention that there's really no benefit
from the kernel or userland point of view.

(I do have a patch for that locally though, so if people really want it, I can
easily fold the patch into this).

All patches are available at [1]

[1] https://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=am437x-starterkit

 .../devicetree/bindings/arm/omap/omap.txt          |   3 +
 arch/arm/boot/dts/Makefile                         |   1 +
 arch/arm/boot/dts/am437x-sk-evm.dts                | 613 +++++++++++++++++++++
 3 files changed, 617 insertions(+)
 create mode 100644 arch/arm/boot/dts/am437x-sk-evm.dts

diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
index d22b216..0edc903 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -129,6 +129,9 @@ Boards:
 - AM437x GP EVM
   compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
 
+- AM437x SK EVM: AM437x StarterKit Evaluation Module
+  compatible = "ti,am437x-sk-evm", "ti,am4372", "ti,am43"
+
 - DRA742 EVM:  Software Development Board for DRA742
   compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7"
 
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 621c6c5..a85a4b8 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -306,6 +306,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += omap4-duovero-parlor.dtb \
 	omap4-var-dvk-om44.dtb \
 	omap4-var-stk-om44.dtb
 dtb-$(CONFIG_SOC_AM43XX) += am43x-epos-evm.dtb \
+	am437x-sk-evm.dtb \
 	am437x-gp-evm.dtb
 dtb-$(CONFIG_SOC_OMAP5) += omap5-cm-t54.dtb \
 	omap5-sbc-t54.dtb \
diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts
new file mode 100644
index 0000000..859ff3d
--- /dev/null
+++ b/arch/arm/boot/dts/am437x-sk-evm.dts
@@ -0,0 +1,613 @@
+/*
+ * Copyright (C) 2014 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.
+ */
+
+/* AM437x SK EVM */
+
+/dts-v1/;
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+	model = "TI AM437x SK EVM";
+	compatible = "ti,am437x-sk-evm","ti,am4372","ti,am43";
+
+	aliases {
+		display0 = &lcd0;
+	};
+
+	backlight {
+		compatible = "pwm-backlight";
+		pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
+		brightness-levels = <0 51 53 56 62 75 101 152 255>;
+		default-brightness-level = <8>;
+	};
+
+	sound {
+		compatible = "ti,da830-evm-audio";
+		ti,model = "AM437x-SK-EVM";
+		ti,audio-codec = <&tlv320aic3106>;
+		ti,mcasp-controller = <&mcasp1>;
+		ti,codec-clock-rate = <24000000>;
+		ti,audio-routing =
+			"Headphone Jack",       "HPLOUT",
+			"Headphone Jack",       "HPROUT";
+	};
+
+	matrix_keypad: matrix_keypad@0 {
+		compatible = "gpio-matrix-keypad";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&matrix_keypad_pins>;
+
+		debounce-delay-ms = <5>;
+		col-scan-delay-us = <1500>;
+
+		row-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH		/* Bank5, pin5 */
+				&gpio5 6 GPIO_ACTIVE_HIGH>;	/* Bank5, pin6 */
+
+		col-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH		/* Bank5, pin13 */
+				&gpio5 4 GPIO_ACTIVE_HIGH>;	/* Bank5, pin4 */
+
+		linux,keymap = <
+				MATRIX_KEY(0, 0, KEY_DOWN)
+				MATRIX_KEY(0, 1, KEY_RIGHT)
+				MATRIX_KEY(1, 0, KEY_LEFT)
+				MATRIX_KEY(1, 1, KEY_UP)
+			>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&leds_pins>;
+
+		led@0 {
+			label = "am437x-sk:red:heartbeat";
+			gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin 0 */
+			linux,default-trigger = "heartbeat";
+			default-state = "off";
+		};
+
+		led@1 {
+			label = "am437x-sk:green:mmc1";
+			gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin 1 */
+			linux,default-trigger = "mmc0";
+			default-state = "off";
+		};
+
+		led@2 {
+			label = "am437x-sk:blue:cpu0";
+			gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin 2 */
+			linux,default-trigger = "cpu0";
+			default-state = "off";
+		};
+
+		led@3 {
+			label = "am437x-sk:blue:usr3";
+			gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin 3 */
+			default-state = "off";
+		};
+	};
+
+	lcd0: display {
+		compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
+		label = "lcd";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&lcd_pins>;
+
+		enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
+
+		panel-timing {
+			clock-frequency = <9000000>;
+			hactive = <480>;
+			vactive = <272>;
+			hfront-porch = <8>;
+			hback-porch = <43>;
+			hsync-len = <4>;
+			vback-porch = <12>;
+			vfront-porch = <4>;
+			vsync-len = <10>;
+			hsync-active = <0>;
+			vsync-active = <0>;
+			de-active = <1>;
+			pixelclk-active = <1>;
+		};
+
+		port {
+			lcd_in: endpoint {
+				remote-endpoint = <&dpi_out>;
+			};
+		};
+	};
+};
+
+&am43xx_pinmux {
+	matrix_keypad_pins: matrix_keypad_pins {
+		pinctrl-single,pins = <
+			0x24c (PIN_OUTPUT | MUX_MODE7)	/* gpio5_13.gpio5_13 */
+			0x250 (PIN_OUTPUT | MUX_MODE7)	/* spi4_sclk.gpio5_4 */
+			0x254 (PIN_INPUT | MUX_MODE7)	/* spi4_d0.gpio5_5 */
+			0x258 (PIN_INPUT | MUX_MODE7)	/* spi4_d1.gpio5_5 */
+		>;
+	};
+
+	leds_pins: leds_pins {
+		pinctrl-single,pins = <
+			0x228 (PIN_OUTPUT | MUX_MODE7)	/* uart3_rxd.gpio5_2 */
+			0x22c (PIN_OUTPUT | MUX_MODE7)	/* uart3_txd.gpio5_3 */
+			0x230 (PIN_OUTPUT | MUX_MODE7)	/* uart3_ctsn.gpio5_0 */
+			0x234 (PIN_OUTPUT | MUX_MODE7)	/* uart3_rtsn.gpio5_1 */
+		>;
+	};
+
+	i2c0_pins: i2c0_pins {
+		pinctrl-single,pins = <
+			0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)  /* i2c0_sda.i2c0_sda */
+			0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)  /* i2c0_scl.i2c0_scl */
+		>;
+	};
+
+	i2c1_pins: i2c1_pins {
+		pinctrl-single,pins = <
+			0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2)  /* spi0_cs0.i2c1_scl */
+			0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2)  /* spi0_d1.i2c1_sda  */
+		>;
+	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
+		>;
+	};
+
+	ecap0_pins: backlight_pins {
+		pinctrl-single,pins = <
+			0x164 (PIN_OUTPUT | MUX_MODE0) /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out */
+		>;
+	};
+
+	edt_ft5306_ts_pins: edt_ft5306_ts_pins {
+		pinctrl-single,pins = <
+			0x74 (PIN_INPUT | MUX_MODE7)	/* gpmc_wpn.gpio0_31 */
+			0x78 (PIN_OUTPUT | MUX_MODE7)	/* gpmc_be1n.gpio1_28 */
+		>;
+	};
+
+	cpsw_default: cpsw_default {
+		pinctrl-single,pins = <
+			/* Slave 1 */
+			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rmii1_tclk */
+			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
+			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
+			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
+			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td2 */
+			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td3 */
+			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rmii1_rclk */
+			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
+			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
+			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
+			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd2 */
+			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd3 */
+
+			/* Slave 2 */
+			0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a6.rgmii2_tclk */
+			0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a0.rgmii2_tctl */
+			0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a5.rgmii2_td0 */
+			0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a4.rgmii2_td1 */
+			0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a3.rgmii2_td2 */
+			0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a2.rgmii2_td3 */
+			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a7.rgmii2_rclk */
+			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a1.rgmii2_rtcl */
+			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a11.rgmii2_rd0 */
+			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a10.rgmii2_rd1 */
+			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a9.rgmii2_rd2 */
+			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a8.rgmii2_rd3 */
+		>;
+	};
+
+	cpsw_sleep: cpsw_sleep {
+		pinctrl-single,pins = <
+			/* Slave 1 reset value */
+			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+
+			/* Slave 2 reset value */
+			0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+		>;
+	};
+
+	davinci_mdio_default: davinci_mdio_default {
+		pinctrl-single,pins = <
+			/* MDIO */
+			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
+			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
+		>;
+	};
+
+	davinci_mdio_sleep: davinci_mdio_sleep {
+		pinctrl-single,pins = <
+			/* MDIO reset value */
+			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+		>;
+	};
+
+	dss_pins: dss_pins {
+		pinctrl-single,pins = <
+			0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1)	/* gpmc ad 8 -> DSS DATA 23 */
+			0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x02c (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1)
+			0x03c (PIN_OUTPUT_PULLUP | MUX_MODE1)	/* gpmc ad 15 -> DSS DATA 16 */
+			0x0a0 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS DATA 0 */
+			0x0a4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0a8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0ac (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0b0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0b4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0b8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0bc (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0c0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0c4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0c8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0cc (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0d0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0d4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0d8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
+			0x0dc (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS DATA 15 */
+			0x0e0 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS VSYNC */
+			0x0e4 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS HSYNC */
+			0x0e8 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS PCLK */
+			0x0ec (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS AC BIAS EN */
+
+		>;
+	};
+
+	qspi_pins: qspi_pins {
+		pinctrl-single,pins = <
+			0x7c (PIN_OUTPUT_PULLUP | MUX_MODE3)	/* gpmc_csn0.qspi_csn */
+			0x88 (PIN_OUTPUT | MUX_MODE2)		/* gpmc_csn3.qspi_clk */
+			0x90 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_advn_ale.qspi_d0 */
+			0x94 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_oen_ren.qspi_d1 */
+			0x98 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_wen.qspi_d2 */
+			0x9c (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_be0n_cle.qspi_d3 */
+		>;
+	};
+
+	mcasp1_pins: mcasp1_pins {
+		pinctrl-single,pins = <
+			0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4)	/* mii1_crs.mcasp1_aclkx */
+			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4)	/* mii1_rxerr.mcasp1_fsx */
+			0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4)	/* mii1_col.mcasp1_axr2 */
+			0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4)	/* rmii1_ref_clk.mcasp1_axr3 */
+		>;
+	};
+
+	lcd_pins: lcd_pins {
+		pinctrl-single,pins = <
+			/* GPIO 5_8 to select LCD / HDMI */
+			0x238 (PIN_OUTPUT_PULLUP | MUX_MODE7)
+		>;
+	};
+};
+
+&i2c0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	clock-frequency = <400000>;
+
+	tps@24 {
+		compatible = "ti,tps65218";
+		reg = <0x24>;
+		interrupt-parent = <&gic>;
+		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+
+		dcdc1: regulator-dcdc1 {
+			compatible = "ti,tps65218-dcdc1";
+			/* VDD_CORE limits min of OPP50 and max of OPP100 */
+			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";
+			/* VDD_MPU limits min of OPP50 and max of OPP_NITRO */
+			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 = "vdds_ddr";
+			regulator-min-microvolt = <1350000>;
+			regulator-max-microvolt = <1350000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+
+		dcdc4: regulator-dcdc4 {
+			compatible = "ti,tps65218-dcdc4";
+			regulator-name = "v3_3d";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+
+		ldo1: regulator-ldo1 {
+			compatible = "ti,tps65218-ldo1";
+			regulator-name = "v1_8d";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+
+	};
+
+	at24@50 {
+		compatible = "at24,24c256";
+		pagesize = <64>;
+		reg = <0x50>;
+	};
+};
+
+&i2c1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+	clock-frequency = <400000>;
+
+	edt-ft5306@38 {
+		status = "okay";
+		compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
+		pinctrl-names = "default";
+		pinctrl-0 = <&edt_ft5306_ts_pins>;
+
+		reg = <0x38>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <31 0>;
+
+		wake-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
+
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <272>;
+	};
+
+	tlv320aic3106: tlv320aic3106@1b {
+		compatible = "ti,tlv320aic3106";
+		reg = <0x1b>;
+		status = "okay";
+
+		/* Regulators */
+		AVDD-supply = <&dcdc4>;
+		IOVDD-supply = <&dcdc4>;
+		DRVDD-supply = <&dcdc4>;
+		DVDD-supply = <&ldo1>;
+	};
+
+	lis331dlh@18 {
+		compatible = "st,lis331dlh";
+		reg = <0x18>;
+		status = "okay";
+
+		Vdd-supply = <&dcdc4>;
+		Vdd_IO-supply = <&dcdc4>;
+		interrupts-extended = <&gpio1 6 0>, <&gpio2 1 0>;
+	};
+};
+
+&epwmss0 {
+	status = "okay";
+};
+
+&ecap0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&ecap0_pins>;
+};
+
+&gpio0 {
+	status = "okay";
+};
+
+&gpio1 {
+	status = "okay";
+};
+
+&gpio5 {
+	status = "okay";
+};
+
+&mmc1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+
+	vmmc-supply = <&dcdc4>;
+	bus-width = <4>;
+	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
+};
+
+&usb2_phy1 {
+	status = "okay";
+};
+
+&usb1 {
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usb2_phy2 {
+	status = "okay";
+};
+
+&usb2 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&qspi {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&qspi_pins>;
+
+	spi-max-frequency = <48000000>;
+	m25p80@0 {
+		compatible = "mx66l51235l";
+		spi-max-frequency = <48000000>;
+		reg = <0>;
+		spi-cpol;
+		spi-cpha;
+		spi-tx-bus-width = <1>;
+		spi-rx-bus-width = <4>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		/* MTD partition table.
+		 * The ROM checks the first 512KiB
+		 * for a valid file to boot(XIP).
+		 */
+		partition@0 {
+			label = "QSPI.U_BOOT";
+			reg = <0x00000000 0x000080000>;
+		};
+		partition@1 {
+			label = "QSPI.U_BOOT.backup";
+			reg = <0x00080000 0x00080000>;
+		};
+		partition@2 {
+			label = "QSPI.U-BOOT-SPL_OS";
+			reg = <0x00100000 0x00010000>;
+		};
+		partition@3 {
+			label = "QSPI.U_BOOT_ENV";
+			reg = <0x00110000 0x00010000>;
+		};
+		partition@4 {
+			label = "QSPI.U-BOOT-ENV.backup";
+			reg = <0x00120000 0x00010000>;
+		};
+		partition@5 {
+			label = "QSPI.KERNEL";
+			reg = <0x00130000 0x0800000>;
+		};
+		partition@6 {
+			label = "QSPI.FILESYSTEM";
+			reg = <0x00930000 0x36D0000>;
+		};
+	};
+};
+
+&mac {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&cpsw_default>;
+	pinctrl-1 = <&cpsw_sleep>;
+	dual_emac = <1>;
+	status = "okay";
+};
+
+&davinci_mdio {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&davinci_mdio_default>;
+	pinctrl-1 = <&davinci_mdio_sleep>;
+	status = "okay";
+};
+
+&cpsw_emac0 {
+	phy_id = <&davinci_mdio>, <4>;
+	phy-mode = "rgmii";
+	dual_emac_res_vlan = <1>;
+};
+
+&cpsw_emac1 {
+	phy_id = <&davinci_mdio>, <5>;
+	phy-mode = "rgmii";
+	dual_emac_res_vlan = <2>;
+};
+
+&elm {
+	status = "okay";
+};
+
+&mcasp1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcasp1_pins>;
+
+	status = "okay";
+
+	op-mode = <0>;
+	tdm-slots = <2>;
+	serial-dir = <
+		0 0 1 2
+	>;
+
+	tx-num-evt = <1>;
+	rx-num-evt = <1>;
+};
+
+&dss {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&dss_pins>;
+
+	port {
+		dpi_out: endpoint@0 {
+			remote-endpoint = <&lcd_in>;
+			data-lines = <24>;
+		};
+	};
+};
+
+&rtc {
+	status = "okay";
+};
+
+&wdt {
+	status = "okay";
+};
-- 
2.0.0.390.gcb682f8


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* RE: [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit
  2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
@ 2014-06-24 18:36   ` Cooper Jr., Franklin
  2014-06-24 20:51   ` Tom Rini
  2014-06-25  2:07   ` Darren Etheridge
  2 siblings, 0 replies; 13+ messages in thread
From: Cooper Jr., Franklin @ 2014-06-24 18:36 UTC (permalink / raw)
  To: Balbi, Felipe, Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Nayak, Rajendra, Menon,
	Nishanth, R, Sricharan, devicetree, Linux Kernel Mailing List,
	Linux OMAP Mailing List, Linux ARM Kernel Mailing List, Elliott,
	Josh, Etheridge, Darren

Tested-by: Franklin Cooper Jr. <fcooper@ti.com>

> -----Original Message-----
> From: Balbi, Felipe
> Sent: Monday, June 23, 2014 1:21 PM
> To: Benoit Cousson
> Cc: robh+dt@kernel.org; galak@codeaurora.org; Tony Lindgren;
> linux@arm.linux.org.uk; Nayak, Rajendra; Menon, Nishanth; R, Sricharan;
> devicetree@vger.kernel.org; Linux Kernel Mailing List; Linux OMAP Mailing
> List; Linux ARM Kernel Mailing List; Balbi, Felipe; Elliott, Josh; Etheridge,
> Darren
> Subject: [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit
> 
> Add support for TI's AM437x StarterKit Evaluation Module.
> 
> Cc: Josh Elliot <jelliott@ti.com>
> Cc: Darren Etheridge <detheridge@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
> 
> changes since v1:
> 	- add pinctrl for leds and matrix keypad
> 	- added i2c1 and i2c0 speeds of 400k
> 	- added voltage for vdds_ddr
> 	- reordered mmc1 node
> 
> left the USB supply thing out because a) the driver doesn't use it and b) the
> regulator will be automatically sitched off iff DRVVBUS signal goes low (that's
> done automatically by the HW). Not to mention that there's really no benefit
> from the kernel or userland point of view.
> 
> (I do have a patch for that locally though, so if people really want it, I can
> easily fold the patch into this).
> 
> All patches are available at [1]
> 
> [1] https://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=am437x-
> starterkit
> 
>  .../devicetree/bindings/arm/omap/omap.txt          |   3 +
>  arch/arm/boot/dts/Makefile                         |   1 +
>  arch/arm/boot/dts/am437x-sk-evm.dts                | 613
> +++++++++++++++++++++
>  3 files changed, 617 insertions(+)
>  create mode 100644 arch/arm/boot/dts/am437x-sk-evm.dts
> 
> diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt
> b/Documentation/devicetree/bindings/arm/omap/omap.txt
> index d22b216..0edc903 100644
> --- a/Documentation/devicetree/bindings/arm/omap/omap.txt
> +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
> @@ -129,6 +129,9 @@ Boards:
>  - AM437x GP EVM
>    compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
> 
> +- AM437x SK EVM: AM437x StarterKit Evaluation Module
> +  compatible = "ti,am437x-sk-evm", "ti,am4372", "ti,am43"
> +
>  - DRA742 EVM:  Software Development Board for DRA742
>    compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7"
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index
> 621c6c5..a85a4b8 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -306,6 +306,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += omap4-duovero-
> parlor.dtb \
>  	omap4-var-dvk-om44.dtb \
>  	omap4-var-stk-om44.dtb
>  dtb-$(CONFIG_SOC_AM43XX) += am43x-epos-evm.dtb \
> +	am437x-sk-evm.dtb \
>  	am437x-gp-evm.dtb
>  dtb-$(CONFIG_SOC_OMAP5) += omap5-cm-t54.dtb \
>  	omap5-sbc-t54.dtb \
> diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts
> b/arch/arm/boot/dts/am437x-sk-evm.dts
> new file mode 100644
> index 0000000..859ff3d
> --- /dev/null
> +++ b/arch/arm/boot/dts/am437x-sk-evm.dts
> @@ -0,0 +1,613 @@
> +/*
> + * Copyright (C) 2014 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.
> + */
> +
> +/* AM437x SK EVM */
> +
> +/dts-v1/;
> +
> +#include "am4372.dtsi"
> +#include <dt-bindings/pinctrl/am43xx.h> #include
> +<dt-bindings/pwm/pwm.h> #include <dt-bindings/gpio/gpio.h> #include
> +<dt-bindings/input/input.h>
> +
> +/ {
> +	model = "TI AM437x SK EVM";
> +	compatible = "ti,am437x-sk-evm","ti,am4372","ti,am43";
> +
> +	aliases {
> +		display0 = &lcd0;
> +	};
> +
> +	backlight {
> +		compatible = "pwm-backlight";
> +		pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
> +		brightness-levels = <0 51 53 56 62 75 101 152 255>;
> +		default-brightness-level = <8>;
> +	};
> +
> +	sound {
> +		compatible = "ti,da830-evm-audio";
> +		ti,model = "AM437x-SK-EVM";
> +		ti,audio-codec = <&tlv320aic3106>;
> +		ti,mcasp-controller = <&mcasp1>;
> +		ti,codec-clock-rate = <24000000>;
> +		ti,audio-routing =
> +			"Headphone Jack",       "HPLOUT",
> +			"Headphone Jack",       "HPROUT";
> +	};
> +
> +	matrix_keypad: matrix_keypad@0 {
> +		compatible = "gpio-matrix-keypad";
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&matrix_keypad_pins>;
> +
> +		debounce-delay-ms = <5>;
> +		col-scan-delay-us = <1500>;
> +
> +		row-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH		/*
> Bank5, pin5 */
> +				&gpio5 6 GPIO_ACTIVE_HIGH>;	/* Bank5,
> pin6 */
> +
> +		col-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH		/*
> Bank5, pin13 */
> +				&gpio5 4 GPIO_ACTIVE_HIGH>;	/* Bank5,
> pin4 */
> +
> +		linux,keymap = <
> +				MATRIX_KEY(0, 0, KEY_DOWN)
> +				MATRIX_KEY(0, 1, KEY_RIGHT)
> +				MATRIX_KEY(1, 0, KEY_LEFT)
> +				MATRIX_KEY(1, 1, KEY_UP)
> +			>;
> +	};
> +
> +	leds {
> +		compatible = "gpio-leds";
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&leds_pins>;
> +
> +		led@0 {
> +			label = "am437x-sk:red:heartbeat";
> +			gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin
> 0 */
> +			linux,default-trigger = "heartbeat";
> +			default-state = "off";
> +		};
> +
> +		led@1 {
> +			label = "am437x-sk:green:mmc1";
> +			gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin
> 1 */
> +			linux,default-trigger = "mmc0";
> +			default-state = "off";
> +		};
> +
> +		led@2 {
> +			label = "am437x-sk:blue:cpu0";
> +			gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin
> 2 */
> +			linux,default-trigger = "cpu0";
> +			default-state = "off";
> +		};
> +
> +		led@3 {
> +			label = "am437x-sk:blue:usr3";
> +			gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;	/* Bank 5, pin
> 3 */
> +			default-state = "off";
> +		};
> +	};
> +
> +	lcd0: display {
> +		compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
> +		label = "lcd";
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&lcd_pins>;
> +
> +		enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
> +
> +		panel-timing {
> +			clock-frequency = <9000000>;
> +			hactive = <480>;
> +			vactive = <272>;
> +			hfront-porch = <8>;
> +			hback-porch = <43>;
> +			hsync-len = <4>;
> +			vback-porch = <12>;
> +			vfront-porch = <4>;
> +			vsync-len = <10>;
> +			hsync-active = <0>;
> +			vsync-active = <0>;
> +			de-active = <1>;
> +			pixelclk-active = <1>;
> +		};
> +
> +		port {
> +			lcd_in: endpoint {
> +				remote-endpoint = <&dpi_out>;
> +			};
> +		};
> +	};
> +};
> +
> +&am43xx_pinmux {
> +	matrix_keypad_pins: matrix_keypad_pins {
> +		pinctrl-single,pins = <
> +			0x24c (PIN_OUTPUT | MUX_MODE7)	/*
> gpio5_13.gpio5_13 */
> +			0x250 (PIN_OUTPUT | MUX_MODE7)	/*
> spi4_sclk.gpio5_4 */
> +			0x254 (PIN_INPUT | MUX_MODE7)	/*
> spi4_d0.gpio5_5 */
> +			0x258 (PIN_INPUT | MUX_MODE7)	/*
> spi4_d1.gpio5_5 */
> +		>;
> +	};
> +
> +	leds_pins: leds_pins {
> +		pinctrl-single,pins = <
> +			0x228 (PIN_OUTPUT | MUX_MODE7)	/*
> uart3_rxd.gpio5_2 */
> +			0x22c (PIN_OUTPUT | MUX_MODE7)	/*
> uart3_txd.gpio5_3 */
> +			0x230 (PIN_OUTPUT | MUX_MODE7)	/*
> uart3_ctsn.gpio5_0 */
> +			0x234 (PIN_OUTPUT | MUX_MODE7)	/*
> uart3_rtsn.gpio5_1 */
> +		>;
> +	};
> +
> +	i2c0_pins: i2c0_pins {
> +		pinctrl-single,pins = <
> +			0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
> MUX_MODE0)  /* i2c0_sda.i2c0_sda */
> +			0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
> MUX_MODE0)  /* i2c0_scl.i2c0_scl */
> +		>;
> +	};
> +
> +	i2c1_pins: i2c1_pins {
> +		pinctrl-single,pins = <
> +			0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
> MUX_MODE2)  /* spi0_cs0.i2c1_scl */
> +			0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
> MUX_MODE2)  /* spi0_d1.i2c1_sda  */
> +		>;
> +	};
> +
> +	mmc1_pins: pinmux_mmc1_pins {
> +		pinctrl-single,pins = <
> +			0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6
> */
> +		>;
> +	};
> +
> +	ecap0_pins: backlight_pins {
> +		pinctrl-single,pins = <
> +			0x164 (PIN_OUTPUT | MUX_MODE0) /*
> eCAP0_in_PWM0_out.eCAP0_in_PWM0_out */
> +		>;
> +	};
> +
> +	edt_ft5306_ts_pins: edt_ft5306_ts_pins {
> +		pinctrl-single,pins = <
> +			0x74 (PIN_INPUT | MUX_MODE7)	/*
> gpmc_wpn.gpio0_31 */
> +			0x78 (PIN_OUTPUT | MUX_MODE7)	/*
> gpmc_be1n.gpio1_28 */
> +		>;
> +	};
> +
> +	cpsw_default: cpsw_default {
> +		pinctrl-single,pins = <
> +			/* Slave 1 */
> +			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txclk.rmii1_tclk */
> +			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txen.rgmii1_tctl */
> +			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txd0.rgmii1_td0 */
> +			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txd1.rgmii1_td1 */
> +			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txd0.rgmii1_td2 */
> +			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)
> 	/* mii1_txd1.rgmii1_td3 */
> +			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxclk.rmii1_rclk */
> +			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxdv.rgmii1_rctl */
> +			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxd0.rgmii1_rd0 */
> +			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxd1.rgmii1_rd1 */
> +			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxd0.rgmii1_rd2 */
> +			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> mii1_rxd1.rgmii1_rd3 */
> +
> +			/* Slave 2 */
> +			0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a6.rgmii2_tclk */
> +			0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a0.rgmii2_tctl */
> +			0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a5.rgmii2_td0 */
> +			0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a4.rgmii2_td1 */
> +			0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a3.rgmii2_td2 */
> +			0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a2.rgmii2_td3 */
> +			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a7.rgmii2_rclk */
> +			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a1.rgmii2_rtcl */
> +			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a11.rgmii2_rd0 */
> +			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a10.rgmii2_rd1 */
> +			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a9.rgmii2_rd2 */
> +			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/*
> gpmc_a8.rgmii2_rd3 */
> +		>;
> +	};
> +
> +	cpsw_sleep: cpsw_sleep {
> +		pinctrl-single,pins = <
> +			/* Slave 1 reset value */
> +			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +
> +			/* Slave 2 reset value */
> +			0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +		>;
> +	};
> +
> +	davinci_mdio_default: davinci_mdio_default {
> +		pinctrl-single,pins = <
> +			/* MDIO */
> +			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
> MUX_MODE0)	/* mdio_data.mdio_data */
> +			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)
> 		/* mdio_clk.mdio_clk */
> +		>;
> +	};
> +
> +	davinci_mdio_sleep: davinci_mdio_sleep {
> +		pinctrl-single,pins = <
> +			/* MDIO reset value */
> +			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
> +		>;
> +	};
> +
> +	dss_pins: dss_pins {
> +		pinctrl-single,pins = <
> +			0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1)	/*
> gpmc ad 8 -> DSS DATA 23 */
> +			0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x02c (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1)
> +			0x03c (PIN_OUTPUT_PULLUP | MUX_MODE1)	/*
> gpmc ad 15 -> DSS DATA 16 */
> +			0x0a0 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> DATA 0 */
> +			0x0a4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0a8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0ac (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0b0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0b4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0b8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0bc (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0c0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0c4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0c8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0cc (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0d0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0d4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0d8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
> +			0x0dc (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> DATA 15 */
> +			0x0e0 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> VSYNC */
> +			0x0e4 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> HSYNC */
> +			0x0e8 (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> PCLK */
> +			0x0ec (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* DSS
> AC BIAS EN */
> +
> +		>;
> +	};
> +
> +	qspi_pins: qspi_pins {
> +		pinctrl-single,pins = <
> +			0x7c (PIN_OUTPUT_PULLUP | MUX_MODE3)	/*
> gpmc_csn0.qspi_csn */
> +			0x88 (PIN_OUTPUT | MUX_MODE2)		/*
> gpmc_csn3.qspi_clk */
> +			0x90 (PIN_INPUT_PULLUP | MUX_MODE3)	/*
> gpmc_advn_ale.qspi_d0 */
> +			0x94 (PIN_INPUT_PULLUP | MUX_MODE3)	/*
> gpmc_oen_ren.qspi_d1 */
> +			0x98 (PIN_INPUT_PULLUP | MUX_MODE3)	/*
> gpmc_wen.qspi_d2 */
> +			0x9c (PIN_INPUT_PULLUP | MUX_MODE3)	/*
> gpmc_be0n_cle.qspi_d3 */
> +		>;
> +	};
> +
> +	mcasp1_pins: mcasp1_pins {
> +		pinctrl-single,pins = <
> +			0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4)	/*
> mii1_crs.mcasp1_aclkx */
> +			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4)	/*
> mii1_rxerr.mcasp1_fsx */
> +			0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4)
> 	/* mii1_col.mcasp1_axr2 */
> +			0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4)	/*
> rmii1_ref_clk.mcasp1_axr3 */
> +		>;
> +	};
> +
> +	lcd_pins: lcd_pins {
> +		pinctrl-single,pins = <
> +			/* GPIO 5_8 to select LCD / HDMI */
> +			0x238 (PIN_OUTPUT_PULLUP | MUX_MODE7)
> +		>;
> +	};
> +};
> +
> +&i2c0 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <400000>;
> +
> +	tps@24 {
> +		compatible = "ti,tps65218";
> +		reg = <0x24>;
> +		interrupt-parent = <&gic>;
> +		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-controller;
> +		#interrupt-cells = <2>;
> +
> +		dcdc1: regulator-dcdc1 {
> +			compatible = "ti,tps65218-dcdc1";
> +			/* VDD_CORE limits min of OPP50 and max of OPP100
> */
> +			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";
> +			/* VDD_MPU limits min of OPP50 and max of
> OPP_NITRO */
> +			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 = "vdds_ddr";
> +			regulator-min-microvolt = <1350000>;
> +			regulator-max-microvolt = <1350000>;
> +			regulator-boot-on;
> +			regulator-always-on;
> +		};
> +
> +		dcdc4: regulator-dcdc4 {
> +			compatible = "ti,tps65218-dcdc4";
> +			regulator-name = "v3_3d";
> +			regulator-min-microvolt = <3300000>;
> +			regulator-max-microvolt = <3300000>;
> +			regulator-boot-on;
> +			regulator-always-on;
> +		};
> +
> +		ldo1: regulator-ldo1 {
> +			compatible = "ti,tps65218-ldo1";
> +			regulator-name = "v1_8d";
> +			regulator-min-microvolt = <1800000>;
> +			regulator-max-microvolt = <1800000>;
> +			regulator-boot-on;
> +			regulator-always-on;
> +		};
> +
> +	};
> +
> +	at24@50 {
> +		compatible = "at24,24c256";
> +		pagesize = <64>;
> +		reg = <0x50>;
> +	};
> +};
> +
> +&i2c1 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c1_pins>;
> +	clock-frequency = <400000>;
> +
> +	edt-ft5306@38 {
> +		status = "okay";
> +		compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&edt_ft5306_ts_pins>;
> +
> +		reg = <0x38>;
> +		interrupt-parent = <&gpio0>;
> +		interrupts = <31 0>;
> +
> +		wake-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
> +
> +		touchscreen-size-x = <480>;
> +		touchscreen-size-y = <272>;
> +	};
> +
> +	tlv320aic3106: tlv320aic3106@1b {
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x1b>;
> +		status = "okay";
> +
> +		/* Regulators */
> +		AVDD-supply = <&dcdc4>;
> +		IOVDD-supply = <&dcdc4>;
> +		DRVDD-supply = <&dcdc4>;
> +		DVDD-supply = <&ldo1>;
> +	};
> +
> +	lis331dlh@18 {
> +		compatible = "st,lis331dlh";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		Vdd-supply = <&dcdc4>;
> +		Vdd_IO-supply = <&dcdc4>;
> +		interrupts-extended = <&gpio1 6 0>, <&gpio2 1 0>;
> +	};
> +};
> +
> +&epwmss0 {
> +	status = "okay";
> +};
> +
> +&ecap0 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&ecap0_pins>;
> +};
> +
> +&gpio0 {
> +	status = "okay";
> +};
> +
> +&gpio1 {
> +	status = "okay";
> +};
> +
> +&gpio5 {
> +	status = "okay";
> +};
> +
> +&mmc1 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mmc1_pins>;
> +
> +	vmmc-supply = <&dcdc4>;
> +	bus-width = <4>;
> +	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; };
> +
> +&usb2_phy1 {
> +	status = "okay";
> +};
> +
> +&usb1 {
> +	dr_mode = "peripheral";
> +	status = "okay";
> +};
> +
> +&usb2_phy2 {
> +	status = "okay";
> +};
> +
> +&usb2 {
> +	dr_mode = "host";
> +	status = "okay";
> +};
> +
> +&qspi {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&qspi_pins>;
> +
> +	spi-max-frequency = <48000000>;
> +	m25p80@0 {
> +		compatible = "mx66l51235l";
> +		spi-max-frequency = <48000000>;
> +		reg = <0>;
> +		spi-cpol;
> +		spi-cpha;
> +		spi-tx-bus-width = <1>;
> +		spi-rx-bus-width = <4>;
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +
> +		/* MTD partition table.
> +		 * The ROM checks the first 512KiB
> +		 * for a valid file to boot(XIP).
> +		 */
> +		partition@0 {
> +			label = "QSPI.U_BOOT";
> +			reg = <0x00000000 0x000080000>;
> +		};
> +		partition@1 {
> +			label = "QSPI.U_BOOT.backup";
> +			reg = <0x00080000 0x00080000>;
> +		};
> +		partition@2 {
> +			label = "QSPI.U-BOOT-SPL_OS";
> +			reg = <0x00100000 0x00010000>;
> +		};
> +		partition@3 {
> +			label = "QSPI.U_BOOT_ENV";
> +			reg = <0x00110000 0x00010000>;
> +		};
> +		partition@4 {
> +			label = "QSPI.U-BOOT-ENV.backup";
> +			reg = <0x00120000 0x00010000>;
> +		};
> +		partition@5 {
> +			label = "QSPI.KERNEL";
> +			reg = <0x00130000 0x0800000>;
> +		};
> +		partition@6 {
> +			label = "QSPI.FILESYSTEM";
> +			reg = <0x00930000 0x36D0000>;
> +		};
> +	};
> +};
> +
> +&mac {
> +	pinctrl-names = "default", "sleep";
> +	pinctrl-0 = <&cpsw_default>;
> +	pinctrl-1 = <&cpsw_sleep>;
> +	dual_emac = <1>;
> +	status = "okay";
> +};
> +
> +&davinci_mdio {
> +	pinctrl-names = "default", "sleep";
> +	pinctrl-0 = <&davinci_mdio_default>;
> +	pinctrl-1 = <&davinci_mdio_sleep>;
> +	status = "okay";
> +};
> +
> +&cpsw_emac0 {
> +	phy_id = <&davinci_mdio>, <4>;
> +	phy-mode = "rgmii";
> +	dual_emac_res_vlan = <1>;
> +};
> +
> +&cpsw_emac1 {
> +	phy_id = <&davinci_mdio>, <5>;
> +	phy-mode = "rgmii";
> +	dual_emac_res_vlan = <2>;
> +};
> +
> +&elm {
> +	status = "okay";
> +};
> +
> +&mcasp1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mcasp1_pins>;
> +
> +	status = "okay";
> +
> +	op-mode = <0>;
> +	tdm-slots = <2>;
> +	serial-dir = <
> +		0 0 1 2
> +	>;
> +
> +	tx-num-evt = <1>;
> +	rx-num-evt = <1>;
> +};
> +
> +&dss {
> +	status = "okay";
> +
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&dss_pins>;
> +
> +	port {
> +		dpi_out: endpoint@0 {
> +			remote-endpoint = <&lcd_in>;
> +			data-lines = <24>;
> +		};
> +	};
> +};
> +
> +&rtc {
> +	status = "okay";
> +};
> +
> +&wdt {
> +	status = "okay";
> +};
> --
> 2.0.0.390.gcb682f8


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
@ 2014-06-24 18:39   ` Cooper Jr., Franklin
  2014-06-24 20:51   ` Tom Rini
  2014-06-24 21:11   ` Rob Herring
  2 siblings, 0 replies; 13+ messages in thread
From: Cooper Jr., Franklin @ 2014-06-24 18:39 UTC (permalink / raw)
  To: Balbi, Felipe, Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Nayak, Rajendra, Menon,
	Nishanth, R, Sricharan, devicetree, Linux Kernel Mailing List,
	Linux OMAP Mailing List, Linux ARM Kernel Mailing List

Tested-by: Franklin Cooper Jr. <fcooper@ti.com>

> -----Original Message-----
> From: Balbi, Felipe
> Sent: Monday, June 23, 2014 1:21 PM
> To: Benoit Cousson
> Cc: robh+dt@kernel.org; galak@codeaurora.org; Tony Lindgren;
> linux@arm.linux.org.uk; Nayak, Rajendra; Menon, Nishanth; R, Sricharan;
> devicetree@vger.kernel.org; Linux Kernel Mailing List; Linux OMAP Mailing
> List; Linux ARM Kernel Mailing List; Balbi, Felipe
> Subject: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through
> phandles
> 
> by providing phandles to rtc, wdt, cpu and dispc nodes, boards can access
> them to add board-specific data.
> 
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
> 
> Changes since v1:
> 	- added phandles to cpu and dispc
> 
>  arch/arm/boot/dts/am4372.dtsi | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
> index 49fa596..8d3c163 100644
> --- a/arch/arm/boot/dts/am4372.dtsi
> +++ b/arch/arm/boot/dts/am4372.dtsi
> @@ -30,7 +30,7 @@
>  	cpus {
>  		#address-cells = <1>;
>  		#size-cells = <0>;
> -		cpu@0 {
> +		cpu: cpu@0 {
>  			compatible = "arm,cortex-a9";
>  			device_type = "cpu";
>  			reg = <0>;
> @@ -270,7 +270,7 @@
>  			ti,hwmods = "counter_32k";
>  		};
> 
> -		rtc@44e3e000 {
> +		rtc: rtc@44e3e000 {
>  			compatible = "ti,am4372-rtc","ti,da830-rtc";
>  			reg = <0x44e3e000 0x1000>;
>  			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH @@ -
> 279,7 +279,7 @@
>  			status = "disabled";
>  		};
> 
> -		wdt@44e35000 {
> +		wdt: wdt@44e35000 {
>  			compatible = "ti,am4372-wdt","ti,omap3-wdt";
>  			reg = <0x44e35000 0x1000>;
>  			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; @@
> -871,7 +871,7 @@
>  			#size-cells = <1>;
>  			ranges;
> 
> -			dispc@4832a400 {
> +			dispc: dispc@4832a400 {
>  				compatible = "ti,omap3-dispc";
>  				reg = <0x4832a400 0x400>;
>  				interrupts = <GIC_SPI 127
> IRQ_TYPE_LEVEL_HIGH>;
> --
> 2.0.0.390.gcb682f8


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
  2014-06-24 18:39   ` Cooper Jr., Franklin
@ 2014-06-24 20:51   ` Tom Rini
  2014-06-24 21:11   ` Rob Herring
  2 siblings, 0 replies; 13+ messages in thread
From: Tom Rini @ 2014-06-24 20:51 UTC (permalink / raw)
  To: Felipe Balbi, Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List

On 06/23/2014 02:20 PM, Felipe Balbi wrote:
> by providing phandles to rtc, wdt, cpu and dispc nodes,
> boards can access them to add board-specific data.
> 
> Signed-off-by: Felipe Balbi <balbi@ti.com>

Tested-by: Tom Rini <trini@ti.com>

-- 
Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit
  2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
  2014-06-24 18:36   ` Cooper Jr., Franklin
@ 2014-06-24 20:51   ` Tom Rini
  2014-06-25  2:07   ` Darren Etheridge
  2 siblings, 0 replies; 13+ messages in thread
From: Tom Rini @ 2014-06-24 20:51 UTC (permalink / raw)
  To: Felipe Balbi, Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Josh Elliot, Darren Etheridge

On 06/23/2014 02:20 PM, Felipe Balbi wrote:
> Add support for TI's AM437x StarterKit Evaluation
> Module.
> 
> Cc: Josh Elliot <jelliott@ti.com>
> Cc: Darren Etheridge <detheridge@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>

Tested-by: Tom Rini <trini@ti.com>

-- 
Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
  2014-06-24 18:39   ` Cooper Jr., Franklin
  2014-06-24 20:51   ` Tom Rini
@ 2014-06-24 21:11   ` Rob Herring
  2014-06-25  1:40     ` Felipe Balbi
  2 siblings, 1 reply; 13+ messages in thread
From: Rob Herring @ 2014-06-24 21:11 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Benoit Cousson, Rob Herring, Kumar Gala, Tony Lindgren,
	Russell King - ARM Linux, Rajendra Nayak, Nishanth Menon,
	Sricharan R, devicetree, Linux Kernel Mailing List,
	Linux OMAP Mailing List, Linux ARM Kernel Mailing List

On Mon, Jun 23, 2014 at 1:20 PM, Felipe Balbi <balbi@ti.com> wrote:
> by providing phandles to rtc, wdt, cpu and dispc nodes,
> boards can access them to add board-specific data.

Strictly speaking, you are adding labels, not phandles. You can do
phandles without using labels, but the syntax is not so obvious. I'd
tell you what it is but offhand I don't remember. :)

Rob

> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
>
> Changes since v1:
>         - added phandles to cpu and dispc
>
>  arch/arm/boot/dts/am4372.dtsi | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
> index 49fa596..8d3c163 100644
> --- a/arch/arm/boot/dts/am4372.dtsi
> +++ b/arch/arm/boot/dts/am4372.dtsi
> @@ -30,7 +30,7 @@
>         cpus {
>                 #address-cells = <1>;
>                 #size-cells = <0>;
> -               cpu@0 {
> +               cpu: cpu@0 {
>                         compatible = "arm,cortex-a9";
>                         device_type = "cpu";
>                         reg = <0>;
> @@ -270,7 +270,7 @@
>                         ti,hwmods = "counter_32k";
>                 };
>
> -               rtc@44e3e000 {
> +               rtc: rtc@44e3e000 {
>                         compatible = "ti,am4372-rtc","ti,da830-rtc";
>                         reg = <0x44e3e000 0x1000>;
>                         interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH
> @@ -279,7 +279,7 @@
>                         status = "disabled";
>                 };
>
> -               wdt@44e35000 {
> +               wdt: wdt@44e35000 {
>                         compatible = "ti,am4372-wdt","ti,omap3-wdt";
>                         reg = <0x44e35000 0x1000>;
>                         interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
> @@ -871,7 +871,7 @@
>                         #size-cells = <1>;
>                         ranges;
>
> -                       dispc@4832a400 {
> +                       dispc: dispc@4832a400 {
>                                 compatible = "ti,omap3-dispc";
>                                 reg = <0x4832a400 0x400>;
>                                 interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
> --
> 2.0.0.390.gcb682f8
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-24 21:11   ` Rob Herring
@ 2014-06-25  1:40     ` Felipe Balbi
  2014-06-25 11:14       ` Mark Rutland
  0 siblings, 1 reply; 13+ messages in thread
From: Felipe Balbi @ 2014-06-25  1:40 UTC (permalink / raw)
  To: Rob Herring
  Cc: Felipe Balbi, Benoit Cousson, Rob Herring, Kumar Gala,
	Tony Lindgren, Russell King - ARM Linux, Rajendra Nayak,
	Nishanth Menon, Sricharan R, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

Hi,

On Tue, Jun 24, 2014 at 04:11:48PM -0500, Rob Herring wrote:
> On Mon, Jun 23, 2014 at 1:20 PM, Felipe Balbi <balbi@ti.com> wrote:
> > by providing phandles to rtc, wdt, cpu and dispc nodes,
> > boards can access them to add board-specific data.
> 
> Strictly speaking, you are adding labels, not phandles. You can do

heh, fair point. Easily editable when applying, though (?)

> phandles without using labels, but the syntax is not so obvious. I'd
> tell you what it is but offhand I don't remember. :)

something along the lines of using the full path ?

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit
  2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
  2014-06-24 18:36   ` Cooper Jr., Franklin
  2014-06-24 20:51   ` Tom Rini
@ 2014-06-25  2:07   ` Darren Etheridge
  2 siblings, 0 replies; 13+ messages in thread
From: Darren Etheridge @ 2014-06-25  2:07 UTC (permalink / raw)
  To: Felipe Balbi, Benoit Cousson
  Cc: robh+dt, galak, Tony Lindgren, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Josh Elliot

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

On 06/23/2014 01:20 PM, Felipe Balbi wrote:
> Add support for TI's AM437x StarterKit Evaluation
> Module.
>
> Cc: Josh Elliot <jelliott@ti.com>
> Cc: Darren Etheridge <detheridge@ti.com>
> Signed-off-by: Felipe Balbi <balbi@ti.com>

Tested-by: Darren Etheridge <detheridge@ti.com>

I tested with omap2plus_defconfig + additionally enabling OMAPDSS and 
Backlight in .config.  Working great for me with ethernet, sdcard, lcd 
panel and backlight all functional.

dmesg log attached - generated by kernel built from the repo/branch 
Felipe pointed to in the cover letter for this series and obviously 
running on an AM437x StarterKit EVM.

Darren

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dmesg-am437x-sk.log --]
[-- Type: text/x-log; name="dmesg-am437x-sk.log", Size: 21088 bytes --]

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.16.0-rc1-next-20140617-00935-g2072735 (darrene@build-laptop) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) ) #5 SMP Tue Jun 24 17:42:32 CDT 2014
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM437x SK EVM
[    0.000000] cma: CMA: reserved 16 MiB at ae800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0956880, node_mem_map edff1000
[    0.000000]   Normal zone: 1520 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 528 pages used for memmap
[    0.000000]   HighMem zone: 67584 pages, LIFO batch:15
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM437x ES1.1 (sgx neon )
[    0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
[    0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] OMAP L2C310: ROM does not support power control setting
[    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x7e430000
[    0.000000] PERCPU: Embedded 9 pages/cpu @edfb5000 s14336 r8192 d14336 u36864
[    0.000000] pcpu-alloc: s14336 r8192 d14336 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260624
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1005092K/1048576K available (6039K kernel code, 705K rwdata, 2388K rodata, 414K init, 8220K bss, 43484K reserved, 270336K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0843100   (8429 kB)
[    0.000000]       .init : 0xc0844000 - 0xc08ab800   ( 414 kB)
[    0.000000]       .data : 0xc08ac000 - 0xc095c498   ( 706 kB)
[    0.000000]        .bss : 0xc095c498 - 0xc11635e0   (8221 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000062] OMAP clocksource: timer1 at 24000000 Hz
[    0.000643] Console: colour dummy device 80x30
[    0.000680] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000692] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000702] ... MAX_LOCK_DEPTH:          48
[    0.000711] ... MAX_LOCKDEP_KEYS:        8191
[    0.000720] ... CLASSHASH_SIZE:          4096
[    0.000729] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.000738] ... MAX_LOCKDEP_CHAINS:      65536
[    0.000747] ... CHAINHASH_SIZE:          32768
[    0.000756]  memory used by lock dependency info: 5167 kB
[    0.000765]  per task-struct memory footprint: 1152 bytes
[    0.000804] Calibrating delay loop... 1993.93 BogoMIPS (lpj=9969664)
[    0.119229] pid_max: default: 32768 minimum: 301
[    0.119549] Security Framework initialized
[    0.119650] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.119666] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.121422] CPU: Testing write buffer coherency: ok
[    0.122355] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.122459] Setting up static identity map for 0x805b9230 - 0x805b92a0
[    0.125160] Brought up 1 CPUs
[    0.125179] SMP: Total of 1 processors activated.
[    0.125193] CPU: All CPU(s) started in SVC mode.
[    0.127382] devtmpfs: initialized
[    0.137997] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.171344] omap_hwmod: tptc0 using broken dt data from edma
[    0.171647] omap_hwmod: tptc1 using broken dt data from edma
[    0.171925] omap_hwmod: tptc2 using broken dt data from edma
[    0.236581] omap_hwmod: dss_dispc: cannot be enabled for reset (3)
[    0.239887] omap_hwmod: dss_rfbi: cannot be enabled for reset (3)
[    0.241769] pinctrl core: initialized pinctrl subsystem
[    0.243762] regulator-dummy: no parameters
[    0.266686] NET: Registered protocol family 16
[    0.271145] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.272944] cpuidle: using governor ladder
[    0.272992] cpuidle: using governor menu
[    0.287209] platform 49000000.edma: alias fck already exists
[    0.287293] platform 49000000.edma: alias fck already exists
[    0.287314] platform 49000000.edma: alias fck already exists
[    0.288633] platform 44e3e000.rtc: Cannot lookup hwmod 'rtc'
[    0.290482] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[    0.291100] OMAP GPIO hardware version 0.1
[    0.292129] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[    0.293422] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[    0.297098] platform 53701000.des: Cannot lookup hwmod 'des'
[    0.303135] No ATAGs?
[    0.303220] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.303256] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.338263] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.338869] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@0[0]'
[    0.339398] V5_0D: 5000 mV
[    0.339537] reg-fixed-voltage fixedregulator@0: Failed to find supply vin
[    0.340842] reg-fixed-voltage fixedregulator@0: Failed to register regulator: -517
[    0.340893] platform fixedregulator@0: Driver reg-fixed-voltage requests probe deferral
[    0.341008] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@1[0]'
[    0.341286] VBUS_USB: 5000 mV
[    0.341401] reg-fixed-voltage fixedregulator@1: Failed to find supply vin
[    0.341672] reg-fixed-voltage fixedregulator@1: Failed to register regulator: -517
[    0.341709] platform fixedregulator@1: Driver reg-fixed-voltage requests probe deferral
[    0.344303] SCSI subsystem initialized
[    0.344904] usbcore: registered new interface driver usbfs
[    0.345050] usbcore: registered new interface driver hub
[    0.347504] usbcore: registered new device driver usb
[    0.348353] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/i2c0_pins, deferring probe
[    0.348397] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.348454] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/i2c1_pins, deferring probe
[    0.348478] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
[    0.349489] Advanced Linux Sound Architecture Driver Initialized.
[    0.352214] Switched to clocksource timer1
[    0.459745] NET: Registered protocol family 2
[    0.461308] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.461502] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.463402] TCP: Hash tables configured (established 8192 bind 8192)
[    0.463731] TCP: reno registered
[    0.463793] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.464052] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.465147] NET: Registered protocol family 1
[    0.466781] RPC: Registered named UNIX socket transport module.
[    0.466822] RPC: Registered udp transport module.
[    0.466834] RPC: Registered tcp transport module.
[    0.466846] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.470306] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.474374] VFS: Disk quotas dquot_6.5.2
[    0.474486] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.476580] NFS: Registering the id_resolver key type
[    0.476868] Key type id_resolver registered
[    0.476904] Key type id_legacy registered
[    0.477049] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.477412] msgmni has been set to 1467
[    0.481434] bounce: pool size: 64 pages
[    0.481605] io scheduler noop registered
[    0.481631] io scheduler deadline registered
[    0.481696] io scheduler cfq registered (default)
[    0.485979] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796
[    0.490000] pwm-backlight backlight: GPIO lookup for consumer enable
[    0.490022] pwm-backlight backlight: using device tree for GPIO lookup
[    0.490040] of_get_named_gpiod_flags: can't parse gpios property of node '/backlight[0]'
[    0.490054] of_get_named_gpiod_flags: can't parse gpios property of node '/backlight[0]'
[    0.490067] pwm-backlight backlight: using lookup tables for GPIO lookup
[    0.490183] pwm-backlight backlight: lookup for GPIO enable failed
[    0.490289] backlight supply power not found, using dummy regulator
[    0.492682] DSS: set fck to 200000000
[    0.493245] DSS: dss_runtime_get
[    0.493292] DSS: dss_restore_context
[    0.493336] OMAP DSS rev 2.0
[    0.493346] DSS: dss_runtime_put
[    0.493360] DSS: dss_save_context
[    0.493370] DSS: context saved
[    0.493854] DISPC: dispc_runtime_get
[    0.493895] DSS: dss_restore_context
[    0.493907] DSS: context restored
[    0.493941] DISPC: dispc_restore_context
[    0.493968] omapdss_dispc 4832a400.dispc: OMAP DISPC rev 3.0
[    0.493979] DISPC: dispc_runtime_put
[    0.493996] DISPC: dispc_save_context
[    0.494032] DISPC: context saved
[    0.495376] panel-dpi display: GPIO lookup for consumer enable
[    0.495397] panel-dpi display: using device tree for GPIO lookup
[    0.495451] of_get_named_gpiod_flags exited with status 0
[    0.496831] DISPC: dispc_runtime_get
[    0.497089] DISPC: dispc_runtime_put
[    0.497111] DISPC: dispc_save_context
[    0.497148] DISPC: context saved
[    0.497358] DISPC: dispc_runtime_get
[    0.497509] DISPC: dispc_runtime_put
[    0.497548] DISPC: dispc_save_context
[    0.497579] DISPC: context saved
[    0.497604] DISPC: dispc_runtime_get
[    0.497635] DISPC: dispc_runtime_put
[    0.497650] DISPC: dispc_save_context
[    0.497676] DISPC: context saved
[    0.497696] DISPC: dispc_runtime_get
[    0.497723] DISPC: dispc_runtime_put
[    0.497737] DISPC: dispc_save_context
[    0.497760] DISPC: context saved
[    0.497960] DSS: dss_save_context
[    0.498009] DSS: context saved
[    0.501233] APPLY: omap_dss_mgr_apply(lcd)
[    0.502209] Console: switching to colour frame buffer device 60x34
[    0.504855] APPLY: omap_dss_mgr_apply(lcd)
[    0.504885] APPLY: omap_dss_mgr_apply(lcd)
[    0.504900] DPI: dpi_set_timings
[    0.505078] DISPC: dispc_runtime_get
[    0.505210] DSS: dss_restore_context
[    0.505225] DSS: context restored
[    0.505552] DSS: set fck to 198000000
[    0.508202] APPLY: writing mgr 0 regs
[    0.508252] APPLY: writing ovl 0 regs
[    0.508273] DISPC: dispc_ovl_setup 0, pa 0xae840000, pa_uv 0x00000000, sw 480, 0,0, 480x272 -> 480x272, cmode 40, rot 0, mir 0, chan 0 repl 1
[    0.508291] DISPC: calc_rot(0): scrw 480, 480x272
[    0.508304] DISPC: offset0 0, offset1 0, row_inc 1, pix_inc 1
[    0.508318] DISPC: 0,0 480x272 -> 480x272
[    0.508332] APPLY: writing ovl 0 regs extra
[    0.508342] DISPC: dispc_enable_plane 0, 1
[    0.508355] DISPC: fifo(0) threshold (bytes), old 960/1023, new 960/1023
[    0.508364] APPLY: writing ovl 1 regs
[    0.508372] APPLY: writing ovl 1 regs extra
[    0.508381] APPLY: writing ovl 2 regs
[    0.508389] APPLY: writing ovl 2 regs extra
[    0.508398] APPLY: writing mgr 0 regs extra
[    0.508408] DISPC: channel 0 xres 480 yres 272
[    0.508419] DISPC: pck 9000000
[    0.508429] DISPC: hsw 4 hfp 8 hbp 43 vsw 10 vfp 4 vbp 12
[    0.508440] DISPC: vsync_level 1 hsync_level 1 data_pclk_edge 1 de_level 0 sync_pclk_edge 0
[    0.508449] DISPC: hsync 16822Hz, vsync 56Hz
[    0.508461] DISPC: lck = 198000000 (1)
[    0.508470] DISPC: pck = 9000000 (22)
[    0.508743] omapfb omapfb: using display 'lcd' mode 480x272
[    0.510994] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.516430] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.516467] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@44e09000[0]'
[    0.516488] omap_uart 44e09000.serial: No clock speed specified: using default: 48000000
[    0.517035] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 104, base_baud = 3000000) is a OMAP UART0
[    1.369909] console [ttyO0] enabled
[    1.393306] brd: module loaded
[    1.407599] loop: module loaded
[    1.413502] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.421194] ti-qspi 47900000.qspi: memory mapped resource not required
[    1.519456] usbcore: registered new interface driver asix
[    1.525443] usbcore: registered new interface driver ax88179_178a
[    1.531942] usbcore: registered new interface driver cdc_ether
[    1.538249] usbcore: registered new interface driver smsc95xx
[    1.544429] usbcore: registered new interface driver net1080
[    1.550443] usbcore: registered new interface driver cdc_subset
[    1.556778] usbcore: registered new interface driver zaurus
[    1.562813] usbcore: registered new interface driver cdc_ncm
[    1.570817] usbcore: registered new interface driver cdc_wdm
[    1.577089] usbcore: registered new interface driver usb-storage
[    1.583590] usbcore: registered new interface driver usbtest
[    1.591744] mousedev: PS/2 mouse device common for all mice
[    1.600240] omap_rtc 44e3e000.rtc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info
[    1.610515] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.618113] 44e3e000.rtc: already running
[    1.622972] i2c /dev entries driver
[    1.626696] Driver for 1-wire Dallas network protocol.
[    1.636377] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.644980] of_get_named_gpiod_flags exited with status 0
[    1.645005] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
[    1.646047] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[    1.653419] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.661412] of_get_named_gpiod_flags exited with status 0
[    1.661441] of_get_named_gpiod_flags exited with status 0
[    1.661461] of_get_named_gpiod_flags exited with status 0
[    1.661479] of_get_named_gpiod_flags exited with status 0
[    1.661501] of_get_named_gpiod_flags exited with status 0
[    1.662298] of_get_named_gpiod_flags exited with status 0
[    1.662599] of_get_named_gpiod_flags exited with status 0
[    1.662851] of_get_named_gpiod_flags exited with status 0
[    1.663539] ledtrig-cpu: registered to indicate activity on CPUs
[    1.670316] usbcore: registered new interface driver usbhid
[    1.676218] usbhid: USB HID core driver
[    1.686465] davinci_evm sound: ASoC: CODEC (null) not registered
[    1.693258] davinci_evm sound: snd_soc_register_card failed (-517)
[    1.699796] platform sound: Driver davinci_evm requests probe deferral
[    1.707389] oprofile: no performance counters
[    1.712705] oprofile: using timer interrupt.
[    1.717756] TCP: cubic registered
[    1.721275] Initializing XFRM netlink socket
[    1.725922] NET: Registered protocol family 17
[    1.730642] NET: Registered protocol family 15
[    1.735760] Key type dns_resolver registered
[    1.740441] omap_voltage_late_init: Voltage driver support not added
[    1.747176] sr_dev_init: No voltage domain specified for smartreflex0. Cannot initialize
[    1.755674] sr_dev_init: No voltage domain specified for smartreflex1. Cannot initialize
[    1.765097] ThumbEE CPU extension supported.
[    1.769618] Registering SWP/SWPB emulation handler
[    1.774719] SmartReflex Class3 initialized
[    1.786932] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@0[0]'
[    1.787552] V5_0D: 5000 mV
[    1.790632] reg-fixed-voltage fixedregulator@0: Failed to find supply vin
[    1.798436] reg-fixed-voltage fixedregulator@0: Failed to register regulator: -517
[    1.806537] platform fixedregulator@0: Driver reg-fixed-voltage requests probe deferral
[    1.815438] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@1[0]'
[    1.815766] VBUS_USB: 5000 mV
[    1.819088] reg-fixed-voltage fixedregulator@1: Failed to find supply vin
[    1.826567] reg-fixed-voltage fixedregulator@1: Failed to register regulator: -517
[    1.834559] platform fixedregulator@1: Driver reg-fixed-voltage requests probe deferral
[    1.864401] vdd_core: 920 <--> 1140 mV at 1100 mV
[    1.872723] vdd_mpu: 920 <--> 1375 mV at 1330 mV
[    1.880067] vdds_ddr: 1350 mV
[    1.885953] v3_3d: 3300 mV
[    1.891406] v1_8d: 1800 mV
[    1.895981] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 400 kHz
[    1.907140] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/i2c@4802a000/tlv320aic3106@1b[0]'
[    1.909258] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 400 kHz
[    1.915920] of_get_named_gpiod_flags exited with status 0
[    1.915947] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
[    1.956837] davinci_evm sound: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
[    1.985824] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@0[0]'
[    1.986188] V5_0D: 5000 mV
[    1.989231] V5_0D: supplied by v3_3d
[    1.993646] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@1[0]'
[    1.993982] VBUS_USB: 5000 mV
[    1.997291] VBUS_USB: supplied by V5_0D
[    2.029373] mmc0: host does not support reading read-only switch. assuming write-enable.
[    2.039924] mmc0: new high speed SDHC card at address 0001
[    2.049058] mmcblk0: mmc0:0001 00000 14.6 GiB
[    2.058925]  mmcblk0: p1 p2
[    2.062698] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.069120] davinci_mdio 4a101000.mdio: detected phy mask ffffffcf
[    2.081905] libphy: 4a101000.mdio: probed
[    2.086292] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver unknown
[    2.094745] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver unknown
[    2.104147] cpsw 4a100000.ethernet: Detected MACID = 34:b1:f7:31:45:4b
[    2.113009] cpsw 4a100000.ethernet: cpsw: Detected MACID = 34:b1:f7:31:45:4d
[    2.122132] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.131167] sr_init: No PMIC hook to init smartreflex
[    2.136698] sr_init: platform driver register failed for SR
[    2.156224] ALSA device list:
[    2.159357]   #0: AM437x-SK-EVM
[    2.322629] EXT4-fs (mmcblk0p2): recovery complete
[    2.329912] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.338573] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.354804] devtmpfs: mounted
[    2.358353] Freeing unused kernel memory: 412K (c0844000 - c08ab000)
>[    3.032245] udevd[783]: starting version 182
[    4.003482] lis3lv02d: 16 bits lis331dlh sensor found
[    4.142890] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
[    4.340037] of_get_named_gpiod_flags exited with status 0
[    4.340072] of_get_named_gpiod_flags exited with status 0
[    4.340090] of_get_named_gpiod_flags exited with status 0
[    4.340110] of_get_named_gpiod_flags exited with status 0
[    4.341037] input: matrix_keypad@0 as /devices/matrix_keypad@0/input/input1
[    7.454529] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.000585] random: nonblocking pool is initialized
[    8.103464] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    9.099669] net eth0: initializing cpsw version 1.15 (0)
[    9.182898] net eth0: phy found : id is : 0x221621
[   13.183101] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles
  2014-06-25  1:40     ` Felipe Balbi
@ 2014-06-25 11:14       ` Mark Rutland
  0 siblings, 0 replies; 13+ messages in thread
From: Mark Rutland @ 2014-06-25 11:14 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Rob Herring, Benoit Cousson, Rob Herring, Kumar Gala,
	Tony Lindgren, Russell King - ARM Linux, Rajendra Nayak,
	Nishanth Menon, Sricharan R, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List

On Wed, Jun 25, 2014 at 02:40:16AM +0100, Felipe Balbi wrote:
> Hi,
> 
> On Tue, Jun 24, 2014 at 04:11:48PM -0500, Rob Herring wrote:
> > On Mon, Jun 23, 2014 at 1:20 PM, Felipe Balbi <balbi@ti.com> wrote:
> > > by providing phandles to rtc, wdt, cpu and dispc nodes,
> > > boards can access them to add board-specific data.
> > 
> > Strictly speaking, you are adding labels, not phandles. You can do
> 
> heh, fair point. Easily editable when applying, though (?)
> 
> > phandles without using labels, but the syntax is not so obvious. I'd
> > tell you what it is but offhand I don't remember. :)
> 
> something along the lines of using the full path ?

Yup. The full path in braces:

	phandle-property = <&{/full/path/to/node@0xDEAD}>;

Mark.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 0/2] arm: dts: add support for am437x sk
  2014-06-23 18:20 [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
  2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
  2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
@ 2014-06-30 16:45 ` Felipe Balbi
  2014-07-01 12:50   ` Tony Lindgren
  2 siblings, 1 reply; 13+ messages in thread
From: Felipe Balbi @ 2014-06-30 16:45 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Benoit Cousson, robh+dt, galak, Tony Lindgren, linux,
	Rajendra Nayak, Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

Hi,

On Mon, Jun 23, 2014 at 01:20:57PM -0500, Felipe Balbi wrote:
> Hi,
> 
> here's v3 of am437x sk support. Patches tested on top of next-20140617.
> 
> Note that this series was tested with the following extra patches:
> 
> http://marc.info/?l=linux-omap&m=140299431732700&w=2
> http://marc.info/?l=linux-omap&m=140300146503126&w=2
> http://marc.info/?l=linux-omap&m=140299231232123
> http://marc.info/?l=linux-omap&m=140310472709968&w=2
> http://marc.info/?l=linux-omap&m=140310471409959&w=2
> 
> A branch is also available with all these patches at [1].
> 
> [1] http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=am437x-starterkit
> 
> Felipe Balbi (2):
>   arm: dts: am4372: let boards access all nodes through phandles
>   arm: dts: add support for AM437x StarterKit

ping on this series, it has been tested by several folks and still no
updates from anybody in the DT land.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3 0/2] arm: dts: add support for am437x sk
  2014-06-30 16:45 ` [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
@ 2014-07-01 12:50   ` Tony Lindgren
  0 siblings, 0 replies; 13+ messages in thread
From: Tony Lindgren @ 2014-07-01 12:50 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Benoit Cousson, robh+dt, galak, linux, Rajendra Nayak,
	Nishanth Menon, r.sricharan, devicetree,
	Linux Kernel Mailing List, Linux OMAP Mailing List,
	Linux ARM Kernel Mailing List, Andrew Morton

* Felipe Balbi <balbi@ti.com> [140630 09:47]:
> Hi,
> 
> On Mon, Jun 23, 2014 at 01:20:57PM -0500, Felipe Balbi wrote:
> > Hi,
> > 
> > here's v3 of am437x sk support. Patches tested on top of next-20140617.
> > 
> > Note that this series was tested with the following extra patches:
> > 
> > http://marc.info/?l=linux-omap&m=140299431732700&w=2
> > http://marc.info/?l=linux-omap&m=140300146503126&w=2
> > http://marc.info/?l=linux-omap&m=140299231232123
> > http://marc.info/?l=linux-omap&m=140310472709968&w=2
> > http://marc.info/?l=linux-omap&m=140310471409959&w=2
> > 
> > A branch is also available with all these patches at [1].
> > 
> > [1] http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/log/?h=am437x-starterkit
> > 
> > Felipe Balbi (2):
> >   arm: dts: am4372: let boards access all nodes through phandles
> >   arm: dts: add support for AM437x StarterKit
> 
> ping on this series, it has been tested by several folks and still no
> updates from anybody in the DT land.

Thanks applying both into omap-for-v3.17/dt branch.

Regards,

Tony

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-07-01 12:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-23 18:20 [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
2014-06-23 18:20 ` [PATCH v3 1/2] arm: dts: am4372: let boards access all nodes through phandles Felipe Balbi
2014-06-24 18:39   ` Cooper Jr., Franklin
2014-06-24 20:51   ` Tom Rini
2014-06-24 21:11   ` Rob Herring
2014-06-25  1:40     ` Felipe Balbi
2014-06-25 11:14       ` Mark Rutland
2014-06-23 18:20 ` [PATCH v3 2/2] arm: dts: add support for AM437x StarterKit Felipe Balbi
2014-06-24 18:36   ` Cooper Jr., Franklin
2014-06-24 20:51   ` Tom Rini
2014-06-25  2:07   ` Darren Etheridge
2014-06-30 16:45 ` [PATCH v3 0/2] arm: dts: add support for am437x sk Felipe Balbi
2014-07-01 12:50   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).