public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iNet U70B Rev 01 Tablet Support
@ 2022-12-29 22:45 Samuel Holland
  2022-12-29 22:45 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet Samuel Holland
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Samuel Holland @ 2022-12-29 22:45 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Krzysztof Kozlowski, Rob Herring
  Cc: linux-sunxi, devicetree, linux-kernel, linux-arm-kernel,
	Samuel Holland

This series adds a binding and devicetree for yet another A33-based
tablet board. The devicetree currently fails validation because I have
no idea what compatible string to use for the DPI panel. Neither the
hardware nor the software provide any clues about a manufacturer or
model -- the driver used by the vendor Android is called "default_lcd".

Link: https://linux-sunxi.org/Inet_U70B


Samuel Holland (2):
  dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet
  ARM: dts: sun8i: A33: Add iNet U70B Rev 01

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 arch/arm/boot/dts/Makefile                    |   1 +
 .../boot/dts/sun8i-a33-inet-u70b-rev01.dts    | 172 ++++++++++++++++++
 3 files changed, 178 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts

-- 
2.37.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet
  2022-12-29 22:45 [PATCH 0/2] iNet U70B Rev 01 Tablet Support Samuel Holland
@ 2022-12-29 22:45 ` Samuel Holland
  2022-12-30  7:53   ` Krzysztof Kozlowski
  2022-12-29 22:45 ` [PATCH 2/2] ARM: dts: sun8i: A33: Add iNet U70B Rev 01 Samuel Holland
  2023-01-08 20:08 ` [PATCH 0/2] iNet U70B Rev 01 Tablet Support Jernej Škrabec
  2 siblings, 1 reply; 5+ messages in thread
From: Samuel Holland @ 2022-12-29 22:45 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Krzysztof Kozlowski, Rob Herring
  Cc: linux-sunxi, devicetree, linux-kernel, linux-arm-kernel,
	Samuel Holland

This is a white-label 7" tablet board based on the A33 SoC. It is found
in products such as the "Nimbus 17 V1" tablet.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index 3ad1cd50e3fe..8150ae307c1a 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -346,6 +346,11 @@ properties:
           - const: inet-tek,inet-q972
           - const: allwinner,sun6i-a31s
 
+      - description: iNet U70B Rev 01 Tablet
+        items:
+          - const: inet-tek,inet-u70b-rev01
+          - const: allwinner,sun8i-a33
+
       - description: Itead Ibox A20
         items:
           - const: itead,itead-ibox-a20
-- 
2.37.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ARM: dts: sun8i: A33: Add iNet U70B Rev 01
  2022-12-29 22:45 [PATCH 0/2] iNet U70B Rev 01 Tablet Support Samuel Holland
  2022-12-29 22:45 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet Samuel Holland
@ 2022-12-29 22:45 ` Samuel Holland
  2023-01-08 20:08 ` [PATCH 0/2] iNet U70B Rev 01 Tablet Support Jernej Škrabec
  2 siblings, 0 replies; 5+ messages in thread
From: Samuel Holland @ 2022-12-29 22:45 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Krzysztof Kozlowski, Rob Herring
  Cc: linux-sunxi, devicetree, linux-kernel, linux-arm-kernel,
	Samuel Holland

This is a white-label 7" tablet board based on the A33 SoC. It features
a generic 1024x600 DPI panel, raw NAND for storage, and a Realtek 8723CS
Wi-Fi/Bluetooth chip.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 arch/arm/boot/dts/Makefile                    |   1 +
 .../boot/dts/sun8i-a33-inet-u70b-rev01.dts    | 172 ++++++++++++++++++
 2 files changed, 173 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index c014f4fc53c0..e4e985d5a66c 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1349,6 +1349,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a33-et-q8-v1.6.dtb \
 	sun8i-a33-ga10h-v1.1.dtb \
 	sun8i-a33-inet-d978-rev2.dtb \
+	sun8i-a33-inet-u70b-rev01.dtb \
 	sun8i-a33-ippo-q8h-v1.2.dtb \
 	sun8i-a33-olinuxino.dtb \
 	sun8i-a33-q8-tablet.dtb \
diff --git a/arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts b/arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts
new file mode 100644
index 000000000000..ac108a632659
--- /dev/null
+++ b/arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts
@@ -0,0 +1,172 @@
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
+
+/dts-v1/;
+
+#include "sun8i-a33.dtsi"
+#include "sun8i-reference-design-tablet.dtsi"
+
+/ {
+	model = "iNet U70B Rev 01";
+	compatible = "inet-tek,inet-u70b-rev01", "allwinner,sun8i-a33";
+
+	aliases {
+		ethernet0 = &rtl8723cs;
+	};
+
+	panel: panel {
+		compatible = "panel-dpi";
+		backlight = <&backlight>;
+		enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+		power-supply = <&reg_dc1sw>;
+
+		panel-timing {
+			clock-frequency = <51000000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hfront-porch = <162>;
+			hback-porch = <158>;
+			hsync-len = <20>;
+			vback-porch = <25>;
+			vfront-porch = <10>;
+			vsync-len = <3>;
+			hsync-active = <1>;
+			vsync-active = <1>;
+		};
+
+		port {
+			panel_in_tcon0: endpoint {
+				remote-endpoint = <&tcon0_out_panel>;
+			};
+		};
+	};
+
+	speaker_amp: audio-amplifier {
+		compatible = "simple-audio-amplifier";
+		enable-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+		sound-name-prefix = "Speaker Amp";
+	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&r_pio 0 6 GPIO_ACTIVE_LOW>; /* PL6 */
+		post-power-on-delay-ms = <200>;
+	};
+};
+
+&codec {
+	status = "okay";
+};
+
+&dai {
+	status = "okay";
+};
+
+&de {
+	status = "okay";
+};
+
+&i2c1 {
+	clock-frequency = <400000>;
+
+	accelerometer@18 {
+		compatible = "bosch,bma250";
+		reg = <0x18>;
+		interrupt-parent = <&pio>;
+		interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
+	};
+};
+
+&mmc1 {
+	pinctrl-0 = <&mmc1_pg_pins>;
+	pinctrl-names = "default";
+	bus-width = <4>;
+	non-removable;
+	vmmc-supply = <&reg_dldo1>;
+	vqmmc-supply = <&reg_dldo2>;
+	status = "okay";
+
+	rtl8723cs: wifi@1 {
+		reg = <1>;
+		interrupt-parent = <&r_pio>;
+		interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
+	};
+};
+
+&nfc {
+	status = "okay";
+
+	nand@0 {
+		reg = <0>;
+		allwinner,rb = <0>;
+	};
+};
+
+&r_uart {
+	status = "disabled";
+};
+
+&reg_dldo2 {
+	regulator-min-microvolt = <3300000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-name = "vcc-wifi-io";
+};
+
+&simplefb_lcd {
+	status = "okay";
+};
+
+&sound {
+	simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
+	simple-audio-card,widgets = "Headphone", "Headphone Jack",
+				    "Microphone", "Internal Microphone",
+				    "Speaker", "Internal Speaker";
+	simple-audio-card,routing = "Headphone Jack", "HP",
+				    "Internal Speaker", "Speaker Amp OUTL",
+				    "Internal Speaker", "Speaker Amp OUTR",
+				    "Speaker Amp INL", "HP", /* PHONEOUT ??? */
+				    "Speaker Amp INR", "HP", /* PHONEOUT ??? */
+				    "Left DAC", "DACL",
+				    "Right DAC", "DACR",
+				    "ADCL", "Left ADC",
+				    "ADCR", "Right ADC",
+				    "MIC1", "Internal Microphone",
+				    "MIC2", "Headset Microphone",
+				    "Headset Microphone", "HBIAS",
+				    "Internal Microphone", "MBIAS";
+	status = "okay";
+};
+
+&tcon0 {
+	pinctrl-0 = <&lcd_rgb666_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&tcon0_out {
+	tcon0_out_panel: endpoint {
+		remote-endpoint = <&panel_in_tcon0>;
+	};
+};
+
+&touchscreen {
+	reg = <0x40>;
+	compatible = "silead,gsl1680";
+	avdd-supply = <&reg_ldo_io1>;
+	touchscreen-size-x = <1024>;
+	touchscreen-size-y = <600>;
+	status = "okay";
+};
+
+&uart1 {
+	pinctrl-0 = <&uart1_pg_pins>, <&uart1_cts_rts_pg_pins>;
+	pinctrl-names = "default";
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+		compatible = "realtek,rtl8723cs-bt";
+		device-wake-gpios = <&r_pio 0 10 GPIO_ACTIVE_LOW>; /* PL10 */
+		enable-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
+		host-wake-gpios = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
+	};
+};
-- 
2.37.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet
  2022-12-29 22:45 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet Samuel Holland
@ 2022-12-30  7:53   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-30  7:53 UTC (permalink / raw)
  To: Samuel Holland, Chen-Yu Tsai, Jernej Skrabec, Krzysztof Kozlowski,
	Rob Herring
  Cc: linux-sunxi, devicetree, linux-kernel, linux-arm-kernel

On 29/12/2022 23:45, Samuel Holland wrote:
> This is a white-label 7" tablet board based on the A33 SoC. It is found
> in products such as the "Nimbus 17 V1" tablet.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] iNet U70B Rev 01 Tablet Support
  2022-12-29 22:45 [PATCH 0/2] iNet U70B Rev 01 Tablet Support Samuel Holland
  2022-12-29 22:45 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet Samuel Holland
  2022-12-29 22:45 ` [PATCH 2/2] ARM: dts: sun8i: A33: Add iNet U70B Rev 01 Samuel Holland
@ 2023-01-08 20:08 ` Jernej Škrabec
  2 siblings, 0 replies; 5+ messages in thread
From: Jernej Škrabec @ 2023-01-08 20:08 UTC (permalink / raw)
  To: Chen-Yu Tsai, Krzysztof Kozlowski, Rob Herring, Samuel Holland
  Cc: linux-sunxi, devicetree, linux-kernel, linux-arm-kernel,
	Samuel Holland

Dne četrtek, 29. december 2022 ob 23:45:45 CET je Samuel Holland napisal(a):
> This series adds a binding and devicetree for yet another A33-based
> tablet board. The devicetree currently fails validation because I have
> no idea what compatible string to use for the DPI panel. Neither the
> hardware nor the software provide any clues about a manufacturer or
> model -- the driver used by the vendor Android is called "default_lcd".

Can you drop the node until this is figured out? Otherwise DT file looks fine.

Best regards,
Jernej

> 
> Link: https://linux-sunxi.org/Inet_U70B
> 
> 
> Samuel Holland (2):
>   dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet
>   ARM: dts: sun8i: A33: Add iNet U70B Rev 01
> 
>  .../devicetree/bindings/arm/sunxi.yaml        |   5 +
>  arch/arm/boot/dts/Makefile                    |   1 +
>  .../boot/dts/sun8i-a33-inet-u70b-rev01.dts    | 172 ++++++++++++++++++
>  3 files changed, 178 insertions(+)
>  create mode 100644 arch/arm/boot/dts/sun8i-a33-inet-u70b-rev01.dts





_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-08 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-29 22:45 [PATCH 0/2] iNet U70B Rev 01 Tablet Support Samuel Holland
2022-12-29 22:45 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add iNet U70B Rev 01 Tablet Samuel Holland
2022-12-30  7:53   ` Krzysztof Kozlowski
2022-12-29 22:45 ` [PATCH 2/2] ARM: dts: sun8i: A33: Add iNet U70B Rev 01 Samuel Holland
2023-01-08 20:08 ` [PATCH 0/2] iNet U70B Rev 01 Tablet Support Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox