提交 a537b8d6 编写于 作者: A Andy Gross

ARM: dts: qcom: Remove size elements from pmic reg

The #size-cells for the pmics are 0, but we specify a size in the
reg property so that MPP and GPIO modules can figure out how many
pins there are. Now that we've done that by counting irqs, we can
remove the size elements in the reg properties and be DT
compliant.
Signed-off-by: NAndy Gross <andy.gross@linaro.org>
Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 5fda09b8
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
rtc@6000 { rtc@6000 {
compatible = "qcom,pm8941-rtc"; compatible = "qcom,pm8941-rtc";
reg = <0x6000 0x100>, reg = <0x6000>,
<0x6100 0x100>; <0x6100>;
reg-names = "rtc", "alarm"; reg-names = "rtc", "alarm";
interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
}; };
pma8084_gpios: gpios@c000 { pma8084_gpios: gpios@c000 {
compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio";
reg = <0xc000 0x1600>; reg = <0xc000>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
pma8084_mpps: mpps@a000 { pma8084_mpps: mpps@a000 {
compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp";
reg = <0xa000 0x800>; reg = <0xa000>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupts = <0 0xa0 0 IRQ_TYPE_NONE>, interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
pma8084_temp: temp-alarm@2400 { pma8084_temp: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm"; compatible = "qcom,spmi-temp-alarm";
reg = <0x2400 0x100>; reg = <0x2400>;
interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
#thermal-sensor-cells = <0>; #thermal-sensor-cells = <0>;
io-channels = <&pma8084_vadc VADC_DIE_TEMP>; io-channels = <&pma8084_vadc VADC_DIE_TEMP>;
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
pma8084_vadc: vadc@3100 { pma8084_vadc: vadc@3100 {
compatible = "qcom,spmi-vadc"; compatible = "qcom,spmi-vadc";
reg = <0x3100 0x100>; reg = <0x3100>;
interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册