From patchwork Thu Sep 7 01:01:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 720738 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FFEBEE14AA for ; Thu, 7 Sep 2023 01:02:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230145AbjIGBCR (ORCPT ); Wed, 6 Sep 2023 21:02:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234411AbjIGBCO (ORCPT ); Wed, 6 Sep 2023 21:02:14 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 363141BC1; Wed, 6 Sep 2023 18:02:08 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-792726d3aeeso16366939f.0; Wed, 06 Sep 2023 18:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694048527; x=1694653327; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uJHKtHFGdl4J2B/Oj4nlf+sDC7Tm9KEhrRJOXO+FSNY=; b=RHfg6qA16x9a0Z3dE6/poG5qbPcwTPmVV9as3XP3BLTFhCD7AWYEqHPiCz6wQHHsaW Vc8j9fGFeh98q9xp441NAIv3VedwytdWdNRFpAcE4jw8Uu2cEgZfkOPEw+36tdmltoQx /SyXahJL2bZ7Y/hu+X5Ib962Ex3S6UTu1ArXubFdjWZkigZRDunCprL90b0hsucxBTrS xL+TCaAXBoFJda0lptYzy96U43HBIPDJ9Pvc3J8/BHtFl2j0LWxqMgymluLDuEFTG6aF YppxoVvjGs6pq61p4OoVVMX1OqxetA8hSgiX0+RZDYNr4HOEgK76avP5/hZljjoAciq+ /R3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694048527; x=1694653327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uJHKtHFGdl4J2B/Oj4nlf+sDC7Tm9KEhrRJOXO+FSNY=; b=DOYuiEGhGbQYUFJaXaB6G6DJZwrLsYRwdfCfGe5tjB/SeMvO9T8U/U1MlRm8RtHXbo OI4SbHrv4HYUabzh1lpa3dvg3/GAA+19RgiUtA3L7ozbU0xjO4L3hujYuulxYfeOMKuT XR5FkplxXDScUqQ47IrK89TKqc+mbHgUPShLCPlzg6nZ0QIXGXL8/r22CTJuD4fGTvgw qPTs/1w0NxVJWlKBOQ8hU0IJzRBz7CHpN8CeMvKx6bB5e+Gs7XkRPFsM6PVmJIDLkDXf DpUMTrzq7QajIXs1ZU5EhJaIYSFlu6e2cJiXd9Kh/lara0sjmLStrp3Wh5FFsgUB/N4h ivKg== X-Gm-Message-State: AOJu0YyQLDBkzzJcMbiUXkwqpFisyViA79BGBYNZSsE4PVnyYx31S4FY yVSZsRsVIn3T6Z57QgvrkBmjiE5QecM= X-Google-Smtp-Source: AGHT+IHENBuQoGUHLoA/1ZYjmHdz72K8X09e5hNVAkflc2Z9ft3AL221hOfzTKp99DllHav/9S01iA== X-Received: by 2002:a6b:4919:0:b0:795:2274:1f3f with SMTP id u25-20020a6b4919000000b0079522741f3fmr20115691iob.3.1694048527099; Wed, 06 Sep 2023 18:02:07 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:c24d:eb45:b814:f30b]) by smtp.gmail.com with ESMTPSA id v6-20020a02b906000000b0042ff466c9bdsm5389796jan.127.2023.09.06.18.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 18:02:06 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , =?utf-8?q?Beno?= =?utf-8?q?=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Derald D. Woods" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm:dts: am3517-evm: Fix LED3/4 pinmux Date: Wed, 6 Sep 2023 20:01:58 -0500 Message-Id: <20230907010159.330555-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The pinmux for LED3 and LED4 are incorrectly attached to the omap3_pmx_core when they should be connected to the omap3_pmx_wkup pin mux. This was likely masked by the fact that the bootloader used to do all the pinmuxing. Fixes: 0dbf99542caf ("ARM: dts: am3517-evm: Add User LEDs and Pushbutton") Signed-off-by: Adam Ford --- This likely cannot apply to the original series, because the file has moved. I can generate a separate patch for the pre-move device trees if necesssary. The original location was: arch/arm/boot/dts/am3517-evm.dts diff --git a/arch/arm/boot/dts/ti/omap/am3517-evm.dts b/arch/arm/boot/dts/ti/omap/am3517-evm.dts index af9df15274be..738189ddc8d5 100644 --- a/arch/arm/boot/dts/ti/omap/am3517-evm.dts +++ b/arch/arm/boot/dts/ti/omap/am3517-evm.dts @@ -271,13 +271,6 @@ OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ >; }; - leds_pins: leds-pins { - pinctrl-single,pins = < - OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */ - OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */ - >; - }; - mmc1_pins: mmc1-pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ @@ -355,3 +348,12 @@ OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */ >; }; }; + +&omap3_pmx_wkup { + leds_pins: pinmux_leds_pins { + pinctrl-single,pins = < + OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */ + OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */ + >; + }; +}; From patchwork Thu Sep 7 01:01:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 721040 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E648EE14D7 for ; Thu, 7 Sep 2023 01:02:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239496AbjIGBCR (ORCPT ); Wed, 6 Sep 2023 21:02:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242475AbjIGBCP (ORCPT ); Wed, 6 Sep 2023 21:02:15 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DAEF19A9; Wed, 6 Sep 2023 18:02:10 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id ca18e2360f4ac-7926de0478eso41165239f.0; Wed, 06 Sep 2023 18:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694048529; x=1694653329; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7/DXugYCFStEpH1nhWSNJ8V029K3x9zRJrVOGlTmzEA=; b=HoWhdEYMC0v4PCOUK9FULoVO1bCsJ2r2zLzH+ZoYoykUk1Kf+CUGd0PsBtbZXiPKME KuJublpp2pVj3uC7M36pJQmPk35HNTLKPNKvo52yUb8H1YI30cwingllnbAbdaBwH7K+ IPsMgeS4nUkBUPC1rceNH5d+BZBTpf54FP9fGXzno8+fD5Nj12z5kjC5y5HE5oEnlSrv ieyeakujHZ4bJPMgVC8grjVH7AGGFK28BPKIUjRQNdKWeQdnaFZBNFz+H7VhO1P9oz3j qa0wJ1uadHKfv8S3d8FhClgffuQbIWjgLioeWwmhnKeTMjOlEmFkVPGcEITmcjwgeKwb Edsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694048529; x=1694653329; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7/DXugYCFStEpH1nhWSNJ8V029K3x9zRJrVOGlTmzEA=; b=eWlgh+lXTyplvr0HaAU99B5E0Z313M9quiLZ9a2UE1J2gGd0Xt8afWbzlhe+pbilny E85B8nk2NbzUfX5XlBdAp3P2P1ED31Sh51PNo48ZzDbGrV7aEe0BlUoriLY2E8qqLEID 7BFdWt7y/rnxrBmC7R2JKMrxHASBDeOgOrwqYdvQmXa/OXi9FdsB8VzEn4+M8oM+CH9K 6Xx8Kv/4Wjr/3KRblY5Hqn7PRu4AtzEhuFOX8ABl0mxPnEnWM278Qvg8pRQhIK+igkCK Gnns+ISSRXDf9depG37NCMklwDHrVE/ZtVeZQADMOrPzX8v3ASTAsDfzUwtWgsvEL9/V Lr8w== X-Gm-Message-State: AOJu0Yyy5W8/llbcOBqcbFHUIe8DRQHdVaX6tdTYkh21kiJ6BXagWSeX /Smjd4iEvVUNN1T+gTWCDhGmcM7+Npw= X-Google-Smtp-Source: AGHT+IEqFvuoaXTrmoy65dl7YvW9l9GkL6URsEAlkIWuCCKho4pAB0L5qrmHqTTpaNpLtr3HwSJjpQ== X-Received: by 2002:a92:c548:0:b0:34f:115a:158f with SMTP id a8-20020a92c548000000b0034f115a158fmr1516039ilj.14.1694048529224; Wed, 06 Sep 2023 18:02:09 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:c24d:eb45:b814:f30b]) by smtp.gmail.com with ESMTPSA id v6-20020a02b906000000b0042ff466c9bdsm5389796jan.127.2023.09.06.18.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 18:02:08 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , =?utf-8?q?Beno?= =?utf-8?q?=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Derald D. Woods" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm: dts: am3517-evm: Enable Ethernet PHY Interrupt Date: Wed, 6 Sep 2023 20:01:59 -0500 Message-Id: <20230907010159.330555-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230907010159.330555-1-aford173@gmail.com> References: <20230907010159.330555-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The Ethernet PHY interrupt pin is routed to GPIO_58. Create a PHY node to configure this GPIO for the interrupt to avoid polling. Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/ti/omap/am3517-evm.dts b/arch/arm/boot/dts/ti/omap/am3517-evm.dts index 738189ddc8d5..19869ef906a8 100644 --- a/arch/arm/boot/dts/ti/omap/am3517-evm.dts +++ b/arch/arm/boot/dts/ti/omap/am3517-evm.dts @@ -172,11 +172,24 @@ hsusb1_phy: hsusb1_phy { &davinci_emac { pinctrl-names = "default"; pinctrl-0 = <ðernet_pins>; + phy-mode = "rmii"; + phy-handle = <ðphy0>; status = "okay"; }; &davinci_mdio { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + ethphy0: ethernet-phy@0 { + pinctrl-names = "default"; + pinctrl-0 = <&enet_phy_pins>; + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + interrupt-parent = <&gpio2>; + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; /* gpio_58 */ + }; }; &dss { @@ -257,6 +270,12 @@ OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */ >; }; + enet_phy_pins: pinmux_ent_phy_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x20bc, PIN_INPUT | MUX_MODE4) /* gpmc_ncs7.gpio_57 */ + >; + }; + i2c2_pins: i2c2-pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */