The NetBSD Project

CVS log for src/sys/arch/arm/dts/sun50i-a64.dtsi

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / dts

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Sun Nov 7 17:11:43 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.14: +2 -62 lines
Diff to previous 1.14 (colored) to selected 1.11.2.3 (colored)

arm: dts: adapt for dts-5.15

Revision 1.11.2.3 / (download) - annotate - [selected], Mon May 18 18:45:40 2020 UTC (3 years, 10 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.11.2.2: +10 -1 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Pull up following revision(s) (requested by riastradh in ticket #912):

	sys/arch/arm/dts/sun50i-a64.dtsi: revision 1.14
	sys/arch/evbarm/conf/GENERIC64: revision 1.116
	sys/arch/evbarm/conf/GENERIC64: revision 1.131
	sys/arch/arm/sunxi/sun50i_a64_ccu.c: revision 1.21
	sys/arch/arm/sunxi/sun50i_a64_ccu.c: revision 1.22
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.10
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.11
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.12
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.3
	sys/arch/arm/sunxi/sun8i_crypto.h: revision 1.1
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.4
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.5
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.6
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.7
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.8
	sys/arch/arm/sunxi/sun8i_crypto.c: revision 1.9
	sys/arch/arm/sunxi/files.sunxi: revision 1.67

Add crypto engine clock

Add SUNXI_CCU_NM_ROUND_DOWN to CE clock, fix pll parents to use 2X outputs

Add crypto engine block.

Draft driver for Allwinner Crypto Engine.
Found on, e.g., the Pinebook.

Only used for TRNG at the moment, but hooking it up to opencrypto(9)
shouldn't be too hard if anyone still cares about that these days.

The distribution of the alleged TRNG is very nonuniform distributed
seems to alternate between toward runs with exceptionally high
fractions of 0 bits and runs with exceptionally high fractions of 1
bits -- initially all my samples were mostly 0's, and then all my
samples were mostly 1's, and now I'm seeing more oscillation between
these runs.

So I've wired it up as RND_TYPE_UNKNOWN, not RND_TYPE_RNG (it will
immediately flunk our rngtest and be disabled), and I estimated it to
provide at most one bit of entropy per byte of data -- which may
still be optimistic.  I also added a sysctl node hw.sun8icryptoN.rng
to read out 1024-byte samples for analysis, and I left the driver
commented out in GENERIC64 for now.
(If anyone has contacts at Allwinner who can tell us about how the
alleged TRNG is supposed to work, please let me know!)

Reduce some duplicated bus_dma clutter.

Factor out some of the self-test logic used for debugging.

Add missing bus_dmamap_sync(POSTWRITE) while here.

Make sure ERESTART doesn't come flying out to userland.
I picked ERESTART to mean `all channels are occupied' because that's
what opencrypto(9) uses to decide whether to queue a request, but
it's not appropriate for sysctl(2) to return that.

Avoid a race between interruption and reacquisition of lock.
Otherwise, we would have leaked the memory in this case.

Tidy up comments.

Oops -- forgot to kmem_free.

Fix typo -- acknowledge interrupts _and_ errors.

Reduce entropy estimate for sun8icrypto TRNG.

NIST's SP800-90B entropy estimation tools put it at no more than .08
bits of entropy per byte of data(!), so estimate 100 bits of data per
bit of entropy.  This is probably not conservative enough -- the NIST
tools were written without knowledge of how this alleged TRNG works!
Knowledge of the physics of how the TRNG is supposed to work could
probably enable a better job at predicting the outputs.
While here, bump the size of data we can sample directly with sysctl
to 4096 bytes.

Enable sun8icrypto in GENERIC64.

But set its entropy estimate to zero until we have a better idea of
how it works.  Can't really hurt this way unless sun8icrypto is
maliciously dependent on all other inputs to the entropy pool, which
seems unlikely.

Fix (presently harmless) psato.

Don't overwrite cy_root_node; use cy_trng_node as intended.

Fix previous brainfart.

Don't use the uninitialized trng node as the root node -- derp.
Instead, use the root node as the root node, and initialize the trng
node here.

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:33 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.9.2.2: +38 -0 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored) to selected 1.11.2.3 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:28 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.9.2.1: +10 -1 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) to selected 1.11.2.3 (colored)

Merge changes from current as of 20200406

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 9 04:40:50 2019 UTC (4 years, 3 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.13: +10 -1 lines
Diff to previous 1.13 (colored) to selected 1.11.2.3 (colored)

Add crypto engine block.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Mon Nov 18 19:31:00 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.11.2.1: +31 -1 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) to selected 1.11.2.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #437):

	sys/arch/arm/dts/sun50i-a64-sopine-baseboard.dts: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu_div.c: revision 1.6
	sys/arch/arm/dts/sun50i-a64.dtsi: revision 1.13
	sys/arch/arm/dts/sun50i-a64-pine64.dts: revision 1.2
	sys/arch/arm/sunxi/sunxi_dwhdmi.c: revision 1.4
	sys/arch/arm/dts/sun50i-a64-pine64-plus.dts: revision 1.3
	sys/arch/arm/sunxi/sunxi_i2s.c: revision 1.7
	sys/arch/arm/sunxi/sun50i_a64_ccu.c: revision 1.14

Add support for A64 I2S clocks.
Add A64 HDMI audio support.
Enable HDMI audio support on Pine64, Pine64+, and Pine64 LTS boards.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Nov 17 17:35:10 2019 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.12: +31 -1 lines
Diff to previous 1.12 (colored) to selected 1.11.2.3 (colored)

Enable HDMI audio support on Pine64, Pine64+, and Pine64 LTS boards.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sun Nov 10 13:14:41 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored) to selected 1.11.2.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #409):

	sys/arch/arm/dts/sun50i-a64.dtsi: revision 1.12

Fix PMU interrupt numbers on Allwinner A64.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 8 11:12:09 2019 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored) to selected 1.11.2.3 (colored)

Fix PMU interrupt numbers on Allwinner A64.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:53 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.9: +1 -68 lines
Diff to previous 1.9 (colored) to selected 1.11.2.3 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 6 23:19:45 2019 UTC (4 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.10: +1 -53 lines
Diff to previous 1.10 (colored) to selected 1.11.2.3 (colored)

Remove audio related nodes (they are present in mainline dts now)

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Sat Jan 26 22:00:00 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.4.4.1: +1 -16 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.11.2.3 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 22 15:28:45 2019 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, isaki-audio2-base, isaki-audio2
Changes since 1.9: +1 -16 lines
Diff to previous 1.9 (colored) to selected 1.11.2.3 (colored)

Update for 4.20.3 dts changes

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Mon May 21 04:35:59 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.4: +75 -27 lines
Diff to previous 1.4 (colored) to selected 1.11.2.3 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 11 00:00:04 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored) to selected 1.11.2.3 (colored)

Add cpu0 clock

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 10 00:04:46 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +53 -1 lines
Diff to previous 1.7 (colored) to selected 1.11.2.3 (colored)

Add audio codec nodes

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 6 10:43:32 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +16 -1 lines
Diff to previous 1.6 (colored) to selected 1.11.2.3 (colored)

Add pwm node

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 5 13:31:35 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +13 -1 lines
Diff to previous 1.5 (colored) to selected 1.11.2.3 (colored)

Add A64 thermal sensor node

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 4 23:03:41 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +1 -36 lines
Diff to previous 1.4 (colored) to selected 1.11.2.3 (colored)

Upstream dts specifies emac for sun50i-a64 now

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:52 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.4.2.1: +77 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.11.2.3 (colored)

update from HEAD

Revision 1.4.2.1, Thu Nov 30 21:36:45 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.4: +0 -77 lines
FILE REMOVED

file sun50i-a64.dtsi was added on branch tls-maxphys on 2017-12-03 11:35:52 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 30 21:36:45 2017 UTC (6 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: tls-maxphys, pgoyette-compat
Changes since 1.3: +1 -31 lines
Diff to previous 1.3 (colored) to selected 1.11.2.3 (colored)

Switch to new emac bindings for H3 boards

Revision 1.3 / (download) - annotate - [select for diffs], Sat Sep 9 12:05:28 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +31 -1 lines
Diff to previous 1.2 (colored) to selected 1.11.2.3 (colored)

Enable USB-OTG-EHCI and USB-OTG-OHCI controllers on Pine64+.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Sep 7 21:46:42 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +14 -1 lines
Diff to previous 1.1 (colored) to selected 1.11.2.3 (colored)

Add simplefb stub for Allwinner A64

Revision 1.1 / (download) - annotate - [select for diffs], Thu Sep 7 21:37:56 2017 UTC (6 years, 6 months ago) by jmcneill
Branch: MAIN
Diff to selected 1.11.2.3 (colored)

Enable ethernet on Pine64+

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>