From nobody Wed Dec 17 17:58:20 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 062801FECC0 for ; Mon, 3 Feb 2025 08:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573134; cv=none; b=qkIwlHxUH88Ayg6hKnm2F0t9wEiO7DxXY9Q9XGXmpn3qb6Fa5IL9FqIDyHbaV/bCE15LvUbd0u9yMvdydg9asMxzZXj2VZ+vxr2LZmZeDL6fLEn+bImOAQFCtFUQBcbULIUiGH15kEyowsiLLqKbDSrTsuLxMthVomLW9/WsatQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573134; c=relaxed/simple; bh=RIxXeobkaWhwQZ2yN7oAGGmTRjPIYQjK5nmShmfHHgo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oJuMRCFKkHGeAPIslgc4OoeIe//1KVL85LJ3PAOHiELwMU6gqn3MOLhur8WLoCHRYUWIpTTdBo51NT/QSVMWpcrD7bVu3d+iugsJo7+fe8T+2yu3UB9sedrTAWlekjTxn0uPo8kBj6rSF1mRCHLZ3x7IBqV9TsXF3n6Rxm3or6c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tesHf-0006KF-I4; Mon, 03 Feb 2025 09:58:23 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tesHd-003GNm-2m; Mon, 03 Feb 2025 09:58:21 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tesHd-002YYt-2W; Mon, 03 Feb 2025 09:58:21 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , Andrew Lunn Cc: Oleksij Rempel , Conor Dooley , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 1/4] dt-bindings: vendor-prefixes: Add prefix for Priva Date: Mon, 3 Feb 2025 09:58:17 +0100 Message-Id: <20250203085820.609176-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250203085820.609176-1-o.rempel@pengutronix.de> References: <20250203085820.609176-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Introduce the 'pri' vendor prefix for Priva, a company specializing in sustainable solutions for building automation, energy, and climate control. More information about Priva can be found at https://www.priva.com Signed-off-by: Oleksij Rempel Acked-by: Conor Dooley --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 5079ca6ce1d1..afdd861b4cad 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1202,6 +1202,8 @@ patternProperties: description: Primux Trading, S.L. "^probox2,.*": description: PROBOX2 (by W2COMP Co., Ltd.) + "^pri,.*": + description: Priva "^prt,.*": description: Protonic Holland "^pulsedlight,.*": --=20 2.39.5 From nobody Wed Dec 17 17:58:20 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C10A01FCCFB for ; Mon, 3 Feb 2025 08:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573133; cv=none; b=TtNHbCd82d5ISlfT6aSMQvfEG6IejaThRWFQbkehvy5N5SzbthQJJ1JVZGF4/UfA33Lmovh3C3raEly0UB5Yy1MPu+j2xB9uU0mmdd2thiR6oZfzfnjwP4OhDWmzC027FQmhm7TR5Nkq6fJHkrAfR18WDzBYSm7IZ8o2t/gq5MM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573133; c=relaxed/simple; bh=Pty7ItAK931ryI0Vl88ZaIMJp/sOQMsBR1Dr9vvgOjE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UC5DCp+7sN4IIR0yyYB9pDOVrbtB06Nf/H3X1Qf5R6TshjcVvtyds398ujHDrKXh1NjS4AA6glhPCsKOTOWwreLA8OIqkfYo6Em2t73vgDwdrCv8tf8uS3kRCoUtmyG/ABwb2yc2fcLrRsZ+R2C80g0JkNl8p1nQjSPEDWPiu7g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tesHf-0006KG-Ig; Mon, 03 Feb 2025 09:58:23 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tesHd-003GNn-2q; Mon, 03 Feb 2025 09:58:21 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tesHd-002YZ3-2a; Mon, 03 Feb 2025 09:58:21 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , Andrew Lunn Cc: Oleksij Rempel , Krzysztof Kozlowski , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 2/4] dt-bindings: arm: stm32: Add Priva E-Measuringbox board Date: Mon, 3 Feb 2025 09:58:18 +0100 Message-Id: <20250203085820.609176-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250203085820.609176-1-o.rempel@pengutronix.de> References: <20250203085820.609176-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add support for the Priva E-Measuringbox ('pri,prihmb') board based on the ST STM32MP133 SoC to the STM32 devicetree bindings. Signed-off-by: Oleksij Rempel Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Docum= entation/devicetree/bindings/arm/stm32/stm32.yaml index b6c56d4ce6b9..2cea166641c5 100644 --- a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml +++ b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml @@ -51,6 +51,12 @@ properties: - st,stm32mp135f-dk - const: st,stm32mp135 =20 + - description: ST STM32MP133 based Boards + items: + - enum: + - pri,prihmb # Priva E-Measuringbox board + - const: st,stm32mp133 + - description: ST STM32MP151 based Boards items: - enum: --=20 2.39.5 From nobody Wed Dec 17 17:58:20 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0FE71FC7D7 for ; Mon, 3 Feb 2025 08:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573133; cv=none; b=nm5WPTahA+D95w18oBsCUMo0WMbY6SQZPH9/N0F1tLB2yZneOSRJGHmueH00D5rffdgDAcV8MpVPYpAYuz80Z+6ZPw72pgiufG2qMB3+LHBdPU2H3JNkQEg8mNH6bQsJc6N7lB+0mYCc2zBWDkMOv/TBMKwLe1Okg5pK/VwfVDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573133; c=relaxed/simple; bh=2AQ0u+DjeZQB9hCLkoz3bxZzlGQKNYyNv/lnNUUyPM4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=r3NsM9wtLZ+eBV6gWXlAl0eoVQxXZQ2XUyEqPOj97f0BEVivW74xjNYVWCBzoCvD9CZOhCIV3Tyxrsn7oIi/hBrvbQOzQawgLje4nGJkK0nIkAXKLoUFDjcHJqKy9Xh6WoGGmvsroAK6Ugy60OxtJGBSoPtd7zzMPIbV/Q0Ouco= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tesHf-0006KH-I4; Mon, 03 Feb 2025 09:58:23 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tesHd-003GNo-2w; Mon, 03 Feb 2025 09:58:21 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tesHd-002YZD-2f; Mon, 03 Feb 2025 09:58:21 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , Andrew Lunn Cc: Roan van Dijk , Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 3/4] arm: dts: stm32: Add thermal support for STM32MP131 Date: Mon, 3 Feb 2025 09:58:19 +0100 Message-Id: <20250203085820.609176-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250203085820.609176-1-o.rempel@pengutronix.de> References: <20250203085820.609176-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Roan van Dijk Add thermal zone configuration and sensor node for STM32MP131 SoC. Signed-off-by: Roan van Dijk Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/st/stm32mp131.dtsi | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/st= m32mp131.dtsi index 0019d12c3d3d..8512a6e46b33 100644 --- a/arch/arm/boot/dts/st/stm32mp131.dtsi +++ b/arch/arm/boot/dts/st/stm32mp131.dtsi @@ -100,6 +100,31 @@ timer { always-on; }; =20 + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive =3D <0>; + polling-delay =3D <0>; + thermal-sensors =3D <&dts>; + + trips { + cpu_alert1: cpu-alert1 { + temperature =3D <85000>; + hysteresis =3D <0>; + type =3D "passive"; + }; + + cpu-crit { + temperature =3D <120000>; + hysteresis =3D <0>; + type =3D "critical"; + }; + }; + + cooling-maps { + }; + }; + }; + soc { compatible =3D "simple-bus"; #address-cells =3D <1>; @@ -919,6 +944,16 @@ timer { }; }; =20 + dts: thermal@50028000 { + compatible =3D "st,stm32-thermal"; + reg =3D <0x50028000 0x100>; + interrupts =3D ; + clocks =3D <&rcc DTS>; + clock-names =3D "pclk"; + #thermal-sensor-cells =3D <0>; + status =3D "disabled"; + }; + mdma: dma-controller@58000000 { compatible =3D "st,stm32h7-mdma"; reg =3D <0x58000000 0x1000>; --=20 2.39.5 From nobody Wed Dec 17 17:58:20 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 061BE1FE47D for ; Mon, 3 Feb 2025 08:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573135; cv=none; b=fwFsTsxKSis3N9DFpbJC1jUtLGaEyeg0uWKXDpFMTWohO8PaQga5abrSiLsJwZLkTdByFGWQ4qyXHApnTnyxpPnX9rexDbzu9mugp/hLtdSFsIibm71iImqwq26Jk2Mbxm0qDcNGTQWGAp5cy1nzYJOs3C6ZqYoQTRZMezoNvGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738573135; c=relaxed/simple; bh=u5hHotMfnfJezgdZjrGpcV6bEbtmyoRIusrOyONghN4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=HQIzQZNt2zXTNjpLIEknPHG0oTo/XUhY3mA1MFSjLMvsFamO1AtuIhRJdJG2UDwKRfIYxuxLXB3k/xHUkVdyNj54UYzm7BDiRmcRcGkaXbuxGOIljVWvY+nlLCxeagj99Ntbm9Djlbn9x73Wk7HCsNFK1CthT3IkNuV80J/qjzA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tesHf-0006KI-I4; Mon, 03 Feb 2025 09:58:23 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tesHd-003GNq-36; Mon, 03 Feb 2025 09:58:21 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tesHd-002YZN-2m; Mon, 03 Feb 2025 09:58:21 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Woojung Huh , Andrew Lunn Cc: Roan van Dijk , Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 4/4] arm: dts: stm32: Add Priva E-Measuringbox devicetree Date: Mon, 3 Feb 2025 09:58:20 +0100 Message-Id: <20250203085820.609176-5-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250203085820.609176-1-o.rempel@pengutronix.de> References: <20250203085820.609176-1-o.rempel@pengutronix.de> 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 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org From: Roan van Dijk Introduce the devicetree for the Priva E-Measuringbox board (stm32mp133c-prihmb), based on the STM32MP133 SoC. Signed-off-by: Roan van Dijk Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/st/Makefile | 1 + arch/arm/boot/dts/st/stm32mp133c-prihmb.dts | 496 ++++++++++++++++++++ 2 files changed, 497 insertions(+) create mode 100644 arch/arm/boot/dts/st/stm32mp133c-prihmb.dts diff --git a/arch/arm/boot/dts/st/Makefile b/arch/arm/boot/dts/st/Makefile index b7d5d305cbbe..d8f297035812 100644 --- a/arch/arm/boot/dts/st/Makefile +++ b/arch/arm/boot/dts/st/Makefile @@ -29,6 +29,7 @@ dtb-$(CONFIG_ARCH_STM32) +=3D \ stm32h743i-eval.dtb \ stm32h743i-disco.dtb \ stm32h750i-art-pi.dtb \ + stm32mp133c-prihmb.dtb \ stm32mp135f-dhcor-dhsbc.dtb \ stm32mp135f-dk.dtb \ stm32mp151a-prtt1a.dtb \ diff --git a/arch/arm/boot/dts/st/stm32mp133c-prihmb.dts b/arch/arm/boot/dt= s/st/stm32mp133c-prihmb.dts new file mode 100644 index 000000000000..663b6de1b814 --- /dev/null +++ b/arch/arm/boot/dts/st/stm32mp133c-prihmb.dts @@ -0,0 +1,496 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/dts-v1/; + +#include +#include +#include +#include +#include "stm32mp133.dtsi" +#include "stm32mp13xc.dtsi" +#include "stm32mp13-pinctrl.dtsi" + +/ { + model =3D "Priva E-Measuringbox board"; + compatible =3D "pri,prihmb", "st,stm32mp133"; + + aliases { + ethernet0 =3D ðernet1; + mdio-gpio0 =3D &mdio0; + mmc0 =3D &sdmmc1; + mmc1 =3D &sdmmc2; + serial0 =3D &uart4; + serial1 =3D &usart6; + serial2 =3D &uart7; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + counter-0 { + compatible =3D "interrupt-counter"; + gpios =3D <&gpioa 11 GPIO_ACTIVE_HIGH>; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + autorepeat; + + button-reset { + label =3D "reset-button"; + linux,code =3D ; + gpios =3D <&gpioi 7 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + + led-blue { + function =3D LED_FUNCTION_HEARTBEAT; + color =3D ; + gpios =3D <&gpioa 14 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "heartbeat"; + default-state =3D "off"; + }; + }; + + led-controller-0 { + compatible =3D "pwm-leds-multicolor"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + max-brightness =3D <255>; + + led-red { + active-low; + color =3D ; + pwms =3D <&pwm2 2 1000000 1>; + }; + + led-green { + active-low; + color =3D ; + pwms =3D <&pwm1 1 1000000 1>; + }; + + led-blue { + active-low; + color =3D ; + pwms =3D <&pwm1 2 1000000 1>; + }; + }; + }; + + led-controller-1 { + compatible =3D "pwm-leds-multicolor"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + max-brightness =3D <255>; + + led-red { + active-low; + color =3D ; + pwms =3D <&pwm1 0 1000000 1>; + }; + + led-green { + active-low; + color =3D ; + pwms =3D <&pwm2 0 1000000 1>; + }; + + led-blue { + active-low; + color =3D ; + pwms =3D <&pwm2 1 1000000 1>; + }; + }; + }; + + /* DP83TD510E PHYs have max MDC rate of 1.75MHz. Since we can't reduce + * stmmac MDC clock without reducing system bus rate, we need to use + * gpio based MDIO bus. + */ + mdio0: mdio { + compatible =3D "virtual,mdio-gpio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + gpios =3D <&gpiog 2 GPIO_ACTIVE_HIGH + &gpioa 2 GPIO_ACTIVE_HIGH>; + + /* TI DP83TD510E */ + phy0: ethernet-phy@0 { + compatible =3D "ethernet-phy-id2000.0181"; + reg =3D <0>; + interrupts-extended =3D <&gpioa 4 IRQ_TYPE_LEVEL_LOW>; + reset-gpios =3D <&gpioa 3 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <10>; + reset-deassert-us =3D <35>; + }; + }; + + memory@c0000000 { + device_type =3D "memory"; + reg =3D <0xc0000000 0x10000000>; + }; + + reg_3v3: regulator-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + }; + + reserved-memory { + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + + optee@ce000000 { + reg =3D <0xce000000 0x02000000>; + no-map; + }; + }; +}; + +&adc_1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&adc_1_pins_a>; + vdda-supply =3D <®_3v3>; + vref-supply =3D <®_3v3>; + status =3D "okay"; +}; + +&adc1 { + status =3D "okay"; + + channel@0 { /* Fan current PC0*/ + reg =3D <0>; + st,min-sample-time-ns =3D <10000>; /* 10=C2=B5s sampling time */ + }; + channel@11 { /* Fan voltage */ + reg =3D <11>; + st,min-sample-time-ns =3D <10000>; /* 10=C2=B5s sampling time */ + }; + channel@15 { /* Supply voltage */ + reg =3D <15>; + st,min-sample-time-ns =3D <10000>; /* 10=C2=B5s sampling time */ + }; +}; + +&dts { + status =3D "okay"; +}; + +ðernet1 { + status =3D "okay"; + pinctrl-0 =3D <ðernet1_rmii_pins_a>; + pinctrl-1 =3D <ðernet1_rmii_sleep_pins_a>; + pinctrl-names =3D "default", "sleep"; + phy-mode =3D "rmii"; + phy-handle =3D <&phy0>; +}; + +&i2c1 { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&i2c1_pins_a>; + pinctrl-1 =3D <&i2c1_sleep_pins_a>; + clock-frequency =3D <100000>; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "okay"; + + board-sensor@48 { + compatible =3D "ti,tmp1075"; + reg =3D <0x48>; + vs-supply =3D <®_3v3>; + }; +}; + +&{i2c1_pins_a/pins} { + pinmux =3D , /* I2C1_SCL */ + ; /* I2C1_SDA */ + bias-disable; + drive-open-drain; + slew-rate =3D <0>; +}; + +&{i2c1_sleep_pins_a/pins} { + pinmux =3D , /* I2C1_SCL */ + ; /* I2C1_SDA */ +}; + +&iwdg2 { + timeout-sec =3D <32>; + status =3D "okay"; +}; + +/* SD card without Card-detect */ +&sdmmc1 { + pinctrl-names =3D "default", "opendrain", "sleep"; + pinctrl-0 =3D <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>; + pinctrl-1 =3D <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>; + pinctrl-2 =3D <&sdmmc1_b4_sleep_pins_a>; + broken-cd; + no-sdio; + no-1-8-v; + st,neg-edge; + bus-width =3D <4>; + vmmc-supply =3D <®_3v3>; + status =3D "okay"; +}; + +/* EMMC */ +&sdmmc2 { + pinctrl-names =3D "default", "opendrain", "sleep"; + pinctrl-0 =3D <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a &sdmmc2_clk_pins_a>; + pinctrl-1 =3D <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a &sdmmc2_clk_pins_a= >; + pinctrl-2 =3D <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>; + non-removable; + no-sd; + no-sdio; + no-1-8-v; + st,neg-edge; + mmc-ddr-3_3v; + bus-width =3D <8>; + vmmc-supply =3D <®_3v3>; + status =3D "okay"; +}; + +&timers1 { + status =3D "okay"; + /delete-property/dmas; + /delete-property/dma-names; + + pwm1: pwm { + pinctrl-0 =3D <&pwm1_pins_a>; + pinctrl-1 =3D <&pwm1_sleep_pins_a>; + pinctrl-names =3D "default", "sleep"; + status =3D "okay"; + }; +}; + +&timers4 { + status =3D "okay"; + /delete-property/dmas; + /delete-property/dma-names; + + pwm2: pwm { + pinctrl-0 =3D <&pwm4_pins_a>; + pinctrl-1 =3D <&pwm4_sleep_pins_a>; + pinctrl-names =3D "default", "sleep"; + status =3D "okay"; + }; +}; + +/* Fan PWM */ +&timers5 { + status =3D "okay"; + + pwm3: pwm { + pinctrl-0 =3D <&pwm5_pins_a>; + pinctrl-1 =3D <&pwm5_sleep_pins_a>; + pinctrl-names =3D "default", "sleep"; + status =3D "okay"; + }; +}; + +&timers2 { + status =3D "okay"; + + timer@1 { + status =3D "okay"; + }; +}; + +&uart4 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&uart4_pins_a>; + pinctrl-1 =3D <&uart4_sleep_pins_a>; + pinctrl-2 =3D <&uart4_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "okay"; +}; + +&uart7 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&uart7_pins_a>; + pinctrl-1 =3D <&uart7_sleep_pins_a>; + pinctrl-2 =3D <&uart7_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "okay"; +}; + +&usart6 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&usart6_pins_a>; + pinctrl-1 =3D <&usart6_sleep_pins_a>; + pinctrl-2 =3D <&usart6_idle_pins_a>; + linux,rs485-enabled-at-boot-time; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "okay"; +}; + +&pinctrl { + adc_1_pins_a: adc1-0 { + pins { + pinmux =3D , /* ADC1 in0 */ + , /* ADC1 in15 */ + ; /* ADC1 in11 */ + }; + }; + + ethernet1_rmii_pins_a: rmii-0 { + pins1 { + pinmux =3D , /* ETH1_RMII_TXD0 */ + , /* ETH1_RMII_TXD1 */ + , /* ETH1_RMII_TX_EN */ + ; /* ETH1_RMII_REF_CLK */ + bias-disable; + drive-push-pull; + slew-rate =3D <2>; + }; + pins2 { + pinmux =3D , /* ETH1_RMII_RXD0 */ + , /* ETH1_RMII_RXD1 */ + ; /* ETH1_RMII_CRS_DV */ + bias-disable; + }; + }; + + ethernet1_rmii_sleep_pins_a: rmii-sleep-0 { + pins1 { + pinmux =3D , /* ETH1_RMII_TXD0 */ + , /* ETH1_RMII_TXD1 */ + , /* ETH1_RMII_TX_EN */ + , /* ETH1_RMII_RXD0 */ + , /* ETH1_RMII_RXD1 */ + , /* ETH1_RMII_REF_CLK */ + ; /* ETH1_RMII_CRS_DV */ + }; + }; + + pwm1_pins_a: pwm1-0 { + pins { + pinmux =3D , /* TIM1_CH1 */ + , /* TIM1_CH2 */ + ; /* TIM1_CH3 */ + bias-pull-down; + drive-push-pull; + slew-rate =3D <0>; + }; + }; + + pwm1_sleep_pins_a: pwm1-sleep-0 { + pins { + pinmux =3D , /* TIM1_CH1 */ + , /* TIM1_CH2 */ + ; /* TIM1_CH3 */ + }; + }; + + pwm4_pins_a: pwm4-0 { + pins { + pinmux =3D , /* TIM4_CH1 */ + , /* TIM4_CH2 */ + ; /* TIM4_CH3 */ + bias-pull-down; + drive-push-pull; + slew-rate =3D <0>; + }; + }; + + pwm4_sleep_pins_a: pwm4-sleep-0 { + pins { + pinmux =3D , /* TIM4_CH1 */ + , /* TIM4_CH2 */ + ; /* TIM4_CH3 */ + }; + }; + pwm5_pins_a: pwm5-0 { + pins { + pinmux =3D ; /* TIM5_CH1 */ + }; + }; + + pwm5_sleep_pins_a: pwm5-sleep-0 { + pins { + pinmux =3D ; /* TIM5_CH1 */ + }; + }; + + uart7_pins_a: uart7-0 { + pins1 { + pinmux =3D ; /* UART_TX */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins2 { + pinmux =3D ; /* UART7_RX */ + bias-pull-up; + }; + }; + + uart7_idle_pins_a: uart7-idle-0 { + pins1 { + pinmux =3D ; /* UART7_TX */ + }; + pins2 { + pinmux =3D ; /* UART7_RX */ + bias-pull-up; + }; + }; + + uart7_sleep_pins_a: uart7-sleep-0 { + pins { + pinmux =3D , /* UART7_TX */ + ; /* UART7_RX */ + }; + }; + + usart6_pins_a: usart6-0 { + pins1 { + pinmux =3D , /* USART6_TX */ + ; /* USART6_DE */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins2 { + pinmux =3D ; /* USART6_RX */ + bias-disable; + }; + }; + + usart6_idle_pins_a: usart6-idle-0 { + pins1 { + pinmux =3D ; /* USART6_TX */ + }; + pins2 { + pinmux =3D ; /* USART6_DE */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins3 { + pinmux =3D ; /* USART6_RX */ + bias-disable; + }; + }; + + usart6_sleep_pins_a: usart6-sleep-0 { + pins { + pinmux =3D , /* USART6_TX */ + , /* USART6_DE */ + ; /* USART6_RX */ + }; + }; +}; --=20 2.39.5