forked from grate-driver/linux
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inital Lenovo IdeaPad Yoga 11 commit
- Loading branch information
1 parent
5cbc083
commit 93f4636
Showing
3 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
|
||
/dts-v1/; | ||
|
||
#include <dt-bindings/input/input.h> | ||
#include "tegra30.dtsi" | ||
|
||
/ { | ||
model = "Lenovo IdeaPad Yoga 11"; | ||
compatible = "lenovo,ideapad-yoga-11", "nvidia,tegra30"; | ||
|
||
/* clock from PMIC */ | ||
clk32k_in: clock@0 { | ||
compatible = "fixed-clock"; | ||
clock-frequency = <32768>; | ||
#clock-cells = <0>; | ||
}; | ||
|
||
pinmux@70000868 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&state_default>; | ||
|
||
state_default: pinmux { | ||
/* HDMI HOTPLUG_DETECT */ | ||
/*hdmi-int-pn7 { | ||
nvidia,pins = "hdmi_int_pn7"; | ||
nvidia,function = "hdmi"; | ||
nvidia,pull = <TEGRA_PIN_PULL_NONE>; | ||
nvidia,tristate = <TEGRA_PIN_ENABLE>; | ||
nvidia,enable-input = <TEGRA_PIN_ENABLE>; | ||
};*/ | ||
|
||
/* Backlight PWM */ | ||
/*gmi-ad8-ph0 { | ||
nvidia,pins = "gmi_ad8_ph0"; | ||
nvidia,function = "pwm0"; | ||
nvidia,pull = <TEGRA_PIN_PULL_NONE>; | ||
nvidia,tristate = <TEGRA_PIN_DISABLE>; | ||
nvidia,enable-input = <TEGRA_PIN_DISABLE>; | ||
};*/ | ||
}; | ||
}; | ||
|
||
panel: display-panel { | ||
compatible = "samsung,ltn140at29-301"; | ||
|
||
power-supply = <&vdd_pnl>; | ||
backlight = <&backlight>; | ||
|
||
port { | ||
panel_input: endpoint { | ||
remote-endpoint = <&lvds_encoder_output>; | ||
}; | ||
}; | ||
}; | ||
|
||
vdd_pnl: vdd-panel { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "vdd_panel"; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
//gpio = <&gpio TEGRA_GPIO(L, 4) GPIO_ACTIVE_HIGH>; | ||
enable-active-high; | ||
}; | ||
|
||
backlight: backlight { | ||
compatible = "pwm-backlight"; | ||
//enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; | ||
pwms = <&pwm 0 50000>; | ||
brightness-levels = <1 255>; | ||
num-interpolated-steps = <254>; | ||
default-brightness-level = <128>; | ||
}; | ||
|
||
pwm@7000a000 { | ||
status = "okay"; | ||
}; | ||
|
||
host1x@50000000 { | ||
hdmi@54280000 { | ||
status = "okay"; | ||
//nvidia,ddc-i2c-bus = <&hdmi_ddc>; | ||
nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
dc@54200000 { | ||
rgb { | ||
status = "okay"; | ||
|
||
port@0 { | ||
lcd_output: endpoint { | ||
remote-endpoint = <&lvds_encoder_input>; | ||
bus-width = <24>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
lvds-encoder { | ||
compatible = "lvds-encoder"; | ||
|
||
//powerdown-gpios = <&gpio TEGRA_GPIO(C, 1) GPIO_ACTIVE_LOW>; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
|
||
lvds_encoder_input: endpoint { | ||
remote-endpoint = <&lcd_output>; | ||
}; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
|
||
lvds_encoder_output: endpoint { | ||
remote-endpoint = <&panel_input>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters