Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2328856rwn; Fri, 16 Sep 2022 08:42:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NpPuqRhMy6AK6c3kRbJc5u6LAuIjwm9wekwPwsyZfUffouh5O1ko7DSrW+gNBjpvHH539 X-Received: by 2002:a17:906:fe44:b0:77c:e313:a8e8 with SMTP id wz4-20020a170906fe4400b0077ce313a8e8mr4156113ejb.700.1663342971265; Fri, 16 Sep 2022 08:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663342971; cv=none; d=google.com; s=arc-20160816; b=MdYDEcfQfEhviLD2eFnSnKzW+owVGLBjkWKLcr1Ix3HPuym/NIRila2nptCIGeEtYO XA25n5WVY6jGwkl6ZbHhnbqIkjDPMGxhR5Ppt0AWj9blOSBeuImqe3S8KGb6GBfzC1AE snAw8CUV1dWRfgPq6k704KWQ/C09b2uIZCqDRBPSnn2HZWvk+LpkMshqVHifPnhlTWrh L6FBHHKky3cbFRirEiwvC/mJKyYMy8BFt37aEe18ip3dVkZ7jH58yxKv+8AV9cPYMsKU n+IeDLYl7WKAKAdID2QerdQSxSLgIWfwObiCS0p6aiChvLMVjkedhpRpIzeeICSY0m2v UkbA== 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=i3Mcy+mZPXMFT5Y6G2vPa8tEY0rYYDLkNb7El+WKrFw=; b=b44ZYrzwt2svZtY6AUriKJLXDErxewWILUXQHomklWEgY0uPbgOz+w//8f+XxSLFiF 4NY43EK6MY0LVPmCN1Ey8r3brv5TGDvbJvGugv1hyxoaaiKZZQYPkjkAh4rhiQtqzStx 2bePji13vYkMlD9v0iX/KLpjF8IHNy0OLUUpKsSQoX2lBw/BdTmsgunU+btPmnizaG0P f5xeyrKYFyz66EzwXFK+oNxoaiCANRl3UH9traLnTV1KiAhSmTR9aUkzM+azMAsb77wX FvqU7S4xlK5hFmuij9LnLXJRZnz1K7wtnjwBnFBIZbzxHYi7DUCEbZHNQLGIfKOngjpn GI2w== 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 dr11-20020a170907720b00b0073db9474d06si16149733ejc.325.2022.09.16.08.42.23; Fri, 16 Sep 2022 08:42:51 -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 S231195AbiIPP2v (ORCPT + 99 others); Fri, 16 Sep 2022 11:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbiIPP2s (ORCPT ); Fri, 16 Sep 2022 11:28:48 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4339A8CF7; Fri, 16 Sep 2022 08:28:47 -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 1oZDGg-00GiqM-Ue; Fri, 16 Sep 2022 15:28:39 +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 v2] ARM: dts: imx6qdl-gw52xx: add CAN regulator Date: Fri, 16 Sep 2022 08:28:36 -0700 Message-Id: <20220916152836.1801233-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 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 transceiver 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 --- v2: - move compatible to start of child node - fix typo in commit log --- 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..728810b9d677 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 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_can1>; + 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