linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: dts: imx6: Add DFI FS700-M60 board support
Date: Fri, 17 Jan 2014 14:39:31 +0800	[thread overview]
Message-ID: <20140117063929.GF1565@shlinux1.ap.freescale.net> (raw)
In-Reply-To: <1389876354-24341-1-git-send-email-s.hauer@pengutronix.de>

On Thu, Jan 16, 2014 at 01:45:54PM +0100, Sascha Hauer wrote:
> diff --git a/arch/arm/boot/dts/imx6qdl-dfi-fs700-m60.dtsi b/arch/arm/boot/dts/imx6qdl-dfi-fs700-m60.dtsi
> new file mode 100644
> index 0000000..ca3c748
> --- /dev/null
> +++ b/arch/arm/boot/dts/imx6qdl-dfi-fs700-m60.dtsi
> @@ -0,0 +1,145 @@
> +/ {
> +	regulators {
> +		compatible = "simple-bus";
> +
> +		dummy_reg: fixed at 0 {

regulator at 0

> +			compatible = "regulator-fixed";

reg = <0>;

> +			regulator-name = "dummy-supply";
> +		};
> +
> +		reg_usb_otg_vbus: usb_otg_vbus {

regulator at 1

> +			compatible = "regulator-fixed";

reg = <1>;

> +			regulator-name = "usb_otg_vbus";
> +			regulator-min-microvolt = <5000000>;
> +			regulator-max-microvolt = <5000000>;
> +			gpio = <&gpio3 22 0>;
> +			enable-active-high;
> +		};
> +	};
> +
> +	chosen {
> +		linux,stdout-path = &uart1;
> +	};
> +};
> +
> +&ecspi3 {
> +	fsl,spi-num-chipselects = <1>;
> +	cs-gpios = <&gpio4 24 0>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_ecspi3>;
> +	status = "okay";
> +
> +	flash: m25p80 at 0 {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		compatible = "sst,sst25vf040b", "m25p80";
> +		spi-max-frequency = <20000000>;
> +		reg = <0>;
> +	};
> +};
> +
> +&fec {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_enet>;
> +	status = "okay";
> +	phy-mode = "rgmii";
> +};
> +
> +&iomuxc {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_hog>;
> +
> +	imx6qdl-dfi-fs700-m60 {
> +		pinctrl_hog: hoggrp {
> +			fsl,pins = <
> +				MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x80000000
> +				MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x80000000 /* PMIC irq */
> +				MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x80000000 /* MAX11801 irq */
> +				MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x000030b0 /* Backlight enable */
> +				MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000 /* SD2 card detect */

Can we minimize the pins in hog group by moving the client device's pins
into device's pin entry, just like what you do for
MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24?

> +			>;
> +		};
> +
> +		pinctrl_enet: enetgrp {
> +			fsl,pins = <MX6QDL_ENET_PINGRP1>;
> +		};
> +
> +		pinctrl_i2c2: i2c2grp {
> +			fsl,pins = <MX6QDL_I2C2_PINGRP1>;
> +		};
> +
> +		pinctrl_uart1: uart1grp {
> +			fsl,pins = <MX6QDL_UART1_PINGRP1>;
> +		};
> +
> +		pinctrl_usbotg: usbotggrp {
> +			fsl,pins = <MX6QDL_USBOTG_PINGRP2>;
> +		};
> +
> +		pinctrl_usdhc2: usdhc2grp {
> +			fsl,pins = <MX6QDL_USDHC2_PINGRP_D4>;
> +		};
> +
> +		pinctrl_usdhc3: usdhc3grp {
> +			fsl,pins = <MX6QDL_USDHC3_PINGRP_D4>;
> +		};
> +
> +		pinctrl_usdhc4: usdhc4grp {
> +			fsl,pins = <MX6QDL_USDHC4_PINGRP_D8>;
> +		};
> +	};
> +
> +	ecspi3 {
> +		pinctrl_ecspi3: ecspi3_csgrp {

s/ecspi3_csgrp/ecspi3grp

And just move the node into imx6qdl-dfi-fs700-m60?

Shawn

> +			fsl,pins = <
> +				MX6QDL_ECSPI3_PINGRP1
> +				MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */
> +			>;
> +		};
> +	};
> +};
> +
> +&i2c2 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_i2c2>;
> +	status = "okay";
> +};
> +
> +&uart1 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_uart1>;
> +	status = "okay";
> +};
> +
> +&usbh1 {
> +	status = "okay";
> +};
> +
> +&usbotg {
> +	vbus-supply = <&reg_usb_otg_vbus>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usbotg>;
> +	disable-over-current;
> +	dr_mode = "host";
> +	status = "okay";
> +};
> +
> +&usdhc2 { /* module slot */
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usdhc2>;
> +	cd-gpios = <&gpio2 2 0>;
> +	status = "okay";
> +};
> +
> +&usdhc3 { /* baseboard slot */
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usdhc3>;
> +};
> +
> +&usdhc4 { /* eMMC */
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_usdhc4>;
> +	bus-width = <8>;
> +	non-removable;
> +	status = "okay";
> +};
> -- 
> 1.8.5.2
> 

  reply	other threads:[~2014-01-17  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 12:45 [PATCH] ARM: dts: imx6: Add DFI FS700-M60 board support Sascha Hauer
2014-01-17  6:39 ` Shawn Guo [this message]
2014-01-17  9:08   ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140117063929.GF1565@shlinux1.ap.freescale.net \
    --to=shawn.guo@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).