From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D84A113D53D for ; Mon, 1 Jul 2024 11:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719833448; cv=none; b=AzotbTSJhms3yS/1lEo6e0x7kUkWFom+GyvfFt+BsVd8eYlbDhOwCCO6UZZbOlaQ0hiGIpDwF3/wXpa9j4et9SebtVFeQ3BbK36/mnvlwmAgpbMgDsjnkFLzgGTUt0staXsW1sA9Wx/TVPCujWkydR5h5+2YSwSOe2QqCQq0GCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719833448; c=relaxed/simple; bh=asdV2LfnocM2LRBIv5+KFZ2a2wIyr9xuTkgbqNrFtDo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JovSfEPP3FraB2oF7f2IBtE1OlGF7OD2TxRk+/RzFMMWAHcLlK/eeKLAPTgIIBRLk+FAuJT/iM6tsH/eS6ZEDNtesYnXxF14SSxEVfcrFLZwc3+22ByqOlx12yJYEYMdD0+IiOUxBisJolGwh+Yhp/fhof2qgM9gc/pkmWR9/E4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EYpRT/Pb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EYpRT/Pb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97D94C116B1; Mon, 1 Jul 2024 11:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719833448; bh=asdV2LfnocM2LRBIv5+KFZ2a2wIyr9xuTkgbqNrFtDo=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=EYpRT/Pb5qKofXKRIH6WDLqKq46ONEktLb9lPr1/0mffaWRpcJ+mj9aZPX42cHDXq mJEjX7kb4RGB5r5hHY0TxVHP4KSEL0izZ4MyapGm6YtMQ0Dv6jiigUbM3lLY2RkzuD mATM2262BQ94mRL5KDr9TRZz5a9ktqWmPllGJ7tltvAIkxx2MfSJmDinUNNhDRIDy8 waNgbBB3MHdc5K7R9uJbTOWerX7e2Mycqx2orP8hLZSw/x7baodbw+PVIRz6lUXvDr DfWHZwwxuoHhfoEXrL0IKN0ZeoVbkBq3adZAtVZJvEMIvZPwT9tpGiDl4qycQ/SG2c dKX/PfdVIhKWw== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Arnd Bergmann , soc@kernel.org Cc: Gregory CLEMENT , arm@kernel.org, Andy Shevchenko , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org Subject: [PATCH v13 7/8] ARM: dts: turris-omnia: Add MCU system-controller node Date: Mon, 1 Jul 2024 13:30:09 +0200 Message-ID: <20240701113010.16447-8-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240701113010.16447-1-kabel@kernel.org> References: <20240701113010.16447-1-kabel@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turris Omnia's MCU provides various features that can be configured over I2C at address 0x2a. Add device-tree node. This does not carry a Fixes tag - we do not want this to get backported to stable kernels for the following reason: U-Boot since v2022.10 inserts a phy-reset-gpio property into the WAN ethernet node pointing to the MCU node if it finds the MCU node with a cznic,turris-omnia-mcu compatible. Thus if this change got backported to a stable kernel, the WAN interface driver would defer probe indefinitely (since it would wait for the turris-omnia-mcu driver which would not be present). Signed-off-by: Marek BehĂșn --- .../dts/marvell/armada-385-turris-omnia.dts | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts index 7b755bb4e4e7..59079d63fe27 100644 --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts @@ -218,7 +218,22 @@ i2c@0 { #size-cells = <0>; reg = <0>; - /* STM32F0 command interface at address 0x2a */ + mcu: system-controller@2a { + compatible = "cznic,turris-omnia-mcu"; + reg = <0x2a>; + + pinctrl-names = "default"; + pinctrl-0 = <&mcu_pins>; + + interrupt-parent = <&gpio1>; + interrupts = <11 IRQ_TYPE_NONE>; + + gpio-controller; + #gpio-cells = <3>; + + interrupt-controller; + #interrupt-cells = <2>; + }; led-controller@2b { compatible = "cznic,turris-omnia-leds"; @@ -501,6 +516,11 @@ fixed-link { }; &pinctrl { + mcu_pins: mcu-pins { + marvell,pins = "mpp43"; + marvell,function = "gpio"; + }; + pcawan_pins: pcawan-pins { marvell,pins = "mpp46"; marvell,function = "gpio"; -- 2.44.2