Commit 631ec374 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'dt64-cleanup-6.10' of...

Merge tag 'dt64-cleanup-6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-dt into soc/dt

Minor improvements in ARM64 DTS for v6.10

Fixes, which might have practical impact, however things were broken for
long enough to justify pushing it regular path:
1. ARM Juno: shorten node names for thermal zones, because Linux drivers
   have strict limit of 20 characters.
2. HiSilicon: correct size of GIC GICC address space and add missing
   GICH and GICV spaces, add cache info to properly describe cache
   topology and solve kernel boot warning.

Several cleanups:
1. Use capital "OR" for multiple licenses in SPDX.
2. Correct white-spaces for code readability.
3. Fix W=1 dtc compiler warnings, which should not have practical
   impact for Amazon, APM, Cavium, Realtek, Socionext Uniphier and
   Spreadtrum like:
    - missing unit addresses,
    - nodes not belonging to soc node,
    - not using generic node names,
    - few incorrect unit addresses.

* tag 'dt64-cleanup-6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-dt: (28 commits)
  arm64: dts: cavium: thunder2-99xx: drop redundant reg-names
  arm64: dts: amazon: alpine-v3: correct gic unit addresses
  arm64: dts: amazon: alpine-v3: drop cache nodes unit addresses
  arm64: dts: amazon: alpine-v3: add missing io-fabric unit addresses
  arm64: dts: amazon: alpine-v2: move non-MMIO node out of soc
  arm64: dts: amazon: alpine-v2: add missing io-fabric unit addresses
  arm64: dts: apm: shadowcat: move non-MMIO node out of soc
  arm64: dts: apm: storm: move non-MMIO node out of soc
  arm64: dts: cavium: correct unit addresses
  arm64: dts: cavium: move non-MMIO node out of soc
  arm64: dts: realtek: rtc16xx: add missing unit address to soc node
  arm64: dts: realtek: rtd139x: add missing unit address to soc node
  arm64: dts: realtek: rtd129x: add missing unit address to soc node
  arm64: dts: uniphier: ld20-global: drop audio codec port unit address
  arm64: dts: uniphier: ld20-global: use generic node name for audio-codec
  arm64: dts: uniphier: ld11-global: drop audio codec port unit address
  arm64: dts: uniphier: ld11-global: use generic node name for audio-codec
  arm64: dts: sharkl3: add missing unit addresses
  arm64: dts: whale2: add missing ap-apb unit address
  arm64: dts: sc9860: move GIC to soc node
  ...
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents f71b3cf8 de2ba5bd
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
/ { / {
model = "Annapurna Labs Alpine v2"; model = "Annapurna Labs Alpine v2";
compatible = "al,alpine-v2"; compatible = "al,alpine-v2";
interrupt-parent = <&gic>;
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
...@@ -89,14 +90,6 @@ sbclk: sbclk { ...@@ -89,14 +90,6 @@ sbclk: sbclk {
clock-frequency = <1000000>; clock-frequency = <1000000>;
}; };
soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&gic>;
ranges;
timer { timer {
compatible = "arm,armv8-timer"; compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
...@@ -113,6 +106,14 @@ pmu { ...@@ -113,6 +106,14 @@ pmu {
<GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
}; };
soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&gic>;
ranges;
gic: interrupt-controller@f0200000 { gic: interrupt-controller@f0200000 {
compatible = "arm,gic-v3"; compatible = "arm,gic-v3";
reg = <0x0 0xf0200000 0x0 0x10000>, /* GIC Dist */ reg = <0x0 0xf0200000 0x0 0x10000>, /* GIC Dist */
...@@ -150,7 +151,7 @@ msix: msix@fbe00000 { ...@@ -150,7 +151,7 @@ msix: msix@fbe00000 {
al,msi-num-spis = <160>; al,msi-num-spis = <160>;
}; };
io-fabric { io-fabric@fc000000 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -244,7 +244,7 @@ cpu@303 { ...@@ -244,7 +244,7 @@ cpu@303 {
next-level-cache = <&cluster3_l2>; next-level-cache = <&cluster3_l2>;
}; };
cluster0_l2: cache@0 { cluster0_l2: cache-0 {
compatible = "cache"; compatible = "cache";
cache-size = <0x200000>; cache-size = <0x200000>;
cache-line-size = <64>; cache-line-size = <64>;
...@@ -253,7 +253,7 @@ cluster0_l2: cache@0 { ...@@ -253,7 +253,7 @@ cluster0_l2: cache@0 {
cache-unified; cache-unified;
}; };
cluster1_l2: cache@100 { cluster1_l2: cache-100 {
compatible = "cache"; compatible = "cache";
cache-size = <0x200000>; cache-size = <0x200000>;
cache-line-size = <64>; cache-line-size = <64>;
...@@ -262,7 +262,7 @@ cluster1_l2: cache@100 { ...@@ -262,7 +262,7 @@ cluster1_l2: cache@100 {
cache-unified; cache-unified;
}; };
cluster2_l2: cache@200 { cluster2_l2: cache-200 {
compatible = "cache"; compatible = "cache";
cache-size = <0x200000>; cache-size = <0x200000>;
cache-line-size = <64>; cache-line-size = <64>;
...@@ -271,7 +271,7 @@ cluster2_l2: cache@200 { ...@@ -271,7 +271,7 @@ cluster2_l2: cache@200 {
cache-unified; cache-unified;
}; };
cluster3_l2: cache@300 { cluster3_l2: cache-300 {
compatible = "cache"; compatible = "cache";
cache-size = <0x200000>; cache-size = <0x200000>;
cache-line-size = <64>; cache-line-size = <64>;
...@@ -318,7 +318,7 @@ soc { ...@@ -318,7 +318,7 @@ soc {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
gic: interrupt-controller@f0000000 { gic: interrupt-controller@f0800000 {
compatible = "arm,gic-v3"; compatible = "arm,gic-v3";
#interrupt-cells = <3>; #interrupt-cells = <3>;
interrupt-controller; interrupt-controller;
...@@ -361,7 +361,7 @@ msix: msix@fbe00000 { ...@@ -361,7 +361,7 @@ msix: msix@fbe00000 {
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
}; };
io-fabric { io-fabric@fc000000 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* /*
* Copyright 2020-2023 Advanced Micro Devices, Inc. * Copyright 2020-2023 Advanced Micro Devices, Inc.
*/ */
......
// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* /*
* Copyright 2020-2022 Advanced Micro Devices, Inc. * Copyright 2020-2022 Advanced Micro Devices, Inc.
*/ */
......
// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* /*
* Device Tree file for AMD Pensando Elba Board. * Device Tree file for AMD Pensando Elba Board.
* *
......
// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* /*
* Copyright 2020-2023 Advanced Micro Devices, Inc. * Copyright 2020-2023 Advanced Micro Devices, Inc.
*/ */
......
// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* /*
* Copyright 2020-2022 Advanced Micro Devices, Inc. * Copyright 2020-2022 Advanced Micro Devices, Inc.
*/ */
......
...@@ -211,6 +211,13 @@ v2m15: v2m@f0000 { ...@@ -211,6 +211,13 @@ v2m15: v2m@f0000 {
}; };
}; };
refclk: refclk {
compatible = "fixed-clock";
#clock-cells = <1>;
clock-frequency = <100000000>;
clock-output-names = "refclk";
};
pmu { pmu {
compatible = "arm,armv8-pmuv3"; compatible = "arm,armv8-pmuv3";
interrupts = <1 12 0xff04>; interrupts = <1 12 0xff04>;
...@@ -236,13 +243,6 @@ clocks { ...@@ -236,13 +243,6 @@ clocks {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
refclk: refclk {
compatible = "fixed-clock";
#clock-cells = <1>;
clock-frequency = <100000000>;
clock-output-names = "refclk";
};
pmdpll: pmdpll@170000f0 { pmdpll: pmdpll@170000f0 {
compatible = "apm,xgene-pcppll-v2-clock"; compatible = "apm,xgene-pcppll-v2-clock";
#clock-cells = <1>; #clock-cells = <1>;
......
...@@ -112,6 +112,13 @@ gic: interrupt-controller@78010000 { ...@@ -112,6 +112,13 @@ gic: interrupt-controller@78010000 {
interrupts = <1 9 0xf04>; /* GIC Maintenence IRQ */ interrupts = <1 9 0xf04>; /* GIC Maintenence IRQ */
}; };
refclk: refclk {
compatible = "fixed-clock";
#clock-cells = <1>;
clock-frequency = <100000000>;
clock-output-names = "refclk";
};
timer { timer {
compatible = "arm,armv8-timer"; compatible = "arm,armv8-timer";
interrupts = <1 0 0xff08>, /* Secure Phys IRQ */ interrupts = <1 0 0xff08>, /* Secure Phys IRQ */
...@@ -137,12 +144,6 @@ clocks { ...@@ -137,12 +144,6 @@ clocks {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
refclk: refclk {
compatible = "fixed-clock";
#clock-cells = <1>;
clock-frequency = <100000000>;
clock-output-names = "refclk";
};
pcppll: pcppll@17000100 { pcppll: pcppll@17000100 {
compatible = "apm,xgene-pcppll-clock"; compatible = "apm,xgene-pcppll-clock";
......
...@@ -773,14 +773,14 @@ soc_crit0: trip0 { ...@@ -773,14 +773,14 @@ soc_crit0: trip0 {
}; };
}; };
big_cluster_thermal_zone: big-cluster-thermal { big_cluster_thermal_zone: big-cl-thermal {
polling-delay = <1000>; polling-delay = <1000>;
polling-delay-passive = <100>; polling-delay-passive = <100>;
thermal-sensors = <&scpi_sensors0 21>; thermal-sensors = <&scpi_sensors0 21>;
status = "disabled"; status = "disabled";
}; };
little_cluster_thermal_zone: little-cluster-thermal { little_cluster_thermal_zone: little-cl-thermal {
polling-delay = <1000>; polling-delay = <1000>;
polling-delay-passive = <100>; polling-delay-passive = <100>;
thermal-sensors = <&scpi_sensors0 22>; thermal-sensors = <&scpi_sensors0 22>;
......
...@@ -84,11 +84,11 @@ soc-thermal { ...@@ -84,11 +84,11 @@ soc-thermal {
thermal-sensors = <&scmi_sensors0 3>; thermal-sensors = <&scmi_sensors0 3>;
}; };
big-cluster-thermal { big-cl-thermal {
thermal-sensors = <&scmi_sensors0 21>; thermal-sensors = <&scmi_sensors0 21>;
}; };
little-cluster-thermal { little-cl-thermal {
thermal-sensors = <&scmi_sensors0 22>; thermal-sensors = <&scmi_sensors0 22>;
}; };
......
...@@ -365,12 +365,6 @@ pmu { ...@@ -365,12 +365,6 @@ pmu {
interrupts = <1 7 4>; interrupts = <1 7 4>;
}; };
soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges;
refclk50mhz: refclk50mhz { refclk50mhz: refclk50mhz {
compatible = "fixed-clock"; compatible = "fixed-clock";
#clock-cells = <0>; #clock-cells = <0>;
...@@ -378,7 +372,13 @@ refclk50mhz: refclk50mhz { ...@@ -378,7 +372,13 @@ refclk50mhz: refclk50mhz {
clock-output-names = "refclk50mhz"; clock-output-names = "refclk50mhz";
}; };
gic0: interrupt-controller@8010,00000000 { soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges;
gic0: interrupt-controller@801000000000 {
compatible = "arm,gic-v3"; compatible = "arm,gic-v3";
#interrupt-cells = <3>; #interrupt-cells = <3>;
#address-cells = <2>; #address-cells = <2>;
...@@ -397,7 +397,7 @@ its: msi-controller@801000020000 { ...@@ -397,7 +397,7 @@ its: msi-controller@801000020000 {
}; };
}; };
uaa0: serial@87e0,24000000 { uaa0: serial@87e024000000 {
compatible = "arm,pl011", "arm,primecell"; compatible = "arm,pl011", "arm,primecell";
reg = <0x87e0 0x24000000 0x0 0x1000>; reg = <0x87e0 0x24000000 0x0 0x1000>;
interrupts = <1 21 4>; interrupts = <1 21 4>;
...@@ -405,7 +405,7 @@ uaa0: serial@87e0,24000000 { ...@@ -405,7 +405,7 @@ uaa0: serial@87e0,24000000 {
clock-names = "apb_pclk"; clock-names = "apb_pclk";
}; };
uaa1: serial@87e0,25000000 { uaa1: serial@87e025000000 {
compatible = "arm,pl011", "arm,primecell"; compatible = "arm,pl011", "arm,primecell";
reg = <0x87e0 0x25000000 0x0 0x1000>; reg = <0x87e0 0x25000000 0x0 0x1000>;
interrupts = <1 22 4>; interrupts = <1 22 4>;
......
...@@ -103,7 +103,6 @@ pcie@30000000 { ...@@ -103,7 +103,6 @@ pcie@30000000 {
/* ECAM at 0x3000_0000 - 0x4000_0000 */ /* ECAM at 0x3000_0000 - 0x4000_0000 */
reg = <0x0 0x30000000 0x0 0x10000000>; reg = <0x0 0x30000000 0x0 0x10000000>;
reg-names = "PCI ECAM";
/* /*
* PCI ranges: * PCI ranges:
......
...@@ -31,6 +31,13 @@ cpu@0 { ...@@ -31,6 +31,13 @@ cpu@0 {
device_type = "cpu"; device_type = "cpu";
reg = <0x0 0x0>; reg = <0x0 0x0>;
enable-method = "psci"; enable-method = "psci";
d-cache-size = <0x8000>; /* 32 KiB */
d-cache-line-size = <64>;
d-cache-sets = <128>;
i-cache-size = <0x8000>; /* 32 KiB */
i-cache-line-size = <64>;
i-cache-sets = <256>;
next-level-cache = <&L2>;
}; };
cpu@1 { cpu@1 {
...@@ -38,6 +45,13 @@ cpu@1 { ...@@ -38,6 +45,13 @@ cpu@1 {
device_type = "cpu"; device_type = "cpu";
reg = <0x0 0x1>; reg = <0x0 0x1>;
enable-method = "psci"; enable-method = "psci";
d-cache-size = <0x8000>; /* 32 KiB */
d-cache-line-size = <64>;
d-cache-sets = <128>;
i-cache-size = <0x8000>; /* 32 KiB */
i-cache-line-size = <64>;
i-cache-sets = <256>;
next-level-cache = <&L2>;
}; };
cpu@2 { cpu@2 {
...@@ -45,6 +59,13 @@ cpu@2 { ...@@ -45,6 +59,13 @@ cpu@2 {
device_type = "cpu"; device_type = "cpu";
reg = <0x0 0x2>; reg = <0x0 0x2>;
enable-method = "psci"; enable-method = "psci";
d-cache-size = <0x8000>; /* 32 KiB */
d-cache-line-size = <64>;
d-cache-sets = <128>;
i-cache-size = <0x8000>; /* 32 KiB */
i-cache-line-size = <64>;
i-cache-sets = <256>;
next-level-cache = <&L2>;
}; };
cpu@3 { cpu@3 {
...@@ -52,13 +73,33 @@ cpu@3 { ...@@ -52,13 +73,33 @@ cpu@3 {
device_type = "cpu"; device_type = "cpu";
reg = <0x0 0x3>; reg = <0x0 0x3>;
enable-method = "psci"; enable-method = "psci";
d-cache-size = <0x8000>; /* 32 KiB */
d-cache-line-size = <64>;
d-cache-sets = <128>;
i-cache-size = <0x8000>; /* 32 KiB */
i-cache-line-size = <64>;
i-cache-sets = <256>;
next-level-cache = <&L2>;
}; };
}; };
L2: l2-cache {
compatible = "cache";
cache-unified;
cache-size = <0x80000>; /* 512 KiB */
cache-line-size = <64>;
cache-sets = <512>;
cache-level = <2>;
};
gic: interrupt-controller@f1001000 { gic: interrupt-controller@f1001000 {
compatible = "arm,gic-400"; compatible = "arm,gic-400";
reg = <0x0 0xf1001000 0x0 0x1000>, /* GICD */ reg = <0x0 0xf1001000 0x0 0x1000>, /* GICD */
<0x0 0xf1002000 0x0 0x100>; /* GICC */ <0x0 0xf1002000 0x0 0x2000>, /* GICC */
<0x0 0xf1004000 0x0 0x2000>, /* GICH */
<0x0 0xf1006000 0x0 0x2000>; /* GICV */
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
IRQ_TYPE_LEVEL_HIGH)>;
#address-cells = <0>; #address-cells = <0>;
#interrupt-cells = <3>; #interrupt-cells = <3>;
interrupt-controller; interrupt-controller;
......
...@@ -48,7 +48,7 @@ osc27M: osc { ...@@ -48,7 +48,7 @@ osc27M: osc {
clock-output-names = "osc27M"; clock-output-names = "osc27M";
}; };
soc { soc@0 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -47,7 +47,7 @@ osc27M: osc { ...@@ -47,7 +47,7 @@ osc27M: osc {
clock-output-names = "osc27M"; clock-output-names = "osc27M";
}; };
soc { soc@0 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -127,7 +127,7 @@ osc27M: osc { ...@@ -127,7 +127,7 @@ osc27M: osc {
#clock-cells = <0>; #clock-cells = <0>;
}; };
soc { soc@0 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -111,7 +111,7 @@ &comp_spdif_hiecout1 { ...@@ -111,7 +111,7 @@ &comp_spdif_hiecout1 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
tas5707a@1d { audio-codec@1d {
compatible = "ti,tas5711"; compatible = "ti,tas5711";
reg = <0x1d>; reg = <0x1d>;
reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>; reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>;
...@@ -124,7 +124,7 @@ tas5707a@1d { ...@@ -124,7 +124,7 @@ tas5707a@1d {
PVDD_C-supply = <&amp_vcc_reg>; PVDD_C-supply = <&amp_vcc_reg>;
PVDD_D-supply = <&amp_vcc_reg>; PVDD_D-supply = <&amp_vcc_reg>;
port@0 { port {
tas_speaker: endpoint { tas_speaker: endpoint {
dai-format = "i2s"; dai-format = "i2s";
remote-endpoint = <&i2s_hpcmout1>; remote-endpoint = <&i2s_hpcmout1>;
......
...@@ -111,7 +111,7 @@ &comp_spdif_hiecout1 { ...@@ -111,7 +111,7 @@ &comp_spdif_hiecout1 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
tas5707@1b { audio-codec@1b {
compatible = "ti,tas5711"; compatible = "ti,tas5711";
reg = <0x1b>; reg = <0x1b>;
reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>; reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>;
...@@ -124,7 +124,7 @@ tas5707@1b { ...@@ -124,7 +124,7 @@ tas5707@1b {
PVDD_C-supply = <&amp_vcc_reg>; PVDD_C-supply = <&amp_vcc_reg>;
PVDD_D-supply = <&amp_vcc_reg>; PVDD_D-supply = <&amp_vcc_reg>;
port@0 { port {
tas_speaker: endpoint { tas_speaker: endpoint {
dai-format = "i2s"; dai-format = "i2s";
remote-endpoint = <&i2s_hpcmout1>; remote-endpoint = <&i2s_hpcmout1>;
......
...@@ -113,7 +113,7 @@ CPU7: cpu@530103 { ...@@ -113,7 +113,7 @@ CPU7: cpu@530103 {
}; };
}; };
idle-states{ idle-states {
entry-method = "psci"; entry-method = "psci";
CORE_PD: core_pd { CORE_PD: core_pd {
...@@ -135,18 +135,6 @@ CLUSTER_PD: cluster_pd { ...@@ -135,18 +135,6 @@ CLUSTER_PD: cluster_pd {
}; };
}; };
gic: interrupt-controller@12001000 {
compatible = "arm,gic-400";
reg = <0 0x12001000 0 0x1000>,
<0 0x12002000 0 0x2000>,
<0 0x12004000 0 0x2000>,
<0 0x12006000 0 0x2000>;
#interrupt-cells = <3>;
interrupt-controller;
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8)
| IRQ_TYPE_LEVEL_HIGH)>;
};
psci { psci {
compatible = "arm,psci-0.2"; compatible = "arm,psci-0.2";
method = "smc"; method = "smc";
...@@ -185,6 +173,18 @@ pmu { ...@@ -185,6 +173,18 @@ pmu {
}; };
soc { soc {
gic: interrupt-controller@12001000 {
compatible = "arm,gic-400";
reg = <0 0x12001000 0 0x1000>,
<0 0x12002000 0 0x2000>,
<0 0x12004000 0 0x2000>,
<0 0x12006000 0 0x2000>;
#interrupt-cells = <3>;
interrupt-controller;
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8)
| IRQ_TYPE_LEVEL_HIGH)>;
};
pmu_gate: pmu-gate { pmu_gate: pmu-gate {
compatible = "sprd,sc9860-pmu-gate"; compatible = "sprd,sc9860-pmu-gate";
sprd,syscon = <&pmu_regs>; /* 0x402b0000 */ sprd,syscon = <&pmu_regs>; /* 0x402b0000 */
...@@ -207,7 +207,7 @@ ap_clk: clock-controller@20000000 { ...@@ -207,7 +207,7 @@ ap_clk: clock-controller@20000000 {
#clock-cells = <1>; #clock-cells = <1>;
}; };
aon_prediv: aon-prediv { aon_prediv: aon-prediv@402d0000 {
compatible = "sprd,sc9860-aon-prediv"; compatible = "sprd,sc9860-aon-prediv";
reg = <0 0x402d0000 0 0x400>; reg = <0 0x402d0000 0 0x400>;
clocks = <&ext_26m>, <&pll 0>, clocks = <&ext_26m>, <&pll 0>,
...@@ -684,33 +684,5 @@ etm7_out: endpoint { ...@@ -684,33 +684,5 @@ etm7_out: endpoint {
}; };
}; };
}; };
gpio-keys {
compatible = "gpio-keys";
key-volumedown {
label = "Volume Down Key";
linux,code = <KEY_VOLUMEDOWN>;
gpios = <&eic_debounce 2 GPIO_ACTIVE_LOW>;
debounce-interval = <2>;
wakeup-source;
};
key-volumeup {
label = "Volume Up Key";
linux,code = <KEY_VOLUMEUP>;
gpios = <&pmic_eic 10 GPIO_ACTIVE_HIGH>;
debounce-interval = <2>;
wakeup-source;
};
key-power {
label = "Power Key";
linux,code = <KEY_POWER>;
gpios = <&pmic_eic 1 GPIO_ACTIVE_HIGH>;
debounce-interval = <2>;
wakeup-source;
};
};
}; };
}; };
...@@ -24,7 +24,7 @@ ap_ahb_regs: syscon@20e00000 { ...@@ -24,7 +24,7 @@ ap_ahb_regs: syscon@20e00000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x20e00000 0x4000>; ranges = <0 0 0x20e00000 0x4000>;
apahb_gate: apahb-gate { apahb_gate: apahb-gate@0 {
compatible = "sprd,sc9863a-apahb-gate"; compatible = "sprd,sc9863a-apahb-gate";
reg = <0x0 0x1020>; reg = <0x0 0x1020>;
#clock-cells = <1>; #clock-cells = <1>;
...@@ -39,7 +39,7 @@ pmu_regs: syscon@402b0000 { ...@@ -39,7 +39,7 @@ pmu_regs: syscon@402b0000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x402b0000 0x4000>; ranges = <0 0 0x402b0000 0x4000>;
pmu_gate: pmu-gate { pmu_gate: pmu-gate@0 {
compatible = "sprd,sc9863a-pmu-gate"; compatible = "sprd,sc9863a-pmu-gate";
reg = <0 0x1200>; reg = <0 0x1200>;
clocks = <&ext_26m>; clocks = <&ext_26m>;
...@@ -56,7 +56,7 @@ aon_apb_regs: syscon@402e0000 { ...@@ -56,7 +56,7 @@ aon_apb_regs: syscon@402e0000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x402e0000 0x4000>; ranges = <0 0 0x402e0000 0x4000>;
aonapb_gate: aonapb-gate { aonapb_gate: aonapb-gate@0 {
compatible = "sprd,sc9863a-aonapb-gate"; compatible = "sprd,sc9863a-aonapb-gate";
reg = <0 0x1100>; reg = <0 0x1100>;
#clock-cells = <1>; #clock-cells = <1>;
...@@ -71,7 +71,7 @@ anlg_phy_g2_regs: syscon@40353000 { ...@@ -71,7 +71,7 @@ anlg_phy_g2_regs: syscon@40353000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x40353000 0x3000>; ranges = <0 0 0x40353000 0x3000>;
pll: pll { pll: pll@0 {
compatible = "sprd,sc9863a-pll"; compatible = "sprd,sc9863a-pll";
reg = <0 0x100>; reg = <0 0x100>;
clocks = <&ext_26m>; clocks = <&ext_26m>;
...@@ -88,7 +88,7 @@ anlg_phy_g4_regs: syscon@40359000 { ...@@ -88,7 +88,7 @@ anlg_phy_g4_regs: syscon@40359000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x40359000 0x3000>; ranges = <0 0 0x40359000 0x3000>;
mpll: mpll { mpll: mpll@0 {
compatible = "sprd,sc9863a-mpll"; compatible = "sprd,sc9863a-mpll";
reg = <0 0x100>; reg = <0 0x100>;
#clock-cells = <1>; #clock-cells = <1>;
...@@ -103,7 +103,7 @@ anlg_phy_g5_regs: syscon@4035c000 { ...@@ -103,7 +103,7 @@ anlg_phy_g5_regs: syscon@4035c000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x4035c000 0x3000>; ranges = <0 0 0x4035c000 0x3000>;
rpll: rpll { rpll: rpll@0 {
compatible = "sprd,sc9863a-rpll"; compatible = "sprd,sc9863a-rpll";
reg = <0 0x100>; reg = <0 0x100>;
clocks = <&ext_26m>; clocks = <&ext_26m>;
...@@ -120,7 +120,7 @@ anlg_phy_g7_regs: syscon@40363000 { ...@@ -120,7 +120,7 @@ anlg_phy_g7_regs: syscon@40363000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x40363000 0x3000>; ranges = <0 0 0x40363000 0x3000>;
dpll: dpll { dpll: dpll@0 {
compatible = "sprd,sc9863a-dpll"; compatible = "sprd,sc9863a-dpll";
reg = <0 0x100>; reg = <0 0x100>;
#clock-cells = <1>; #clock-cells = <1>;
...@@ -135,7 +135,7 @@ mm_ahb_regs: syscon@60800000 { ...@@ -135,7 +135,7 @@ mm_ahb_regs: syscon@60800000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x60800000 0x3000>; ranges = <0 0 0x60800000 0x3000>;
mm_gate: mm-gate { mm_gate: mm-gate@0 {
compatible = "sprd,sc9863a-mm-gate"; compatible = "sprd,sc9863a-mm-gate";
reg = <0 0x1100>; reg = <0 0x1100>;
#clock-cells = <1>; #clock-cells = <1>;
...@@ -150,7 +150,7 @@ ap_apb_regs: syscon@71300000 { ...@@ -150,7 +150,7 @@ ap_apb_regs: syscon@71300000 {
#size-cells = <1>; #size-cells = <1>;
ranges = <0 0 0x71300000 0x4000>; ranges = <0 0 0x71300000 0x4000>;
apapb_gate: apapb-gate { apapb_gate: apapb-gate@0 {
compatible = "sprd,sc9863a-apapb-gate"; compatible = "sprd,sc9863a-apapb-gate";
reg = <0 0x1000>; reg = <0 0x1000>;
clocks = <&ext_26m>; clocks = <&ext_26m>;
......
...@@ -24,7 +24,7 @@ aliases { ...@@ -24,7 +24,7 @@ aliases {
spi0 = &adi_bus; spi0 = &adi_bus;
}; };
memory{ memory {
device_type = "memory"; device_type = "memory";
reg = <0x0 0x80000000 0 0x60000000>, reg = <0x0 0x80000000 0 0x60000000>,
<0x1 0x80000000 0 0x60000000>; <0x1 0x80000000 0 0x60000000>;
...@@ -34,6 +34,34 @@ chosen { ...@@ -34,6 +34,34 @@ chosen {
stdout-path = "serial1:115200n8"; stdout-path = "serial1:115200n8";
}; };
gpio-keys {
compatible = "gpio-keys";
key-volumedown {
label = "Volume Down Key";
linux,code = <KEY_VOLUMEDOWN>;
gpios = <&eic_debounce 2 GPIO_ACTIVE_LOW>;
debounce-interval = <2>;
wakeup-source;
};
key-volumeup {
label = "Volume Up Key";
linux,code = <KEY_VOLUMEUP>;
gpios = <&pmic_eic 10 GPIO_ACTIVE_HIGH>;
debounce-interval = <2>;
wakeup-source;
};
key-power {
label = "Power Key";
linux,code = <KEY_POWER>;
gpios = <&pmic_eic 1 GPIO_ACTIVE_HIGH>;
debounce-interval = <2>;
wakeup-source;
};
};
reserved-memory { reserved-memory {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <2>; #size-cells = <2>;
......
...@@ -64,7 +64,7 @@ ap_apb_regs: syscon@70b00000 { ...@@ -64,7 +64,7 @@ ap_apb_regs: syscon@70b00000 {
reg = <0 0x70b00000 0 0x40000>; reg = <0 0x70b00000 0 0x40000>;
}; };
ap-apb { ap-apb@70000000 {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment