Received: by 10.223.176.5 with SMTP id f5csp675358wra; Wed, 7 Feb 2018 05:48:45 -0800 (PST) X-Google-Smtp-Source: AH8x225gHT1+WQnUcpw1mT70MB1Ihk4OgazL0CWcJ10TeKxalEPv09AUYm8cdBgCt7NNpdlkx6fC X-Received: by 10.98.163.15 with SMTP id s15mr6158765pfe.67.1518011325550; Wed, 07 Feb 2018 05:48:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518011325; cv=none; d=google.com; s=arc-20160816; b=brhyeio2wk3MNWK+D0nZYLjaA+87wwJTYQVH2udPXq1Y35OEcZdRdFOBRKD+o4tf6N pAANHZBD+bLmoaWOrA6Cnr/qcQadJFxRipaqiMzh4Px21rySTssmIKI/HpqEmNP3ofQi 95I3OAcdYgqO1RufwiAoxf3AltA/veGq+clmcZ40a+Wu9pfcNywq0p9uel44XsIJT2sJ RaTRhq7P7gwWj7ZpK1Z/N3obpIuLB6qUnUAlP3Ivxp9SeIJ15GnCCFcJ3ux1OW5KmeLT iYLO2TAJHgY/ofLmX5zlI5eXYSpG0V8PKmwlNHCO7VfA/Cs6cOzVFXVPKN6VS2UyoRrp RoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=8RTJ+FAWavXLozDVM/jC6QAutHdQ3iTkzlCYykdbagI=; b=Npcaml1GygrQS0LRmE3tC6w1stebwJPPea83hYb8Qj12xEQwEI1AUFR2rCinxIHYMG ZUxpJoopmi0Hu5xxi5S1ki8sjMmxVtLt3du/0MSSnTpBMkyoWK+lL+gr9UXrRuFtFSPP wm87GiF78sgn0N3NxQ3+eS4M98ZzgkoSpVr3kRaRnmeJdVQh25uQL2irY1wUukUiphNL ES5pFf3Il5sN1TOomzzwAr3iWCfRmiLjCKe6lxz9RmOQ7cDCY6UHH9YEaP59zbkRhkaP yuv3SG9DCKplV5yuNcs+f5SPrh730vS1Tci3VruQgRspQpNhqItcKgHzEEWo2ahh8YyN zFVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=t6vaU+P7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si1117714pld.10.2018.02.07.05.48.31; Wed, 07 Feb 2018 05:48:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=t6vaU+P7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbeBGNqK (ORCPT + 99 others); Wed, 7 Feb 2018 08:46:10 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39491 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754144AbeBGNqG (ORCPT ); Wed, 7 Feb 2018 08:46:06 -0500 Received: by mail-wr0-f196.google.com with SMTP id f6so1088497wra.6 for ; Wed, 07 Feb 2018 05:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8RTJ+FAWavXLozDVM/jC6QAutHdQ3iTkzlCYykdbagI=; b=t6vaU+P7oJVKc7s82zumpfQjM+EoxXWoTLS015aAdxzMixBrvPRQsSzQoH5362g6xt RgBjCkNaBzNIL9Qp3MmO4DHDI7d+Z5S3ZATnMnude1AaMxRyPUUgVB+QqbEJME9XxEMF xkbQdGXwxAZJhxTOyvx3ybhMxzKo+wmRf5UPm/KJA4PLPPTv+pKCacLaNqCrRmYX4h6W Q2Mbf8iNHx8+nd78QJe1D5VEX2G7lhPcGBQ0YLpsKnQn1d/oCQOuvVym72FDc/eZWOZQ +BUc9Etsy9fmD17bWti8HNNCIbux8f9TUXcAWVmrS1Gw5UtmDGN+O41S1hxA2v/sq0Z8 ciDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8RTJ+FAWavXLozDVM/jC6QAutHdQ3iTkzlCYykdbagI=; b=pOVqO78JPI/QMnij3mRRgd8b6N12+/OJv0bU1EvFsFDx/pL3f96TcrpQTwFbPOq0rt 6IUMeMrrFHlDzHC+hmjfLtjNYpmp7h5D+vpythe5vUZa7t4xyfnRTGjUNAUjN/nY74Xu KeA1awHhF4zUOuHpebu0YTOAQ1Tf4VjhbmGn0395aOS89SpOm1dWMsGvGGyv1TqInJl/ DBqd06ETK9cfNfOq5Ah6m22FKmw/jj/ql8CCHMUNl9Zh4ebnaF9KdlHlnl96LWfXlmnk s/cABVN1J5sFydfFs7KtcLC5afqpI3iGT9nkeMn6c4oFcanf1wzKYTiw7nJg0dpMhhS+ oyeQ== X-Gm-Message-State: APf1xPADrVk3dM10a27w4T5ixJHYg69o78bLqViDtAdv/tZdS4ox5spj ywjqALuIFHwvGje3ImjKXW4pIg== X-Received: by 10.223.173.194 with SMTP id w60mr5994255wrc.214.1518011165165; Wed, 07 Feb 2018 05:46:05 -0800 (PST) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 62sm1336371wrg.81.2018.02.07.05.46.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 05:46:04 -0800 (PST) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Russell King , David Lechner Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH 0/7] ARM: davinci: add genpd support Date: Wed, 7 Feb 2018 14:45:46 +0100 Message-Id: <20180207134553.13510-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Hi Sekhar et al, please take a look at the following patches. They add a simple genpd driver and use it in DT mode on da850 boards. I was trying to use genpd in legacy mode too, but couldn't find neither any interfaces nor users that would do that. For now I added a check in arch/arm/mach-davinci/pm_domain.c that disables the clock pm setup if we're using genpd. This series applies on top of and has been tested with David Lechner's for-bartosz branch. It fixes the clock look-up issues we faced with lcdc and emac. Bartosz Golaszewski (7): dt-bindings: soc: new driver for DaVinci genpd soc: davinci: new genpd driver ARM: davinci: don't setup pm_clk if we're using genpd ARM: dts: da850: add power controller nodes ARM: dts: da850: add power-domains properties to device nodes ARM: davinci: select generic power domains for DaVinci in DT mode ARM: davinci_all_defconfig: select the DaVinci genpd driver in DT mode .../bindings/soc/ti,davinci-pm-domains.txt | 13 +++ arch/arm/boot/dts/da850.dtsi | 46 ++++++++ arch/arm/configs/davinci_all_defconfig | 2 + arch/arm/mach-davinci/Kconfig | 1 + arch/arm/mach-davinci/pm_domain.c | 9 +- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/davinci/Kconfig | 16 +++ drivers/soc/davinci/Makefile | 1 + drivers/soc/davinci/davinci_pm_domains.c | 125 +++++++++++++++++++++ 10 files changed, 214 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/ti,davinci-pm-domains.txt create mode 100644 drivers/soc/davinci/Kconfig create mode 100644 drivers/soc/davinci/Makefile create mode 100644 drivers/soc/davinci/davinci_pm_domains.c -- 2.16.1