From nobody Mon Feb 9 17:37:55 2026 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 088BD1C07EC for ; Thu, 19 Dec 2024 19:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734638347; cv=none; b=WamWk+BCSCzkgqAEBWGOmI+99IGXDS3zj0vhPtvcPiP3wn7wclw7qXOEqavAP4qJU2i5bfgbCZoMUdir+0vn62NCFI9NqFHLW7snYLShvTk2zIE1O31bY+Dmh5FqkJKgfSFhjLJV0QQG5t8EkikvG9IpOdzLp87kh6n4aNqf6gA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734638347; c=relaxed/simple; bh=pbVz5i7bBpn8K6oPpV4EgG0QmN+pyuIY566qROm5zTA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V2N5HJatbVUvzc/SCaDH2h8K9X6OiMQ/ThI6YLD788TLbFljuepNaEw25USOpwYMmJaW1c6OnGFk+KTtOqV332LQC4+zC4975FSULAcLoii8YAaZNg6y9d9Rd2jgxS/Gi9q+dtU21TN1PkSAbmYQLqL0nfpYZT9WiDFYmVm5fmU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=2nj7UVeo; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="2nj7UVeo" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa6a92f863cso238033066b.1 for ; Thu, 19 Dec 2024 11:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1734638343; x=1735243143; 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=PRShUSBjq5I6HKenuUGB0yK2sVXlFvGUz4LilaU4jRU=; b=2nj7UVeoMh9+4F+yHQihVV/sQZ0/JyVaGr5BTA5YP3bx4b9TlrsYmhCaFbZUGI/VtO t+YkBDlzyHl6WiKLpcwmgbfkFaDJqYRKCy6AlbiD91SehEEn6BlIOSRCMuvlPJGh5RkK 9OISoIswIfLPImp1wWTwVonW3VxTO2CzgeGKuH+68m533qDmLzWCnz38bBoX31bdOoz3 pi7dHsuH2jquAhAH5iinfsmAnsYJNdaoDnmlNUeIWLXjCGaRisHlggVpcyx5V69SDGqu NKJm2dEepca2DQXqHnx6d0tOWhclXQ3gucO5ezjwFuG/QjfO1KQVEywnng3dyPyEMjhc HXjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734638343; x=1735243143; 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=PRShUSBjq5I6HKenuUGB0yK2sVXlFvGUz4LilaU4jRU=; b=cFLP27YjACrBQF4WIMYvweoED1abB0miaO5ER24sD1sE6L3m3SRxxY7syjVWQzfG/q VnCaTQmbD1PINB6fClT0uNjYTxv2jnkrkVr05y2yJxAbCTNPdF42uXrNgJVGc0Bio2qR 5ffzYM05pcffFgdd3iQAZN0gJQEyblqsAn5I6wl8/nD8FeQCEcpRe3TyRMyroTWS14EY WHc558dHQp8hZ8b6Q22zZaPxMghq4WjHPrsMN4f3zhaQVZpQO2LpuPEkdn/eRYZ5BmwE 1nElLLhzp6xVW3++GpgWP2IewVzBR0xuDjpaNME0S7vWh/EWp8x6ojdUKjqKitPYQhGC yZ3w== X-Forwarded-Encrypted: i=1; AJvYcCU1clht8p5vbioSw7FzCNqpx0vrkHiTEnACIsvqjBfABFS8M+HUmdILDX9yt7D+EEdjXv0nlioAP1EtEUQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwDCsVGtWcCgxEs3cTY2Dj/4r0xODniSM7y2U8NCg/yAqb4s8Z9 bUE/5sIZaygJJtBh/E9IRhuv8UqjGEwLJjJzxwVGKNEJJDahxaMViv315swPRYa0K3ery0QheQj e X-Gm-Gg: ASbGncviNirbU9xZxuNikGk7n8jYRpfGNFltLO20zBZ+CgO0scUlurtU0l8oymjg/cA df6SQxD+UNVpk3TVS1OZMtfwxFGpfvhyG10dIQXT8nS72LC/GveQiPRExy7+t+d1BwyyAWv6PIP qTNb73+vA8Fqgs8AQYGBW4Meg6EUQ7Dlx6bvgijava0oFivrjn8uTkVZ5L2WXSSw09OeZ/iIdeP h+LwnBqEU09U++Q4nlpfn7n4/1CGRqTC1Ol46dK4zsiproRLA== X-Google-Smtp-Source: AGHT+IFWWW5j/dWBpAa3jLvu/efCTMtDMJLR6V5NnS7zYJJvfEW3vIH7rRRkkbWVf34McH8wrBcmmw== X-Received: by 2002:a17:907:9621:b0:aa6:6f92:74b1 with SMTP id a640c23a62f3a-aac2ad7fa01mr7034866b.13.1734638343290; Thu, 19 Dec 2024 11:59:03 -0800 (PST) Received: from localhost ([2001:4090:a244:82f5:6854:cb:184:5d19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f015b3csm96559066b.161.2024.12.19.11.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 11:59:02 -0800 (PST) From: Markus Schneider-Pargmann Date: Thu, 19 Dec 2024 20:57:52 +0100 Subject: [PATCH v6 1/7] dt-bindings: can: m_can: Add wakeup properties 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: <20241219-topic-mcan-wakeup-source-v6-12-v6-1-1356c7f7cfda@baylibre.com> References: <20241219-topic-mcan-wakeup-source-v6-12-v6-0-1356c7f7cfda@baylibre.com> In-Reply-To: <20241219-topic-mcan-wakeup-source-v6-12-v6-0-1356c7f7cfda@baylibre.com> To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Schiffer , Vishal Mahaveer , Kevin Hilman , Dhruva Gole , Simon Horman , Vincent MAILHOL , Markus Schneider-Pargmann X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2145; i=msp@baylibre.com; h=from:subject:message-id; bh=pbVz5i7bBpn8K6oPpV4EgG0QmN+pyuIY566qROm5zTA=; b=owGbwMvMwCGm0rPl0RXRdfaMp9WSGNJTqp6offH44/KPdSX7St1Yu4MBb2b7V4b+4yprywlpW bjh0NXfHaUsDGIcDLJiiix3Pyx8Vyd3fUHEukeOMHNYmUCGMHBxCsBETm9j+Kfnf+rjiws/Xwns rC5e8FZJWOSH/6XsOU5X9nTeO3/76stDDH94pxsYbfgbdG/acqct3KdkGd653z5re15dqvL45Uy t2mIuAA== X-Developer-Key: i=msp@baylibre.com; a=openpgp; fpr=BADD88DB889FDC3E8A3D5FE612FA6A01E0A45B41 m_can can be a wakeup source on some devices. Especially on some of the am62* SoCs pins, connected to m_can in the mcu, can be used to wakeup the SoC. The wakeup-source property defines on which devices m_can can be used for wakeup and in which power states. The pins associated with m_can have to have a special configuration to be able to wakeup the SoC. This configuration is described in the wakeup pinctrl state while the default state describes the default configuration. Signed-off-by: Markus Schneider-Pargmann --- .../devicetree/bindings/net/can/bosch,m_can.yaml | 27 ++++++++++++++++++= ++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/D= ocumentation/devicetree/bindings/net/can/bosch,m_can.yaml index c4887522e8fe97c3947357b4dbd4ecf20ee8100a..75963b11d31964c476793706648= 24ea111e70ca7 100644 --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml @@ -106,6 +106,22 @@ properties: maximum: 32 minItems: 1 =20 + pinctrl-0: + description: Default pinctrl state + + pinctrl-1: + description: Wakeup pinctrl state + + pinctrl-names: + description: + When present should contain at least "default" describing the defaul= t pin + states. The second state called "wakeup" describes the pins in their + wakeup configuration required to exit sleep states. + minItems: 1 + items: + - const: default + - const: wakeup + power-domains: description: Power domain provider node and an args specifier containing @@ -122,6 +138,17 @@ properties: minItems: 1 maxItems: 2 =20 + wakeup-source: + oneOf: + - description: This device is capable of wakeup. + type: boolean + - description: This device is capable of wakeup from the defined pow= er + states. + $ref: /schemas/types.yaml#/definitions/string-array + enum: + - suspend + - poweroff + required: - compatible - reg --=20 2.45.2