From patchwork Fri Sep 29 22:34:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 820108 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="G4a/RCzy"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y3mbB0pFFz9t60 for ; Sat, 30 Sep 2017 08:34:59 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tj7qwZYSXMYTB2Ljufd/DHdVtzSUBD3gIHhRzn2ryPw=; b=G4a/RCzy7BkrQd lDvXQLjZ7KmXPlaFr3Mz9os2J3J6M6phG6XV/cELbNmEeCmd2KA2fOw+naCx4RohkfscM6Y0aD1Hr +PjQGpBsVHle6W/5701k5o+aUhRlNhrv9zTxC2HvJjxiYvHpG40pxP9wWEhq+Qu0P8cYCVcQ0QpRe w1v6FTB3FTc1DN0xz0pnbOl4P0ADYTJ3EPNQefr9xoKInNqE+yKALMcTjd3od159HwHBxUW7BOnP9 h4Ye9upwaHjTlYrTXTY/49xLro+YdP/xuG1jClGSdsTBt6K8/BadmvIaIss/lz8MBIbDIPLanz9nD /p2tZYaHtAF6dw59g8AQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dy3rw-0006wq-0j; Fri, 29 Sep 2017 22:34:52 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dy3rs-0006uJ-3P for linux-arm-kernel@lists.infradead.org; Fri, 29 Sep 2017 22:34:50 +0000 Received: from sampyla.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 332C08237; Fri, 29 Sep 2017 22:35:23 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Subject: [PATCHv4 0/7] Fix remaining issues to drop more omap platform data Date: Fri, 29 Sep 2017 15:34:04 -0700 Message-Id: <20170929223411.9691-1-tony@atomide.com> X-Mailer: git-send-email 2.14.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170929_153448_191802_2B0E72C6 X-CRM114-Status: GOOD ( 12.70 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, =?utf-8?q?Beno=C3=AEt_Cousson?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi all, Here's v4 of the remaining fixes needed before we can drop omap hwmod platform data for interrupts, dma channels and IO ranges. I've dropped the clockctrl clock nodes and dts patches to avoid a dependency to Tero's pending clock patches. As we are still relying on "ti,hwmods" property this is just fine, and can be patched later once the dependencies have cleared. These patches are based on current Linux next. Regards, Tony Changes since v3: - Use sysc compatible names based on the SoC name where they are first seen instead of type1/2/3 as suggested by Matthijs - Use "fck" and "ick" naming instead of "clkctrl" for clocks as we will need the interface clock too in many cases, and udpate the ti-sysc driver accordingly - Drop the clock nodes for now to avoid a dependency to pending clock patches, the clock nodes can be added later on after the dependencies have cleared Changes since v2: - Drop attempted bindings for devices with no drivers and start using generic ti sysc interconnect target module binding, the bindings for the child devices can be sent separately as needed - Add Tero's pathces for omap4 clkctrl nodes as we need those - Add support for parsing IO ranges from dts if "ti,hwmods" is set and fix-up omap device code to work without platform data for legacy dma and smartreflex - Add minimal ti-sysc driver Changes since v1: - Updated hsi, iss, fdif, gpu, and smartreflex patches based on the subsystem maintainer comments - Added Rob and Mark in Cc for the patches touching binding documentation Tony Lindgren (7): dt-bindings: bus: Minimal TI sysc interconnect target module binding ARM: OMAP2+: Parse module IO range from dts for legacy "ti,hwmods" support ARM: OMAP2+: Populate legacy resources for dma and smartreflex bus: ti-sysc: Add minimal TI sysc interconnect target driver ARM: dts: Add nodes for missing omap4 interconnect target modules ARM: dts: Configure SmartReflex only to idle the interconnect target module ARM: dts: Use ti-sysc module driver for omap4 musb Documentation/devicetree/bindings/bus/ti-sysc.txt | 93 ++++ arch/arm/boot/dts/dra7.dtsi | 26 + arch/arm/boot/dts/omap4.dtsi | 195 +++++++- arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/omap_device.c | 137 ++++-- arch/arm/mach-omap2/omap_device.h | 4 - arch/arm/mach-omap2/omap_hwmod.c | 80 +++- arch/arm/mach-omap2/omap_hwmod.h | 5 + drivers/bus/Kconfig | 7 + drivers/bus/Makefile | 1 + drivers/bus/ti-sysc.c | 558 ++++++++++++++++++++++ 11 files changed, 1047 insertions(+), 60 deletions(-) create mode 100644 Documentation/devicetree/bindings/bus/ti-sysc.txt create mode 100644 drivers/bus/ti-sysc.c