From patchwork Mon Jul 29 07:41:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 13744504 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39194C3DA61 for ; Mon, 29 Jul 2024 07:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YxOPhXgBGVgm459I7orAWDkAOXF8W6mRG3330dy+9Vs=; b=WivifdOinOlafbCXkAyWG2gqzg +iMfm+RFmPgxpOWTEqA2WOQX+DWYCzHYGyiSSI349kE5dbcjuOLvGN9m8SfNYXpaoSvJvJmYE/bf1 xswvj10cODc60FcGF8YPIkn+r5y5xF1Yk1Lx/WZcWmP/JMFeiL3y/oAAdxIj140EjsxuX9ewEnxBq NYnyBduFlxxqLiKLGkAbFAblfodXesSD9+px47JY20vIjlwexEZCUvG1qPMsU3dPRnbNdmXMIWFkB 8lSEKFTGkVOVuJ1YKyMsA9dkLdW+EbGlLD3dUo4xmZgWedxtYh3eqaOZ/+1/IDMiEj0uO/ZJBaVcK IIXNv9xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYL1Y-0000000AOJn-0lF2; Mon, 29 Jul 2024 07:42:28 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYL16-0000000AOBR-21DT for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 07:42:02 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42803bbf842so17583765e9.1 for ; Mon, 29 Jul 2024 00:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1722238918; x=1722843718; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YxOPhXgBGVgm459I7orAWDkAOXF8W6mRG3330dy+9Vs=; b=RgosF5BzFYprwZSIFY3ewbDGWSeNzQ/fJw/aekNT5CV8LHPfHGfthSUkVlYe2QHMwk XeG5JAxx5CSWIkzrwVCBVgbdOQ4mtOo4Z1KhPtCXmJJOYIQOje8vKe6+aCv9HlMOKYEC 5DcPViEU9gJcLUjLG9YFjpZgTQLcts0atF/1JfXL6Tu1oXKN9J6wzeEIb4qoa6LpwN4d OIwIzgyb2gL2NcSsD/3NHzFwXP1L2mom+fliU35u27Vdwr7uGM5SrjjAT0JjwsMITR+r g0zGK5g+GdfHwxrcHZ+Na7LTG1d9VMtXkW/mopEOP3KQjjNFI0fC4toHZGmNAks5bHyK Le/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722238918; x=1722843718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YxOPhXgBGVgm459I7orAWDkAOXF8W6mRG3330dy+9Vs=; b=a21MdZDb376fddVLySE8rM551TomhZeukrZFXwHeGMGhTJSa+KEa7OqI1UjuUFJnmR 1x6Ja66y1BhK6nZ6EnV4lC8zb3g2HbWbqxQsL5zsnr43BCsm9qanT0noAllD1AF6BEAF GEML7Jdbqym2IFwYMAwoiBWSsi2RERdQ1rrzuG9BNuY5kRqrrnY64jbC0HvRiretPIgq 6asL3uFOjipTvLXDv5+Vyi1AcgT2FJ2+Yn8TRG4xjzU+9kNh658rLIYGwcJObpYbLlnN 7sy3ZmxtOURddq/m7VNXmFw8BDIefG44jkcc2Kbv2Z73z6lbO2jfz8bDssvD7l2aVQQM E0KA== X-Forwarded-Encrypted: i=1; AJvYcCXJrrMEqIHCbs2ufx4mGmeyO5UY1CyOCh+1uvTqxGeFs5Ziz2NIQ9YF2V9pW/KeBhxaWga/AmuIjBRu5Z1tm0PLHDgpbYtIs6aC1b/fex2ihQ+asU8= X-Gm-Message-State: AOJu0YyPUV1o6X7CpCh1kal4ld4JQfr37koLiMzrDi+b8q1Nv/pGyI5H 7F/q2jMN0taARne2WGTCKfP/DMhqPk5ZBQ1sBzucX67pTtGXndChDa9+3IzywAM= X-Google-Smtp-Source: AGHT+IEH1BmXykzYxHbBlIGQ39KCxXnJRNw6NqAwJ/SmSfzCEFJPCKmY2ZLDYfIMDV8hQvo+5IUQUw== X-Received: by 2002:a5d:4210:0:b0:368:3b5c:7a5d with SMTP id ffacd0b85a97d-36b5d048bf8mr5655964f8f.20.1722238918458; Mon, 29 Jul 2024 00:41:58 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a245:8609:c1c4:a4f8:94c8:31f2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36863aa7sm11460879f8f.109.2024.07.29.00.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 00:41:58 -0700 (PDT) From: Markus Schneider-Pargmann 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 , Markus Schneider-Pargmann , =?utf-8?q?Martin_Hundeb=C3=B8?= =?utf-8?q?ll?= , Christophe JAILLET , Michal Kubiak Cc: Vibhore Vardhan , Kevin Hilman , Dhruva Gole , Conor Dooley , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/7] dt-bindings: can: m_can: Add wakeup properties Date: Mon, 29 Jul 2024 09:41:29 +0200 Message-ID: <20240729074135.3850634-2-msp@baylibre.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240729074135.3850634-1-msp@baylibre.com> References: <20240729074135.3850634-1-msp@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_004200_547215_249FCCE9 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. 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 --- .../bindings/net/can/bosch,m_can.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml index c4887522e8fe..ef63f6b8455d 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 + pinctrl-0: + description: Default pinctrl state + + pinctrl-1: + description: Wakeup pinctrl state + + pinctrl-names: + description: + When present should contain at least "default" describing the default 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,10 @@ properties: minItems: 1 maxItems: 2 + wakeup-source: + $ref: /schemas/types.yaml#/definitions/flag + description: This device is capable to wakeup the SoC. + required: - compatible - reg