Hi Geert, > cpu: cpu { > device_type = "cpu"; > compatible = "cbm,6510", "mos,6502"; I don't think mos,6502 will work. You will lose the data port at $00/$01 and can't configure memory then. > clock-frequency = <985000>; Can't this be derived from some other clock? > sid: sound@d400 { > reg = <0xd400 0x400>; > compatible = "cbm,6581", "cbm,sid"; > }; Actually, this file should be a DTSI and VIC, SID, and CIA would need to be defined in the DTS file. Different C64 models have different versions of these chips. > iec { > compatible = "cbm,c64-iec-bus"; > > cbm,atn-gpios = <&cia2 3 GPIO_ACTIVE_LOW>; > cbm,clock-out-gpios = <&cia2 4 GPIO_ACTIVE_LOW>; > cbm,data-out-gpios = <&cia2 5 GPIO_ACTIVE_LOW>; > cbm,clock-in-gpios = <&cia2 6 GPIO_ACTIVE_LOW>; > cbm,data-in-gpios = <&cia2 7 GPIO_ACTIVE_LOW>; > }; The user port has lots of GPIOs, too :D And the tape port... And you found out that CIA2 uses NMI already. I spotted that, too. Geez, since when do I have too much time ;) Happy hacking, Wolfram
Attachment:
signature.asc
Description: PGP signature