Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1400758ybt; Sat, 27 Jun 2020 07:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN9kfOt4uuqIk2yfQKuOjhxSTcPs+ionlX/BKAM+9bY4RoaDxwtR7wZLMX+XddTtYNQ4bt X-Received: by 2002:a50:ab52:: with SMTP id t18mr8809692edc.195.1593267185737; Sat, 27 Jun 2020 07:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593267185; cv=none; d=google.com; s=arc-20160816; b=FcMJrjChs1Ur2YE8ETmumqQgV93zHcUiGrU+5GDcu5K0s7ganyZyerH4KE4v8XjNVi QAcXjjG2qc8if1S03PYbVzdN0PGujtzv4sSen4x/kc5AsxH0YVjYulbMVVal8vJSiXJO 9gPJUebNaG2tn4MPdafx28tOTO2LpgqdNKn/DPb111BUoT+Uq+CS7WjAuy40rPKMynVv yk5lMki0MgZs4Ireudja0V3u+ZeW5Y9wjS63l2WK7QO7YArbLtJhUtH8Qsuhvjv5mFTY /6dFqHml6m3Ob7p8hkUjoyJ7vyL9I6YWLOEqpqYy+8Reg0Zpqzd1YfBNhZaEFPgh4Eek OvbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:mime-version :subject:dkim-signature; bh=oZX/2REc+F7gc5PSyf4xLdHRaC1Jao1IJPfNXwG+ask=; b=QD/rHD0jg2LPXTepiuqzNfX5PTtQdVzFkk9H4qF67cpI4PpicyM78fCDua06lU+ydb GgE3/DMQ4gI53ma+KZudTzxPugOsE9xT5PO0q8DXg+65gbwwrrBISTDzvvx9vtCdsz9G xQKXpzRF4d/1X2onaNtwiVnYsBy2BWGNiFIiI36V3Hph4DGEF0omdAzJtSa/D0jzWetE 2O2376DLOAJl1VzNoyi9zVCAiAn/Dpuo8QeQCL78TTy86tUGIiEayWPLwumh+hRwfdyX ogLoAHHGj8dzl3UxqkLUKj7a3t/Cca6eJq2Myi3jI+f6BcnuhIUX+XteuT8/yHTUVjLh +BKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=hB7puQo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si8309651edj.27.2020.06.27.07.12.42; Sat, 27 Jun 2020 07:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=hB7puQo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725867AbgF0OJi (ORCPT + 99 others); Sat, 27 Jun 2020 10:09:38 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:25004 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbgF0OJi (ORCPT ); Sat, 27 Jun 2020 10:09:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1593266972; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=oZX/2REc+F7gc5PSyf4xLdHRaC1Jao1IJPfNXwG+ask=; b=hB7puQo3D8wdgy79Gwnv6MGt2P2yRewKjcXTexkp270ZgBW32n6+KvNoYWjVsY+rmR tI1YB7zxv2FrxhKJTpunmke2R4n/RK9cmz3391JckNvOC/apFjr3XjXSLRAqwCpZygID WBfLEzvmGaoVXClAggzEtNnoedOm+dGdSnazennrZu2aydjdGyhO73E4tRw4A5qJUg7/ bn6AqApsc34tPUB2dh0aOjZUhrP76YFvkejzhrd6Yez+iX+h2+f3N6t+YFLGHO+/O34c rFeidqzFYnnhBA+GO59iwC/wSccm4Iq88MF9nqxDhdIuo87Tc2QzBrNzXMwozlbEdx2g 5C8Q== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDlWcXA0MG+M=" X-RZG-CLASS-ID: mo00 Received: from mbp-13-nikolaus.fritz.box by smtp.strato.de (RZmta 46.10.5 DYNA|AUTH) with ESMTPSA id V07054w5RE9OHTJ (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 27 Jun 2020 16:09:24 +0200 (CEST) Subject: Re: [PATCH] Add default mux for pins that a free GPIO lines on the PocketBeagle Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "H. Nikolaus Schaller" In-Reply-To: <20200627135538.194179-1-drew@beagleboard.org> Date: Sat, 27 Jun 2020 16:09:27 +0200 Cc: Tony Lindgren , Rob Herring , bcousson@baylibre.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Kridner , Robert Nelson , linux-gpio@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <53805044-06E2-4A70-A024-4D77DEA3FCDE@goldelico.com> References: <20200627135538.194179-1-drew@beagleboard.org> To: Drew Fustini X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 27.06.2020 um 15:55 schrieb Drew Fustini : >=20 > These pins on the PocketBeagle P1 and P2 headers are connected to = AM3358 > balls with gpio lines, and these pins are not used for any other > peripherals by default. These GPIO lines are unclaimed and could be = used > by userspace program through the gpiod ABI. However, no driver will = have > set mux mode for the pins. >=20 > This patch adds a "default" state in the am33xx_pinmux node and sets = the > pins to gpio output mux mode. wouldn't it be more safe to set them to input mode? BR, Nikolaus Schaller >=20 > Signed-off-by: Drew Fustini > --- > arch/arm/boot/dts/am335x-pocketbeagle.dts | 98 +++++++++++++++++++++++ > 1 file changed, 98 insertions(+) >=20 > diff --git a/arch/arm/boot/dts/am335x-pocketbeagle.dts = b/arch/arm/boot/dts/am335x-pocketbeagle.dts > index f0b222201b86..900dc6558701 100644 > --- a/arch/arm/boot/dts/am335x-pocketbeagle.dts > +++ b/arch/arm/boot/dts/am335x-pocketbeagle.dts > @@ -60,6 +60,104 @@ vmmcsd_fixed: fixedregulator0 { > }; >=20 > &am33xx_pinmux { > + > + pinctrl-names =3D "default"; > + pinctrl-0 =3D < &P2_03_gpio &P1_34_gpio &P2_19_gpio = &P2_24_gpio > + &P2_33_gpio &P2_22_gpio &P2_18_gpio &P2_10_gpio > + &P2_06_gpio &P2_04_gpio &P2_02_gpio &P2_08_gpio > + &P2_17_gpio >; > + > + /* P2_03 (ZCZ ball T10) gpio0_23 0x824 */ > + P2_03_gpio: pinmux_P2_03_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P1_34 (ZCZ ball T11) gpio0_26 0x828 */ > + P1_34_gpio: pinmux_P1_34_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_19 (ZCZ ball U12) gpio0_27 0x82c */ > + P2_19_gpio: pinmux_P2_19_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_24 (ZCZ ball T12) gpio1_12 0x830 */ > + P2_24_gpio: pinmux_P2_24_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_33 (ZCZ ball R12) gpio1_13 0x834 */ > + P2_33_gpio: pinmux_P2_33_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_22 (ZCZ ball V13) gpio1_14 0x838 */ > + P2_22_gpio: pinmux_P2_22_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_18 (ZCZ ball U13) gpio1_15 0x83c */ > + P2_18_gpio: pinmux_P2_18_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_10 (ZCZ ball R14) gpio1_20 0x850 */ > + P2_10_gpio: pinmux_P2_10_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_06 (ZCZ ball U16) gpio1_25 0x864 */ > + P2_06_gpio: pinmux_P2_06_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_04 (ZCZ ball T16) gpio1_26 0x868 */ > + P2_04_gpio: pinmux_P2_04_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_02 (ZCZ ball V17) gpio1_27 0x86c */ > + P2_02_gpio: pinmux_P2_02_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_08 (ZCZ ball U18) gpio1_28 0x878 */ > + P2_08_gpio: pinmux_P2_08_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > + /* P2_17 (ZCZ ball V12) gpio2_1 0x88c */ > + P2_17_gpio: pinmux_P2_17_gpio { > + pinctrl-single,pins =3D < > + AM33XX_PADCONF(AM335X_PIN_GPMC_CLK, PIN_OUTPUT, = MUX_MODE7) > + >; > + }; > + > i2c2_pins: pinmux-i2c2-pins { > pinctrl-single,pins =3D < > AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, = PIN_INPUT_PULLUP, MUX_MODE3) /* (D17) uart1_rtsn.I2C2_SCL */ > --=20 > 2.25.1 >=20