From patchwork Wed Aug 29 23:15:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 145477 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp148333ljw; Wed, 29 Aug 2018 16:13:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnpDTcQ9b/XOhv5bDNOG/JDPhLlLKFQHU0bvjHBIVPAsGIvAM2er+xSdqpFLy050VQ2Wj+ X-Received: by 2002:a17:902:7d83:: with SMTP id a3-v6mr7774255plm.0.1535584408266; Wed, 29 Aug 2018 16:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535584408; cv=none; d=google.com; s=arc-20160816; b=PgGifwsXo4QD8WcTlGZjXO6k8e+ZaAsRAGZL7lL7yacbIIfL7w/kGBmux+7UwfLeWU IG8gjnLyhOfVV0Fn+SytrJnGAYe9ZL7Oe4+H2GPjbCjD4a8dsAxG+NCZMbsWQ+AB09VM lXKwq/XXu850VDqDgoI6bUOfHlghsz3dJk6PakojNnNvaSeZmPZhr5Bma3PjyTfw/ZoO bBR6KVwyZS4DG61g6+0fBHErfNm43g7Qt8dJcxjj8L4AhwNZ8JCDUPZR078rnw43wTU4 iPIHgBSGK52aOfNMOSCT/Xn3UdGlYp80xd8Z5TSpLAQ4/EfUFmff58qio3/JhP9FX+kE enOQ== 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=R4fo+PSsCT9wIggboItk/HU4eKAdedO7SgEFW67hCYU=; b=SVtqFhVe1lir6SjE2DZ+PtFKh2assiLLYy31VlWror5mq72sGbd4Pf8y4c6+eD4Nt0 RzDzaImX0jbV9UZAY0c9a0teSY11q6ZH2iVFmlX0rCRdC3pTd+CdMvtAtZ59PEkmT8pg UCWsIZN3GHT9wwZQid1qOXh2H+9S5JVp3wIIz8YxOc917GHp4EYhgYlXJEmNDAHZSOUa eA5Oe+b0WJcOvBHb8pgWNgwrNTmdfwGXh5aIuxR7lq/xAfyu1fvuttYFjS/G0zGRjVB5 lJwPINkMW+2QJ6EPjhFMpN+3dJS6mIFOyPBo2IWGKRrptwZl0DmHRBXF4V2LeHkLGLbi ju2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BRyZ4zRW; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si5117464pla.45.2018.08.29.16.13.27; Wed, 29 Aug 2018 16:13:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b=BRyZ4zRW; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbeH3DMj (ORCPT + 13 others); Wed, 29 Aug 2018 23:12:39 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44666 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbeH3DMj (ORCPT ); Wed, 29 Aug 2018 23:12:39 -0400 Received: by mail-pl1-f193.google.com with SMTP id ba4-v6so2946501plb.11 for ; Wed, 29 Aug 2018 16:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=R4fo+PSsCT9wIggboItk/HU4eKAdedO7SgEFW67hCYU=; b=BRyZ4zRWp9pFI8ScogxSHr8IKwbUwqC5F/VWj+xG3Vqg3hWdmoXeEOfAmVB8AYMz0E 1L1ck6FpMouafvi3on07wErAFQ1N9VmGOTYDo8FSr2gu8seKkTAsiQnJQ+FCNxTIDqU+ bFNXajGpQ6z1mMuGFOSSFmhWditI5mgc34B64= 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=R4fo+PSsCT9wIggboItk/HU4eKAdedO7SgEFW67hCYU=; b=th8DDFjxP0OaGdjUDimA4FHGTpr5edXVn74o8Xq3xrHHzxlamdTQgnS1+ppu5WqPyM /xsbPY4Kj0Cl1Fd43Q3/2VXNqiDLT/QiepzB9iaZ66aIQBbn1ljxOhtGeiXy7XexUZUR vwhybNwTpL5r3wKU4sAoog3xAptevAVZEDR30Np2Y1hej+rLtnp8OPgJurKi0pv/lZZq Oe2ElIAkIVGUD/ktXyqEJvWdbAakReCeh4J2UdUph7VYocEYhORmaBf0S/zJFMwPq058 MIFRzbh+6S4e0YDdwkEYgQ/eYiI9odTvMu56c03L9sS326ozIOt4QYtJhdpLPErJQmOt mlZw== X-Gm-Message-State: APzg51C8KUCeCzSPw42byflu3ZmBoDAWPE3N+npoXg57fo+/k3zHbN/9 EIyJ55LaeAKNcsC5kIe8MUGiVQ== X-Received: by 2002:a17:902:5998:: with SMTP id p24-v6mr7767439pli.36.1535584406269; Wed, 29 Aug 2018 16:13:26 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id w69-v6sm14035404pgd.37.2018.08.29.16.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 16:13:25 -0700 (PDT) From: Bjorn Andersson To: Rob Herring , Mark Rutland , Andy Gross , Stephen Boyd Cc: Sricharan R , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Craig Tatlor Subject: [PATCH 0/3] firmware: qcom: scm: Improve clock handling Date: Wed, 29 Aug 2018 16:15:02 -0700 Message-Id: <20180829231505.22660-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We're currently facing the issue that every new platform requires the addition of a compatible to the DT binding as well as the driver. The DT binding patch to allow us to use qcom,scm for all these new platforms that doesn't require any clocks and the driver is reworked to make the qcom,scm still pick up specified clocks in this case but won't require them. This makes it possible to add new platforms by simply add the new compatible to the list in the DT binding, but no changes needs to be done in the driver. Which is what is done in patch 3. Bjorn Andersson (3): dt-bindings: firmware: scm: Refactor compatibles and clocks firmware: qcom: scm: Refactor clock handling dt-bindings: firmware: scm: Add MSM8998 and SDM845 .../devicetree/bindings/firmware/qcom,scm.txt | 33 ++++++--- drivers/firmware/qcom_scm.c | 74 +++++++++++-------- 2 files changed, 63 insertions(+), 44 deletions(-) -- 2.18.0 Reviewed-by: Stephen Boyd