From nobody Thu Nov 28 16:40:15 2024 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FC887DA68; Mon, 30 Sep 2024 21:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731822; cv=none; b=FgGjseiA0yOGQFXpCjxhV8bF7SUY8rmZYSY4kMJ2m0k45WzrOJwG1GNc7smNM0DVYbr++zhhGOe6Op9w81g7MBm/x7oynmi+VL+/PzxBbmi1IY3V5n5LwPXl+LhSHAH+TGVF/iFmX2qsdQWS5uW8ILB7huFo25IRQp5T6NCJvos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731822; c=relaxed/simple; bh=yuxlIaVDvMp8/k0NFNTQ7CE40K7LPseGHTWM6GhGQes=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lPWA0iZNWviPwDIoakmNeIiV0rCOcjG0PViwEVxl1yMT8CMzmQseIEFcgo5u8MqUFqrJTClsaGtZbpG+zvI2wWHSn+T4nR32awglffwZOwLFJSVxngWTEDikf7tgfFRlNJI3JwjxpiQCa/7TcXaRr5Bb9DO8ILc6eZleJsgCsw8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=s4Q4ORwp; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="s4Q4ORwp" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Cc:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=1dZWb1PNVq+sPtuRDBvavxNO4hxriJlnruAFNj6hDOM=; b=s4Q4ORwpV33TbAtWKLJsm/AxlF 3/fzquJKmFLza6bJgqXwD58sWUb0N6ItaXfcGtiNqXKwCo5y1GPavj0Vuid7I+ZxywwRPzS0kLXvv oG92uHh0CU99PpLZntK8eeyA5++xmxP9FuDNaIDpCxQXquo2mPevpZJMsWob99N+LilpdEqzvLjVX /bWGyFuzqdtK8y9kPwheSf8aJN5rtFRReK4545/dDj2wMoYtGNm9GQE50jhpr6haRsl/cIrzdcm93 XZdzB0SFXl51/85DOuv8dXirucNrdzWRAgcfSk0A7fQNrRtDhAUBY+MbrdaxwByfsD4p/pbodhlm1 f5JV2fPA==; From: Andreas Kemnade To: Conor Dooley , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Rob Herring , khilman@baylibre.com, devicetree@vger.kernel.org, tony@atomide.com, rogerq@kernel.org, aaro.koskinen@iki.fi, linux-omap@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH 3/4] ARM: dts: omap: omap4-epson-embt2ws: add unknown gpio outputs Date: Mon, 30 Sep 2024 23:30:07 +0200 Message-Id: <20240930213008.159647-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240930213008.159647-1-andreas@kemnade.info> References: <20240930213008.159647-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Set them to the state seen in a running system, initialized by vendor u-boot or kernel. Add line names where they are defined in the vendor kernel. gpio15 resets something in the display, otherwise meaning of the gpios is not known. Signed-off-by: Andreas Kemnade --- .../boot/dts/ti/omap/omap4-epson-embt2ws.dts | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/b= oot/dts/ti/omap/omap4-epson-embt2ws.dts index cc1b6080bf95..c8205ae89840 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -115,6 +115,65 @@ wl12xx_vmmc: wl12xx-vmmc { }; }; =20 +&gpio1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gpio1_hog_pins &gpio1wk_hog_pins>; + + lb-reset-hog { + gpio-hog; + gpios =3D <9 GPIO_ACTIVE_HIGH>; + output-low; + line-name =3D "lb_reset"; + }; + + power-en-hog { + gpio-hog; + gpios =3D <10 GPIO_ACTIVE_HIGH>; + output-high; + line-name =3D "power_en"; + }; + + panel-power-en-hog { + gpio-hog; + gpios =3D <14 GPIO_ACTIVE_HIGH>; + output-low; + line-name =3D "panel_power_en"; + }; + + blc-r-hog { + gpio-hog; + gpios =3D <17 GPIO_ACTIVE_HIGH>; + output-low; + line-name =3D "blc_r"; + }; + + blc-l-hog { + gpio-hog; + gpios =3D <16 GPIO_ACTIVE_HIGH>; + output-low; + line-name =3D "blc_l"; + }; + + high-hog { + gpio-hog; + gpios =3D <15 GPIO_ACTIVE_HIGH /* maybe dsi to dpi chip reset? */ + 21 GPIO_ACTIVE_HIGH + 26 GPIO_ACTIVE_HIGH>; + output-high; + line-name =3D "unknown-high"; + }; + + low-hog { + gpio-hog; + gpios =3D <18 GPIO_ACTIVE_HIGH + 19 GPIO_ACTIVE_HIGH + 20 GPIO_ACTIVE_HIGH + 22 GPIO_ACTIVE_HIGH>; + output-low; + line-name =3D "unknown-low"; + }; +}; + &i2c1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c1_pins>; @@ -406,6 +465,22 @@ OMAP4_IOPAD(0x56, PIN_INPUT_PULLUP | MUX_MODE3) /* gpi= o35 */ >; }; =20 + gpio1_hog_pins: pinmux-gpio1-hog-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x1b4, PIN_OUTPUT | MUX_MODE3) /* gpio14 */ + OMAP4_IOPAD(0x1b8, PIN_OUTPUT | MUX_MODE3) /* gpio16 */ + OMAP4_IOPAD(0x1ba, PIN_OUTPUT | MUX_MODE3) /* gpio17 */ + + OMAP4_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE3) /* gpio15 */ + OMAP4_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE3) /* gpio18 */ + OMAP4_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE3) /* gpio19 */ + OMAP4_IOPAD(0x1c0, PIN_OUTPUT | MUX_MODE3) /* gpio20 */ + OMAP4_IOPAD(0x1c2, PIN_OUTPUT | MUX_MODE3) /* gpio21 */ + OMAP4_IOPAD(0x1c4, PIN_OUTPUT | MUX_MODE3) /* gpio22 */ + OMAP4_IOPAD(0x1cc, PIN_OUTPUT | MUX_MODE3) /* gpio26 */ + >; + }; + i2c1_pins: pinmux-i2c1-pins { pinctrl-single,pins =3D < OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ @@ -527,6 +602,15 @@ OMAP4_IOPAD(0x1c8, PIN_OUTPUT | MUX_MODE3) /* gpio_24= / WLAN_EN */ }; }; =20 +&omap4_pmx_wkup { + gpio1wk_hog_pins: pinmux-gpio1wk-hog-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x68, PIN_INPUT_PULLDOWN | MUX_MODE3) /* gpio9 */ + OMAP4_IOPAD(0x6a, PIN_INPUT | MUX_MODE3) /* gpio10 */ + >; + }; +}; + &uart2 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart2_pins &bt_pins>; --=20 2.39.5