sys-kernel/sunxi-sources: Add version 4.16
[tools/muxpi-overlay.git] / sys-kernel / sunxi-sources / files / sunxi-sources-4.16-0001-Altering-nanopi-dts-to-work-with-MuxPi.patch
1 From afe08eab26c051e76e0ae7ce8e32f11285bf4470 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= <z.kempczynsk@samsung.com>
3 Date: Wed, 18 Oct 2017 07:55:41 +0200
4 Subject: [PATCH] Altering nanopi dts to work with MuxPi
5
6 Change-Id: Ief6fd94649a0b0f573387956726ce5cebf8dd878
7 ---
8  arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 8 ++++----
9  arch/arm/boot/dts/sunxi-h3-h5.dtsi     | 3 ++-
10  2 files changed, 6 insertions(+), 5 deletions(-)
11
12 diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
13 index 3fa3091..e755432 100644
14 --- a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
15 +++ b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
16 @@ -321,7 +321,7 @@
17  };
18  
19  &i2c0 {
20 -       status = "okay";
21 +       status = "disabled";
22         rtc@68 {
23                 compatible = "dallas,ds1307";
24                 reg = <0x68>;
25 @@ -329,7 +329,7 @@
26  };
27  
28  &i2c1 {
29 -       status = "okay";
30 +       status = "disabled";
31  };
32  
33  &i2c2 {
34 @@ -341,7 +341,7 @@
35         #address-cells = <1>;
36         #size-cells = <0>;
37  
38 -       status = "okay";
39 +       status = "disabled";
40         pinctrl-names = "default";
41         pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
42         cs-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>, <&pio 0 6 GPIO_ACTIVE_HIGH>;
43 @@ -498,4 +498,4 @@
44         pinctrl-names = "default";
45         pinctrl-0 = <&ir_pins_a>;
46         status = "disabled";
47 -};
48 \ No newline at end of file
49 +};
50 diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
51 index 0137e88..94feb0d 100644
52 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
53 +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
54 @@ -245,7 +245,8 @@
55                         phys = <&usbphy 0>;
56                         phy-names = "usb";
57                         extcon = <&usbphy 0>;
58 -                       status = "disabled";
59 +                       status = "okay";
60 +                       dr_mode = "otg";
61                 };
62  
63                 usbphy: phy@1c19400 {
64 -- 
65 2.7.4
66