Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp348657rdb; Thu, 22 Feb 2024 05:52:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNAIOAFtUWI+1vyRBy6cgvZolRNEQuQVDWNxS58dE9k0G8VDE4a2jfMmjvhcbhKSPPJAc4axBEiHMHgakdyT3qdGZwT4fEsSdoJWJhLQ== X-Google-Smtp-Source: AGHT+IFqitV+pinO4oIt7Pn/UFQf4cgqS6JMv9nYPMoIQGlRhHK6KQCsmyOFNGM4Xtue8R3XdQmK X-Received: by 2002:a17:906:f8ca:b0:a3e:ff4d:c773 with SMTP id lh10-20020a170906f8ca00b00a3eff4dc773mr5151674ejb.31.1708609963620; Thu, 22 Feb 2024 05:52:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708609963; cv=pass; d=google.com; s=arc-20160816; b=fk83KbXtv06RR/349JoVE4Ne1ckre9I5eEeQ8aKx+DTF5BOcCmIQoV97CI7ZebbI7v fGg/ynX/+dOAn7xOUwz9TMR8WHkgGDrMqkEGquArLRWkz5va1QZYGtN2ojB9RafxuHNE f3xteKUtxHoVzimGviNGqzDpKwapYm5FlBVyouXqSzDrmCvQTEXVhhVimi+osLUEDGWg ITcvetpXYrVD3lzQIcz+t48Nx22W2cGCIfMb3dAFX3EQWSP1SdBirHqjNHAqls2vWj5B q8sovhHWdkIFs4ZksZkdPpYenSEX+L7QXMGNXW/5K8J5VPl7XrmW3DH/Odu6+3fEl6m+ Yxtg== 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=21TlRVjoWnFJstWCWbc/kPU2iAo+CaLQkVmZjbxJqtA=; fh=08AY0VZOsSbX9MdmDias1pTMEA79bC2stUuUH3DgMmY=; b=0kF0hkcFWLt8qwmWjT1nTWNOcptESQfT96TDNtTOTgOyPMTz1iUo/bcrLvLBEjvqeh 8yFv5Smt43adKua1gLscDgzSYRh9uUCpCNCAhByzB5MyemLPc9e4wHiUip6P7bBucSja PYoVMbFL006yEROXnjOJt55jHtf17tPzkexH+ITOeGg+9cGUMb8rp06tKydF8gCupH8n 2suB95VQVM7+wL2+ee/p65VlORme9juJ99KhxmUTbQTtCoVRo76ZlISMl4qBvIzLjjEI M8SD5fwonlmrXwB5YEaG9h/g+wAWuJ4+sLhUUMZ+TBRQyNcHavf6UMIcvfyqLw7ckiyQ gmdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bpyoSqqC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qc21-20020a170906d8b500b00a3ee758e479si2898194ejb.193.2024.02.22.05.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:52:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bpyoSqqC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 36A361F22A79 for ; Thu, 22 Feb 2024 13:52:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 912F9146018; Thu, 22 Feb 2024 13:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bpyoSqqC" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 A02661350C6 for ; Thu, 22 Feb 2024 13:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609945; cv=none; b=pUDFHpt0Ykdc7u6LLobCs7ja5wCf3KCHrdWsAYxsHB+UZe9RdwjFjqTVnkgOCHPapXUv1062OehWoRh4Auy4/z+TBv/NOisE9AHwHNeXPIdJBHObJ6UDdPK3XeU6t7VWqvZVfa/ukVe3ppNvUg+VGbS1wgpuISMIYD+E7oW4l5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609945; c=relaxed/simple; bh=YamVkfgVhnxdN0nuqUEaGc7/CimD3+iO1qHB6FQRmek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GZMKkFeUfVUuCdQHNho1+bF6lIwksuZZYVeU3Nc76vZ36zcIgQAdzY1TXyza/pguYqRI/ZDh3SqfUpaomNx1/4qHyTvUa8hWNodddF8buV61QP4EBXbUYcE1AfaAzr/vfUS+4M3F9wob954HpdaP1hCKqvpWq3m0I7HFWftKEH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=bpyoSqqC; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3e82664d53so609454766b.3 for ; Thu, 22 Feb 2024 05:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708609942; x=1709214742; 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=21TlRVjoWnFJstWCWbc/kPU2iAo+CaLQkVmZjbxJqtA=; b=bpyoSqqCfeAjWWDl0A6gpsWer/T9xMwlhHW6UZoH7btusq1wuTG4NVKCXE88E8Bx/W TIg4XEbTH1dThkrfgmZAPwTmq4Jz/tvgfbacOS0O9T0yJCp3FUrxgKDi8dX1Vz7J9Und sjW1tvNixmgoR0zg46gzvUZ93GTlhkcXheFzrrqkR1xxNwLCp/BBimcg4rVu5h7cepnt IFMPUqnYFBYah6e2zXIxXX+yJPPnyiFU10Ctz9bPHV/BAMpZ0Oeo2qEha3d9XWrbXaQ0 mQ054aKBP83rtOX5wq10/hPM/WdD0y9exXeK4spWw9V/TjIx8XGk7zO74cUZt+2ZrDEe ZdKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708609942; x=1709214742; 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=21TlRVjoWnFJstWCWbc/kPU2iAo+CaLQkVmZjbxJqtA=; b=QO8W2Kd85tCHesy+4zu897h7RdyAHykFMuD2luRsY9HMHnlMgpvZA9nnqE5FTTEYTD vNnT2mkxoXPnbWVYtTQCqzE6ZMaT7OPpPRFh44EMNjMj/BpCtiy1/AAPXyLpSEFTLZob xua9d5kTDg1pu4vt+SnGvr3U2U5j1J4YrfdHVkAK2VUzduh5ktE1Dv3aL3ouzo7PCHbj WbNB0/NRvXtHLFUlBrxDJ3XixUh+yiILGygzX5ImXgVniBBKYLBwThhSCkACS5nQEZAf HleeOqlwUPtXqU9+kLrLoRBNqIU1hp0vfNtGAZd/Gi20Jm9WaGOqcLczgVq3YT5PGvP9 VxpA== X-Forwarded-Encrypted: i=1; AJvYcCUXGUR/V8C3u5yzd47xLhZIaTrTgYl9ejhNX3dEcmCIZmv3Q+ITWZ8A6wGDJ7QosfP4/LQ+lXg3hh6GOYInnv1VhClZmEaa84W3ikUk X-Gm-Message-State: AOJu0YzO3nBcsFxOG6etVoQgjaoLLaLTxf+gwHjTDF0MjG200l4FQJcH rG+FB5nZM1WRmBkWTg67Y2Jd83kqA1uFkZdKog7eUNQ3jFQ6qA7NKANC94Pi0v0= X-Received: by 2002:a17:906:48ca:b0:a3f:10:bf70 with SMTP id d10-20020a17090648ca00b00a3f0010bf70mr4975855ejt.37.1708609941995; Thu, 22 Feb 2024 05:52:21 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id ot18-20020a170906ccd200b00a3ecdd0ba23sm3382839ejb.52.2024.02.22.05.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:52:21 -0800 (PST) From: Abel Vesa Date: Thu, 22 Feb 2024 15:52:02 +0200 Subject: [PATCH v6 1/5] dt-bindings: spmi: Add X1E80100 SPMI PMIC ARB schema 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: <20240222-spmi-multi-master-support-v6-1-bc34ea9561da@linaro.org> References: <20240222-spmi-multi-master-support-v6-0-bc34ea9561da@linaro.org> In-Reply-To: <20240222-spmi-multi-master-support-v6-0-bc34ea9561da@linaro.org> To: Stephen Boyd , Matthias Brugger , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Neil Armstrong , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Srini Kandagatla , Johan Hovold , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4212; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=YamVkfgVhnxdN0nuqUEaGc7/CimD3+iO1qHB6FQRmek=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl11GNnhK0hUGx1IRjPnBlHv9T0lvkCm7Bwz7JT Qltoxb8PKeJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZddRjQAKCRAbX0TJAJUV VqHjEACxuEh80xqEDASrIjulg4ghwtGd7HRkroC5CRPYtS9B247hbzv8x4c/ADi+bVVTiRmnvU0 rFdPQ/HGDEm898tuapdTA4p34lwNuOsPKvGR4Z0WK6OXDL8LNkC5Ee3yLpwYZg1B3uJwgW4DfRp iJ3/AKivBhOLY/Dqn1CZWUrEXTNFdQg+aJpALJkNKx2sXfWLsBNpglKf09RkdfXYMKzrDr+Pm/d cDQNNFjFzdEZev0OTdoWZCvFsUAjBBCZsC2CO1TgdtaPqTlSy23TBpSwZqj+ynMg3aLJiPOaEBk JrnPzd2oE7N5L7utVB883tGhfouRkba3h7kCYOHSG/NJfUzKsxm8GU4Em8lDW6+FsoxfdnBvTaE RcG3Pp2c3jMved/p27EQxMl7cAnMYPEFM5zuTyMGI6JboNm6sfbX0HXkCnHoKuEO9exCVpqDonu TtXgnzaPKptRKvTzK4shV/ASo1g7+SNNJ57E2B7WytlFNS2H7lGdEVgNxLiWb2lt/dwBEI9a+pl 3KzyjUtVvJyCtlFZ4ZhgcibvCqHbF70NWZABW8xopoXmjkeZEkKLWPaete7b/OiUKnBTUa6nb5H D4DaGfjMgHljJXqiXYnD7YJNeukzSyJh5ZolBcW8FUHaZjgfzk+ioB7mYtDsJ4QHkcNUWGDnUUB 9nKDe7pZv6j6umg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Add dedicated schema for X1E80100 PMIC ARB (v7) as it allows multiple buses by declaring them as child nodes. Signed-off-by: Abel Vesa --- .../bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml | 136 +++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml b/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml new file mode 100644 index 000000000000..bdf362c4a147 --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml @@ -0,0 +1,136 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/qcom,x1e80100-spmi-pmic-arb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm X1E80100 SPMI Controller (PMIC Arbiter v7) + +maintainers: + - Stephen Boyd + +description: | + The X1E80100 SPMI PMIC Arbiter implements HW version 7 and it's an SPMI + controller with wrapping arbitration logic to allow for multiple on-chip + devices to control up to 2 SPMI separate buses. + + The PMIC Arbiter can also act as an interrupt controller, providing interrupts + to slave devices. + +properties: + compatible: + const: qcom,x1e80100-spmi-pmic-arb + + reg: + items: + - description: core registers + - description: tx-channel per virtual slave regosters + - description: rx-channel (called observer) per virtual slave registers + + reg-names: + items: + - const: core + - const: chnls + - const: obsrvr + + ranges: true + + '#address-cells': + const: 2 + + '#size-cells': + const: 2 + + qcom,ee: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + indicates the active Execution Environment identifier + + qcom,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + which of the PMIC Arb provided channels to use for accesses + +patternProperties: + "spmi@[a-f0-9]+$": + type: object + $ref: /schemas/spmi/spmi.yaml + unevaluatedProperties: false + + properties: + reg: + items: + - description: configuration registers + - description: interrupt controller registers + + reg-names: + items: + - const: cnfg + - const: intr + + interrupts: + maxItems: 1 + + interrupt-names: + const: periph_irq + + interrupt-controller: true + + '#interrupt-cells': + const: 4 + description: | + cell 1: slave ID for the requested interrupt (0-15) + cell 2: peripheral ID for requested interrupt (0-255) + cell 3: the requested peripheral interrupt (0-7) + cell 4: interrupt flags indicating level-sense information, + as defined in dt-bindings/interrupt-controller/irq.h + +required: + - compatible + - reg-names + - qcom,ee + - qcom,channel + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + spmi: arbiter@c400000 { + compatible = "qcom,x1e80100-spmi-pmic-arb"; + reg = <0 0x0c400000 0 0x3000>, + <0 0x0c500000 0 0x4000000>, + <0 0x0c440000 0 0x80000>; + reg-names = "core", "chnls", "obsrvr"; + + qcom,ee = <0>; + qcom,channel = <0>; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + spmi_bus0: spmi@c42d000 { + reg = <0 0x0c42d000 0 0x4000>, + <0 0x0c4c0000 0 0x10000>; + reg-names = "cnfg", "intr"; + + interrupt-names = "periph_irq"; + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <4>; + + #address-cells = <2>; + #size-cells = <0>; + }; + }; + }; -- 2.34.1