diff mbox series

[17/17] ARM: dts: r8a7742: Add RWDT node

Message ID 1589555337-5498-18-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
State Not Applicable
Headers show
Series RZ/G1H describe I2C, IIC, MMC0, SATA, AVB, RWDT and APMU nodes | expand

Commit Message

Prabhakar May 15, 2020, 3:08 p.m. UTC
Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
RZ/G1H (r8a7742) SoC.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7742.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Wolfram Sang May 17, 2020, 9:08 p.m. UTC | #1
On Fri, May 15, 2020 at 04:08:57PM +0100, Lad Prabhakar wrote:
> Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> RZ/G1H (r8a7742) SoC.
> 
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

The DTS change looks fine, I checked it against similar SoCs (like the
previous patched). So, for that:

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

However, just to make sure, have you checked the WDT (especially reboot)
with SMP and multiple CPU cores enabled? Some early Gen2 SoCs had issues
there.
Lad, Prabhakar May 18, 2020, 9:16 a.m. UTC | #2
Hi Wolfram,

On Sun, May 17, 2020 at 10:08 PM Wolfram Sang <wsa@the-dreams.de> wrote:
>
> On Fri, May 15, 2020 at 04:08:57PM +0100, Lad Prabhakar wrote:
> > Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> > RZ/G1H (r8a7742) SoC.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> The DTS change looks fine, I checked it against similar SoCs (like the
> previous patched). So, for that:
>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
>
Thank you for review.

> However, just to make sure, have you checked the WDT (especially reboot)
> with SMP and multiple CPU cores enabled? Some early Gen2 SoCs had issues
> there.
>
Its similar to as seen on Rcar-H2 where just the A15 cores are up and
A7 cores fail to boot. Attached is the boot log where reboot works as
expected with all A15 core up. Although I have tested the internal
release based on 3.10 where all the cores are up which used bootarg
apmu=multicluster (https://patchwork.kernel.org/patch/3948791/). So
there is some work involved to get all the A7's up and running.


Cheers,
--Prabhakar
iW-RainboW-G21M SPI_LOADER V0.31 2015.11.10                                  
 DEVICE SST25VF016B                                                          
                                                                             
                                                                             
U-Boot 2013.01.01-gcb82c56-dirty (Aug 18 2016 - 10:13:48)
                                        
CPU: Renesas Electronics R8A7742 rev 3.0
Board: RZ/G1H iW-RainboW-G21M-Q7        
                                        
DRAM:  2 GiB                            
MMC:   sh-sdhi: 0, sh_mmcif: 1
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial

Board Info:
        BSP Version     : iW-PREXZ-SC-01-R2.0-REL1.0-Linux3.10.31
        SOM Version     : iW-PREXZ-AP-01-R2.0

Net:   ether_avb
Hit any key to stop autoboot:  0 
iWave-G21M >boot
ether_avb Waiting for PHY auto negotiation to complete... done
ether_avb: 1000Base /Full
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.10.10
ether_avb:3 is connected to ether_avb.  Reconnecting to ether_avb
ether_avb Waiting for PHY auto negotiation to complete... done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.10.1; our IP address is 192.168.10.10
Filename 'g1h/uImage'.
Load address: 0x40007fc0
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########
         647.5 KiB/s
done
Bytes transferred = 4927976 (4b31e8 hex)
ether_avb:3 is connected to ether_avb.  Reconnecting to ether_avb
ether_avb Waiting for PHY auto negotiation to complete... done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.10.1; our IP address is 192.168.10.10
Filename 'g1h/r8a7742-iwg21d-q7.dtb'.
Load address: 0x40f00000
Loading: T ###
         4.9 KiB/s
done
Bytes transferred = 29675 (73eb hex)
## Booting kernel from Legacy Image at 40007fc0 ...
   Image Name:   Linux-5.7.0-rc3-00058-g857bcc07a
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4927912 Bytes = 4.7 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 40f00000
   Booting using the fdt blob at 0x40f00000
   XIP Kernel Image ... OK
OK
   Loading Device Tree to 41ef5000, end 41eff3ea ... OK
Unable to update property <NULL>:mac-address, err=FDT_ERR_BADPATH
Unable to update property <NULL>:local-mac-address, err=FDT_ERR_BADPATH
Unable to update property <NULL>:mac-address, err=FDT_ERR_BADPATH
Unable to update property <NULL>:local-mac-address, err=FDT_ERR_BADPATH
Unable to update property /iwg21m_q7_common:som-rev, err=FDT_ERR_NOTFOUND
Unable to update property /iwg21m_q7_common:vin0-ov5640, err=FDT_ERR_NOTFOUND
Unable to update property /iwg21m_q7_common:vin1-ov5640, err=FDT_ERR_NOTFOUND
Unable to update property /iwg21m_q7_common:vin2-ov5640, err=FDT_ERR_NOTFOUND
Unable to update property /iwg21m_q7_common:vin3-ov5640, err=FDT_ERR_NOTFOUND
Unable to update property /iwg21m_q7_common:vin0-status, err=FDT_ERR_NOTFOUND
Unable to update property /ethernet@e6800000:status, err=FDT_ERR_NOTFOUND
Unable to update property /pfc@e6060000:pinctrl-1, err=FDT_ERR_NOTFOUND
Unable to update property /pfc@e6060000:pinctrl-2, err=FDT_ERR_NOTFOUND

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.0-rc3-00058-g857bcc07ad1e-dirty (prasmi@prasmi) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04), GNU ld (GNU Binutils for Ubuntu) 2.30) #223 SMP Fri May 15 18:11:09 0
[    0.000000] CPU: ARMv7 Processor [413fc0f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: iWave Systems RainboW-G21D-Qseven board based on RZ/G1H
[    0.000000] OF: fdt: Ignoring memory block 0x200000000 - 0x240000000
[    0.000000] printk: debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 256 MiB at 0x70000000
[    0.000000] cma: Reserved 64 MiB at 0x6c000000
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 1264 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 161792 pages, LIFO batch:31
[    0.000000]   HighMem zone: 100352 pages, LIFO batch:31
[    0.000000] percpu: Embedded 19 pages/cpu s47500 r8192 d22132 u77824
[    0.000000] pcpu-alloc: s47500 r8192 d22132 u77824 alloc=19*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260880
[    0.000000] Kernel command line: console=ttySC2,115200n8 earlyprintk ignore_loglevel ip=dhcp vmalloc=384M rw root=/dev/nfs nfsroot=192.168.10.1:/mnt/g1h,vers=4,tcp apmu=multicluster
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 698984K/1048576K available (7168K kernel code, 645K rwdata, 2556K rodata, 1024K init, 272K bss, 21912K reserved, 327680K cma-reserved, 73728K highmem)
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x298/0x490 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 10.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000004] sched_clock: 56 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.000013] Switching to timer-based delay loop, resolution 100ns
[    0.000351] Console: colour dummy device 80x30
[    0.000382] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=100000)
[    0.000392] pid_max: default: 32768 minimum: 301
[    0.000535] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000548] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001015] CPU: Testing write buffer coherency: ok
[    0.001041] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.001241] cpu_capacity: missing /cpus/cpu@100 raw capacity
[    0.001248] cpu_capacity: partial information: fallback to 1024 for all CPUs
[    0.001303] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001919] Setting up static identity map for 0x40100000 - 0x40100060
[    0.001995] rcu: Hierarchical SRCU implementation.
[    0.002261] Detected Renesas RZ/G1 r8a7742 ES3.0
[    0.002838] smp: Bringing up secondary CPUs ...
[    0.005006] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005015] CPU1: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.006100] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006109] CPU2: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.007200] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.007209] CPU3: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.007948] CPU4: failed to boot: -22
[    0.008699] CPU5: failed to boot: -22
[    0.009446] CPU6: failed to boot: -22
[    0.010236] CPU7: failed to boot: -22
[    0.010372] smp: Brought up 1 node, 4 CPUs
[    0.010380] SMP: Total of 4 processors activated (80.00 BogoMIPS).
[    0.010387] CPU: All CPU(s) started in SVC mode.
[    0.010974] devtmpfs: initialized
[    0.015160] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.015384] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015399] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.020137] pinctrl core: initialized pinctrl subsystem
[    0.020788] thermal_sys: Registered thermal governor 'step_wise'
[    0.021194] NET: Registered protocol family 16
[    0.022202] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022985] No ATAGs?
[    0.023081] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.023091] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.025378] sh-pfc e6060000.pin-controller: r8a77420_pfc support registered
[    0.041108] vgaarb: loaded
[    0.041366] SCSI subsystem initialized
[    0.041515] libata version 3.00 loaded.
[    0.041660] usbcore: registered new interface driver usbfs
[    0.041694] usbcore: registered new interface driver hub
[    0.041784] usbcore: registered new device driver usb
[    0.042248] mc: Linux media interface: v0.10
[    0.042274] videodev: Linux video capture interface: v2.00
[    0.042328] pps_core: LinuxPPS API ver. 1 registered
[    0.042335] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.042350] PTP clock support registered
[    0.042881] Advanced Linux Sound Architecture Driver Initialized.
[    0.043502] clocksource: Switched to clocksource arch_sys_counter
[    0.622434] NET: Registered protocol family 2
[    0.622767] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.622787] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.622834] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.622924] TCP: Hash tables configured (established 8192 bind 8192)
[    0.623017] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.623043] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.623183] NET: Registered protocol family 1
[    0.623550] RPC: Registered named UNIX socket transport module.
[    0.623558] RPC: Registered udp transport module.
[    0.623564] RPC: Registered tcp transport module.
[    0.623570] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.623580] PCI: CLS 0 bytes, default 64
[    0.624215] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.624391] hw perfevents: /pmu-1: failed to probe PMU!
[    0.624401] hw perfevents: /pmu-1: failed to register PMU devices!
[    0.625672] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.626110] NFS: Registering the id_resolver key type
[    0.626134] Key type id_resolver registered
[    0.626140] Key type id_legacy registered
[    0.626153] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.626244] bounce: pool size: 64 pages
[    0.626276] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.626284] io scheduler mq-deadline registered
[    0.626291] io scheduler kyber registered
[    0.627694] gpio_rcar e6050000.gpio: driving 32 GPIOs
[    0.627994] gpio_rcar e6051000.gpio: driving 30 GPIOs
[    0.628279] gpio_rcar e6052000.gpio: driving 30 GPIOs
[    0.628555] gpio_rcar e6053000.gpio: driving 32 GPIOs
[    0.628829] gpio_rcar e6054000.gpio: driving 32 GPIOs
[    0.629102] gpio_rcar e6055000.gpio: driving 32 GPIOs
[    0.629817] pci-rcar-gen2 ee0b0000.pci: PCI: bus0 revision 11
[    0.629931] pci-rcar-gen2 ee0b0000.pci: PCI host bridge to bus 0000:01
[    0.629942] pci_bus 0000:01: root bus resource [mem 0xee0a0000-0xee0a10ff]
[    0.629951] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[    0.629981] pci 0000:01:00.0: [1033:0000] type 00 class 0x060000
[    0.630007] pci 0000:01:00.0: reg 0x10: [mem 0xee0b0800-0xee0b0bff]
[    0.630019] pci 0000:01:00.0: reg 0x14: [mem 0x40000000-0x7fffffff pref]
[    0.630275] pci 0000:01:01.0: [1033:0035] type 00 class 0x0c0310
[    0.630299] pci 0000:01:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    0.630363] pci 0000:01:01.0: supports D1 D2
[    0.630371] pci 0000:01:01.0: PME# supported from D0 D1 D2 D3hot
[    0.630567] pci 0000:01:02.0: [1033:00e0] type 00 class 0x0c0320
[    0.630590] pci 0000:01:02.0: reg 0x10: [mem 0x00000000-0x000000ff]
[    0.630653] pci 0000:01:02.0: supports D1 D2
[    0.630660] pci 0000:01:02.0: PME# supported from D0 D1 D2 D3hot
[    0.631807] PCI: bus1: Fast back to back transfers disabled
[    0.631818] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.631836] pci 0000:01:01.0: BAR 0: assigned [mem 0xee0a0000-0xee0a0fff]
[    0.631848] pci 0000:01:02.0: BAR 0: assigned [mem 0xee0a1000-0xee0a10ff]
[    0.631890] pci 0000:01:01.0: enabling device (0140 -> 0142)
[    0.631926] pci 0000:01:02.0: enabling device (0140 -> 0142)
[    0.641511] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.642431] SuperH (H)SCI(F) driver initialized
[    0.642848] e6c60000.serial: ttySC2 at MMIO 0xe6c60000 (irq = 76, base_baud = 0) is a scifa
[    1.505342] printk: console [ttySC2] enabled
[    1.510110] e6ce0000.serial: ttySC4 at MMIO 0xe6ce0000 (irq = 77, base_baud = 0) is a scifb
[    1.523630] libphy: Fixed MDIO Bus: probed
[    1.528035] CAN device driver interface
[    1.533083] ravb e6800000.ethernet: no valid MAC address supplied, using a random one
[    1.541248] libphy: ravb_mii: probed
[    1.546374] ravb e6800000.ethernet eth0: Base address at 0xe6800000, f6:35:bc:36:75:d3, IRQ 75.
[    1.555246] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.561763] ehci-pci: EHCI PCI platform driver
[    1.566336] ehci-pci 0000:01:02.0: EHCI Host Controller
[    1.571571] ehci-pci 0000:01:02.0: new USB bus registered, assigned bus number 1
[    1.579110] ehci-pci 0000:01:02.0: irq 107, io mem 0xee0a1000
[    1.613503] ehci-pci 0000:01:02.0: USB 2.0 started, EHCI 1.00
[    1.619766] hub 1-0:1.0: USB hub found
[    1.623549] hub 1-0:1.0: 1 port detected
[    1.627831] ehci-platform: EHCI generic platform driver
[    1.633164] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.639358] ohci-pci: OHCI PCI platform driver
[    1.643889] ohci-pci 0000:01:01.0: OHCI PCI host controller
[    1.649464] ohci-pci 0000:01:01.0: new USB bus registered, assigned bus number 2
[    1.656934] ohci-pci 0000:01:01.0: irq 107, io mem 0xee0a0000
[    1.754022] hub 2-0:1.0: USB hub found
[    1.757790] hub 2-0:1.0: 1 port detected
[    1.762044] ohci-platform: OHCI generic platform driver
[    1.767706] xhci-hcd ee000000.usb: xHCI Host Controller
[    1.772936] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 3
[    1.795359] xhci-hcd ee000000.usb: hcc params 0x014051ce hci version 0x100 quirks 0x0000000000830410
[    1.804522] xhci-hcd ee000000.usb: irq 106, io mem 0xee000000
[    1.810914] hub 3-0:1.0: USB hub found
[    1.814697] hub 3-0:1.0: 1 port detected
[    1.818860] xhci-hcd ee000000.usb: xHCI Host Controller
[    1.824096] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 4
[    1.831487] xhci-hcd ee000000.usb: Host supports USB 3.0 SuperSpeed
[    1.837819] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.846358] hub 4-0:1.0: USB hub found
[    1.850125] hub 4-0:1.0: 1 port detected
[    1.854508] usbcore: registered new interface driver usb-storage
[    1.860912] renesas_usbhs e6590000.usb: host probed
[    1.865809] renesas_usbhs e6590000.usb: no transceiver found
[    1.871560] renesas_usbhs e6590000.usb: gadget probed
[    1.876682] renesas_usbhs e6590000.usb: probed
[    1.881628] i2c /dev entries driver
[    1.885986] i2c-rcar e6530000.i2c: probed
[    1.893044] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.897963] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.943520] sh_mmcif ee220000.mmc: Chip version 0x0003, clock rate 12MHz
[    1.950761] usbcore: registered new interface driver usbhid
[    1.956335] usbhid: USB HID core driver
[    1.963818] sgtl5000 0-000a: sgtl5000 revision 0x11
[    1.976816] rcar_sound ec500000.sound: probed
[    1.981527] NET: Registered protocol family 10
[    1.986614] Segment Routing with IPv6
[    1.990318] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.996688] NET: Registered protocol family 17
[    2.001130] can: controller area network core (rev 20170425 abi 9)
[    2.007356] NET: Registered protocol family 29
[    2.011794] can: raw protocol (rev 20170425)
[    2.016066] can: broadcast manager protocol (rev 20170425 t)
[    2.021721] can: netlink gateway (rev 20190810) max_hops=1
[    2.027268] Key type dns_resolver registered
[    2.031658] Registering SWP/SWPB emulation handler
[    2.049452] renesas_irqc e61c0000.interrupt-controller: driving 4 irqs
[    2.057368] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    2.062267] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    2.067350] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    2.123791] random: fast init done
[    2.183730] sh_mobile_sdhi ee140000.sd: mmc1 base at 0xee140000, max clock rate 97 MHz
[    2.194666] asoc-simple-card sound: sgtl5000 <-> ec500000.sound mapping ok
[    2.263517] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:03, irq=POLL)
[    2.284401] hub 1-1:1.0: USB hub found
[    2.288213] hub 1-1:1.0: 2 ports detected
[    2.461776] mmc0: new high speed MMC card at address 0001
[    2.467624] mmcblk0: mmc0:0001 MMC04G 3.52 GiB 
[    2.472282] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[    2.478353] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[    2.486474]  mmcblk0: p1
[    6.484450] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    6.513521] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.543501] Sending DHCP requests ., OK
[    7.607358] IP-Config: Got DHCP answer from 192.168.10.1, my address is 192.168.10.131
[    7.615282] IP-Config: Complete:
[    7.618506]      device=eth0, hwaddr=f6:35:bc:36:75:d3, ipaddr=192.168.10.131, mask=255.255.255.0, gw=192.168.10.1
[    7.628853]      host=192.168.10.131, domain=example.org, nis-domain=(none)
[    7.635814]      bootserver=192.168.10.1, rootserver=192.168.10.1, rootpath=
[    7.635817]      nameserver0=192.168.10.1
[    7.647172] ALSA device list:
[    7.650136]   #0: rsnd-dai.0-sgtl5000
[    7.653937] SDHI2 Vcc: disabling
[    7.657163] SDHI2 VccQ: disabling
[    7.689869] VFS: Mounted root (nfs4 filesystem) on device 0:14.
[    7.696616] devtmpfs: mounted
[    7.700259] Freeing unused kernel memory: 1024K
[    7.753689] Run /sbin/init as init process
[    7.757778]   with arguments:
[    7.760738]     /sbin/init
[    7.763438]     earlyprintk
[    7.766239]   with environment:
[    7.769373]     HOME=/
[    7.771726]     TERM=linux
[    7.774446]     apmu=multicluster
INIT: version 2.88 booting
Framebuffer /dev/fb0 not detected
Boot splashscreen disabled
Starting udev
[    8.419998] udevd[171]: starting version 3.2.2
[    8.453832] random: udevd: uninitialized urandom read (16 bytes read)
[    8.463252] random: udevd: uninitialized urandom read (16 bytes read)
[    8.473886] random: udevd: uninitialized urandom read (16 bytes read)
[    8.600827] udevd[172]: starting eudev-3.2.2
hwclock: can't open '/dev/misc/rtc': No such file or directory
Wed Apr 15 18:16:48 UTC 2020
hwclock: can't open '/dev/misc/rtc': No such file or directory
[    9.714098] urandom_read: 1 callbacks suppressed
[    9.714102] random: dd: uninitialized urandom read (512 bytes read)
INIT: Entering runlevel: 5
Configuring network interfaces... RTNETLINK answers: File exists
[   10.051752] random: crng init done
Successfully initialized wpa_supplicant
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'
wlan0: Unsupported driver 'nl80211'
Cannot find device "wlan0"
ifup skipped for nfsroot interface eth0
run-parts: /etc/network/if-pre-up.d/nfsroot exited with code 1
Starting system message bus: dbus.
PVR_SRVKM_PARAMS=
Module pvrsrvkm failed to load. Retrying.
Running /sbin/depmod
[   10.841416] Mass Storage Function, version: 2009/09/11
[   10.846619] LUN: removable file: (no medium)
[   10.850994] LUN: removable file: /dev/mmcblk0
[   10.855360] Number of LUNs=1
[   10.858338] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[   10.865462] g_mass_storage gadget: userspace failed to provide iSerialNumber
[   10.872501] g_mass_storage gadget: g_mass_storage ready
Simple mixer control 'DVC In',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 8388607
  Front Left: Capture 4194304 [50%]
  Front Right: Capture 4194304 [50%]
Simple mixer control 'DVC Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 8388607
  Mono:
  Front Left: Playback 4194304 [50%]
  Front Right: Playback 4194304 [50%]
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
Starting atd: OK
Starting bluetooth: bluetoothd.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Simple mixer control 'DVC In',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 8388607
  Front Left: Capture 4194304 [50%]
  Front Right: Capture 4194304 [50%]
Simple mixer control 'DVC Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 8388607
  Mono:
  Front Left: Playback 4194304 [50%]
  Front Right: Playback 4194304 [50%]
Starting PulseAudio
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 192
  Mono:
  Front Left: Playback 135 [70%]
  Front Right: Playback 135 [70%]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [12.00dB] [on]
  Front Right: Playback 127 [100%] [12.00dB] [on]
Simple mixer control 'Mic',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 2 [67%] [30.00dB]
/etc/rc5.d/S20pulseaudio: line 19: pulseaudio: command not found
[ ok ]rting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Starting crond: OK
umount: /mnt/.psplash: not mounted.

BSP: RZG1H/iWave/2.1.4
LSI: RZG1H
Version: 2.1.4
iwg21m login: root
Simple mixer control 'DVC In',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 8388607
  Front Left: Capture 4194304 [50%]
  Front Right: Capture 4194304 [50%]
Simple mixer control 'DVC Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 8388607
  Mono:
  Front Left: Playback 4194304 [50%]
  Front Right: Playback 4194304 [50%]
root@iwg21m:~# 
root@iwg21m:~# 
root@iwg21m:~# 
root@iwg21m:~# reboot -p

Broadcast message from root@iwg21m (ttySC2) (Wed Apr 15 18:17:07 2020):

INIT: Sending processes the TERM signal
Stopping Weston
Stopping ohci-pci
rmmod: ERROR: Module ohci_pci is builtin.
Stopping ohci-hcd
rmmod: ERROR: Module ohci_hcd is builtin.
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 424)
dropbear.
[ ok ]pping Avahi mDNS/DNS-SD Daemon: avahi-daemon
Stopping atd: OK
Stopping bluetooth: bluetoothd.
Stopping system message bus: dbus.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Framebuffer /dev/fb0 not detected
Boot splashscreen disabled
Simple mixer control 'DVC In',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 8388607
  Front Left: Capture 4194304 [50%]
  Front Right: Capture 4194304 [50%]
Simple mixer control 'DVC Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 8388607
  Mono:
  Front Left: Playback 4194304 [50%]
  Front Right: Playback 4194304 [50%]
Stoping PulseAudio
Stopping crond: OK
Stopping rpcbind daemon...
done.
modprobe: FATAL: Module dc_linuxfb not found.
Warning: Could not unload dc_linuxfb
PVRSRVDebugLogDeinitUM 973: create key failed
modprobe: FATAL: Module pvrsrvkm not found.
Couldn't unload modules
not deconfiguring network interfaces: network file systems still mounted.
Sending all processes the TERM signal...
logout
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
Rebooting... [   37.924556] reboot: Restarting system
 
iW-RainboW-G21M SPI_LOADER V0.31 2015.11.10
 DEVICE SST25VF016B


U-Boot 2013.01.01-gcb82c56-dirty (Aug 18 2016 - 10:13:48)

CPU: Renesas Electronics R8A7742 rev 3.0
Board: RZ/G1H iW-RainboW-G21M-Q7

DRAM:  2 GiB
MMC:   sh-sdhi: 0, sh_mmcif: 1
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial

Board Info:
        BSP Version     : iW-PREXZ-SC-01-R2.0-REL1.0-Linux3.10.31
        SOM Version     : iW-PREXZ-AP-01-R2.0

Net:   ether_avb
Hit any key to stop autoboot:  0 
iWave-G21M >
Wolfram Sang May 18, 2020, 9:28 a.m. UTC | #3
> Its similar to as seen on Rcar-H2 where just the A15 cores are up and
> A7 cores fail to boot. Attached is the boot log where reboot works as
> expected with all A15 core up. Although I have tested the internal
> release based on 3.10 where all the cores are up which used bootarg
> apmu=multicluster (https://patchwork.kernel.org/patch/3948791/). So
> there is some work involved to get all the A7's up and running.

Sounds good enough to me. Thanks for the heads up!
Geert Uytterhoeven May 18, 2020, 11:47 a.m. UTC | #4
Hi Prabhakar,

On Fri, May 15, 2020 at 5:10 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> RZ/G1H (r8a7742) SoC.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Thanks for your patch!

> --- a/arch/arm/boot/dts/r8a7742.dtsi
> +++ b/arch/arm/boot/dts/r8a7742.dtsi
> @@ -201,6 +201,16 @@
>                 #size-cells = <2>;
>                 ranges;
>
> +               rwdt: watchdog@e6020000 {
> +                       compatible = "renesas,r8a7742-wdt",
> +                                    "renesas,rcar-gen2-wdt";
> +                       reg = <0 0xe6020000 0 0x0c>;
> +                       clocks = <&cpg CPG_MOD 402>;
> +                       power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
> +                       resets = <&cpg 402>;
> +                       status = "disabled";

Missing "interrupts" property.

> +               };
> +
>                 gpio0: gpio@e6050000 {
>                         compatible = "renesas,gpio-r8a7742",
>                                      "renesas,rcar-gen2-gpio";

The rest looks fine, so with the above fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert
Lad, Prabhakar May 18, 2020, 12:27 p.m. UTC | #5
Hi Geert,

Thank you for the review.

On Mon, May 18, 2020 at 12:47 PM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>
> Hi Prabhakar,
>
> On Fri, May 15, 2020 at 5:10 PM Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> > Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> > RZ/G1H (r8a7742) SoC.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Thanks for your patch!
>
> > --- a/arch/arm/boot/dts/r8a7742.dtsi
> > +++ b/arch/arm/boot/dts/r8a7742.dtsi
> > @@ -201,6 +201,16 @@
> >                 #size-cells = <2>;
> >                 ranges;
> >
> > +               rwdt: watchdog@e6020000 {
> > +                       compatible = "renesas,r8a7742-wdt",
> > +                                    "renesas,rcar-gen2-wdt";
> > +                       reg = <0 0xe6020000 0 0x0c>;
> > +                       clocks = <&cpg CPG_MOD 402>;
> > +                       power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
> > +                       resets = <&cpg 402>;
> > +                       status = "disabled";
>
> Missing "interrupts" property.
>
"interrupts" property isn't used by rwdt driver  and can be dropped
from bindings file.

Cheers,
--Prabhakar

> > +               };
> > +
> >                 gpio0: gpio@e6050000 {
> >                         compatible = "renesas,gpio-r8a7742",
> >                                      "renesas,rcar-gen2-gpio";
>
> The rest looks fine, so with the above fixed:
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Gr{oetje,eeting}s,
>
>                         Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
Sergei Shtylyov May 18, 2020, 1:17 p.m. UTC | #6
Hello!

On 18.05.2020 15:27, Lad, Prabhakar wrote:

>>> Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
>>> RZ/G1H (r8a7742) SoC.
>>>
>>> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>>> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>>
>> Thanks for your patch!
>>
>>> --- a/arch/arm/boot/dts/r8a7742.dtsi
>>> +++ b/arch/arm/boot/dts/r8a7742.dtsi
>>> @@ -201,6 +201,16 @@
>>>                  #size-cells = <2>;
>>>                  ranges;
>>>
>>> +               rwdt: watchdog@e6020000 {
>>> +                       compatible = "renesas,r8a7742-wdt",
>>> +                                    "renesas,rcar-gen2-wdt";
>>> +                       reg = <0 0xe6020000 0 0x0c>;
>>> +                       clocks = <&cpg CPG_MOD 402>;
>>> +                       power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
>>> +                       resets = <&cpg 402>;
>>> +                       status = "disabled";
>>
>> Missing "interrupts" property.
>>
> "interrupts" property isn't used by rwdt driver  and can be dropped
> from bindings file.

    DT describes the hardware, not its driver's abilities.

> Cheers,
> --Prabhakar

MBR, Sergei
Lad, Prabhakar May 18, 2020, 1:23 p.m. UTC | #7
Hi Sergei,

On Mon, May 18, 2020 at 2:17 PM Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
>
> Hello!
>
> On 18.05.2020 15:27, Lad, Prabhakar wrote:
>
> >>> Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> >>> RZ/G1H (r8a7742) SoC.
> >>>
> >>> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> >>> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> >>
> >> Thanks for your patch!
> >>
> >>> --- a/arch/arm/boot/dts/r8a7742.dtsi
> >>> +++ b/arch/arm/boot/dts/r8a7742.dtsi
> >>> @@ -201,6 +201,16 @@
> >>>                  #size-cells = <2>;
> >>>                  ranges;
> >>>
> >>> +               rwdt: watchdog@e6020000 {
> >>> +                       compatible = "renesas,r8a7742-wdt",
> >>> +                                    "renesas,rcar-gen2-wdt";
> >>> +                       reg = <0 0xe6020000 0 0x0c>;
> >>> +                       clocks = <&cpg CPG_MOD 402>;
> >>> +                       power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
> >>> +                       resets = <&cpg 402>;
> >>> +                       status = "disabled";
> >>
> >> Missing "interrupts" property.
> >>
> > "interrupts" property isn't used by rwdt driver  and can be dropped
> > from bindings file.
>
>     DT describes the hardware, not its driver's abilities.
>
Agreed will add, I had followed it on similar lines of r8a7743/44.

Cheers,
--Prabhakar
Geert Uytterhoeven May 18, 2020, 3:45 p.m. UTC | #8
On Mon, May 18, 2020 at 3:23 PM Lad, Prabhakar
<prabhakar.csengg@gmail.com> wrote:
> On Mon, May 18, 2020 at 2:17 PM Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
> > On 18.05.2020 15:27, Lad, Prabhakar wrote:
> > >>> Add a device node for the Watchdog Timer (RWDT) controller on the Renesas
> > >>> RZ/G1H (r8a7742) SoC.
> > >>>
> > >>> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > >>> Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > >>
> > >> Thanks for your patch!
> > >>
> > >>> --- a/arch/arm/boot/dts/r8a7742.dtsi
> > >>> +++ b/arch/arm/boot/dts/r8a7742.dtsi
> > >>> @@ -201,6 +201,16 @@
> > >>>                  #size-cells = <2>;
> > >>>                  ranges;
> > >>>
> > >>> +               rwdt: watchdog@e6020000 {
> > >>> +                       compatible = "renesas,r8a7742-wdt",
> > >>> +                                    "renesas,rcar-gen2-wdt";
> > >>> +                       reg = <0 0xe6020000 0 0x0c>;
> > >>> +                       clocks = <&cpg CPG_MOD 402>;
> > >>> +                       power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
> > >>> +                       resets = <&cpg 402>;
> > >>> +                       status = "disabled";
> > >>
> > >> Missing "interrupts" property.
> > >>
> > > "interrupts" property isn't used by rwdt driver  and can be dropped
> > > from bindings file.
> >
> >     DT describes the hardware, not its driver's abilities.

Thanks for chiming in, Sergei!

> Agreed will add, I had followed it on similar lines of r8a7743/44.

Yeah. I know it's missing for a few other SoCs, too.

Gr{oetje,eeting}s,

                        Geert
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi
index da75767..ea39c20 100644
--- a/arch/arm/boot/dts/r8a7742.dtsi
+++ b/arch/arm/boot/dts/r8a7742.dtsi
@@ -201,6 +201,16 @@ 
 		#size-cells = <2>;
 		ranges;
 
+		rwdt: watchdog@e6020000 {
+			compatible = "renesas,r8a7742-wdt",
+				     "renesas,rcar-gen2-wdt";
+			reg = <0 0xe6020000 0 0x0c>;
+			clocks = <&cpg CPG_MOD 402>;
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 402>;
+			status = "disabled";
+		};
+
 		gpio0: gpio@e6050000 {
 			compatible = "renesas,gpio-r8a7742",
 				     "renesas,rcar-gen2-gpio";