Skip to content

Commit c913fc4

Browse files
committed
Merge tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC late DT updates from Arnd Bergmann: "These updates have been kept in a separate branch mostly because they rely on updates to the respective clk drivers to keep the shared header files in sync. - The Renesas r8a7796 (R-Car M3-W) platform gets added, this is an automotive SoC similar to the ⅹ8a7795 chip we already support, but the dts changes rely on a clock driver change that has been merged for v4.9 through the clk tree. - The Amlogic meson-gxbb (S905) platform gains support for a few drivers merged through our tree, in particular the network and usb driver changes are required and included here, and also the clk tree changes. - The Allwinner platforms have seen a large-scale change to their clk drivers and the dts file updates must come after that. This includes the newly added Nextthing GR8 platform, which is derived from sun5i/A13. - Some integrator (arm32) changes rely on clk driver changes. - A single patch for lpc32xx has no such dependency but wasn't added until just before the merge window" * tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (99 commits) ARM: dts: lpc32xx: add device node for IRAM on-chip memory ARM: dts: sun8i: Add accelerometer to polaroid-mid2407pxe03 ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board ARM: dts: sun8i: add pinmux for UART1 at PG dts: sun8i-h3: add I2C0-2 peripherals to H3 SOC dts: sun8i-h3: add pinmux definitions for I2C0-2 dts: sun8i-h3: associate exposed UARTs on Orange Pi Boards dts: sun8i-h3: split off RTS/CTS for UART1 in seperate pinmux dts: sun8i-h3: add pinmux definitions for UART2-3 ARM: dts: sun9i: a80-optimus: Disable EHCI1 ARM: dts: sun9i: cubieboard4: Add AXP806 PMIC device node and regulators ARM: dts: sun9i: a80-optimus: Add AXP806 PMIC device node and regulators ARM: dts: sun9i: cubieboard4: Declare AXP809 SW regulator as unused ARM: dts: sun9i: a80-optimus: Declare AXP809 SW regulator as unused ARM: dts: sun8i: Add touchscreen node for sun8i-a33-ga10h ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2809pxe04 ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03 ARM: dts: sun8i: Add touchscreen node for sun8i-a23-inet86dz ARM: dts: sun8i: Add touchscreen node for sun8i-a23-gt90h ARM64: dts: meson-gxbb-vega-s95: Enable USB Nodes ...
2 parents a439f8f + 8185041 commit c913fc4

51 files changed

Lines changed: 4153 additions & 870 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/arm/shmobile.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Boards:
4949
compatible = "renesas,genmai", "renesas,r7s72100"
5050
- Gose
5151
compatible = "renesas,gose", "renesas,r8a7793"
52+
- H3ULCB (RTP0RC7795SKB00010S)
53+
compatible = "renesas,h3ulcb", "renesas,r8a7795";
5254
- Henninger
5355
compatible = "renesas,henninger", "renesas,r8a7791"
5456
- Koelsch (RTP0RC7791SEB00010S)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* Amlogic Secure Monitor
2+
3+
In the Amlogic SoCs the Secure Monitor code is used to provide access to the
4+
NVMEM, enable JTAG, set USB boot, etc...
5+
6+
Required properties for the secure monitor node:
7+
- compatible: Should be "amlogic,meson-gxbb-sm"
8+
9+
Example:
10+
11+
firmware {
12+
sm: secure-monitor {
13+
compatible = "amlogic,meson-gxbb-sm";
14+
};
15+
};

‎Documentation/devicetree/bindings/media/meson-ir.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
* Amlogic Meson IR remote control receiver
22

33
Required properties:
4-
- compatible : should be "amlogic,meson6-ir"
4+
- compatible : depending on the platform this should be one of:
5+
- "amlogic,meson6-ir"
6+
- "amlogic,meson8b-ir"
7+
- "amlogic,meson-gxbb-ir"
58
- reg : physical base address and length of the device registers
69
- interrupts : a single specifier for the interrupt from the device
710

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
* Amlogic Meson DWMAC Ethernet controller
22

33
The device inherits all the properties of the dwmac/stmmac devices
4-
described in the file net/stmmac.txt with the following changes.
4+
described in the file stmmac.txt in the current directory with the
5+
following changes.
56

6-
Required properties:
7+
Required properties on all platforms:
78

8-
- compatible: should be "amlogic,meson6-dwmac" along with "snps,dwmac"
9-
and any applicable more detailed version number
10-
described in net/stmmac.txt
9+
- compatible: Depending on the platform this should be one of:
10+
- "amlogic,meson6-dwmac"
11+
- "amlogic,meson8b-dwmac"
12+
- "amlogic,meson-gxbb-dwmac"
13+
Additionally "snps,dwmac" and any applicable more
14+
detailed version number described in net/stmmac.txt
15+
should be used.
1116

12-
- reg: should contain a register range for the dwmac controller and
13-
another one for the Amlogic specific configuration
17+
- reg: The first register range should be the one of the DWMAC
18+
controller. The second range is is for the Amlogic specific
19+
configuration (for example the PRG_ETHERNET register range
20+
on Meson8b and newer)
1421

15-
Example:
22+
Required properties on Meson8b and newer:
23+
- clock-names: Should contain the following:
24+
- "stmmaceth" - see stmmac.txt
25+
- "clkin0" - first parent clock of the internal mux
26+
- "clkin1" - second parent clock of the internal mux
27+
28+
29+
Example for Meson6:
1630

1731
ethmac: ethernet@c9410000 {
1832
compatible = "amlogic,meson6-dwmac", "snps,dwmac";
@@ -23,3 +37,18 @@ Example:
2337
clocks = <&clk81>;
2438
clock-names = "stmmaceth";
2539
}
40+
41+
Example for GXBB:
42+
ethmac: ethernet@c9410000 {
43+
compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
44+
reg = <0x0 0xc9410000 0x0 0x10000>,
45+
<0x0 0xc8834540 0x0 0x8>;
46+
interrupts = <0 8 1>;
47+
interrupt-names = "macirq";
48+
clocks = <&clkc CLKID_ETH>,
49+
<&clkc CLKID_FCLK_DIV2>,
50+
<&clkc CLKID_MPLL2>;
51+
clock-names = "stmmaceth", "clkin0", "clkin1";
52+
phy-mode = "rgmii";
53+
status = "disabled";
54+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= Amlogic eFuse device tree bindings =
2+
3+
Required properties:
4+
- compatible: should be "amlogic,meson-gxbb-efuse"
5+
6+
= Data cells =
7+
Are child nodes of eFuse, bindings of which as described in
8+
bindings/nvmem/nvmem.txt
9+
10+
Example:
11+
12+
efuse: efuse {
13+
compatible = "amlogic,meson-gxbb-efuse";
14+
#address-cells = <1>;
15+
#size-cells = <1>;
16+
17+
sn: sn@14 {
18+
reg = <0x14 0x10>;
19+
};
20+
21+
eth_mac: eth_mac@34 {
22+
reg = <0x34 0x10>;
23+
};
24+
25+
bid: bid@46 {
26+
reg = <0x46 0x30>;
27+
};
28+
};
29+
30+
= Data consumers =
31+
Are device nodes which consume nvmem data cells.
32+
33+
For example:
34+
35+
eth_mac {
36+
...
37+
nvmem-cells = <&eth_mac>;
38+
nvmem-cell-names = "eth_mac";
39+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* Amlogic USB2 PHY
2+
3+
Required properties:
4+
- compatible: Depending on the platform this should be one of:
5+
"amlogic,meson8b-usb2-phy"
6+
"amlogic,meson-gxbb-usb2-phy"
7+
- reg: The base address and length of the registers
8+
- #phys-cells: should be 0 (see phy-bindings.txt in this directory)
9+
- clocks: phandle and clock identifier for the phy clocks
10+
- clock-names: "usb_general" and "usb"
11+
12+
Optional properties:
13+
- resets: reference to the reset controller
14+
- phy-supply: see phy-bindings.txt in this directory
15+
16+
17+
Example:
18+
19+
usb0_phy: usb_phy@0 {
20+
compatible = "amlogic,meson-gxbb-usb2-phy";
21+
#phy-cells = <0>;
22+
reg = <0x0 0x0 0x0 0x20>;
23+
resets = <&reset RESET_USB_OTG>;
24+
clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
25+
clock-names = "usb_general", "usb";
26+
phy-supply = <&usb_vbus>;
27+
};

‎Documentation/devicetree/bindings/usb/dwc2.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Required properties:
1010
- "rockchip,rk3288-usb", "rockchip,rk3066-usb", "snps,dwc2": for rk3288 Soc;
1111
- "lantiq,arx100-usb": The DWC2 USB controller instance in Lantiq ARX SoCs;
1212
- "lantiq,xrx200-usb": The DWC2 USB controller instance in Lantiq XRX SoCs;
13+
- "amlogic,meson8b-usb": The DWC2 USB controller instance in Amlogic Meson8b SoCs;
14+
- "amlogic,meson-gxbb-usb": The DWC2 USB controller instance in Amlogic S905 SoCs;
1315
- snps,dwc2: A generic DWC2 USB controller with default parameters.
1416
- reg : Should contain 1 register range (address and length)
1517
- interrupts : Should contain 1 interrupt

‎arch/arm/boot/dts/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \
745745
sun4i-a10-pcduino2.dtb \
746746
sun4i-a10-pov-protab2-ips9.dtb
747747
dtb-$(CONFIG_MACH_SUN5I) += \
748+
ntc-gr8-evb.dtb \
748749
sun5i-a10s-auxtek-t003.dtb \
749750
sun5i-a10s-auxtek-t004.dtb \
750751
sun5i-a10s-mk802.dtb \

‎arch/arm/boot/dts/integratorap.dts‎

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
2020
};
2121

22-
/* 24 MHz chrystal on the core module */
22+
/* 24 MHz chrystal on the Integrator/AP development board */
2323
xtal24mhz: xtal24mhz@24M {
2424
#clock-cells = <0>;
2525
compatible = "fixed-clock";
@@ -39,6 +39,34 @@
3939
#clock-cells = <0>;
4040
compatible = "fixed-clock";
4141
clock-frequency = <14745600>;
42+
clocks = <&xtal24mhz>;
43+
};
44+
45+
core-module@10000000 {
46+
/* 24 MHz chrystal on the core module */
47+
cm24mhz: cm24mhz@24M {
48+
#clock-cells = <0>;
49+
compatible = "fixed-clock";
50+
clock-frequency = <24000000>;
51+
};
52+
53+
/* Oscillator on the core module, clocks the CPU core */
54+
cmosc: cmosc@24M {
55+
compatible = "arm,syscon-icst525-integratorap-cm";
56+
#clock-cells = <0>;
57+
lock-offset = <0x14>;
58+
vco-offset = <0x08>;
59+
clocks = <&cm24mhz>;
60+
};
61+
62+
/* Auxilary oscillator on the core module, 32.369MHz at boot */
63+
auxosc: auxosc@24M {
64+
compatible = "arm,syscon-icst525";
65+
#clock-cells = <0>;
66+
lock-offset = <0x14>;
67+
vco-offset = <0x1c>;
68+
clocks = <&cm24mhz>;
69+
};
4270
};
4371

4472
syscon {
@@ -47,6 +75,27 @@
4775
interrupt-parent = <&pic>;
4876
/* These are the logical module IRQs */
4977
interrupts = <9>, <10>, <11>, <12>;
78+
79+
/*
80+
* SYSCLK clocks PCIv3 bridge, system controller and the
81+
* logic modules.
82+
*/
83+
sysclk: apsys@24M {
84+
compatible = "arm,syscon-icst525-integratorap-sys";
85+
#clock-cells = <0>;
86+
lock-offset = <0x1c>;
87+
vco-offset = <0x04>;
88+
clocks = <&xtal24mhz>;
89+
};
90+
91+
/* One-bit control for the PCI bus clock (33 or 25 MHz) */
92+
pciclk: pciclk@24M {
93+
compatible = "arm,syscon-icst525-integratorap-pci";
94+
#clock-cells = <0>;
95+
lock-offset = <0x1c>;
96+
vco-offset = <0x04>;
97+
clocks = <&xtal24mhz>;
98+
};
5099
};
51100

52101
timer0: timer@13000000 {

‎arch/arm/boot/dts/integratorcp.dts‎

Lines changed: 63 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,37 @@
5858

5959
core-module@10000000 {
6060
/* 24 MHz chrystal on the core module */
61-
xtal24mhz: xtal24mhz@24M {
61+
cm24mhz: cm24mhz@24M {
6262
#clock-cells = <0>;
6363
compatible = "fixed-clock";
6464
clock-frequency = <24000000>;
6565
};
6666

67-
/*
68-
* External oscillator on the core module, usually used
69-
* to drive video circuitry. Driven from the 24MHz clock.
70-
*/
71-
auxosc: cm_aux_osc@25M {
67+
/* Oscillator on the core module, clocks the CPU core */
68+
cmcore: cmosc@24M {
69+
compatible = "arm,syscon-icst525-integratorcp-cm-core";
70+
#clock-cells = <0>;
71+
lock-offset = <0x14>;
72+
vco-offset = <0x08>;
73+
clocks = <&cm24mhz>;
74+
};
75+
76+
/* Oscillator on the core module, clocks the memory bus */
77+
cmmem: cmosc@24M {
78+
compatible = "arm,syscon-icst525-integratorcp-cm-mem";
79+
#clock-cells = <0>;
80+
lock-offset = <0x14>;
81+
vco-offset = <0x08>;
82+
clocks = <&cm24mhz>;
83+
};
84+
85+
/* Auxilary oscillator on the core module, clocks the CLCD */
86+
auxosc: auxosc@24M {
87+
compatible = "arm,syscon-icst525";
7288
#clock-cells = <0>;
73-
compatible = "arm,integrator-cm-auxosc";
74-
clocks = <&xtal24mhz>;
89+
lock-offset = <0x14>;
90+
vco-offset = <0x1c>;
91+
clocks = <&cm24mhz>;
7592
};
7693

7794
/* The KMI clock is the 24 MHz oscillator divided to 8MHz */
@@ -80,7 +97,7 @@
8097
compatible = "fixed-factor-clock";
8198
clock-div = <3>;
8299
clock-mult = <1>;
83-
clocks = <&xtal24mhz>;
100+
clocks = <&cm24mhz>;
84101
};
85102

86103
/* The timer clock is the 24 MHz oscillator divided to 1MHz */
@@ -89,7 +106,7 @@
89106
compatible = "fixed-factor-clock";
90107
clock-div = <24>;
91108
clock-mult = <1>;
92-
clocks = <&xtal24mhz>;
109+
clocks = <&cm24mhz>;
93110
};
94111
};
95112

@@ -209,7 +226,42 @@
209226
reg = <0xC0000000 0x1000>;
210227
interrupts = <22>;
211228
clocks = <&auxosc>, <&pclk>;
212-
clock-names = "clcd", "apb_pclk";
229+
clock-names = "clcdclk", "apb_pclk";
230+
231+
port {
232+
/*
233+
* The VGA connected is implemented with a
234+
* THS8134A triple DAC that can be run in 24bit
235+
* or 16bit RGB mode.
236+
*/
237+
clcd_pads: endpoint {
238+
remote-endpoint = <&clcd_panel>;
239+
arm,pl11x,tft-r0g0b0-pads = <1 7 13>;
240+
};
241+
};
242+
243+
panel {
244+
compatible = "panel-dpi";
245+
246+
port {
247+
clcd_panel: endpoint {
248+
remote-endpoint = <&clcd_pads>;
249+
};
250+
};
251+
252+
/* Standard 640x480 VGA timings */
253+
panel-timing {
254+
clock-frequency = <25175000>;
255+
hactive = <640>;
256+
hback-porch = <48>;
257+
hfront-porch = <16>;
258+
hsync-len = <96>;
259+
vactive = <480>;
260+
vback-porch = <33>;
261+
vfront-porch = <10>;
262+
vsync-len = <2>;
263+
};
264+
};
213265
};
214266
};
215267
};

0 commit comments

Comments
 (0)