Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2328993rwn; Fri, 16 Sep 2022 08:42:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YPCuHGI33g3JLBYkmHBUY/J2HF/zJwXlBqptg33O25q9zezjibQ0MKiDyy2nAx35mEsQ2 X-Received: by 2002:a05:6402:42d4:b0:443:4b8:8cba with SMTP id i20-20020a05640242d400b0044304b88cbamr4482667edc.3.1663342978693; Fri, 16 Sep 2022 08:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663342978; cv=none; d=google.com; s=arc-20160816; b=SGnO6c2fIhncYcYv16JrIn6eT+xBjqnuhy7u+tLo4Wk1BSUyVyz3HoQbfrrAE/4Bi6 SYyTcBi/j1UJjssL816bA+8zYPCFpqRoyIEqJX2KcEtj++W1WDlBF6W7QHbkIuN1l8mw xfSf9V4kQMytw+aieZADgJTdk+PBghs8C/AP6o+dLEYYmtd7O7K3/SZjnQHY8vHdgyh+ 0V7Yi61S+IpYFGiIkKO/VWm/qQNpRfBa7MxO6xU+YOAnksbe5zpcaV7jlX9FHF9v1OLf gLqiIJqnADGv8e0qfrVDywMANlfGImssyajhYHbfXGs0UP0Rjom+ucZa6Db7Yid+UTKO 3pkg== 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=rnw9KDfnaygsNHH/Uue16Oka9CZQ2HIsLEOfi4pz1xg=; b=wmink4fHtCy5MfKEFWhE1Ks36eEF8mALmw2292rOeHLPfLFjoRu6owRn0RYQdVFlqG qjNigD8BctKin+nF31MYEPByiI2nriOBtYlThu8cmQ+LcKz2vNLX/VpD7UjqByDPZbKt C8sYxl+8ZGr1QR+pNmBLlsx3RDK7k7tSdOsXAHo7P+jVhAMobwEng6TfoecuBaNa8TKB 3B/mi6yyU+zEHll3iGF04JGDcdAF3gp2J0+BtFogNgyByYYQRlefLR0pPwEiWz8zZkTa 9IBkG42b6iWWnaIzFJP0aMG5cL2zKc/PL3Z5TEmvBHLLJeAsopfmju9CJmUHQLnFZ5Rd sroQ== 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 hd17-20020a170907969100b00780024e0d1asi10827191ejc.150.2022.09.16.08.42.33; Fri, 16 Sep 2022 08:42:58 -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 S229733AbiIPPaM (ORCPT + 99 others); Fri, 16 Sep 2022 11:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiIPPaJ (ORCPT ); Fri, 16 Sep 2022 11:30:09 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D454D32D96; Fri, 16 Sep 2022 08:30:07 -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 1oZDI4-00Giqk-M7; Fri, 16 Sep 2022 15:30:04 +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-gw53xx: add CAN regulator Date: Fri, 16 Sep 2022 08:30:02 -0700 Message-Id: <20220916153002.1801643-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 GW53xx 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-gw53xx.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi index a0710d562766..6c0c109046d8 100644 --- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi @@ -129,6 +129,16 @@ reg_3p3v: regulator-3p3v { 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 2 GPIO_ACTIVE_LOW>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + reg_usb_h1_vbus: regulator-usb-h1-vbus { compatible = "regulator-fixed"; regulator-name = "usb_h1_vbus"; @@ -170,6 +180,7 @@ &audmux { &can1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan1>; + xceiver-supply = <®_can1_stby>; status = "okay"; }; @@ -600,7 +611,6 @@ pinctrl_flexcan1: flexcan1grp { fsl,pins = < MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x1b0b1 MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x1b0b1 - MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0 /* CAN_STBY */ >; }; @@ -691,6 +701,12 @@ MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 >; }; + pinctrl_reg_can1: regcan1grp { + fsl,pins = < + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x4001b0b0 /* CAN_STBY */ + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1 -- 2.25.1