-
Notifications
You must be signed in to change notification settings - Fork 149
arm64: dts: qcom: msm8916-samsung-coreprimeltevzw: add device tree #409
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
base: msm8916/6.12.1
Are you sure you want to change the base?
arm64: dts: qcom: msm8916-samsung-coreprimeltevzw: add device tree #409
Conversation
e81b8be
to
b61110f
Compare
/* PN547 NFC instead of S3FWRN5 */ | ||
&s3fwrn5_nfc { | ||
status = "disabled"; | ||
}; | ||
|
||
&pn547_nfc { | ||
status = "okay"; | ||
}; |
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.
Does NFC exist on Verizon branded phones?
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.
I'm not sure. I did not see any NFC settings on stock SM-G360V Android, nor on stock SM-G360R6 (see note), however the device tree does mention that NFC controller.
Note: a system.img
for SM-G360R6 apparently is larger than SM-G360V's system
partition so I had to manually copy its contents to an existing system partition with rsync
. Wi-Fi did not work on it, probably due to firmware signatures.
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.
3G variants also have PN547 in downstream device trees but the chip doesn't really exist.
The NFC antenna of fortuna and rossa is integrated into stock battery.
If the antenna is missing, then it's not NFC variant.
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.
3G variants also have PN547 in downstream device trees but the chip doesn't really exist. The NFC antenna of fortuna and rossa is integrated into stock battery. If the antenna is missing, then it's not NFC variant.
I do not have any stock batteries, although there were no antennas in the two replacement batteries I have. Since NFC is not mentioned in Android either, I suppose I will remove it for now.
&panel { | ||
compatible = "samsung,cprime-panel"; | ||
}; |
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.
Ideally we would like to have it in upstream, and the panel part could be split into another commit.
arch/arm64/boot/dts/qcom/Makefile
Outdated
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb | ||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e5.dtb | ||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb | ||
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-coreprimeltevzw.dtb |
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.
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e5.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-coreprimeltevzw.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-coreprimeltevzw.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e5.dtb | |
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb |
&blsp_i2c1 { | ||
status = "okay"; | ||
|
||
muic: extcon@25 { |
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.
&blsp_i2c1 { | |
status = "okay"; | |
muic: extcon@25 { | |
&blsp_i2c1 { | |
muic: extcon@25 { |
&blsp_i2c1
is already enabled in msm8916-samsung-fortuna-common.dtsi
.
I will make the suggested changes after some testing. |
Signed-off-by: Max McNamee <[email protected]>
b61110f
to
c9745e4
Compare
I forgot to sign off on the panel commit, oops |
Signed-off-by: Max McNamee <[email protected]>
c9745e4
to
e4fccab
Compare
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.
Although building check using gcc is broken, the patch set looks good to me.
#include "msm8916-samsung-rossa-common.dtsi" | ||
|
||
/* SM5502 MUIC instead of SM5504 */ | ||
/delete-node/ &muic; |
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.
I feel like this back and forth of deleting SM5502 and SM5504 goes a bit too far now. fortuna-common.dtsi defines SM5502, which is then replaced to SM5504 in rossa-common.dtsi, and then you go back to SM5502 here again?
Perhaps @wonderfulShrineMaidenOfParadise can help clean this up a bit, e.g.:
- You could derive directly from fortuna-common in coreprimeltevzw, or
- You could follow a pattern similar to the accelerometer/sensors in fortuna-common.dtsi and define both SM5502 and SM5504 in fortuna-common.dtsi, and then enable what is there for each of the boards.
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.
You could follow a pattern similar to the accelerometer/sensors in fortuna-common.dtsi and define both SM5502 and SM5504 in fortuna-common.dtsi, and then enable what is there for each of the boards.
Sounds better with this. I was worrying about convincing maintainers in LKML.
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.
Done in #411
This adds a device tree for the SM-G360V/SM-G360R6 variants of the Samsung Galaxy Core Prime. Issues:
no-modem
rpoc mode, and[ 26.466333] platform 7702000.sound: deferred probe pending: qcom-apq8016-sbc: MultiMedia1: error getting cpu dai name
gets printed to dmesg.