Re: [PATCH v3] ARM: dts: add minimal DT support for Nokia N950 N9 phones
On 16/10/2013 02:35, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [131015 13:36]: Add minimal DT support for Nokia N950 N9 phones. The same functionality that is provided by the current board file should work: serial console, USB, OneNAND and MMC. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi Acked-by: Tony Lindgren t...@atomide.com Oh this is not yet merged, I'll pick this one into the omap-for-v3.13/board-removal as the board removal patch is already there. Just to be sure. Does that mean that you'll take care of that one, and thus I do not have to queue it? Thanks, Benoit Regards, Tony --- v3: Added Tony's ACK properties for generic USB PHY framework. Previous version: http://marc.info/?t=138005105700010r=1w=2 arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/omap3-n9.dts | 18 arch/arm/boot/dts/omap3-n950-n9.dtsi | 174 +++ arch/arm/boot/dts/omap3-n950.dts | 18 4 files changed, 212 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-n9.dts create mode 100644 arch/arm/boot/dts/omap3-n950-n9.dtsi create mode 100644 arch/arm/boot/dts/omap3-n950.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9df7d2c..62d0f4d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -177,6 +177,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ omap3-gta04.dtb \ omap3-igep0020.dtb \ omap3-igep0030.dtb \ + omap3-n9.dtb \ + omap3-n950.dtb \ omap4-panda.dtb \ omap4-panda-a4.dtb \ omap4-panda-es.dtb \ diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts new file mode 100644 index 000..39828ce --- /dev/null +++ b/arch/arm/boot/dts/omap3-n9.dts @@ -0,0 +1,18 @@ +/* + * omap3-n9.dts - Device Tree file for Nokia N9 + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * 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 omap3-n950-n9.dtsi + +/ { + model = Nokia N9; + compatible = nokia,omap3-n9, ti,omap3; +}; diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi new file mode 100644 index 000..94eb77d --- /dev/null +++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi @@ -0,0 +1,174 @@ +/* + * omap3-n950-n9.dtsi - Device Tree file for Nokia N950 N9 (common stuff) + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include omap36xx.dtsi + +/ { + cpus { + cpu@0 { + cpu0-supply = vcc; + }; + }; + + memory { + device_type = memory; + reg = 0x8000 0x4000; /* 1 GB */ + }; + + vemmc: fixedregulator@0 { + compatible = regulator-fixed; + regulator-name = VEMMC; + regulator-min-microvolt = 290; + regulator-max-microvolt = 290; + gpio = gpio5 29 0; /* gpio line 157 */ + startup-delay-us = 150; + enable-active-high; + }; +}; + +omap3_pmx_core { + mmc2_pins: pinmux_mmc2_pins { + pinctrl-single,pins = + 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ + 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ + 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ + 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ + 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ + 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ + ; + }; +}; + +i2c1 { + clock-frequency = 290; + + twl: twl@48 { + reg = 0x48; + interrupts = 7; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = intc; + }; +}; + +/include/ twl4030.dtsi + +twl { + compatible = ti,twl5031; +}; + +twl_gpio { + ti,pullups = 0x01; /* BIT(0) */ + ti,pulldowns= 0x008106; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ +}; + +i2c2 { + clock-frequency = 40; +}; + +i2c3 { + clock-frequency = 40; +}; + +mmc1 { + status = disabled; +}; + +mmc2 { + pinctrl-names = default; + pinctrl-0 = mmc2_pins; + vmmc-supply = vemmc; + bus-width = 4; + ti,non-removable; +}; + +mmc3 { + status = disabled; +}; + +usb_otg_hs { + interface-type = 0; + usb-phy = usb2_phy; + phys = usb2_phy; + phy-names = usb2-phy; + mode = 3; + power = 50;
Re: [PATCH v3] ARM: dts: add minimal DT support for Nokia N950 N9 phones
* Benoit Cousson bcous...@baylibre.com [131018 08:57]: On 16/10/2013 02:35, Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [131015 13:36]: Add minimal DT support for Nokia N950 N9 phones. The same functionality that is provided by the current board file should work: serial console, USB, OneNAND and MMC. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi Acked-by: Tony Lindgren t...@atomide.com Oh this is not yet merged, I'll pick this one into the omap-for-v3.13/board-removal as the board removal patch is already there. Just to be sure. Does that mean that you'll take care of that one, and thus I do not have to queue it? Yes I have it already in omap-for-v3.13/board-removal. Regards, Tony -- 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 v3] ARM: dts: add minimal DT support for Nokia N950 N9 phones
Add minimal DT support for Nokia N950 N9 phones. The same functionality that is provided by the current board file should work: serial console, USB, OneNAND and MMC. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi Acked-by: Tony Lindgren t...@atomide.com --- v3: Added Tony's ACK properties for generic USB PHY framework. Previous version: http://marc.info/?t=138005105700010r=1w=2 arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/omap3-n9.dts | 18 arch/arm/boot/dts/omap3-n950-n9.dtsi | 174 +++ arch/arm/boot/dts/omap3-n950.dts | 18 4 files changed, 212 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-n9.dts create mode 100644 arch/arm/boot/dts/omap3-n950-n9.dtsi create mode 100644 arch/arm/boot/dts/omap3-n950.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9df7d2c..62d0f4d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -177,6 +177,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ omap3-gta04.dtb \ omap3-igep0020.dtb \ omap3-igep0030.dtb \ + omap3-n9.dtb \ + omap3-n950.dtb \ omap4-panda.dtb \ omap4-panda-a4.dtb \ omap4-panda-es.dtb \ diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts new file mode 100644 index 000..39828ce --- /dev/null +++ b/arch/arm/boot/dts/omap3-n9.dts @@ -0,0 +1,18 @@ +/* + * omap3-n9.dts - Device Tree file for Nokia N9 + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * 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 omap3-n950-n9.dtsi + +/ { + model = Nokia N9; + compatible = nokia,omap3-n9, ti,omap3; +}; diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi new file mode 100644 index 000..94eb77d --- /dev/null +++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi @@ -0,0 +1,174 @@ +/* + * omap3-n950-n9.dtsi - Device Tree file for Nokia N950 N9 (common stuff) + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include omap36xx.dtsi + +/ { + cpus { + cpu@0 { + cpu0-supply = vcc; + }; + }; + + memory { + device_type = memory; + reg = 0x8000 0x4000; /* 1 GB */ + }; + + vemmc: fixedregulator@0 { + compatible = regulator-fixed; + regulator-name = VEMMC; + regulator-min-microvolt = 290; + regulator-max-microvolt = 290; + gpio = gpio5 29 0; /* gpio line 157 */ + startup-delay-us = 150; + enable-active-high; + }; +}; + +omap3_pmx_core { + mmc2_pins: pinmux_mmc2_pins { + pinctrl-single,pins = + 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ + 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ + 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ + 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ + 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ + 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ + ; + }; +}; + +i2c1 { + clock-frequency = 290; + + twl: twl@48 { + reg = 0x48; + interrupts = 7; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = intc; + }; +}; + +/include/ twl4030.dtsi + +twl { + compatible = ti,twl5031; +}; + +twl_gpio { + ti,pullups = 0x01; /* BIT(0) */ + ti,pulldowns= 0x008106; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ +}; + +i2c2 { + clock-frequency = 40; +}; + +i2c3 { + clock-frequency = 40; +}; + +mmc1 { + status = disabled; +}; + +mmc2 { + pinctrl-names = default; + pinctrl-0 = mmc2_pins; + vmmc-supply = vemmc; + bus-width = 4; + ti,non-removable; +}; + +mmc3 { + status = disabled; +}; + +usb_otg_hs { + interface-type = 0; + usb-phy = usb2_phy; + phys = usb2_phy; + phy-names = usb2-phy; + mode = 3; + power = 50; +}; + +gpmc { + ranges = 0 0 0x0400 0x2000; + + onenand@0,0 { + #address-cells = 1; + #size-cells = 1; + reg = 0 0 0x2000; + + gpmc,sync-read; + gpmc,sync-write; + gpmc,burst-length = 16; + gpmc,burst-read; + gpmc,burst-wrap; +
Re: [PATCH v3] ARM: dts: add minimal DT support for Nokia N950 N9 phones
* Aaro Koskinen aaro.koski...@iki.fi [131015 13:36]: Add minimal DT support for Nokia N950 N9 phones. The same functionality that is provided by the current board file should work: serial console, USB, OneNAND and MMC. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi Acked-by: Tony Lindgren t...@atomide.com Oh this is not yet merged, I'll pick this one into the omap-for-v3.13/board-removal as the board removal patch is already there. Regards, Tony --- v3: Added Tony's ACK properties for generic USB PHY framework. Previous version: http://marc.info/?t=138005105700010r=1w=2 arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/omap3-n9.dts | 18 arch/arm/boot/dts/omap3-n950-n9.dtsi | 174 +++ arch/arm/boot/dts/omap3-n950.dts | 18 4 files changed, 212 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-n9.dts create mode 100644 arch/arm/boot/dts/omap3-n950-n9.dtsi create mode 100644 arch/arm/boot/dts/omap3-n950.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9df7d2c..62d0f4d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -177,6 +177,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ omap3-gta04.dtb \ omap3-igep0020.dtb \ omap3-igep0030.dtb \ + omap3-n9.dtb \ + omap3-n950.dtb \ omap4-panda.dtb \ omap4-panda-a4.dtb \ omap4-panda-es.dtb \ diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts new file mode 100644 index 000..39828ce --- /dev/null +++ b/arch/arm/boot/dts/omap3-n9.dts @@ -0,0 +1,18 @@ +/* + * omap3-n9.dts - Device Tree file for Nokia N9 + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * 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 omap3-n950-n9.dtsi + +/ { + model = Nokia N9; + compatible = nokia,omap3-n9, ti,omap3; +}; diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi new file mode 100644 index 000..94eb77d --- /dev/null +++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi @@ -0,0 +1,174 @@ +/* + * omap3-n950-n9.dtsi - Device Tree file for Nokia N950 N9 (common stuff) + * + * Written by: Aaro Koskinen aaro.koski...@iki.fi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include omap36xx.dtsi + +/ { + cpus { + cpu@0 { + cpu0-supply = vcc; + }; + }; + + memory { + device_type = memory; + reg = 0x8000 0x4000; /* 1 GB */ + }; + + vemmc: fixedregulator@0 { + compatible = regulator-fixed; + regulator-name = VEMMC; + regulator-min-microvolt = 290; + regulator-max-microvolt = 290; + gpio = gpio5 29 0; /* gpio line 157 */ + startup-delay-us = 150; + enable-active-high; + }; +}; + +omap3_pmx_core { + mmc2_pins: pinmux_mmc2_pins { + pinctrl-single,pins = + 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ + 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ + 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ + 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ + 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ + 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ + ; + }; +}; + +i2c1 { + clock-frequency = 290; + + twl: twl@48 { + reg = 0x48; + interrupts = 7; /* SYS_NIRQ cascaded to intc */ + interrupt-parent = intc; + }; +}; + +/include/ twl4030.dtsi + +twl { + compatible = ti,twl5031; +}; + +twl_gpio { + ti,pullups = 0x01; /* BIT(0) */ + ti,pulldowns= 0x008106; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */ +}; + +i2c2 { + clock-frequency = 40; +}; + +i2c3 { + clock-frequency = 40; +}; + +mmc1 { + status = disabled; +}; + +mmc2 { + pinctrl-names = default; + pinctrl-0 = mmc2_pins; + vmmc-supply = vemmc; + bus-width = 4; + ti,non-removable; +}; + +mmc3 { + status = disabled; +}; + +usb_otg_hs { + interface-type = 0; + usb-phy = usb2_phy; + phys = usb2_phy; + phy-names = usb2-phy; + mode = 3; + power = 50; +}; + +gpmc { + ranges = 0 0 0x0400 0x2000; + + onenand@0,0 { + #address-cells = 1; +