diff options
author | Iskander Amara <iskander.amara@theobroma-systems.com> | 2024-03-07 15:20:47 +0100 |
---|---|---|
committer | Iskander Amara <iskander.amara@theobroma-systems.com> | 2024-03-08 10:18:01 +0100 |
commit | f272fbbbd7ea0e8be428457cca9d92949f2d8ebb (patch) | |
tree | 1fbc3727535f7451d7453c5b2abf54e24222bdc3 /arch/arm64 | |
parent | 175171b8a5eb299f092f79cd8561feee4c5eacaa (diff) |
TSD: arm64: dts: rockchip: enable internal pull-ups for Q7_SDIO_WP and Q7_SMB_ALERT
Each of the above mentioned pins is connected to a diode
on the module which is used as a level shifter, and they
are configured internally pulled-down by default.
We need to configure these pins to internally pulled-up,
otherwise whenever one of the pins is configured as INPUT
and we try to control it externally the value will always
remain zero.
[TSD] Only applies to Haikou Tester as those pins aren't
necessarily used as input so we don't need to always have
a pull-up for it (e.g. if driving them as output).
[TSD] No upstream Haikou Tester support for now
Relates-to: PUMA-90, PUMA-91
Signed-off-by: Iskander Amara <iskander.amara@theobroma-systems.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 5 | ||||
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts index bb434416cfee..6c7db796d491 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts @@ -198,6 +198,11 @@ }; &pinctrl { + /* q7_sdio_wp and q7_smb_alert are Haikou-Tester specific to request Q7_SDIO_WP and Q7_SMB_ALERT + * configurations with internal pull-up. + */ + pinctrl-0 = <&q7_thermal_pin &q7_sdio_wp_pin &q7_smb_alert_pin>; + buttons { haikou_keys_pin: haikou-keys-pin { rockchip,pins = diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 3ccc01b2edfd..5ec34dfb54b1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -424,6 +424,16 @@ rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; }; + + q7_sdio_wp_pin: q7-sdio-wp-pin { + rockchip,pins = + <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + q7_smb_alert_pin: q7-smb-alert-pin { + rockchip,pins = + <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; + }; }; i2c8 { |