From patchwork Tue Oct 15 19:15:55 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: 13837067 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 24F06D1F9C5 for ; Tue, 15 Oct 2024 20:30:47 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BosgQ+kD0H5BJCs43wOOr0oQ/yjsIN/cdckDvbryFCI=; b=zToJdQ1s7iZmUM+yFI0zZpCA8G 4gBloTv7kRdp/HDwrJR/Iok7hG3fyvTrmCDuBez72wccw91ji7WCBa1lUDGkNiM3JH3gpPovB0PuX X2ZEdh/9fLxazl0zmz2Xi0AT3C622Pd0pQJsJlzlXu6ilEDS1X/a4nGfZJXmD6RxQyEWHrIW1nbAB 6xhCn9JJ4N5pOxI6SB9EE5zzOC5LS7VhXAiKi3QDnFvynARGDBj3QkTqnrw4Q4QfZCPcDU4NPUzL+ e8I2gow+jBUuBvCcjZeDkt19ZEO3bvbbzm8rQBfVJ/2r4im/TFGTpYdYiREb6so+Q061r+V0j8bZY YY9x9Fpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0oBg-00000009W92-2g8b; Tue, 15 Oct 2024 20:30:36 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0n2f-00000009MRm-0Xai for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 19:17:14 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a99f1fd20c4so539443366b.0 for ; Tue, 15 Oct 2024 12:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729019830; x=1729624630; darn=lists.infradead.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=BosgQ+kD0H5BJCs43wOOr0oQ/yjsIN/cdckDvbryFCI=; b=1KnKUBd8ZDhJPM41TelDXrQVLjZcg7n44du4v9bwo/454owQpqfcAH+H8RTQ8a4BoF fz+rW3kKHlhP3zdIjhTxAirUiqqkliI9nzAdkCiXv0F4Y3tB48dIm/xcQ8xBJ09vT44l D/BsvFeFwMfRjFWOx2wwUagDy+BDlBE9D1ZiJVSlwMoQD5DGw1fPCrdMv/KuArBgGWFS NGaIOBBsT5wBtMb40Z+ExX/dTyz0+9q4Yrcxia/GDNPU3Arbe4/96pFzil4KCOP9xhiu gHV8LwOJwHQs45c2cqPw1V1fYNbj0iC8/NjaOK7Co6gj9VlrEWjwThf49VQTTi61Qg+y llDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729019830; x=1729624630; 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=BosgQ+kD0H5BJCs43wOOr0oQ/yjsIN/cdckDvbryFCI=; b=B0zvMOirkgw4Jvy9v1Xz9nUG4/SCHVLEy7rHL8J38Shk0XTmI9TV+ruvc4i24VRTaH dC/ZwbC/y3f+IAwzLiqXVVxtAdcaMnweeMvoYdK5uLp1AcWYQwhZQ65M+nZZyJgrXRrd ElVef6NMid6h/yUv7HlzTdHWPgDDl041lNN7y3ivm0SW5nlDHlgwPG3xII4eiJuJXgJZ usJkRhZDTby6+/FDQQD/63cPYffUFzhxiuStMir4kBcWlfP7b4az53RRaWPVHXyjbk7R NroN01PzOYHNBqPZGv3xrnWdnr9PyXcNjxaiG5ykLTpMyH3okjvHK+ZQKVY6MwBH27Ms tVzQ== X-Forwarded-Encrypted: i=1; AJvYcCWbcL8lGbosS/I1NXtlIpdDhsXIgfZdEX8t8osGYH+5WoYOxpB6qnRYx/ZXpuH2qDuE0Bhp6vFBIufMbSH1+5WE@lists.infradead.org X-Gm-Message-State: AOJu0YwBSEtQdfJPRBsrDis5RX4EHanbjlqWXFk7xMAeNRCF5EtBUp9z Ra0+KPkL6qLCUh3BFUEZhFYLi1wniVHtUllOUCzKbeekaW2fK3Z9J91gpBlau2Y= X-Google-Smtp-Source: AGHT+IFsYtA77wAuh9nis+Oc6a+Lfq19dmpQld1Bd4sJ531FzQwGqpJkoSD0d+dwGzwE0A/GIUGxDg== X-Received: by 2002:a17:907:7291:b0:a99:f4eb:b7ee with SMTP id a640c23a62f3a-a99f4ebba87mr1017022866b.11.1729019830501; Tue, 15 Oct 2024 12:17:10 -0700 (PDT) Received: from localhost ([2001:4090:a244:83ae:2517:2666:43c9:d0d3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a2971a51esm101941966b.37.2024.10.15.12.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 12:17:10 -0700 (PDT) From: Markus Schneider-Pargmann Date: Tue, 15 Oct 2024 21:15:55 +0200 Subject: [PATCH v4 1/9] dt-bindings: can: m_can: Add wakeup properties MIME-Version: 1.0 Message-Id: <20241015-topic-mcan-wakeup-source-v6-12-v4-1-fdac1d1e7aa6@baylibre.com> References: <20241015-topic-mcan-wakeup-source-v6-12-v4-0-fdac1d1e7aa6@baylibre.com> In-Reply-To: <20241015-topic-mcan-wakeup-source-v6-12-v4-0-fdac1d1e7aa6@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 , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1874; i=msp@baylibre.com; h=from:subject:message-id; bh=Jw+WdBzdeJ1ejN6JFooZdebJTss0hVEiqW0IkRTOyf4=; b=owGbwMvMwCGm0rPl0RXRdfaMp9WSGNL59rcHTtJ/VpO3mLlHjY0r6UKy1A873eMXXD+4bivaV Ki43HxfRykLgxgHg6yYIsvdDwvf1cldXxCx7pEjzBxWJpAhDFycAjCRr8YM/2uytik0z7co6z+5 f/NiuZi2pwwypzN/bHXdcr3Nb0XR61uMDP3xIbNWWVbbZBsf/XOsQtx5goxrOr+e+ryluV37PbJ OswAA X-Developer-Key: i=msp@baylibre.com; a=openpgp; fpr=BADD88DB889FDC3E8A3D5FE612FA6A01E0A45B41 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_121713_205264_C3703397 X-CRM114-Status: GOOD ( 12.82 ) 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Markus Schneider-Pargmann --- .../devicetree/bindings/net/can/bosch,m_can.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml index c4887522e8fe97c3947357b4dbd4ecf20ee8100a..0c1f9fa7371897d45539ead49c9d290fb4966f30 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,8 @@ properties: minItems: 1 maxItems: 2 + wakeup-source: true + required: - compatible - reg