From nobody Thu Oct 2 17:03:32 2025 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) (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 49D032FE581 for ; Mon, 15 Sep 2025 11:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757934940; cv=none; b=Ob1rycRh7AgLekGx9fGlvo7INtY2SH4OSumXGn8Q+vP/NddlEf8LTGR+5YWrBRuwCnkbIOZeIhM/o8Cp8KmIFc3wD+ZM9Uxe9VqUg9Dif+BbMws8dH0p6j/8aCUYUP/2CpU4NQtJgnRquhBk0OPUYLVurlbPXkil8MYOaWU9Pto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757934940; c=relaxed/simple; bh=o2SanjqHk6qnDd+wWkKmHcO5t3xD1dkqEcdLpfu6ivU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HTtgXsxYJrCuoJlv4HOh0feQKz0xLryuhGYZedkkQncJkQLJVkhYtiOzuhJ2WcrOgkvft4PJa3iczwQIJPsEuXVv3x/G285MjqN57LG6yrYeY0FZcUp53K1MplNva3YVsg+ZeVMqpaTi6OV7F2rAUQ1O+gHUaH0xlal27Y13QqU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=UGO9NLVl; arc=none smtp.client-ip=209.85.218.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="UGO9NLVl" Received: by mail-ej1-f66.google.com with SMTP id a640c23a62f3a-b0b6bf0097aso250554666b.1 for ; Mon, 15 Sep 2025 04:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1757934935; x=1758539735; 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=xjVlm8rsC6PwMG44HWGJ9be5u9oyUBg4g4pdS6rOhs4=; b=UGO9NLVl4fTpiolqtVUSEUkwRbM+zcX6Det8rioyj1Eo0SC3CdUheQbMIgZiEHABAR tnMLibVcnM+Si0hjQr0BoZPzUeDvp4/mCtzo8n75GXkJlV+72/rdiElcQ9dA2EyQIxF8 7/0btAKWczFPX/ppP71XQ4NYvgTAi9erPWd/JLSPIolxhkrP4wPy8IvGTDEcB0Aq88q4 C9eXMWRrQyITJR+etEGWRsZRDSWvd3O6ieMBxzdDrAn2661lYZSxtItrjR8uEHokon8M H1hqVDNXVyEhUWTY9sKu2bD+7JrMGuq0+85fjXPwOspp+quPnNlcRacsT14SxH8HuzpZ jctA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757934935; x=1758539735; 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=xjVlm8rsC6PwMG44HWGJ9be5u9oyUBg4g4pdS6rOhs4=; b=tF4wsypi5z15ACiameOUEFlLR4mycaFvH42jQufO0qRqBlPDkkMfJDAiJkpkMyz0+n WtOs7OYTv91UGfWvylWkQ7HRfqtckOG9TFg4uBkbSMS+yoGnUfYd+JLWL2A7hAqkY0Lx CcjNbkzLrQxZHZ8JXElc5LSIGbziPiW9Ei9KNC6F7IOCCPr+MqcOMYmX1ngoNY7WyaeG /JxogBV8r8kDNxYSQBRcxh7uazbQxfwnfsJB88QXHPq0I2Sry9kdYO+aqXYupGVfTFeI hjEBAx/XjCG1AYLAnRr3oRZx5mIWVsGcl1LF9p+3K9loVTQ/6rG9u5hICbuhaYs2zRM+ xYOg== X-Forwarded-Encrypted: i=1; AJvYcCVYUtKwlLRi91vmlMj82VjeEdB7QybM9GLoIUR42O157YQYVAaOIS/BmrFS870bNzDGQBtcfOa4SfwaHNo=@vger.kernel.org X-Gm-Message-State: AOJu0YxqCdRfPSj4sW6JxXkZyf7NQWvN6vxe9g9x9llcJptjeLJCWtDk Q0DyKG6+x6vTAhibYld+aQOEWP6yg7wVPpVXxL5q0B3FDkwIImlvCjW0VNWoI+R741M= X-Gm-Gg: ASbGnctpm1trmFz4Rk9FbJi/bGP7qBjnfwjiHgy81DvIBu+4D59Lp7PJP8Ksy+srgUy A5D3IBGO46nWpJrBO4tzqVeL1IQt9v7E+mztYUkjLfTJhDf7RN4BxiiRmDhQJCr+GTolZ4FYKBJ ScNCzPW4xX3KX4dwXluHaXw1iNLf0ReE0fJkXZhmQOL8C70VOwL99sNt3qgqcQGY6njrFK9nYoB qNHwDo8PRbZac4xa8XQ8JiW0q7zRLOHnOnEN2f6fJSdvlCL1H1HUOujpojruJOMJcZoUNOazXYH 0ASL7WylN2Zub/rvW7kZli5TF/hrs0ao7oa4lICXIM3FI2h/lKtahOfpSduoIYzIJ4GWa9zT59E JE2kiYPsM0ws8receeLbR1DRaPAtEjDD5HeRwJmVLPJ6w2+x/8o1Au6hPN7oluJQjuqoKM7FtD5 BUpi9uc4g2pNnjeJo= X-Google-Smtp-Source: AGHT+IG9t6wQqC94huNHEO0i/ACIuWHJplvCU1nOmVnPcfbVmlAzB9rL2asGA/AjFNU8hP8sFfknxA== X-Received: by 2002:a17:907:2d0b:b0:b10:f70b:c0c9 with SMTP id a640c23a62f3a-b10f70bc355mr294908566b.55.1757934935266; Mon, 15 Sep 2025 04:15:35 -0700 (PDT) Received: from otso.local (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07d9e18c24sm561851366b.61.2025.09.15.04.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 04:15:35 -0700 (PDT) From: Luca Weiss Date: Mon, 15 Sep 2025 13:15:18 +0200 Subject: [PATCH v5 1/2] dt-bindings: remoteproc: qcom,milos-pas: Document remoteprocs 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: quoted-printable Message-Id: <20250915-sm7635-remoteprocs-v5-1-96526cac59c6@fairphone.com> References: <20250915-sm7635-remoteprocs-v5-0-96526cac59c6@fairphone.com> In-Reply-To: <20250915-sm7635-remoteprocs-v5-0-96526cac59c6@fairphone.com> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757934933; l=6132; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=o2SanjqHk6qnDd+wWkKmHcO5t3xD1dkqEcdLpfu6ivU=; b=nuUGmYNwcFoDkaD0+pIVa7hhOkPQCTJEF3uYYpFC0kh0Vns4RDXWE2SmpnqfX2vSJIJLA0iF7 hsbA+bU+k/tCGVyWKJzjAX2QC2uyeu4n8sN/Ut+ZNar1GPnb4HlGtzV X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= Document the bindings for the ADSP, CDSP, MPSS and WPSS PAS on the Milos (e.g. SM7635) SoC. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,milos-pas.yaml | 198 +++++++++++++++++= ++++ 1 file changed, 198 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.ya= ml b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c47d97004b33034be92f849c03c= 8cd457c8d9339 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,milos-pas.yaml @@ -0,0 +1,198 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,milos-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Milos SoC Peripheral Authentication Service + +maintainers: + - Luca Weiss + +description: + Qualcomm Milos SoC Peripheral Authentication Service loads and boots fir= mware + on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,milos-adsp-pas + - qcom,milos-cdsp-pas + - qcom,milos-mpss-pas + - qcom,milos-wpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + interrupts: + minItems: 6 + maxItems: 6 + + interrupt-names: + minItems: 6 + maxItems: 6 + + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + + smd-edge: false + + firmware-name: + minItems: 1 + items: + - description: Firmware name of the Hexagon core + - description: Firmware name of the Hexagon Devicetree + + memory-region: + minItems: 1 + items: + - description: Memory region for core Firmware authentication + - description: Memory region for Devicetree Firmware authentication + +required: + - compatible + - reg + - memory-region + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,milos-adsp-pas + - qcom,milos-cdsp-pas + then: + properties: + memory-region: + minItems: 2 + firmware-name: + minItems: 2 + else: + properties: + memory-region: + maxItems: 1 + firmware-name: + maxItems: 1 + + - if: + properties: + compatible: + contains: + enum: + - qcom,milos-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,milos-cdsp-pas + - qcom,milos-wpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MX power domain + power-domain-names: + items: + - const: cx + - const: mx + + - if: + properties: + compatible: + enum: + - qcom,milos-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MSS power domain + power-domain-names: + items: + - const: cx + - const: mss + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + + remoteproc@3000000 { + compatible =3D "qcom,milos-adsp-pas"; + reg =3D <0x03000000 0x10000>; + + interrupts-extended =3D <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names =3D "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks =3D <&rpmhcc RPMH_CXO_CLK>; + clock-names =3D "xo"; + + power-domains =3D <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names =3D "lcx", + "lmx"; + + interconnects =3D <&lpass_ag_noc MASTER_LPASS_PROC QCOM_ICC_TAG_AL= WAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + memory-region =3D <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + firmware-name =3D "qcom/milos/vendor/device/adsp.mbn", + "qcom/milos/vendor/device/adsp_dtb.mbn"; + + qcom,qmp =3D <&aoss_qmp>; + + qcom,smem-states =3D <&smp2p_adsp_out 0>; + qcom,smem-state-names =3D "stop"; + + glink-edge { + interrupts-extended =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes =3D <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label =3D "lpass"; + qcom,remote-pid =3D <2>; + + /* ... */ + }; + }; --=20 2.51.0