Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Shark LED and I2C drivers



Hello,

On Thu, 29 Apr 2021 21:05:36 -0700
Jason Thorpe <thorpej%me.com@localhost> wrote:

> >> I've updated the patch for the config changes:
> >> 
> >> http://ftp.netbsd.org/pub/NetBSD/misc/jdc/shark/shark-iic-led.diff  
> > 
> > I have a slightly different version of this change merged into my
> > local tree… I’ve created a separate “sequoia” device_t node that
> > attaches at the “isa” OFW package, and then connect the
> > Shark-specific (and very Sequoia-dependent) “sharkiic” as a child
> > of “sequoia”.  “ofisa” is then also attached as a child of
> > “sequoia”.  

As promised I dusted off the R4 shark, here's what it looks like:
NetBSD 9.99.82 (CUERVO) #0: Fri Apr 30 13:30:18 EDT 2021
        ml@paddy:/disk/build/obj_shark/sys/arch/shark/compile/CUERVO
total memory = 98304 KB
avail memory = 90672 KB
timecounter: Timecounters tick every 15.625 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: SA-110 step S (SA-1 V4 core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 16KB/32B 32-way L1 VIVT Instruction cache
cpu0: 16KB/32B 32-way write-back L1 VIVT Data cache
ofbus0 (root): DNARD Rev. 4 (DEC,DNARD)
memory@e000000 at ofbus0 not configured
mmu at ofbus0 not configured
ofbus1 at ofbus0 (vlbus)
chipsfb0 at ofbus1 (display@it3b0): Chips & Technologies 65550 at 0x06800000
chipsfb0: 8 MB aperture, 2 MB VRAM at 0x06800000
wsdisplay0 at chipsfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
sequoia0 at ofbus1 (isa)
sharkiic0 at sequoia0
iic0 at sharkiic0: I2C bus
spdmem0 at iic0 addr 0x50
spdmem0: SDRAM, no parity or ECC, 64MB, 100MHz (PC-100)
spdmem0: 11 rows, 10 cols, 2 banks, 2 banks/chip, 10.0ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 3-20-20-50
spdmem0: voltage LvTTL (not 5V tolerant), refresh time 15.625us (self-refreshing)
spdmem1 at iic0 addr 0x51
spdmem1: SDRAM, no parity or ECC, 64MB, 133MHz (PC-133)
spdmem1: 12 rows, 9 cols, 1 banks, 4 banks/chip, 7.5ns cycle time
spdmem1: tAA-tRCD-tRP-tRAS: 3-23-23-45
spdmem1: voltage LvTTL (not 5V tolerant), refresh time 15.625us (self-refreshing)
ofisa0 at sequoia0 (isa)
dma-controller@i00 at ofisa0 not configured
interrupt-controller@i20 at ofisa0 not configured
timer@i40 at ofisa0 not configured
configuration@i15c at ofisa0 not configured
com0 at ofisa0 (serial@i3f8): ns16550a, 1-byte FIFO
lpt0 at ofisa0 (parallel@i378)
pckbc0 at ofisa0 (8042@i60)
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
power@i380 at ofisa0 not configured
gpio@i3e0 at ofisa0 not configured
mcclock0 at ofisa0 (rtc@i70): mc146818 compatible time-of-day clock
ofisascr0 at ofisa0 (scr@i24)
scr0 at ofisascr0
com1 at ofisa0 (ir@i2f8): ns16550a, 1-byte FIFO
cs0 at ofisa0 (ethernet@i300): CRUS,CS8900
cs0: CS8900 rev. F, address 08:00:2b:81:66:7b, media UTP
joy0 at ofisa0 (game@i201): ESST,game
joy0: joystick not connected
midi@i330 at ofisa0 not configured
ess0 at ofisa0 (sound@i220): ESST,es1887-codec
ess0: ESS Technology ES1887 [version 0x688b]
ess0: audio1 interrupting at irq 9
ess0: audio2 interrupting at irq 15
audio0 at ess0: playback, capture, full duplex
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for playback
audio0: slinear_le:16 2ch 44100Hz, blk 1760 bytes (9.9ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
opl0 at ess0: model OPL3
midi0 at opl0: ESS Yamaha OPL3
wdc0 at ofisa0 (ide@i1f0)
atabus0 at wdc0 channel 0
vlpci0 at ofbus1 (pci)
reg 0x83 08
vlpci_mem_vaddr f8200000
dma 8000000 0, 400000
memory window #1 at 08000000 size 00400000 flags 38
memory window #2 at 02000000 size 00100000 flags 90
memory window #3 at 00000000 size 00010000 flags 0
pci0 at vlpci0 bus 0
pci0: i/o space, memory space enabled
vendor 1106 product 0505 (host bridge, revision 0x03) at pci0 dev 0 function 0 not configured
ofrom0 at ofbus0 (flash@7000000): 0x7000000-0x707ffff
ofrom1 at ofbus0 (romcard@10000000): 0x10000000-0x10ffffff
ofbus2 at ofbus0 (cpus)
cpu@0 at ofbus2 not configured
udp at ofbus0 not configured
spl_masks[0]=ffffffff
spl_masks[1]=ffffffff
spl_masks[2]=ffffffff
spl_masks[3]=ffffffff
spl_masks[4]=ffffffff
spl_masks[5]=ffffbf5d
spl_masks[6]=ffff3d5d
spl_masks[7]=ffff3d45
entropy: WARNING: extracting entropy too early
clock: hz=64 stathz = 0 profhz = 0
timecounter: Timecounter "i8253" frequency 1193182 Hz quality 100
timecounter: Timecounter "clockinterrupt" frequency 64 Hz quality 0
aes: BearSSL aes_ct
aes_ccm: self-test passed
chacha: Portable C ChaCha
blake2s: self-test passed
boot device: cs0
root on cs0

I never found a combination of RAM modules that would give me 128MB,
but now I can at last see the differences in organization :)

Will try the LEDs stuff next.

have fun
Michael


Home | Main Index | Thread Index | Old Index