From patchwork Thu May 22 23:06:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 4227191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 57E9CBF90B for ; Thu, 22 May 2014 23:10:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5443720383 for ; Thu, 22 May 2014 23:10:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 621172037A for ; Thu, 22 May 2014 23:10:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wnc5L-0002NK-Bl; Thu, 22 May 2014 23:07:39 +0000 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wnc50-0002Hn-Th for linux-arm-kernel@lists.infradead.org; Thu, 22 May 2014 23:07:20 +0000 Received: by mail-la0-f41.google.com with SMTP id e16so3306518lan.14 for ; Thu, 22 May 2014 16:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h1IE30kPMJ6mWcbhjUoZMUDyTVgxsf8CGIG1XpEmvbo=; b=E6oOhE/Y7/e8A2oVtxncaC9vkLzRwbFS8eyVMNBjzWzg7UoNMiKr/Y4J/LlDF3rapZ SWlWaoS7TwdlBuVs1P1g28fL0VGkkhEs5ZsQEdUnCvWdm0DcK+btwWyjG/MOtmCeq4MD ayBpuRwuD01eQp+cZXJPJ0QzMEXfFzuwTujeT9oi6F3b7D6n5H0vVHmBIhJs7999x59+ GEQ2bnM/Qnz6pnkSd1eOQ52sZ0nVHs5QVyL88CiBW3dbw8xGIyI0SZLkp/c5lc32CGbF yoaeS/8icRgD8/+gkbg0z5c5Wxv3AZ8MVNc3C2J88RJWlGs2GvORs8EYB+jiZhaPdqxS 4TTQ== X-Received: by 10.152.23.42 with SMTP id j10mr411635laf.19.1400800015880; Thu, 22 May 2014 16:06:55 -0700 (PDT) Received: from mars.ipredator.se (anon-40-223.vpn.ipredator.se. [46.246.40.223]) by mx.google.com with ESMTPSA id z1sm934544lal.6.2014.05.22.16.06.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 16:06:54 -0700 (PDT) From: Christoph Fritz To: Tony Lindgren , Grygorii Strashko , Pekon Gupta , =?UTF-8?q?Beno=C3=AEt=20Cousson?= Subject: [PATCH 2/5] [RFC-HACK] ARM: dts: OMAP3: reorder pinmux_gpio1_pins Date: Fri, 23 May 2014 01:06:23 +0200 Message-Id: <1400799986-20043-3-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1400799986-20043-1-git-send-email-chf.fritz@googlemail.com> References: <1400799986-20043-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140522_160719_380022_263E34B5 X-CRM114-Status: GOOD ( 16.01 ) X-Spam-Score: -0.1 (/) Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Mack X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP pinctrl-single for omap3_pmx_core2 gets deferred which results in some corrupt IRQs so that mmc, spi and dss stop working. Diff of bootlog with (good) and without (fail) this patch: --- good +++ fail cpuidle: using governor ladder cpuidle: using governor menu Reprogramming SDRC clock to 400000000 Hz -pinctrl-single 480025a0.pinmux: 46 pins at pa fa0025a0 size 92 pinctrl-single 48002030.pinmux: 282 pins at pa fa002030 size 564 pinctrl-single 48002a00.pinmux: 46 pins at pa fa002a00 size 92 +omap_gpio 48310000.gpio: could not find pctldev for node /ocp/pinmux@480025a0/pinmux_gpio1_pins, deferring probe +platform 48310000.gpio: Driver omap_gpio requests probe deferral OMAP GPIO hardware version 2.5 platform 49022000.mcbsp: alias fck already exists omap-gpmc 6e000000.gpmc: GPMC revision 5.0 gpmc_probe_nand_child: ti,elm-id property not found gpmc_read_settings_dt: page/burst-length set but not used! gpmc_read_settings_dt: read/write wait monitoring not enabled! +pinctrl-single 480025a0.pinmux: 46 pins at pa fa0025a0 size 92 omap3_dbb056_legacy_init: Late Reparent clkout2 to 96M_FCK omap3_dbb056_legacy_init: Set clkout2 to 24MHz for internal usb hub No ATAGs? @@ -130,8 +132,8 @@ 49020000.serial: ttyO2 at MMIO 0x49020000 (irq = 90, base_baud = 3000000) is a OMAP UART2 brd: module loaded loop: module loaded -twl 0-0048: PIH (irq 23) chaining IRQs 338..346 -twl 0-0048: power (irq 343) chaining IRQs 346..353 +twl 0-0048: PIH (irq 23) chaining IRQs 306..314 +twl 0-0048: power (irq 311) chaining IRQs 314..321 VAUX1: at 3000 mV VAUX2_4030: 2800 mV VAUX3: at 2800 mV @@ -150,7 +152,7 @@ VPLL1: at 1800 mV VPLL2: 1800 mV VSIM: 1800 <--> 3000 mV at 1800 mV -twl4030_gpio twl4030-gpio: gpio (irq 338) chaining IRQs 354..371 +twl4030_gpio twl4030-gpio: gpio (irq 306) chaining IRQs 322..339 twl4030_usb twl4030-usb.29: Initialized TWL4030 USB module mtdoops: mtd device (mtddev=name/number) must be supplied nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xba @@ -164,11 +166,12 @@ 0x000000260000-0x000000280000 : "u-boot-environment" 0x000000280000-0x000000780000 : "kernel" 0x000000780000-0x000010000000 : "filesystem" +irq: no irq domain found for /ocp/gpio@48310000 ! CAN device driver interface sja1000 CAN netdevice driver libphy: smsc911x-mdio: probed smsc911x 15000000.ethernet eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=15000000.etherne:01, irq=-1) @@ -208,16 +211,16 @@ hub 3-0:1.0: USB hub found hub 3-0:1.0: 1 port detected mousedev: PS/2 mouse device common for all mice -ads7846 spi2.0: touchscreen, irq 120 -input: ADS7846 Touchscreen as /devices/68000000.ocp/4809a000.spi/spi_master/spi2/spi2.0/input/input0 +ads7846: probe of spi2.0 failed with error -22 twl_rtc rtc.8: Power up reset detected. twl_rtc rtc.8: Enabling TWL-RTC twl_rtc rtc.8: rtc core: registered rtc.8 as rtc0 i2c /dev entries driver -usb 1-1: new high-speed USB device number 2 using ehci-omap omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec +usb 1-1: new high-speed USB device number 2 using ehci-omap VMMC1: Restricting voltage, 3100000-1950000uV omap_hsmmc 480b4000.mmc: could not set regulator OCR (-22) +platform leds.3: Driver leds-gpio requests probe deferral usbcore: registered new interface driver usbhid usbhid: USB HID core driver usb 1-1: New USB device found, idVendor=0424, idProduct=2512 @@ -239,6 +242,6 @@ Registering SWP/SWPB emulation handler registered taskstats version 1 twl_rtc rtc.8: setting system clock to 2000-01-01 00:00:00 UTC (946684800) -smsc911x 15000000.ethernet eth0: SMSC911x/921x identified at 0xc8856000, IRQ: 241 -smsc911x 20000000.ethernet eth1: SMSC911x/921x identified at 0xc8858000, IRQ: 210 -Sending DHCP requests ... +smsc911x 15000000.ethernet eth0: SMSC911x/921x identified at 0xc8856000, IRQ: 209 +smsc911x 20000000.ethernet eth1: SMSC911x/921x identified at 0xc8858000, IRQ: 178 +Sending DHCP requests ..., OK --- arch/arm/boot/dts/omap34xx.dtsi | 28 ++++++++++++++------------- arch/arm/boot/dts/omap36xx.dtsi | 40 ++++++++++++++++++++------------------- 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/arch/arm/boot/dts/omap34xx.dtsi b/arch/arm/boot/dts/omap34xx.dtsi index 2e92360..4994cb0 100644 --- a/arch/arm/boot/dts/omap34xx.dtsi +++ b/arch/arm/boot/dts/omap34xx.dtsi @@ -8,6 +8,21 @@ * kind, whether express or implied. */ +/ { + ocp { + omap3_pmx_core2: pinmux@480025d8 { + compatible = "ti,omap3-padconf", "pinctrl-single"; + reg = <0x480025d8 0x24>; + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + pinctrl-single,register-width = <16>; + pinctrl-single,function-mask = <0xff1f>; + }; + }; +}; + #include "omap3.dtsi" / { @@ -25,19 +40,6 @@ clock-latency = <300000>; /* From legacy driver */ }; }; - - ocp { - omap3_pmx_core2: pinmux@480025d8 { - compatible = "ti,omap3-padconf", "pinctrl-single"; - reg = <0x480025d8 0x24>; - #address-cells = <1>; - #size-cells = <0>; - #interrupt-cells = <1>; - interrupt-controller; - pinctrl-single,register-width = <16>; - pinctrl-single,function-mask = <0xff1f>; - }; - }; }; /include/ "omap34xx-omap36xx-clocks.dtsi" diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index 22cf464..fad05f3 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi @@ -8,26 +8,7 @@ * kind, whether express or implied. */ -#include "omap3.dtsi" - / { - aliases { - serial3 = &uart4; - }; - - cpus { - /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ - cpu@0 { - operating-points = < - /* kHz uV */ - 300000 1012500 - 600000 1200000 - 800000 1325000 - >; - clock-latency = <300000>; /* From legacy driver */ - }; - }; - ocp { uart4: serial@49042000 { compatible = "ti,omap3-uart"; @@ -72,6 +53,27 @@ }; }; +#include "omap3.dtsi" + +/ { + aliases { + serial3 = &uart4; + }; + + cpus { + /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ + cpu@0 { + operating-points = < + /* kHz uV */ + 300000 1012500 + 600000 1200000 + 800000 1325000 + >; + clock-latency = <300000>; /* From legacy driver */ + }; + }; +}; + /* OMAP3630 needs dss_96m_fck for VENC */ &venc { clocks = <&dss_tv_fck>, <&dss_96m_fck>;