Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1921919lqb; Mon, 27 May 2024 01:46:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWD8fC7WvcCxfN3izVHbLkZGx++7HLqPFrDoayapM2syuwgOVnQz81e3uqNXVZPbltotVBM5q1Nx9YfVhlC8xydXBV5ALoCjCmIHhDY9w== X-Google-Smtp-Source: AGHT+IEqupTuf2obaIsRzRiUq2QhDR+MmcCsP4UqtIGReeqzjYPArIS9CKp009I0cY8QxLvVIfAi X-Received: by 2002:a05:6214:3d87:b0:6ab:6bdb:5887 with SMTP id 6a1803df08f44-6abbbc9ced8mr89986866d6.27.1716799618419; Mon, 27 May 2024 01:46:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716799618; cv=pass; d=google.com; s=arc-20160816; b=gxl2DLdHa8DQjW7jAi2CQHnMNmsBZg9g3ltnpDsEhuHR+ft3MhI3mmmcCEpMAOwZN5 AXqURnFjpCy7sJ4nfbhQ1cVkQ3a9cvMPrQGiHqbGnlbEAzmW5Q8idz/2D+5d0+lFhzSM 8z6g8qqbMR9TwO/OTYJogb1ESt1Z+nDaTpLclsWTR9pj7TZwrsFmmW4TXnktOTfVw+oP OrafAGBem+OVbCyaGqRqpucuYC/FqaInGWMShPBCYqqnuFFxaE4A1PztQxn1L1PN27he UIWyAJ9is0M/GJo6oFIvAjnaiM7fdI4HhbCgAZW9+agN01Clws72MZYm8/PsSvGw3CPW MOTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=tgkx0eCP4rrk+JD+2W4qCpUZmtiCMe6qIUFxLraX3gw=; fh=JSjJ9ol2v7GdE7w0M8dxY+RNLfTRFaOeQm5xYZebEF8=; b=Du1F7ry7nVdxqWaxCwaaEiJ2/8ogJKc6faqzFxyBWwYf0OC4X9zbLy+S43z151hu5m /dImx9EK//fwkFm614s4jD9DzqLKoBBAEvIEdksv+tDVU6K/TCFQ2j93S0EQ/D2FAKSf 6AvLaAybHFye14nwW4H5A4M5rX28UKgePBRZdxwbs7cNo4Z4sfEfnT6xHmrDRqsHztkB LIvSIuFPV+0HZl/tDYhYObQNk6kmMSDtsoh6TT0GJWINfMMk4TFCTcpIyDt+j7e6/fKn h5LMf6V3yeNK+oAkRfvYQV+i4D2LgsH89qsR/I0wAexMZY70HK7xBYEYttaCced0AjXI erGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=CREjDOIe; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-190253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190253-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ad7909ecfcsi32227756d6.553.2024.05.27.01.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 01:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=CREjDOIe; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-190253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190253-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E552D1C21613 for ; Mon, 27 May 2024 08:46:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7E72763F8; Mon, 27 May 2024 08:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="CREjDOIe" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95E3713541E for ; Mon, 27 May 2024 08:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716799455; cv=none; b=bw7aCx/1YsISbiJJnf1Sl7/6aylFvjnDY6VT0LQcZegYiooTxCpNcURmYmO6lCn5aIIsBPraUpXsR5A6p7orIzzzJLCVb8ML3g26UQ1qz6M9+lZ/4jprwy7eMzdkdv9rN2iG26jhugao5V1Pg2XiB7Pmu2xS7EwvKb1L334LhI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716799455; c=relaxed/simple; bh=7DF5HwF7p6U8Nx8Na6sa5PgjqUlkBVILFpybaxwEmk8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dh0S+Ze6n99l1Gb0TEHQvu2j3DiBaR0UR/O6QxOCynMEuj+aENjjXyATGlPJuwRqXZLcBcLAaPbl/UAzqU9p/jVLvvA/dQF24ShfthUQRJclGbdlFT98MmXk1yOaegmrVA6LPRD8kaxLwi+TCKyBUNJTM99X1pLg3aKGm3SgIUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=CREjDOIe; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-420180b58c5so44581475e9.3 for ; Mon, 27 May 2024 01:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716799452; x=1717404252; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tgkx0eCP4rrk+JD+2W4qCpUZmtiCMe6qIUFxLraX3gw=; b=CREjDOIef1XntHsMNXuCgGK//HFVq67MYbCtmXnUjgKk5Z2XMTcyof3f7uKULMr3o4 kTniaA++QpF7i4izCrhXb6I1hL2HmbnSdU1kopKkYUOp8MzgR59eZp7gFQfd6/JMyQVO eeCEOqotoTrl/Dayf0A/pHL+G1VzET5vN8OwqnEvfWTk62c1H1tffTDPGp8/vsuSTNq3 AiQGFn6o0SlOVOL8Ln5XmoEJGR9rzm6M+6wK0m336H91PTqI3V8Sv1GwNECUANWF8OLc Xi95hOw/N83ixJUxM8gS7zuxZlmzOT8TZXUyghG3tBoM2W1mKgy1ndwX0Oqyjf2HOowf r+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716799452; x=1717404252; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tgkx0eCP4rrk+JD+2W4qCpUZmtiCMe6qIUFxLraX3gw=; b=G0Xw3YpRQUeCf7ZdGTjazl3qKg9tRVj526sBE9xEuGGFXy4z2049U3OfLTfRMnWvVN 0IOmiNF1e+YvH/3o8gORG9i+3htsScGY4xAPxVUaQ6B7tqWzXJdJB413XqvnmkqRrjPH 8GGNSNw9JB9bUcJIPXrmQSIZRncTOHi5gqSTPC9XGu+HZJ7LO3Va7NkYYikUla2nEpIE IDIb5HKqY1Io/O0oVg85qhKrjVFs0+KUgumSAxuIqusWlI+KFJdaS0qsn+drnnbocCdf y3gEQvlPt6Vri4onCmkYhFBO8XDI3CDJWBx03j8KYmtqGMtYwFZ259F9e2KFORQsBNVW lT6A== X-Forwarded-Encrypted: i=1; AJvYcCWAKeFx0PGko4kg1xFUsDDFxOGREtgzJEKNLJMubiFLLJG1SNKPob9hWHO/SZVlv8kXP1tX/LWQOLQ+Rye8yIBWLYb9qya/BmzDtjX2 X-Gm-Message-State: AOJu0Yz6ITVOYroXAeNC9Od/5XYIMUvevVKgoAiGbQbP/rrJOCwnxZNF RQHTMQorNXdFSe/cXwQrA6nK1fLjWZcN6y6SU3/Brtb102GfM9URY47C0+m2fDg= X-Received: by 2002:a7b:cd94:0:b0:41a:f76f:3362 with SMTP id 5b1f17b1804b1-421089d3927mr60081775e9.21.1716799451943; Mon, 27 May 2024 01:44:11 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb1d:75a:e000:c322:131e:ff9d:ef41]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42108966682sm101365575e9.2.2024.05.27.01.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 01:44:11 -0700 (PDT) From: Bartosz Golaszewski Date: Mon, 27 May 2024 10:43:48 +0200 Subject: [PATCH v2 1/5] dt-bindings: remoteproc: qcom,sa8775p-pas: Document the SA8775p ADSP, CDSP and GPDSP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-topic-lemans-iot-remoteproc-v2-1-8d24e3409daf@linaro.org> References: <20240527-topic-lemans-iot-remoteproc-v2-0-8d24e3409daf@linaro.org> In-Reply-To: <20240527-topic-lemans-iot-remoteproc-v2-0-8d24e3409daf@linaro.org> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Manivannan Sadhasivam , Jassi Brar Cc: Bartosz Golaszewski , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tengfei Fan , Srini Kandagatla , Alex Elder X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5544; i=bartosz.golaszewski@linaro.org; h=from:subject:message-id; bh=leIKa/UcmJaFYJmvDmKOwmxkj/TaQjJErtw/XziYiaA=; b=owEBbQKS/ZANAwAKARGnLqAUcddyAcsmYgBmVEfY6nwdfzrqX8cHFFoaGHLnzqVJU/+XYmdGa UphrjRvxQGJAjMEAAEKAB0WIQQWnetsC8PEYBPSx58Rpy6gFHHXcgUCZlRH2AAKCRARpy6gFHHX cmBcD/0bv1CgoCxlmxwCDDkrweb13DNecIupZMc6hBdxEg8fHluwWV7gPV2/z+yxd79BK3gIW1i fk3unXUef9GCePd5rHWlIatX5TMeBD2TjInGEEVxAt6d73BcaEhZevMk7BQgIUEsi0z8FRGSvOp 1rE+mz96Z/gybygAvPEop3avY8PMXkohUmgI9rD7k67GtLmwDtrIDIktx+9heR/h4j1yVI9N00g x30++JLjwJZTecrxBRe9XEhn7ifleW8wNpfGapvymIHis0k68N8qEP5g2XLu0ZorSZbX5pO+vTU nDwudyO8DMYGZVm6m67ZcryZGca9QjmesnmpKAuhK8Yz2E/grLUjO5EL0mP0b+Lzu1NKMbomZdd QzvoVWaWL3eDdOF9iIhGmHdm8zbbxMNLRkaxvvP1uvSn9R3pBv5ir0ynHfi8VzG88LmtMUtFfAW Yk3gfUUQo/cjaaY6LqD0iK8f3nNSpPqdSku7nP2PPo0EUBdj4Qh+HwtKyASCJ4nO5Ff/AFxl4Nc Va/j2QZQHpArIIlCAMctsvvO4cSgY92qCVshbhHSrTc5Neivi6ms9ZeQw5juFzRdCpbAyjsrwLo sXofb0kWnJioLQpQyDH21cmmuRxYzNexpWYF/IfLUMqYhJgJAagmEGX1Kd8ww8RXADK8et/paY4 CYiAbsVCzykEIvA== X-Developer-Key: i=bartosz.golaszewski@linaro.org; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 From: Bartosz Golaszewski Document the components used to boot the ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 on the SA8775p SoC. Co-developed-by: Tengfei Fan Signed-off-by: Bartosz Golaszewski --- .../bindings/remoteproc/qcom,sa8775p-pas.yaml | 177 +++++++++++++++++++++ 1 file changed, 177 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml new file mode 100644 index 000000000000..77a5e11555de --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sa8775p-pas.yaml @@ -0,0 +1,177 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sa8775p-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SA8775p Peripheral Authentication Service + +maintainers: + - Bartosz Golaszewski + +description: + Qualcomm SA8775p SoC Peripheral Authentication Service loads and boots firmware + on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sa8775p-adsp-pas + - qcom,sa8775p-cdsp0-pas + - qcom,sa8775p-cdsp1-pas + - qcom,sa8775p-gpdsp0-pas + - qcom,sa8775p-gpdsp1-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string-array + items: + - description: Firmware name of the Hexagon core + + memory-region: + items: + - description: Memory region for main Firmware authentication + + interrupts: + maxItems: 5 + + interrupt-names: + maxItems: 5 + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + - description: NSP0 power domain + power-domain-names: + items: + - const: cx + - const: mxc + - const: nsp0 + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-cdsp1-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + - description: NSP1 power domain + power-domain-names: + items: + - const: cx + - const: mxc + - const: nsp1 + + - if: + properties: + compatible: + enum: + - qcom,sa8775p-gpdsp0-pas + - qcom,sa8775p-gpdsp1-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + power-domain-names: + items: + - const: cx + - const: mxc + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + remoteproc@30000000 { + compatible = "qcom,sa8775p-adsp-pas"; + reg = <0x30000000 0x100>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", "lmx"; + + interconnects = <&lpass_ag_noc MASTER_LPASS_PROC 0 &mc_virt SLAVE_EBI1 0>; + + memory-region = <&pil_adsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + }; + }; -- 2.43.0