From patchwork Thu Apr 27 20:45:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2872 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F21AA4147B for ; Thu, 27 Apr 2023 22:45:48 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5083db60747sf9934148a12.0 for ; Thu, 27 Apr 2023 13:45:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682628348; cv=pass; d=google.com; s=arc-20160816; b=kNwVG3ivxcE66pQ+7FP2pSKFxbanScPgbZpmOdd6WxIql1zG4PaYfIqQjs7WhI8u2h yGtlotR/iop5TwtjKtFeMwSaYXOmvcKImGS4+YRW88E5et+TWD5cPX3sPCb4ubfaFVtX Ds/OXtZQgWdsWWYsVwcYaBgR947m5qM7YcaonqLQpEhiQoNw+xnIbKaUVDfzt9lfcjdL PtebICJmDE7I0lClGTXR3l/q+Aq0S3FJYG1FpAKG2XdVtCwLMwwSvSAgQoGd8K+nqrm0 XymTplKjwJX5/T9leq8ty8nL6xJgW98tjUi0k39nuRSfr+HFobX1McrMJEbWeYXRwfxu yfXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2MYASini9220E+UdAWk7ACII1XRTtpH8lze5uH3V9yQ=; b=Dl0ptvql4Gh2KhiinnyiKTjjqLJNfbZxcPHAFfvV7aigLJXFXE+7/QH5oSAmDxtdGP JoduDlC3haGXjL8MASrcT9s8IIWIAKjY8gm8qstFD18GOvF9Z5ng8fhyJzvAn04JvAkY FQTSZVWa/rqC+eTtfNMgQJZAC/0zCRt/rRxcvGgPIymp/8WJ5/UpVCSd3tjEA1c6CNwG fGEeNUcFMEj+zdGR4+STMn+fIAEJNruHpmHGd/ZSsYAB40AZFpIOZH7LLDReAx3s98t/ Axedq7xt8zye5X/cZiO7Cc/sl325MBX0l+edaZRm8TErmiMwuzr7EHcxO6faNzFPn/03 Ltwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lYQb9N0D; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682628348; x=1685220348; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=2MYASini9220E+UdAWk7ACII1XRTtpH8lze5uH3V9yQ=; b=hmX+NQfGYx0N0iq+Z66ZaqXDpHTydsi4rU80vjhO6SMJfjgWsjBqyeMa8IQjVw6kgr 2lbDrmq7pUtQywCe+eKpDZzVa7QY4F1CfPSM/nRJ7K10aBfBIpoDxTAGUwtySvYiJ+zk pOk1sZ9pgHZxRlmTn0EVgTszgbmxrjrvsFuKY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682628348; x=1685220348; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2MYASini9220E+UdAWk7ACII1XRTtpH8lze5uH3V9yQ=; b=Mks0sRtrcpKFMRUE2cPYZveA5wKfrQVBZJEaiexDK9JTqGc5MrUBWz5/byxc+dKh4z KCcKgzW2UgcWqGsR9SpanQ2EMuoRoIpIFFjebObbnprNGYf1iFQK1CNNjWqp8vj50PmB L4CtgtBfiv4dx2VCqIYDD8Yi2g2Ryo70c+p5QFVTCSHDLspO7H+45yoMoOVEMvvuC786 77aphLtc5SSASokR5MBiqhEbsbzu3PUUSz39gKkvJ7n1atq9rduLl8Jn/fz05wvcgEtX 9IOxWQMDmdNIMh5f5UB6fz7Quln/dB9l9DPhYnTNZMzhuqDchakUoV7D8TR7E9kMkOJO VqSw== X-Gm-Message-State: AC+VfDzqMXlVKRca9QUS2v2nrs9zmPi4IDNOZdojMIy/wofsezv/Dk0g g+rI1dqyMekfvDHktzspxw3gsjry X-Google-Smtp-Source: ACHHUZ70w6Ggg6jvbu9COjYu7BVxVjGBIKhYcMU5jXqk3CMlxyYVWJWeWETQyQKqXJu5oC2AOp6O0Q== X-Received: by 2002:a17:907:2c57:b0:94e:46ee:f9c8 with SMTP id hf23-20020a1709072c5700b0094e46eef9c8mr1018096ejc.14.1682628348464; Thu, 27 Apr 2023 13:45:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:71cb:b0:94f:b78b:774e with SMTP id i11-20020a17090671cb00b0094fb78b774els1419619ejk.6.-pod-prod-gmail; Thu, 27 Apr 2023 13:45:47 -0700 (PDT) X-Received: by 2002:a17:907:1686:b0:95f:de3c:6c92 with SMTP id hc6-20020a170907168600b0095fde3c6c92mr2869526ejc.50.1682628346447; Thu, 27 Apr 2023 13:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682628346; cv=none; d=google.com; s=arc-20160816; b=0n27nf+e82zVyzGSU+6d+jj7um+xlksE3KV7WTxchtMaHW0Zv3/Qs7WgXrd04SqBoe QAJPK9isDSuFT760daXLTtA+MzXqE9Tc9s0T4aPRhBl4s3I3hF0xXA4zT9/9mFm6bnpF MnRs/As4jj8eBgTJnPlcIVQ3UrfAlxiM59255hCt+BhT8fFx4rR/GeirH/gBSIkMh9El SZUBUn9DXJ93zJYiKDm5/xVEut7DC3rs4LQKIgDdTfbm4duOgh2C0OmtH1GD5bhzTerQ 9a2kSRIjq9iavyvCqU7bZGK2oGq/JqXmrLh8CCTv+Dbo5cDudKDm9RTEU7pqCCnLZKUq 0vww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Hf8K+LPV3HpQoodPsHclIndfavzTHfh5H+b7Pu9+qX0=; b=YKoSwmVNrqo00N8GSYmBIxQkZ6oi+1U/qOTpOgrA0kUzJoe2gZrjLXvoRyZylF+/Df SaCNClyX6N4Pw8C5DH9TCk36otQ752mxYXOI1BMeDhvEf+mdFuGWH5BJqTx1XEaxwHkP pwVMPYBb599hiluFYDERPFyQv6wtf8gv+rBOqRjIMeqG7jWZthMNriCVcuBrzQLZY78E cG5O6yisO/SObboWGErXTPouOYIKSNZ8ehyTqglB8U/DqEaov3qPP9LTHh1TepPeVSRd DnbdjElk+b/CVv5Bsp/MnXAZPumQkNzXhh5wLwmjHy7U+9CwwVpNb3j/Xew5DeDHeRBE 6Unw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lYQb9N0D; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u30-20020a170906109e00b0094f1fa33c62sor10971074eju.69.2023.04.27.13.45.46 for (Google Transport Security); Thu, 27 Apr 2023 13:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:9b86:b0:957:758e:df57 with SMTP id dd6-20020a1709069b8600b00957758edf57mr3360655ejc.65.1682628346138; Thu, 27 Apr 2023 13:45:46 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-5-99-194.retail.telecomitalia.it. [87.5.99.194]) by smtp.gmail.com with ESMTPSA id s12-20020a170906bc4c00b00947ed087a2csm10171360ejv.154.2023.04.27.13.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 13:45:45 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Krzysztof Kozlowski , Marc Kleine-Budde , Maxime Coquelin , Paolo Abeni , Rob Herring , Wolfgang Grandegger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: net: can: add "st, can-secondary" property Date: Thu, 27 Apr 2023 22:45:36 +0200 Message-Id: <20230427204540.3126234-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230427204540.3126234-1-dario.binacchi@amarulasolutions.com> References: <20230427204540.3126234-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lYQb9N0D; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On the stm32f7 Socs the can peripheral can be in single or dual configuration. In the dual configuration, in turn, it can be in primary or secondary mode. The addition of the 'st,can-secondary' property allows you to specify this mode in the dual configuration. CAN peripheral nodes in single configuration contain neither "st,can-primary" nor "st,can-secondary". Signed-off-by: Dario Binacchi Reviewed-by: Rob Herring --- (no changes since v1) .../bindings/net/can/st,stm32-bxcan.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml b/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml index 769fa5c27b76..de1d4298893b 100644 --- a/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml +++ b/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml @@ -21,11 +21,22 @@ properties: st,can-primary: description: - Primary and secondary mode of the bxCAN peripheral is only relevant - if the chip has two CAN peripherals. In that case they share some - of the required logic. + Primary mode of the bxCAN peripheral is only relevant if the chip has + two CAN peripherals in dual CAN configuration. In that case they share + some of the required logic. + Not to be used if the peripheral is in single CAN configuration. To avoid misunderstandings, it should be noted that ST documentation - uses the terms master/slave instead of primary/secondary. + uses the terms master instead of primary. + type: boolean + + st,can-secondary: + description: + Secondary mode of the bxCAN peripheral is only relevant if the chip + has two CAN peripherals in dual CAN configuration. In that case they + share some of the required logic. + Not to be used if the peripheral is in single CAN configuration. + To avoid misunderstandings, it should be noted that ST documentation + uses the terms slave instead of secondary. type: boolean reg: