From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 3B62D28489C for ; Tue, 19 Aug 2025 07:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755588405; cv=none; b=F3YzJPAEAzuubthlN2o3xt4tQzoRRuUaHNAYviegkR9blXErUS93UGrSK0huDi4XE1YEd6WyKl/j5TurL77VFyaEmRM77agA+W2cCnnEzI/ygLFUoWoy2Nhjy80ySI/ibbLstzYbvCFdnKjy4Dq8JGocRvJj6CNSdPBjuqIxLFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755588405; c=relaxed/simple; bh=JHrwiE0qeKjiu2JTqZWpkY8QsgsyYxZEYwptk+ODRos=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=e+KdVXBEc8EkwQN+yFF8veUS/rrA5eRBcHh3FGLxr4HV2nieodI45C/34ik5TofNTGVeruq7suNrzZBQ5HxzU3WpB0/kLWwIPeVXMxBCoCisb5qHvDNmKX9bWl7GA8kkmF4VmvBYb9LRUV9pGhmn3GlW8RURzDjS8lFaVnQRNi0= 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=0sX1IJae; arc=none smtp.client-ip=209.85.218.52 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="0sX1IJae" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-afca41c7d7fso1013943366b.1 for ; Tue, 19 Aug 2025 00:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1755588400; x=1756193200; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qH1AR6Cc4z3ibmbjdOCcxU3yVHntaGlUKsN2PMUKW3E=; b=0sX1IJaehOG5+QkNnxq1Me8QoimnNa6YsXKYWyahdM3UrB747AzMGKwXf5gPZDELls CXCGWAZFO0IBOqhpfS1bdpPC7IifyUWDevkLXB7D8/ysP0m5kSXHcBaysQUzvuB6g/Qu v38x76vgWFkXqDzWiHoDCYPBPwLZTGO0qOU8VZSl0xnmumeZS0zo9MN0vSbiUZkdKs1x y98v0pFr0hhBPYfpUW9gXEJ/qItwK5yQqRGqT5lc9j0C2taKiPD5Q73MEendDPh9miEF GMUaUhcjUiIjOZA4hKlVRu9+HeqIYh6+4iANBYdoEL2sKo5C6m7tcgdjfCOFkdtCyCP+ iQ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755588400; x=1756193200; h=in-reply-to:references:subject:cc:to:from:message-id:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qH1AR6Cc4z3ibmbjdOCcxU3yVHntaGlUKsN2PMUKW3E=; b=dvHhpy/GwDO2gz8ZYEDjndPEWJWnctYDyXgEcGoOEztZPt4xjfsMBeRmsboccCLe5B A9N5gytcnryvqmCLVySCZ8PWNx+YJMzs7rhH+Pd4oA/ScNO2EfjcSHLbEP4kKzQFdY8O eG6/7TC2HkUazQhYT5ky55bV7QhBzOIlNzwYn8xTPJA3R/PvudASUS0zSngQApni5mxz nqTOqTaAm9x9Xt+J5VHGqLwib0Ef463LlV0f/olNS0nqiQ8oOGx312ANDCGjaP6xFM0y vjMpibceAut/z6tdM5w9JqXKday1hOg9NLZ8QifHrrjjUNlaYc4Znhqz4Jwx4ezt7uRD +lNQ== X-Forwarded-Encrypted: i=1; AJvYcCWB1VpVdaoE3r6H8EsalCgO0dnvjWm5/tcI+nUMOvejmlPJGY7QdrP3sc7ejfwMLk1cdz88suuQl6PFScA=@vger.kernel.org X-Gm-Message-State: AOJu0YwUNB3EezUYMMlPnyUX70kDqS0tEUqe8Yoedw9KSpZHonkEzgy+ LVKGNG2ywguKbcuetk0xYNOqNMO05EchmZhZkU2rHEqgiJGIdQi0yTuAFx0jBclzaIE= X-Gm-Gg: ASbGnctfpdbN6F11cf8xXBsAvaasmiSVXKJyiDc+gIGTX5hJKSLrxK54QajBxMNA/2h LdAqej18dczaDHV0P4yjgsTkI+vDmXVIXIfBgVfW0cmutvndsI2hLxsyNHR4Uhx67iAgp2QU3v+ gMlrcB+au1BTSbz/MFHDGAC8nSuq+Wsyc0BuVAlYa7nOpm8h/vwhT28+RCtwBiOVF3182+b1oX6 Dq+ej3pX3epPUzrrJiVj7GTBpXIh3f2/vEKBVSLn6+ZKYk37K9CDoSV+8qY6pBLsbqsU65KK03/ lfI7M4jKKUrj3xO7Ja+wmIX26CSp1/p4kPcG8uv5YLv70vfp4kjmhtRGLTOi3GuKn8TUrZ7fPqB X0Pdur6IC0ZXemw== X-Google-Smtp-Source: AGHT+IEQJduAXZs3aZtQP/SFinImSgPrv/BzlpYBHdqvnijb/cm07H1gezCvMXC8chwaaMWD+ODVHw== X-Received: by 2002:a17:907:ec07:b0:ae0:e1ed:d1a0 with SMTP id a640c23a62f3a-afddf06d549mr129832166b.8.1755588400285; Tue, 19 Aug 2025 00:26:40 -0700 (PDT) Received: from localhost ([195.52.61.108]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-afcdd018b54sm945228866b.104.2025.08.19.00.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Aug 2025 00:26:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=1b96d25f8de31cf85e8d6d9d187dcf0b57a5a7b73e0ea3b79f1679872045; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Tue, 19 Aug 2025 09:26:32 +0200 Message-Id: From: "Markus Schneider-Pargmann" To: "Marc Kleine-Budde" Cc: "Chandrasekar Ramakrishnan" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Vishal Mahaveer" , "Kevin Hilman" , "Dhruva Gole" , "Sebin Francis" , "Kendall Willis" , "Akashdeep Kaur" , "Simon Horman" , "Vincent MAILHOL" , , , Subject: Re: [PATCH v8 1/4] dt-bindings: can: m_can: Add wakeup properties X-Mailer: aerc 0.20.1 References: <20250812-topic-mcan-wakeup-source-v6-12-v8-0-6972a810d63b@baylibre.com> <20250812-topic-mcan-wakeup-source-v6-12-v8-1-6972a810d63b@baylibre.com> <20250813-shaggy-notorious-octopus-718ca6-mkl@pengutronix.de> In-Reply-To: <20250813-shaggy-notorious-octopus-718ca6-mkl@pengutronix.de> --1b96d25f8de31cf85e8d6d9d187dcf0b57a5a7b73e0ea3b79f1679872045 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Wed Aug 13, 2025 at 9:37 AM CEST, Marc Kleine-Budde wrote: > On 12.08.2025 11:10:22, Markus Schneider-Pargmann wrote: >> The pins associated with m_can have to have a special configuration to >> be able to wakeup the SoC from some system states. This configuration is >> described in the wakeup pinctrl state while the default state describes >> the default configuration. >>=20 >> Also m_can can be a wakeup-source if capable of wakeup. >>=20 >> Signed-off-by: Markus Schneider-Pargmann >> --- >> .../devicetree/bindings/net/can/bosch,m_can.yaml | 22 +++++++++++++++= +++++++ >> 1 file changed, 22 insertions(+) >>=20 >> diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml = b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml >> index c4887522e8fe97c3947357b4dbd4ecf20ee8100a..ecba8783198fc1658fcc236d= 8aa3c89d8c90abbd 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 def= ault pin >> + states. The second state called "wakeup" describes the pins in th= eir >> + 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,12 @@ properties: >> minItems: 1 >> maxItems: 2 >> =20 >> + wakeup-source: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + description: >> + List of phandles to system idle states in which mcan can wakeup t= he system. > > What non TI SoCs that don't have partial IO and want regular Wake-On-CAN > and don't define system idle states? You could simply add system idle states for the state that mcan should be a wakeup source for. The system idle state could be anything like standby or mem for example, depending on your SoC and in which staste Wake-On-CAN is working. Or if this doesn't fit, the binding could later be extended to accept wakeup-source as a boolean property. Best Markus --1b96d25f8de31cf85e8d6d9d187dcf0b57a5a7b73e0ea3b79f1679872045 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iKMEABYKAEsWIQSJYVVm/x+5xmOiprOFwVZpkBVKUwUCaKQnKBsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMSwyLDIRHG1zcEBiYXlsaWJyZS5jb20ACgkQhcFWaZAVSlOJ SAEAqTh7PBDFQHAV2tsURRJ3/ADQBvwM+ffUyTHK9EefkkABANg9QIdqvoBvrN+n tGDan+26ATTU1XNF1ZwYaMB2fIsI =BSDj -----END PGP SIGNATURE----- --1b96d25f8de31cf85e8d6d9d187dcf0b57a5a7b73e0ea3b79f1679872045--