From patchwork Fri Jul 21 13:07:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 1810884 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YhmrLA6d; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R6qbX3Z4Bz1yYc for ; Fri, 21 Jul 2023 23:07:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DC0C8672B; Fri, 21 Jul 2023 15:07:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="YhmrLA6d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7ED528638D; Fri, 21 Jul 2023 15:07:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E09CB8630F for ; Fri, 21 Jul 2023 15:07:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mripard@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 709DE61B18; Fri, 21 Jul 2023 13:07:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31E22C433C9; Fri, 21 Jul 2023 13:07:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689944846; bh=GYTWTou2juEL8hrlZZaI7RNueOxxO9SCwCTrjD2Tt+I=; h=From:Subject:Date:To:Cc:From; b=YhmrLA6dFyXaJ6/eH5+v4V5biX1fG5qW3pr9ku1iSPcnlGq48HUSUdXqwrDd5LkrW nfMdAgNm164A26B3XZcopq30+UWGNkl1lPmwTk4EDHGLDBi44Rko+clr6INvcgajXF 89epM79ljjFnfqofP1IeDT5hJsQAYoISd0qiJ08AIIBltF3oWSOWrWM9ZAY5DeCt3X G2ewtimFjbOnUMP6qWXmPB/OxZHx0vBHD9Pux1ODNvJ+6ANq8cLUCMwTQvBeJEvK+V 1K0X60bH6cJakI29wM7cTk+f1qb3uAiOL/5fypDldwXMYyA/AooKr3Y901cUu3zWxo kuYyTvrONZyTA== From: Maxime Ripard Subject: [PATCH v2 0/3] net: ti: am65-cpsw-nuss: Fix DT binding handling of pinctrl Date: Fri, 21 Jul 2023 15:07:22 +0200 Message-Id: <20230721-ti-mdio-pinmux-v2-0-4bb443e09ac0@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAqDumQC/3XMQQqDMBCF4avIrDslGRGxq96juIhm1KE1kcQGi 3j3pu67/B+8b4fIQTjCrdghcJIo3uWgSwH9ZNzIKDY3kKJS1aRwFZyteFzEze8NjaaKKtuZpi4 hn5bAg2wn+GhzTxJXHz6nn/Rv/UsljQpVZ8vO6n6oq+b+5OD4dfVhhPY4ji8sUKqgrQAAAA== To: Joe Hershberger , Nishanth Menon , Ramon Fried , Ravi Gunasekaran , Roger Quadros , Simon Glass Cc: Javier Martinez Canillas , Peter Robinson , u-boot@lists.denx.de, Maxime Ripard X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1605; i=mripard@kernel.org; h=from:subject:message-id; bh=GYTWTou2juEL8hrlZZaI7RNueOxxO9SCwCTrjD2Tt+I=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCm7mrltPfNdFjhJJnuePKMSwXHl4uGKY8Uf6wy11LZ3X I7umNjUUcrCIMbFICumyBIjbL4k7tSs151sfPNg5rAygQxh4OIUgIkstmFk2K4XPX3eKa7NUhs1 jDbOm3dmW8annZdmu7ocqGW6zHZp0RmGf4p70m/WZe7T+nRunxm3yepAtYimoscCvmlbTW7sz+d 0YgIA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi, This series is based on: https://lore.kernel.org/all/20230713072019.3153871-1-nm@ti.com/ https://lore.kernel.org/all/20230720215935.107398-1-rogerq@kernel.org/ It fixes the issue of Linux booting from the DT embedded by U-boot. The main issue there is that U-Boot doesn't handle the MDIO child node that might have resources attached to it. Thus, any pinctrl configuration that could be attached to the MDIO child node is effectively ignored. Unfortunately, starting with 6.5-rc1, Linux does just that. This was solved by duplicating the pinctrl configuration onto the MAC device node. Unfortunately, this doesn't work for Linux since now it has two devices competing for the same pins. Let me know what you think, Maxime Signed-off-by: Maxime Ripard --- Changes in v2: - Drop the pinctrl API change in favour of a dummy driver - Link to v1: https://lore.kernel.org/r/20230720-ti-mdio-pinmux-v1-0-0bd3bd1cf759@kernel.org --- Maxime Ripard (3): net: ti: am65-cpsw-nuss: Enforce pinctrl state on the MDIO child node fixup! arm: dts: k3-am62: Bump dtsi from linux v6.5-rc1 fixup! arm: dts: k3-am62: Bump dtsi from linux v6.5-rc1 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 7 ++-- drivers/net/ti/Kconfig | 1 + drivers/net/ti/am65-cpsw-nuss.c | 67 ++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 2 deletions(-) --- base-commit: e410677c49839480c8299eed90fe71557e0a37e9 change-id: 20230720-ti-mdio-pinmux-a12525dba973 Best regards,