-
Notifications
You must be signed in to change notification settings - Fork 25
arm64: dts: qcom: xiaomi-prada: fix keycodes #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -230,7 +230,7 @@ | |||||
| pinctrl-0 = <&tsp_int_rst_default>; | ||||||
| pinctrl-names = "default"; | ||||||
|
|
||||||
| linux,keycodes = <KEY_APPSELECT KEY_HOME KEY_BACK>; | ||||||
| linux,keycodes = <KEY_BACK KEY_MENU KEY_CONTEXT_MENU>; | ||||||
| }; | ||||||
| }; | ||||||
|
|
||||||
|
|
@@ -555,6 +555,34 @@ | |||||
| drive-strength = <8>; | ||||||
| bias-pull-up; | ||||||
| }; | ||||||
|
|
||||||
| cam_sensor_front_default: cam_sensor_front_default { | ||||||
| pins = "gpio40"; | ||||||
| function = "gpio"; | ||||||
| bias-disable; | ||||||
| drive-strength = <2>; | ||||||
| }; | ||||||
|
|
||||||
| camss_mclk0_default: camss-mclk0-default-state { | ||||||
| pins = "gpio26"; | ||||||
| function = "cam_mclk"; | ||||||
| drive-strength = <2>; | ||||||
| bias-disable; | ||||||
| }; | ||||||
|
|
||||||
| camss_mclk1_default: camss-mclk1-default-state { | ||||||
| pins = "gpio27"; | ||||||
| function = "cam_mclk"; | ||||||
| drive-strength = <2>; | ||||||
| bias-disable; | ||||||
| }; | ||||||
|
|
||||||
| camss_mclk2_default: camss-mclk2-default-state { | ||||||
| pins = "gpio28"; | ||||||
| function = "cam_mclk"; | ||||||
| drive-strength = <2>; | ||||||
| bias-disable; | ||||||
| }; | ||||||
| }; | ||||||
|
|
||||||
| &usb { | ||||||
|
|
@@ -609,3 +637,62 @@ | |||||
| &xo_board { | ||||||
| clock-frequency = <19200000>; | ||||||
| }; | ||||||
|
|
||||||
| &camss { | ||||||
| compatible = "qcom,msm8917-camss"; | ||||||
| status = "okay"; | ||||||
| vdda-supply = <&pm8937_s3>; | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ports { | ||||||
| port@1 { | ||||||
| reg = <1>; | ||||||
| csiphy1_ep: endpoint { | ||||||
| clock-lanes = <7>; | ||||||
| data-lanes = <0 1>; | ||||||
| remote-endpoint = <&front_cam_ep>; | ||||||
| }; | ||||||
| }; | ||||||
| }; | ||||||
| }; | ||||||
|
|
||||||
|
|
||||||
| &cci { | ||||||
| pinctrl-names = "default"; | ||||||
| pinctrl-0 = <&cci1_default>, | ||||||
| <&cci0_default>, | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| <&camss_mclk2_default>; | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it should be moved to the camera pinctrl |
||||||
|
|
||||||
| status = "okay"; | ||||||
| }; | ||||||
|
|
||||||
| &cci_i2c1 { | ||||||
| camera-sensor@36 { // Front camera | ||||||
| compatible = "ovti,ov5670"; | ||||||
|
|
||||||
| reg = <0x36>; | ||||||
|
|
||||||
| clocks = <&gcc GCC_CAMSS_MCLK2_CLK>; | ||||||
| clock-rates = <19200000>; | ||||||
|
|
||||||
| pinctrl-0 = <&cam_sensor_front_default>; | ||||||
| pinctrl-names = "default"; | ||||||
|
|
||||||
| reset-gpios = <&tlmm 40 GPIO_ACTIVE_LOW>; | ||||||
|
|
||||||
| avdd-supply = <&pm8937_l22>; | ||||||
| dvdd-supply = <&pm8937_l23>; | ||||||
| dovdd-supply = <&pm8937_l6>; | ||||||
| orientation = <0>; | ||||||
| rotation = <270>; | ||||||
|
|
||||||
| status = "okay"; | ||||||
|
|
||||||
| port { | ||||||
| front_cam_ep: endpoint { | ||||||
| data-lanes = <0 1>; | ||||||
| remote-endpoint = <&csiphy1_ep>; | ||||||
| link-frequencies = /bits/ 64 <450000000>; | ||||||
| }; | ||||||
| }; | ||||||
| }; | ||||||
| }; | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use mclk pinctrls from msm8937.dtsi