From patchwork Fri Dec 28 04:48:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 10744145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A1846C5 for ; Fri, 28 Dec 2018 04:48:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 167FE26247 for ; Fri, 28 Dec 2018 04:48:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0478B27F54; Fri, 28 Dec 2018 04:48:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E954D26247 for ; Fri, 28 Dec 2018 04:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727646AbeL1Esr (ORCPT ); Thu, 27 Dec 2018 23:48:47 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:40862 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbeL1Esr (ORCPT ); Thu, 27 Dec 2018 23:48:47 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E0724607F1; Fri, 28 Dec 2018 04:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1545972526; bh=EvO6fWr7C+SLbSMyd4/9AZzhW7Xi2PWRjENczkcdSuE=; h=From:To:Cc:Subject:Date:From; b=kO8WFGsxOZTqSrs1vZ+eegVoCnpYbrmUZwD6ThPJj+dZCMeWnHRYJd/2d2ezYDneH /Fx8a3VzgUkb8NdmmTtmr7HGNwAjRk7JpB0RH6DkMRgSpf83dTDj8naCST/ltBdytR 94Cmmmbyngojj2/lbzEQ4kjfqvQ2ap5QG1EW2+PY= Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CB9E860350; Fri, 28 Dec 2018 04:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1545972526; bh=EvO6fWr7C+SLbSMyd4/9AZzhW7Xi2PWRjENczkcdSuE=; h=From:To:Cc:Subject:Date:From; b=kO8WFGsxOZTqSrs1vZ+eegVoCnpYbrmUZwD6ThPJj+dZCMeWnHRYJd/2d2ezYDneH /Fx8a3VzgUkb8NdmmTtmr7HGNwAjRk7JpB0RH6DkMRgSpf83dTDj8naCST/ltBdytR 94Cmmmbyngojj2/lbzEQ4kjfqvQ2ap5QG1EW2+PY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CB9E860350 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org Cc: briannorris@chromium.org, akdwived@codeaurora.org, clew@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org, ohad@wizery.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, Sibi Sankar Subject: [PATCH v2 0/2] Add firmware bindings for Q6V5 MSS/PAS Date: Fri, 28 Dec 2018 10:18:17 +0530 Message-Id: <20181228044819.5697-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Q6V5 MSS on certain SoCs like SDM845 are capable of operating under completely different configuration (like Non-Modem WLAN configuration) depending on the firmware loaded without any change in boot sequence of the Hexagon core. The patch series is ultimately aimed to avoid multiple compatibles per SoC to just specify different upstreamed firmware locations. This is achieved by using "firmware-name" binding to store the relative path of mba/modem/pas firmware images. remoteproc@4080000 { ... firmware-name = "qcom/sdm845/mss/mba.mbn", "qcom/sdm845/mss/modem.mdt"; ... } remoteproc@17300000 { ... firmware-name = "qcom/sdm845/lpass/adsp.mdt"; ... } Suggested-by: Bjorn Andersson v2: * Replace "qcom,firmware" with "firmware-name" as suggested by Rob * Include dt-bindings/parsing logic for PAS based remoteprocs Sibi Sankar (2): dt-bindings: remoteproc: qcom: Add firmware bindings for Q6V5 remoteproc: qcom: Add support for parsing fw dt bindings .../bindings/remoteproc/qcom,adsp.txt | 6 +++ .../bindings/remoteproc/qcom,q6v5.txt | 7 +++ drivers/remoteproc/qcom_q6v5_mss.c | 46 +++++++++++++++---- drivers/remoteproc/qcom_q6v5_pas.c | 11 ++++- 4 files changed, 59 insertions(+), 11 deletions(-)