Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2380724rdb; Wed, 21 Feb 2024 06:07:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7Mj/BT2zuStwcx6luReig4zhLx+yxDrQKcTkwaWttTsAbKKgZFxdZ2BSldhVEotvegUt6p5P1qT72ohJXHyFEyFH/fBxTPuxB9A5q+g== X-Google-Smtp-Source: AGHT+IEBHQn7JxiKw8YHahldFYSu8MIc3uRGk827KwM+YqCcYsRUl/7mzyKnUGOCb5Np5rd6pgQG X-Received: by 2002:a17:902:6806:b0:1db:cbff:df15 with SMTP id h6-20020a170902680600b001dbcbffdf15mr11191499plk.9.1708524456248; Wed, 21 Feb 2024 06:07:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708524456; cv=pass; d=google.com; s=arc-20160816; b=fqVikEon/mQS/2CdHs5HTZOk6CA/KI7qoAivthn1T+Hh0LhIHUTVtkGsoFtdaKJFSN iapB7xyacxSdJiT2Pv5eSsbnmZi2o//8Nwcvcv3LAqoEQ4iwpprOkv7xNONGM5mCW7Sx YIcWZHhXE054Ennc45+PdZrN7dPYBViFbt3QPE1pFGkLjklywhfu3YJYuXlNhcGoeg3Q PJcolDbdmcSjR4G1bxMiisRK0/CbxsBtuj3UJtMdLpi0FnU1Dg0JwI1/36xkgr59fqSM tBF0KLh+wpYgLvmBgL5s7K8fvftMzGXm8Kgo+Al/E41ortcmzLroW6y8Kt77m6WyNDVW Euog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=bBNt5mBouMup7TvH0VKGOarNbwSfPK+5cPhFazcNHCw=; fh=VSp1+xxHLXszVxngLouyBSof2biPns4TuFXSNQY9YJA=; b=q82g7OnYRWPQVPmoOBC4O09fEFuikXodoMDqS34i1GxeU5AqApsMXi3oJOwJY4i56c ca+P8nt/V3QAHdL0ux9BqaCc6gKD9eOJgjIaV9G/koAlq/cDtvHpvqkfLySmFn1iljat HCyreqm3+IvDYZ0V45NTmpvnGgRY+NdKwlvNOc10BF289vDAcB0NKDan/AxNXpCbwi62 J8H0lLhCzbm4Q7ayLcF7sis6Mkqg/4AL7UbRyzpeegHb2LKNY0t3I8ia2MPfY5uU9YWp 4r5y7gU4uxEfQEMZEUpRglDBzQ/Xi8ADfC+iCdLO688sFWDZlUkGC85IER9bwUZQjhi7 b6WA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZficcdC; 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-74854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k10-20020a170902d58a00b001dc42bc9403si150886plh.330.2024.02.21.06.07.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HZficcdC; 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-74854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74854-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E9FB42853AB for ; Wed, 21 Feb 2024 14:07:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56FEB7F474; Wed, 21 Feb 2024 14:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HZficcdC" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (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 9713B7E105 for ; Wed, 21 Feb 2024 14:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708524366; cv=none; b=KjLU0E0vx63zzZWSNVoOcqQV0deLaw5onyoDArvrPT2OkbmT1uvcnkDTnJZi6jNvTNtCdH9GdQlJ2CbsLyTZIiNu2a6SYQO9rzvGjHl940f/HZhnlSurjKOKd4Xp9MYyfmO67MLQt+Giy+k9VWeDYcfGziSVyyJx/DYSiA457xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708524366; c=relaxed/simple; bh=efIt4GZE7Y0DFlRIraGxw8oWbBJZf8tCwSO/5ZThiuU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=X43z3M4erI6+QBAEvTujTQ9IJMLQHJp89HczQWeZaP0Tw30OINn2sdc8wDeg3cKUAOGwtdVxRmy09EeKi1NxFEdrqSCXCIeQDgtn5U1Ewnx+31LBsN1NCFkJr2ONzPC0hKdYdOC0oH0ZnfPnK4XbGOtCjR+pItS7Zz00jp45QOU= 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=HZficcdC; arc=none smtp.client-ip=209.85.128.173 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-yw1-f173.google.com with SMTP id 00721157ae682-607e60d01b2so28113007b3.1 for ; Wed, 21 Feb 2024 06:06:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708524363; x=1709129163; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bBNt5mBouMup7TvH0VKGOarNbwSfPK+5cPhFazcNHCw=; b=HZficcdCZPpeTsFxk8S7LDZkcCYv7daUKhkJWcAIOX9mn6M1ZThSawn459n0ioi3ID EGaeNyQuDJAghGAC6IgAx4u81hewy8XmfxMp6CixBqdquXtfnP55JvwH6HrEHYaV7DFe enolhjIt0FEHjtSLW4fMFmXD3bNdIMeptCgYehU3wqUHaIdCA5nXRBe94TRH0KVkdlaH FIvMKKwUdA8/wZlTvxJX7zOiNNRbOA5V2HJy3QvkpJX1kI0EYfIuewwppDRtWqzY/mOI kpa7N6H9F6yDsGZbtpAcgGLrqQcoCmpCkFh2wy8+FhlTOz+aOsOPPMTeoJrPWu42I3Oh jYRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708524363; x=1709129163; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bBNt5mBouMup7TvH0VKGOarNbwSfPK+5cPhFazcNHCw=; b=wQqZHmZXR3F/7I2tNKiO/iAQNwLhmLoIBBL9pZ2n3H0dL0ZrgdHZ6XiET0mnQaYLeI AXRpKwItNFBEIUnOIhPkukBYXWtMJLgCWoBDIX8SCW5BHH0daiuTvetPVIMAwqrRKtgQ qFqHPTwebkViRZzN2C+4NXT8IvOP7Ko6vGsYkUcA2T9pffvV5jATq10Rb3CTZs80fu8K n1F/JCmuLis69i+odDWyXdbGCnFl7SGTYzBOuU8f40dxJ+BG8Qr/50copciCBvKZdFhf fSGlFQQbgFowXtRNzhUD/0eOaGTdAkuOj7o7tqRQuQtcaNmydR/gZn+MUENvodCrmveN NkHw== X-Forwarded-Encrypted: i=1; AJvYcCU2izKqPAQepO8Mwo/nUYMbp5tOoRz+/ADgLTQjPXTjEB0ypJsTX0sOoMUPHetk+T6G4S9t9YXUt0T7m3Ki4u7GyRDj08n2h5k9a0yM X-Gm-Message-State: AOJu0YwQVKO4Phu5zh3GgwYn+mFrPHPAbKUOYlL7k9DwhBSKmF/yDaC8 ebZFUUQWsLxhOZEByHVz2MjpPYd1uwIiMEdQ12gPjGGFUIDQRoKm4/saa9lHEvV0UONQI6RhOlA wdLI4CdI1pZeVJ95VD40fMdM20bUEVQDKFAQQNQ== X-Received: by 2002:a81:9a50:0:b0:607:d9f7:e4fc with SMTP id r77-20020a819a50000000b00607d9f7e4fcmr13053315ywg.5.1708524363650; Wed, 21 Feb 2024 06:06:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221-spmi-multi-master-support-v5-0-3255ca413a0b@linaro.org> <20240221-spmi-multi-master-support-v5-1-3255ca413a0b@linaro.org> In-Reply-To: <20240221-spmi-multi-master-support-v5-1-3255ca413a0b@linaro.org> From: Dmitry Baryshkov Date: Wed, 21 Feb 2024 16:05:51 +0200 Message-ID: Subject: Re: [PATCH v5 1/4] dt-bindings: spmi: Add PMIC ARB v7 schema To: Abel Vesa Cc: Stephen Boyd , Matthias Brugger , Bjorn Andersson , Konrad Dybcio , Neil Armstrong , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 Content-Type: text/plain; charset="UTF-8" On Wed, 21 Feb 2024 at 14:52, Abel Vesa wrote: > > Add dedicated schema for PMIC ARB v7 as it allows multiple > buses by declaring them as child nodes. These child nodes > will follow the generic spmi bus bindings. > > Signed-off-by: Abel Vesa > --- > .../bindings/spmi/qcom,spmi-pmic-arb-v7.yaml | 119 +++++++++++++++++++++ > 1 file changed, 119 insertions(+) > > diff --git a/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb-v7.yaml b/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb-v7.yaml > new file mode 100644 > index 000000000000..8a93d2145aa5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb-v7.yaml > @@ -0,0 +1,119 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spmi/qcom,spmi-pmic-arb-v7.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SPMI Controller v7 (PMIC Arbiter) > + > +maintainers: > + - Stephen Boyd > + > +description: | > + The SPMI PMIC Arbiter v7 is found on Snapdragon chipsets. It is 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,spmi-pmic-arb-v7 > + > + 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@[0-1]$": > + type: object > + $ref: /schemas/spmi/spmi.yaml > + > +required: > + - compatible > + - reg-names > + - qcom,ee > + - qcom,channel > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + spmi: arbiter@c400000 { > + compatible = "qcom,spmi-pmic-arb-v7"; > + reg = <0x0c400000 0x3000>, > + <0x0c500000 0x4000000>, > + <0x0c440000 0x80000>; > + reg-names = "core", "chnls", "obsrvr"; > + > + qcom,ee = <0>; > + qcom,channel = <0>; > + > + #address-cells = <2>; > + #size-cells = <2>; Shouldn't there be an empty 'ranges;' property? > + > + spmi_bus0: spmi@0 { > + reg = <0 0x0c42d000 0 0x4000>, > + <0 0x0c4c0000 0 0x10000>; Shouldn't the node address (@0, @1) match the first address from reg property? > + reg-names = "cnfg", "intr"; > + > + interrupt-names = "periph_irq"; > + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-controller; > + #interrupt-cells = <4>; > + > + qcom,bus-id = <0>; I thought the goal was to drop qcom,bus-id ? > + > + #address-cells = <2>; > + #size-cells = <0>; > + }; > + > + spmi_bus1: spmi@1 { > + reg = <0 0x0c432000 0 0x4000>, > + <0 0x0c4d0000 0 0x10000>; > + reg-names = "cnfg", "intr"; > + > + interrupt-names = "periph_irq"; > + interrupts-extended = <&pdc 3 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-controller; > + #interrupt-cells = <4>; > + > + qcom,bus-id = <1>; > + > + #address-cells = <2>; > + #size-cells = <0>; > + }; > + }; > > -- > 2.34.1 > -- With best wishes Dmitry