From nobody Thu Nov 28 13:35:31 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 E8D99183CD5; Mon, 30 Sep 2024 21:30:21 +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=1727731823; cv=none; b=byGHrsjv1B1wYVlChHhvi40A4Fnyxh2ZQIhfhdn2rt47c5XUsk6pP6fWTNme8A7dV4laio+Q4oJMcwK5CZd5KZYseDwy7Aea08dL+wW+3Fb0s/2JZMBIT6fhQk1Yn3n8NtLY4R0QbUWd9qwYa+xF6zriQfA43FF/6w7skfgiwqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731823; c=relaxed/simple; bh=chJF96EQTYi+2IDiOsUwdarpqXGcEerFPEo55MbeF2g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Z9xl8ZfIdUQ1QJPibr6CtUCf8V3XTtEzHRC0cHDiaX/KbleBf72EZLXfv4tGTfUz16OAfW501K6aE3m+kyz4yqzMTGrE75jXgrtChsihZ0sCC9vc1AsxvXdjLuA3Upk1ul4xqvxaECXdpxEoLFOqO7lw6oyzgFk8hxH2LbwLq1s= 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=1zyNN3mD; 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="1zyNN3mD" 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=GpYfCdHY+59pQoYcWwzCJVXiybRiDrhJ8jLcZU5UCqY=; b=1zyNN3mDstmgiVkogZ9GaSMBUM CJNbyPiMlKoUaMbTQW6OSOddFsYIKBOBvpTIIs30tZsnFndxPl7QErSIqJxD5HfLdxm8GXCkUDqso Ax1mVlmlBFa2i/aZragMiz0+R974PtFE/4ZuAJvQOB/HMBohd8THhiljJwaCb00NNnVcu7HKT2tXn OWi5vxkwfV4YCQWEryFlxCtpZuptWon/9EBjkrXKKr4NjSqd14ICmIxkqkcqbYxY0ku6GYMys9OaS T3hN+ZAu2DJnrQRwX4uD8rznmOTNc/l9N1KCgGUV7pqywD3mUq5uqrL6jEfcSnfgO+xrLRBDf54Zo p4w2c3GA==; 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 1/4] ARM: dts: omap: omap4-epson-embt2ws: define GPIO regulators Date: Mon, 30 Sep 2024 23:30:05 +0200 Message-Id: <20240930213008.159647-2-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" To properly have things running after cold boot, define GPIO regulators. Naming is based on board file. In the vendor kernel they are enabled in a function called bt2ws_dcdc_init() if the system is not booted just to charge the battery. Signed-off-by: Andreas Kemnade --- .../boot/dts/ti/omap/omap4-epson-embt2ws.dts | 73 +++++++++++++++++++ 1 file changed, 73 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 339e52ba3614..d6b0abba19f6 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -29,6 +29,42 @@ backlight-right { power-supply =3D <&unknown_supply>; }; =20 + cb_v18: cb-v18 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cb_v18_pins>; + compatible =3D "regulator-fixed"; + regulator-name =3D "cb_v18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + gpio =3D <&gpio1 28 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + cb_v33: cb-v33 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cb_v33_pins>; + compatible =3D "regulator-fixed"; + regulator-name =3D "cb_v33"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + gpio =3D <&gpio6 30 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + cb-v50 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&cb_v50_pins>; + compatible =3D "regulator-fixed"; + regulator-name =3D "cb_v50"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-always-on; + gpio =3D <&gpio6 31 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + chosen { stdout-path =3D &uart3; }; @@ -46,6 +82,19 @@ key-lock { }; }; =20 + lb_v50: lb-v50 { + /* required for many things at the head (probably indirectly) */ + pinctrl-names =3D "default"; + pinctrl-0 =3D <&lb_v50_pins>; + compatible =3D "regulator-fixed"; + regulator-name =3D "lb_v50"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-always-on; + gpio =3D <&gpio1 27 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + unknown_supply: unknown-supply { compatible =3D "regulator-fixed"; regulator-name =3D "unknown"; @@ -336,6 +385,24 @@ OMAP4_IOPAD(0x1ca, PIN_OUTPUT | MUX_MODE3) /* gpio25 */ >; }; =20 + cb_v18_pins: pinmux-cb-v18-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x1d0, PIN_OUTPUT | MUX_MODE3) /* gpio28 */ + >; + }; + + cb_v33_pins: pinmux-cb-v33-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x1d2, PIN_OUTPUT | MUX_MODE3) /* gpio190 */ + >; + }; + + cb_v50_pins: pinmux-cb-v50-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x1d4, PIN_OUTPUT | MUX_MODE3) /* gpio191 */ + >; + }; + gpio_keys_pins: pinmux-gpio-key-pins { pinctrl-single,pins =3D < OMAP4_IOPAD(0x56, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio35 */ @@ -387,6 +454,12 @@ OMAP4_IOPAD(0x005c, PIN_OUTPUT | MUX_MODE1) >; }; =20 + lb_v50_pins: pinmux-lb-v50-pins { + pinctrl-single,pins =3D < + OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE3) /* gpio27 */ + >; + }; + mcbsp2_pins: pinmux-mcbsp2-pins { pinctrl-single,pins =3D < OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_clkx */ --=20 2.39.5 From nobody Thu Nov 28 13:35:31 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 2C35A150997; Mon, 30 Sep 2024 21:30:19 +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=1727731821; cv=none; b=nPkJOmEydLGYcjAzVdwVlArfDHwjQdNERr5dJG/214tl5DxQVRHnSWr/17rW4slUoAoBRVEc2gelISNl7Ys54SLLXH+UdOaEIyzsgXffd6wvmm0Q3CnxKRuYKIhSXNIQDGFAkXyFp2LI55E7gmwoKr0yh00m3tihf47vy85kyxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731821; c=relaxed/simple; bh=EJTETnOE6TbCVs5t6pDRYT702r7Gc54n+28Nn2vuWNA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VhH59Q/WZBQMbdHiensiHAuO41yfYRqKV9wZ4Tn+UVQGmV8uQDi1BpQbIqrJzwuYm2s2yj0YpaR7NLggsYOQeW+uaaGihAOEpa+mnQkifUPNCKh+27b9KLbnmE4RGW5VftJkK6zuD2sGNhHsyagyI0u7upjvzH3vRiet/o6VPYU= 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=U+AdBBPh; 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="U+AdBBPh" 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=aNyYVkrcJo+A/3YRdv8grml7z7DmMHYukmGbkLpDXmc=; b=U+AdBBPhAUNj706Qrs8+Wt4AHx XUDrOBlh1M8+LoJ+QM5UexKkwXnooaamrVMgNMxBfxgVx8ue0gtmuTqx/Fj6MBwoxvqF/OjpBJoQM 6xEm19DZtC3GpTT4JcNYAW1rFu7bGsru9BCMAQeeuyyS/fyWLI7dB5uHdHbbR58O/weZHq/9WNK53 ByOKVFORS8n8l2KsLbNMz8/M/X+IaaFlNa3rNSKfdgscEYD9ggYrTvW1VeP/8eeMKb60zr6G+Wz1r l/14lt65t5+ugOVEhFGKIQYXo/MJUWtHYsIESXTUZPud+fruZDEjMmhy7R3hx0cn2hf5bEyCemY9h 1l5PDvRA==; 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 2/4] ARM: dts: omap: omap4-epson-embt2ws: wire up regulators Date: Mon, 30 Sep 2024 23:30:06 +0200 Message-Id: <20240930213008.159647-3-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" Wire up the regulators where usage is plausible. Do not wire them if purpose/usage is unclear like 5V for many things requiring lower voltages. Signed-off-by: Andreas Kemnade Reviewed-by: Roger Quadros --- arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 d6b0abba19f6..cc1b6080bf95 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -20,13 +20,13 @@ memory@80000000 { backlight-left { compatible =3D "pwm-backlight"; pwms =3D <&twl_pwm 1 7812500>; - power-supply =3D <&unknown_supply>; + power-supply =3D <&lb_v50>; }; =20 backlight-right { compatible =3D "pwm-backlight"; pwms =3D <&twl_pwm 0 7812500>; - power-supply =3D <&unknown_supply>; + power-supply =3D <&lb_v50>; }; =20 cb_v18: cb-v18 { @@ -95,11 +95,6 @@ lb_v50: lb-v50 { enable-active-high; }; =20 - unknown_supply: unknown-supply { - compatible =3D "regulator-fixed"; - regulator-name =3D "unknown"; - }; - wl12xx_pwrseq: wl12xx-pwrseq { compatible =3D "mmc-pwrseq-simple"; clocks =3D <&twl 1>; @@ -308,6 +303,8 @@ mpu9150: imu@68 { pinctrl-0 =3D <&mpu9150_pins>; interrupt-parent =3D <&gpio2>; interrupt =3D <7 IRQ_TYPE_LEVEL_HIGH>; + vddio-supply =3D <&cb_v18>; + vdd-supply =3D <&cb_v33>; invensense,level-shifter; }; }; --=20 2.39.5 From nobody Thu Nov 28 13:35:31 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 From nobody Thu Nov 28 13:35:31 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 E8D41183CCA; Mon, 30 Sep 2024 21:30:21 +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=1727731823; cv=none; b=ipL+5NkSSM0ILCm3Gx4mFWwxBCvZVRsxY9lIr88TJK+pUSScceFjzmMkiIsxyq05RZ85ll6ega6EucSxOHyMTT/LVFdlFrAWB7u4sYI8lMgLt9CwixkBywxbz1S52aezHCPQB9o3Ooc0oMaXL56G+LCXq/EXpK/Hmf+mrpwb1Jc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731823; c=relaxed/simple; bh=FsI0oaWwmOVQ6KOvyJQIDOCm13MeMmw1B9HFTphSINE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mBQuhX6NTOy5zoLOpW8BmTd2Kvoy2gbQQSJAu1pfECW70t3Dpgn/jLW4GPYhGCGET9m3OCHASV2UjW+TJyRSJJ11tW6fgAwBw1YzzaQBDgevSo3G7hYFDJZrToqnDMMjtcGrhymOAqdORdHmWdDIu9qSF5q9qIX0x1Zee7C8DTM= 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=eJ4yDdfg; 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="eJ4yDdfg" 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=H7Jvr+yx/BO6UymJrhRV33mZeBfutcKlKBCT4Q2jwxQ=; b=eJ4yDdfgE/qBw14YqJ8LXXCVU5 Z6sWW/3nnP30/TPZPBJk5RGJ12tcRUgKqnR5sUuClpfHegukysnpSO7VIqWl+JcA/mU6FsntFcdH9 BiuqXoZFJIqAXaOWZuRx9Ps2QbkOp03hPpfahXnSlNu5JOZQ5bvOP9BMx19fVNh07RxQkpjr5k9jY +/Bg4hcceZm/Va0MMDNJC3ZyxQCqhzG6QtVLAK9NdXqa/jhIJornENUwWYYyPtjhJcr3zU+aCaZ4F 060oNi3o6/wELU8PyvFjilS2L8TDq2ySG6HIWkXEZQdJnZWEblYQ2TRW3pdFqoD6LKch/9LxSwyvI MwJNXcrQ==; 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 4/4] ARM: dts: omap: omap4-epson-embt2ws: add GPIO expander Date: Mon, 30 Sep 2024 23:30:08 +0200 Message-Id: <20240930213008.159647-5-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" Define the GPIO expander which controls at least some camera gpios. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 13 +++++++++++++ 1 file changed, 13 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 c8205ae89840..ecd727e65761 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -291,6 +291,19 @@ &i2c2 { =20 clock-frequency =3D <200000>; =20 + /* is sometimes not available, research needed */ + gpio_head: gpio@20 { + compatible =3D "ti,tca6408"; + reg =3D <0x20>; + gpio-controller; + #gpio-cells =3D <2>; + }; + + /* + * camera chip at 0x3c, available if <&gpio_head 1> high + * and <&gpio_head 5> low + */ + /* at head/glasses */ mpu9150h: imu@68 { compatible =3D "invensense,mpu9150"; --=20 2.39.5