all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob e12b84a86d94d6fe66b8425212907fd0b95a5286 5000 bytes (raw)
name: gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
 
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
index 59ac178881b3..ec7183330b40 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
@@ -51,11 +51,11 @@ battery_cell: battery-cell {

 		ocv-capacity-celsius = <20>;
 		ocv-capacity-table-0 = <4168000 100>,
-				       <4109000 95>, <4066000 90>, <4023000 85>, <3985000 80>,
-				       <3954000 75>, <3924000 70>, <3897000 65>, <3866000 60>,
-				       <3826000 55>, <3804000 50>, <3789000 45>, <3777000 40>,
-				       <3770000 35>, <3763000 30>, <3750000 25>, <3732000 20>,
-				       <3710000 15>, <3680000 10>, <3670000  5>, <3500000  0>;
+					   <4109000 95>, <4066000 90>, <4023000 85>, <3985000 80>,
+					   <3954000 75>, <3924000 70>, <3897000 65>, <3866000 60>,
+					   <3826000 55>, <3804000 50>, <3789000 45>, <3777000 40>,
+					   <3770000 35>, <3763000 30>, <3750000 25>, <3732000 20>,
+					   <3710000 15>, <3680000 10>, <3670000  5>, <3500000  0>;
 	};

 	bt_sco_codec: bt-sco-codec {
@@ -63,26 +63,26 @@ bt_sco_codec: bt-sco-codec {
 		#sound-dai-cells = <1>;
 	};

-	bt-sound {
-		compatible = "simple-audio-card";
-		#address-cells = <1>;
-		#size-cells = <0>;
-		simple-audio-card,name = "PineNote Bluetooth";
-
-		simple-audio-card,dai-link@0 {
-			format = "i2s";
-			frame-master = <&bt_link0_cpu>;
-			bitclock-master = <&bt_link0_cpu>;
-
-			bt_link0_cpu: cpu {
-				sound-dai = <&i2s2_2ch>;
-			};
-
-			bt_link0_codec: codec {
-				sound-dai = <&bt_sco_codec 0>;
-			};
-		};
-	};
+	// bt-sound {
+		// compatible = "simple-audio-card";
+		// #address-cells = <1>;
+		// #size-cells = <0>;
+		// simple-audio-card,name = "PineNote Bluetooth";
+//
+		// simple-audio-card,dai-link@0 {
+			// format = "i2s";
+			// frame-master = <&bt_link0_cpu>;
+			// bitclock-master = <&bt_link0_cpu>;
+//
+			// bt_link0_cpu: cpu {
+				// sound-dai = <&i2s2_2ch>;
+			// };
+//
+			// bt_link0_codec: codec {
+				// sound-dai = <&bt_sco_codec 0>;
+			// };
+		// };
+	// };

 	dmic_codec: dmic-codec {
 		compatible = "dmic-codec";
@@ -95,15 +95,15 @@ gpio-keys {
 		pinctrl-0 = <&hall_int_l>;
 		pinctrl-names = "default";

-		cover {
-			label = "cover";
-			gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
-			linux,input-type = <EV_SW>;
-			linux,code = <SW_MACHINE_COVER>;
-			linux,can-disable;
-			wakeup-event-action = <EV_ACT_DEASSERTED>;
-			wakeup-source;
-		};
+		/* cover { */
+		/*	label = "cover"; */
+		/*	gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; */
+		/*	linux,input-type = <EV_SW>; */
+		/*	linux,code = <SW_MACHINE_COVER>; */
+		/*	linux,can-disable; */
+		/*	wakeup-event-action = <EV_ACT_DEASSERTED>; */
+		/*	wakeup-source; */
+		/* }; */
 	};

 	gpio-leds {
@@ -166,13 +166,13 @@ sound {
 		simple-audio-card,name = "PineNote";
 		simple-audio-card,aux-devs = <&spk_amp>;
 		simple-audio-card,widgets = "Headphone", "Headphones",
-					    "Speaker", "Internal Speakers";
+						"Speaker", "Internal Speakers";
 		simple-audio-card,routing = "Headphones", "HPOL",
-					    "Headphones", "HPOR",
-					    "Internal Speakers", "Speaker Amp OUTL",
-					    "Internal Speakers", "Speaker Amp OUTR",
-					    "Speaker Amp INL", "HPOL",
-					    "Speaker Amp INR", "HPOR";
+						"Headphones", "HPOR",
+						"Internal Speakers", "Speaker Amp OUTL",
+						"Internal Speakers", "Speaker Amp OUTR",
+						"Speaker Amp INL", "HPOL",
+						"Speaker Amp INR", "HPOR";
 		simple-audio-card,pin-switches = "Internal Speakers";
 		#address-cells = <1>;
 		#size-cells = <0>;
@@ -340,7 +340,7 @@ &eink {

 &gpu {
 	mali-supply = <&vdd_gpu_npu>;
-	// status = "okay";
+	status = "okay";
 };

 &i2c0 {
@@ -669,19 +669,31 @@ accelerometer@18 {
 		st,drdy-int-pin = <1>;
 		vdd-supply = <&vcc_3v3>;
 		vddio-supply = <&vcc_3v3>;
-	};
-
-	touchscreen@24 {
-		compatible = "cypress,tt21000";
-		hid-descr-addr = <0x1>;
-		reg = <0x24>;
-		interrupt-parent = <&gpio0>;
-		interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
-		pinctrl-0 = <&ts_int_l>, <&ts_rst_l>;
-		pinctrl-names = "default";
-		reset-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
-		vdd-supply = <&vcc_3v3_pmu>;
-	};
+		mount-matrix = "-1", "0", "0",
+					"0", "1", "0",
+					"0", "0", "1";
+	};
+
+	// from pgwipeouts dtsi
+    touchscreen@24 {
+        compatible = "cypress,tma448";
+//      compatible = "cypress,tt21000";
+        hid-descr-addr = <0x1>;
+        reg = <0x24>;
+        interrupt-parent = <&gpio0>;
+        interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
+        pinctrl-0 = <&ts_int_l>, <&ts_rst_l>;
+        pinctrl-names = "default";
+        reset-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+        vdd-supply = <&vcc_3v3_pmu>;
+        touchscreen-max-pressure = <46>;
+        touchscreen-min-x = <10>;
+        touchscreen-min-y = <5>;
+        touchscreen-size-x = <1863>;
+        touchscreen-size-y = <1399>;
+        touchscreen-x-mm = <1864>;
+        touchscreen-y-mm = <1400>;
+    };
 };

 &i2s1_8ch {

debug log:

solving e12b84a86d ...
found e12b84a86d in https://yhetil.org/guix/OIYFBlSAc3AtEGSihoRRRjvGJ5cVaAohjF03EWQFDIiKgUINx3vm2xY-8IXvkFs-ZOPh6Yvohd7WoaKiRCREFIf3c_BkPJ11GiJBjhtAOQQ=@protonmail.com/ ||
	https://yhetil.org/guix/MXYIbrOGPKv1gj_NgM0E0qrQaFByQZqAQP57nzG-jeBaqBYVmXEVGOlzafIk0niSTn9jL0Tv9qg5Pkd08nfqejaWrskSAFqpzMKiU68pALQ=@protonmail.com/

applying [1/1] https://yhetil.org/guix/OIYFBlSAc3AtEGSihoRRRjvGJ5cVaAohjF03EWQFDIiKgUINx3vm2xY-8IXvkFs-ZOPh6Yvohd7WoaKiRCREFIf3c_BkPJ11GiJBjhtAOQQ=@protonmail.com/
diff --git a/gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch b/gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch
new file mode 100644
index 0000000000..e12b84a86d

1:13: space before tab in indent.
 		ocv-capacity-celsius = <20>;
1:14: space before tab in indent.
 		ocv-capacity-table-0 = <4168000 100>,
1:25: space before tab in indent.
 	};
1:27: space before tab in indent.
 	bt_sco_codec: bt-sco-codec {
1:29: space before tab in indent.
 		#sound-dai-cells = <1>;
Checking patch gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch...
Applied patch gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch cleanly.
warning: squelched 18 whitespace errors
warning: 23 lines add whitespace errors.

skipping https://yhetil.org/guix/MXYIbrOGPKv1gj_NgM0E0qrQaFByQZqAQP57nzG-jeBaqBYVmXEVGOlzafIk0niSTn9jL0Tv9qg5Pkd08nfqejaWrskSAFqpzMKiU68pALQ=@protonmail.com/ for e12b84a86d
index at:
100644 e12b84a86d94d6fe66b8425212907fd0b95a5286	gnu/packages/patches/linux-libre-arm64-pinenote-dtsi.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.