Created
October 26, 2018 11:23
-
-
Save bentech/526f2c6272c463e535ff107acbabf226 to your computer and use it in GitHub Desktop.
Yocto extra dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | |
index 90706e..810918b 100644 | |
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | |
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | |
@@ -70,3 +70,51 @@ | |
&usbphy { | |
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ | |
}; | |
+ | |
+&mmc2 { | |
+ pinctrl-names = "default"; | |
+ pinctrl-0 = <&mmc2_8bit_pins>; | |
+ vmmc-supply = <®_vcc3v3>; | |
+ bus-width = <8>; | |
+ non-removable; | |
+ cap-mmc-hw-reset; | |
+ status = "okay"; | |
+}; | |
+ | |
+&mmc2_8bit_pins { | |
+ /* Increase drive strength for DDR modes */ | |
+ drive-strength = <40>; | |
+ /* eMMC is missing pull-ups */ | |
+ bias-pull-up; | |
+}; | |
+ | |
+&i2c0 { | |
+ pcf2127@0 { | |
+ compatible = "nxp,pcf2127"; | |
+ reg = <0x51>; | |
+ status = "okay"; | |
+ } | |
+ atecc508a@0 { | |
+ compatible = "atmel,atecc508a"; | |
+ reg = <0xC0>; | |
+ status = "okay"; | |
+ } | |
+} | |
+&spi0 { | |
+ reg = <0x9840000 0x110>; | |
+ #address-cells = <1>; | |
+ #size-cells = <0>; | |
+ cs-gpios = <&pio 3 3>; | |
+ status = "okay"; | |
+ | |
+ st95hf@0{ | |
+ reg = <0>; | |
+ compatible = "st,st95hf"; | |
+ status = "okay"; | |
+ spi-max-frequency = <1000000>; | |
+ enable-gpio = <&pio 3 3>;#C3 | |
+ interrupt-parent = <&pio0>; | |
+ interrupts = <7 IRQ_TYPE_EDGE_FALLING>; | |
+ }; | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Log
`bentech@BLADE1:~/poky/meta-rako-nanopi/recipes-kernel/linux$ bitbake linux-mainline
WARNING: Layer zulujava should set LAYERSERIES_COMPAT_zulujava in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer zulujava should set LAYERSERIES_COMPAT_zulujava in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#########################################################################################################################################################| Time: 0:00:00
Loaded 1310 entries from dependency cache.
Parsing recipes: 100% |#######################################################################################################################################################| Time: 0:00:00
Parsing of 834 .bb files complete (833 cached, 1 parsed). 1309 targets, 69 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "nanopi-neo"
DISTRO = "poky"
DISTRO_VERSION = "2.5.1"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "sumo:36d5cee56bd389ecbe66dbfad9e5d57c13b56b95"
meta-zulu-java = "master:270384406a6dc39ef7ec8c798937570839abbfb0"
meta-sunxi = "sumo:712229cbe46a8ce9957fb3a876610e9fb930cd27"
meta-rako-nanopi
workspace = "sumo:36d5cee56bd389ecbe66dbfad9e5d57c13b56b95"
Initialising tasks: 100% |####################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-mainline-4.16.13-r0 do_patch: Could not apply patches for nanopi-neo.
ERROR: linux-mainline-4.16.13-r0 do_patch: Patch failures can be resolved in the linux source directory /home/bentech/poky/build/tmp/work/nanopi_neo-poky-linux-gnueabi/linux-mainline/4.16.13-r0/linux-4.16.13)
ERROR: linux-mainline-4.16.13-r0 do_patch: Function failed: do_patch (log file is located at /home/bentech/poky/build/tmp/work/nanopi_neo-poky-linux-gnueabi/linux-mainline/4.16.13-r0/temp/log.do_patch.31022)
ERROR: Logfile of failure stored in: /home/bentech/poky/build/tmp/work/nanopi_neo-poky-linux-gnueabi/linux-mainline/4.16.13-r0/temp/log.do_patch.31022
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/bentech/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/bentech/poky/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot', '/home/bentech/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['kern-tools-native', 'xz-native', 'quilt-native', 'gettext-minimal-native', 'automake-native', 'autoconf-native', 'libtool-native', 'gnu-config-native', 'texinfo-dummy-native', 'm4-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_patch
| (1/2) 0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch
| (2/2) 0003-ARM-dts-naopi-neo-extra-hardware.patch
| [INFO]: check of .kernel-meta//patches//./0003-ARM-dts-naopi-neo-extra-hardware.patch with "git am" did not pass, trying reduced context.
| [INFO]: Context reduced git-am of .kernel-meta//patches//./0003-ARM-dts-naopi-neo-extra-hardware.patch with "git am" did not work, trying "apply".
| error: corrupt patch at line 6
| [ERROR]: Application of .kernel-meta//patches//./0003-ARM-dts-naopi-neo-extra-hardware.patch failed.
| Patch needs to be refreshed. Sample resolution script:
| .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for nanopi-neo.
| ERROR: Patch failures can be resolved in the linux source directory /home/bentech/poky/build/tmp/work/nanopi_neo-poky-linux-gnueabi/linux-mainline/4.16.13-r0/linux-4.16.13)
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_patch (log file is located at /home/bentech/poky/build/tmp/work/nanopi_neo-poky-linux-gnueabi/linux-mainline/4.16.13-r0/temp/log.do_patch.31022)
ERROR: Task (/home/bentech/poky/meta-sunxi/recipes-kernel/linux/linux-mainline_4.16.13.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 466 tasks of which 464 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/bentech/poky/meta-sunxi/recipes-kernel/linux/linux-mainline_4.16.13.bb:do_patch
Summary: There were 3 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.`