Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5855309rwn; Mon, 12 Sep 2022 15:50:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5psm8JHAFUNVpGpqJ1pAsrjhizosVxPyN+Y1FVHWgCKvEOobIOmOWYlRZbY+y1YOk24sT+ X-Received: by 2002:a17:907:1dd9:b0:77a:341b:88cb with SMTP id og25-20020a1709071dd900b0077a341b88cbmr11694432ejc.753.1663023012101; Mon, 12 Sep 2022 15:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663023012; cv=none; d=google.com; s=arc-20160816; b=uhJGjt4pDazo8Cghv8N3q6OqAWEdbAWxnGidIc8sJEX6+6PAMKTw+TvPHuo+Zkp/WA WgUq8Vwe01ejPImeC+hMs3cFgStQguKsNJ4a2IqH9DSiEMX0OkcLydSAYkGNjdzTp2zr BEISpSr0Zjet+KhGu0ZCMStTGfKubzETVcQa4FD/ZYAeqyKTPMwUjQUUSDlSepSmjNWm jNYqIOuAFFyNWDzNKxGuU9i23NXon/301ovSIqaKvrZL+FnvOALdbkn6HxJnBjpLkRUf goklIqriWnMIh7uk9jU0qy6Yz5tfNghXvyrcqfzn0QDpIY4kW/hFG0Mfri9cZNnV2xyn mf0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3UwwcznG2fyTf3wzn5BZD6cOfC+ihOyietLN8kDcWuk=; b=BVeeiiyHUMN4J4C3JK5tJpBWCL84bH2TDD91C4GvSKtCovSL+0zxiCmLz3wWqUV2R7 MxvMFhBBqv2eSgNMGsGF33/weav4HTtewri6pUz/H60NuYLZB++0wTGlHbkURG4wdjhE 4zXsG2C3yJObct12AuPxp29kDKNaNZkNBeIfrz4hazBtM2DvspKx13n/KfDI8mnTNzEQ uBrJZ7PkYAVyvJ8aw7JMWXqLjuHYQB2eGPuxBlTpIjwdDuei5B2iwUL/tlOWaMjMHdYp dx6okzhggRtROisjUIjDRTgwzIzlv9RHrfZVfZ86D1hCuuHynULRTWFblz3FD1Tco6m1 fcSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a056402084b00b004460d56dc21si6012287edz.342.2022.09.12.15.49.46; Mon, 12 Sep 2022 15:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbiILVxW (ORCPT + 99 others); Mon, 12 Sep 2022 17:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiILVxV (ORCPT ); Mon, 12 Sep 2022 17:53:21 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BAA4D179; Mon, 12 Sep 2022 14:53:19 -0700 (PDT) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1oXrMf-00GaYO-Pq; Mon, 12 Sep 2022 21:53:13 +0000 From: Tim Harvey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: NXP Linux Team , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Krzysztof Kozlowski , Rob Herring , Tim Harvey Subject: [PATCH] ARM: dts: imx6qdl-gw52xx: add CAN regulator Date: Mon, 12 Sep 2022 14:53:12 -0700 Message-Id: <20220912215312.964722-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GW52xx has a tranceiver with a STBY pin connected to an IMX6 GPIO. Configure this as a regulator to drive it low when CAN is in use. Signed-off-by: Tim Harvey --- arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi index b1df2beb2832..ec6b55bf77d9 100644 --- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi @@ -137,6 +137,16 @@ reg_5p0v: regulator-5p0v { regulator-always-on; }; + reg_can1_stby: regulator-can1-stby { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_can1>; + compatible = "regulator-fixed"; + regulator-name = "can1_stby"; + gpio = <&gpio1 9 GPIO_ACTIVE_LOW>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + reg_usb_otg_vbus: regulator-usb-otg-vbus { compatible = "regulator-fixed"; regulator-name = "usb_otg_vbus"; @@ -170,6 +180,7 @@ &audmux { &can1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan1>; + xceiver-supply = <®_can1_stby>; status = "okay"; }; @@ -612,7 +623,6 @@ pinctrl_flexcan1: flexcan1grp { fsl,pins = < MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1 - MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* CAN_STBY */ >; }; @@ -702,6 +712,12 @@ MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 >; }; + pinctrl_reg_can1: regcan1grp { + fsl,pins = < + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x4001b0b0 /* CAN_STBY */ + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1 -- 2.25.1