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 = ; - linux,code = ; - linux,can-disable; - wakeup-event-action = ; - wakeup-source; - }; + /* cover { */ + /* label = "cover"; */ + /* gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; */ + /* linux,input-type = ; */ + /* linux,code = ; */ + /* linux,can-disable; */ + /* wakeup-event-action = ; */ + /* 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 = ; - 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 = ; + 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 {