From patchwork Fri Oct 11 13:16:38 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: 13832563 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 7A336D0D78F for ; Fri, 11 Oct 2024 13:21:05 +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=wUS9O8RaGfXiOh/gcBh0g4YfEW2SakpMupOR/Is8Hqk=; b=S9aoXMSt154WZ3Q0NqdTvUIAk/ QIk1zlHCperqmhxnP7RypGtAv0TbCzGxYy69QHismjEg+vkVsxG1A+7z/cnEP4y6MkuQmyxoP7DKQ /0zI85icRQxXUwnzsAXZ2ul398xil7fHDpk/h3flg3eu4PcnwC8ZdquX2+Y19ffaXsyZYYVYX0Kzw 52Tjm7SD7hOqzznkFGph09iab5/E7CE2uRhwcHcTmqnemhWx/fnErPNmVwvyW+nNLSTInbCx0Q8X+ 7Xvznwnz1BpEj/v5QskErvGYJnFhCNqgBbTAvJyxbb1D9ISU35vKgXF2/L7JO6GxAyPozlyuMrRuJ rxiCwoVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szFZZ-0000000GQgx-43Dn; Fri, 11 Oct 2024 13:20:50 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szFWr-0000000GQ3k-0yuk for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 13:18:02 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a9943897c07so281692766b.3 for ; Fri, 11 Oct 2024 06:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1728652679; x=1729257479; 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=wUS9O8RaGfXiOh/gcBh0g4YfEW2SakpMupOR/Is8Hqk=; b=T+Xh5Rrb2oLvm/jMWgJYOln8FbildEjG4LhS2cpGoSL1b2BsIHpt5iCDnmQY1X7iL/ 0ODhN6h+6ZnpWQa6wAKQXEB/5NDdoFACcaSi1+FBWI1AvYjo7mjCsLPD6cD/9CKn3VRs iczgwMpjN95JlLY2iAhFOOsh2eXBDBK4oh/Ih6VdbFNyNNPXSSzrVIaFHIPfrOCb81ID agF+A2wj6l1wi151sPBt2ZQEJGXy4M8s0byevHfiMsv745MQwIknlqaF8lIhMQEtCja1 yIf7/0KHFf3e4gWFrJcX2peOCKR0Sig+5wJiZ7WveW1c01lYv4HMu/GJ3HRUnh8CRLPr x3mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728652679; x=1729257479; 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=wUS9O8RaGfXiOh/gcBh0g4YfEW2SakpMupOR/Is8Hqk=; b=NCFKXZWEWWaus/bGzNGfjHE/B7loa7sV5nEdj3yqwkXKc5y3SqScVc1RIYnGpJ6hXK H7Jn88cbKnsRxUxoITnhhUovZ2Fdf2RHSv2GmW/2bPUmkKmCvwZUXlJQhU9t2DlfpfG+ 23oo/ML4aeY2Bp7R8U6g5pK2Du96Icg2XKj3XOey+xBabwqtXilqq2xpwuz1Z2TlyuZW xSPR++IT/PIjivZ4pZ59GsuG4kZefuAGh80R05pjFNZIkMi+/r0fLyDVk4zYs9gfaOaq y6OP90LaBAsFDAxVAMdgnUXZE6UjyWM1Y19qi6aY5hJwE9brnF5qBFWXMyVtMB3GT1pv 6R3Q== X-Forwarded-Encrypted: i=1; AJvYcCUfYs5x6dDx09h4Jt8MTRe+r3IzebRVXOQ980rhvEwFgBjjSsbBlM9ztu3n71ACPKdMrWJ3IhCVjWlQ/kBX/ZnD@lists.infradead.org X-Gm-Message-State: AOJu0YxdgFqrv86EF94Jr2UfNbjlfrXivY/FR9ujrAQbv2nBFw/yVYRX 4lYDqD27ERz2hLRUBxn9QvhanYl5+6O90GYzUyJNlkxCUncTV/ncjg0HIu81jiY= X-Google-Smtp-Source: AGHT+IFaEMX81GzZ+jATV7DgoLYhKfYvMArkBn856asWysPwWg8p+jz511s/+c59x94ZEJ1yMprBUA== X-Received: by 2002:a17:907:d599:b0:a99:5773:3612 with SMTP id a640c23a62f3a-a99b93d4235mr213477566b.36.1728652679342; Fri, 11 Oct 2024 06:17:59 -0700 (PDT) Received: from localhost ([2001:4090:a244:83ae:2517:2666:43c9:d0d3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a80c0238sm211617866b.115.2024.10.11.06.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 06:17:58 -0700 (PDT) From: Markus Schneider-Pargmann Date: Fri, 11 Oct 2024 15:16:38 +0200 Subject: [PATCH v3 1/9] dt-bindings: can: m_can: Add wakeup properties MIME-Version: 1.0 Message-Id: <20241011-topic-mcan-wakeup-source-v6-12-v3-1-9752c714ad12@baylibre.com> References: <20241011-topic-mcan-wakeup-source-v6-12-v3-0-9752c714ad12@baylibre.com> In-Reply-To: <20241011-topic-mcan-wakeup-source-v6-12-v3-0-9752c714ad12@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 , Markus Schneider-Pargmann X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1807; i=msp@baylibre.com; h=from:subject:message-id; bh=tIux4Jo7N8fDpXOCI+Zhs5OWS+myGS4fEvh1G5nNm0s=; b=owGbwMvMwCGm0rPl0RXRdfaMp9WSGNI5VcO2MRvcyOZZsrPXyEn2YvyrzEj2zJUvwvbwc3xYn uCv/f9+RykLgxgHg6yYIsvdDwvf1cldXxCx7pEjzBxWJpAhDFycAjCRt26MDAtfdl4NX5h96fz3 EN9Fii2yh+6X1bTPYCqY+ah5scTEOysYGa5c/5j59nth/JbUqWyTDVm59losurRorprvb/ZX524 tWckGAA== 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-20241011_061801_308826_DBF8702D X-CRM114-Status: GOOD ( 12.20 ) 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 Reviewed-by: Krzysztof Kozlowski --- .../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