Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp964475rwb; Tue, 27 Sep 2022 06:52:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gpCQwwtP5uHb+WNsMSSOg4Uy02QSBG6ar8sHqcv/z+pDqw70PPhn2kSnzvninpk6fOrAD X-Received: by 2002:a63:c1f:0:b0:41a:9b73:a89e with SMTP id b31-20020a630c1f000000b0041a9b73a89emr24444555pgl.342.1664286756913; Tue, 27 Sep 2022 06:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664286756; cv=none; d=google.com; s=arc-20160816; b=L63bOM+G6gvJnqMLZZ2BFIAGj3GXJyyJhxktg0VQSBZMekzIAa/Qkhvo+4QLWTU3py U6AYGB2JGSAKLJLLTN7Sppty71MLXrnUN1bEdHOEnIeuO+DPyRi8mXDovC1TsfTcC+Lo +tLg1I4a7giu7LfHvcv9d8g7s+iyLO4N73uIjm86wRWJbhdqBADw+UpzrEOXijOk/5ga gTaXD5UX0MK1azuAoE3n3OvKrm8YSw0gYdDSxmwpVzt4WfURCeFD9gf3MGxxENG6wmH7 7Q9WGVzyOb4NBIjEqUQ4lIEigpz9eVkZ5ZhG3aFjYgFm5C1lF08HWK6nnmfqWytr7Fiv au5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=op0+n+lDMgEhKzDoEI+HacCR4GOBjfJ67vPJ1/XEcxE=; b=u0PF10ZQt31AOuQF1ysx2XHlxaHSHDad4p6dkwSC1ir8CxHy3+bVfsb6qALo+K3tfO C7AE2IXE8VNEsBqV656WqxmkKGBnT1J1qpfc3iOF/3I2nEHuL9Ul0TXrsSKRmODVF0J/ xAlMPj/K6c01E87QNtY2lZTqaB9lfcFGtd6MVdM78IndvwNcF6rxjjuAii9fsj0F1RBx dvEQMYt8yzG6Thxn/O5I2pylLUHoiitbRQLPb0TgWKbEjVnY/G8RdHGyYgAjmQ90JfT3 bZWX5z+1UB32brlNzQz7AZ3sJGaZChoPkozrbzUp4GgDtCyCDBR0g1R6Zvhy4+pZJpmv kwvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a635d54000000b0043980f3cf36si2217533pgm.602.2022.09.27.06.52.24; Tue, 27 Sep 2022 06:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232357AbiI0NGT (ORCPT + 99 others); Tue, 27 Sep 2022 09:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbiI0NGP (ORCPT ); Tue, 27 Sep 2022 09:06:15 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4EF155669 for ; Tue, 27 Sep 2022 06:06:14 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.188.neoplus.adsl.tpnet.pl [95.49.29.188]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 02A323F3F2; Tue, 27 Sep 2022 15:06:11 +0200 (CEST) Message-ID: <7e849f73-216e-a03e-fb03-87941722c847@somainline.org> Date: Tue, 27 Sep 2022 15:06:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v5 3/3] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530) Content-Language: en-US To: =?UTF-8?Q?Matti_Lehtim=c3=a4ki?= , linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220925204416.715687-1-matti.lehtimaki@gmail.com> <20220925204416.715687-4-matti.lehtimaki@gmail.com> From: Konrad Dybcio In-Reply-To: <20220925204416.715687-4-matti.lehtimaki@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.09.2022 22:44, Matti Lehtimäki wrote: > Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T530) wifi tablet > based on the apq8026 platform. > > Currently supported are accelerometer sensor, hall sensor, > internal storage, physical buttons (power & volume), screen > (based on simple-framebuffer set up by the bootloader), sdcard, > touchscreen and USB. > > Signed-off-by: Matti Lehtimäki > --- > Changes in v5: > - Rename pm8226-regulators node to fix issue reported by make dtbs_check > > Changes in v4: > - Move delete-node to memory-region > - Move usb-switch node to blsp_i2c4 > > Changes in v3: > - Fix sdhc_2 bus width > - Reorder includes > > Changes in v2: > - Change codename to matisse-wifi > - Remove msm-id, not needed when lk2nd is used > - Remove unused labels from reserved memory regions > - Rename muic node > --- > arch/arm/boot/dts/Makefile | 1 + > .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 453 ++++++++++++++++++ > 2 files changed, 454 insertions(+) > create mode 100644 arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 05d8aef6e5d2..69f6bbcf90c6 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1027,6 +1027,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ > qcom-apq8016-sbc.dtb \ > qcom-apq8026-asus-sparrow.dtb \ > qcom-apq8026-lg-lenok.dtb \ > + qcom-apq8026-samsung-matisse-wifi.dtb \ > qcom-apq8060-dragonboard.dtb \ > qcom-apq8064-cm-qs600.dtb \ > qcom-apq8064-ifc6410.dtb \ > diff --git a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts > new file mode 100644 > index 000000000000..3029bc566832 > --- /dev/null > +++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts > @@ -0,0 +1,453 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2022, Matti Lehtimäki > + */ > + > +/dts-v1/; > + > +#include > +#include "qcom-msm8226.dtsi" > +#include "qcom-pm8226.dtsi" > + > +/ { > + model = "Samsung Galaxy Tab 4 10.1"; > + compatible = "samsung,matisse-wifi", "qcom,apq8026"; > + chassis-type = "tablet"; > + > + aliases { > + mmc0 = &sdhc_1; /* SDC1 eMMC slot */ > + mmc1 = &sdhc_2; /* SDC2 SD card slot */ > + display0 = &framebuffer0; > + }; > + > + chosen { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + stdout-path = "display0"; > + > + framebuffer0: framebuffer@3200000 { > + compatible = "simple-framebuffer"; > + reg = <0x3200000 0x800000>; Addresses should be padded to 8 hex digits. > + width = <1280>; > + height = <800>; > + stride = <(1280 * 3)>; > + format = "r8g8b8"; > + }; > + }; > + > + gpio-hall-sensor { > + compatible = "gpio-keys"; > + > + event-hall-sensor { > + label = "Hall Effect Sensor"; > + gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; > + interrupts = <&tlmm 110 IRQ_TYPE_EDGE_FALLING>; > + linux,input-type = ; > + linux,code = ; > + debounce-interval = <15>; > + wakeup-source; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + autorepeat; > + > + key-home { > + label = "Home"; > + gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; > + linux,code = ; > + debounce-interval = <15>; > + }; > + > + key-volume-down { > + label = "Volume Down"; > + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; > + linux,code = ; > + debounce-interval = <15>; > + }; > + > + key-volume-up { > + label = "Volume Up"; > + gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; > + linux,code = ; > + debounce-interval = <15>; > + }; > + }; > + > + reg_tsp_1p8v: regulator-tsp-1p8v { > + compatible = "regulator-fixed"; > + regulator-name = "tsp_1p8v"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + > + gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&tsp_en_default_state>; > + }; > + > + reg_tsp_3p3v: regulator-tsp-3p3v { > + compatible = "regulator-fixed"; > + regulator-name = "tsp_3p3v"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + > + gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&tsp_en1_default_state>; > + }; > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + framebuffer@3200000 { > + reg = <0x3200000 0x800000>; Ditto > + no-map; > + }; > + > + mpss@8400000 { > + reg = <0x08400000 0x1f00000>; > + no-map; > + }; > + > + mba@a300000 { > + reg = <0x0a300000 0x100000>; > + no-map; > + }; > + > + reserved@cb00000 { > + reg = <0x0cb00000 0x700000>; > + no-map; > + }; > + > + wcnss@d200000 { > + reg = <0x0d200000 0x700000>; > + no-map; > + }; > + > + adsp@d900000 { > + reg = <0x0d900000 0x1800000>; > + no-map; > + }; > + > + venus@f100000 { > + reg = <0x0f100000 0x500000>; > + no-map; > + }; > + > + /delete-node/ smem@3000000; > + smem_region: smem@fa00000 { > + reg = <0xfa00000 0x100000>; > + no-map; > + }; > + > + reserved@fb00000 { > + reg = <0x0fb00000 0x260000>; > + no-map; > + }; > + > + rfsa@fd60000 { > + reg = <0x0fd60000 0x20000>; > + no-map; > + }; > + > + rmtfs@fd80000 { > + compatible = "qcom,rmtfs-mem"; > + reg = <0x0fd80000 0x180000>; > + no-map; > + > + qcom,client-id = <1>; > + }; > + }; > +}; > + > +&blsp1_i2c2 { > + status = "okay"; > + > + accelerometer@1d { > + compatible = "st,lis2hh12"; > + reg = <0x1d>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&accel_int_default_state>; > + > + st,drdy-int-pin = <1>; > + > + vdd-supply = <&pm8226_l19>; > + vddio-supply = <&pm8226_lvs1>; > + }; > +}; > + > +&blsp1_i2c4 { > + status = "okay"; > + > + muic: usb-switch@25 { > + compatible = "siliconmitus,sm5502-muic"; > + reg = <0x25>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&muic_int_default_state>; > + }; > +}; > + > +&blsp1_i2c5 { > + status = "okay"; > + > + touchscreen@4a { > + compatible = "atmel,maxtouch"; > + reg = <0x4a>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&tsp_int_rst_default_state>; > + > + reset-gpios = <&pm8226_gpios 6 GPIO_ACTIVE_LOW>; > + > + vdd-supply = <®_tsp_1p8v>; > + vdda-supply = <®_tsp_3p3v>; > + }; > +}; > + > +&rpm_requests { > + regulators { > + compatible = "qcom,rpm-pm8226-regulators"; > + > + pm8226_s3: s3 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1300000>; > + }; > + > + pm8226_s4: s4 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + pm8226_s5: s5 { > + regulator-min-microvolt = <1150000>; > + regulator-max-microvolt = <1150000>; > + }; > + > + pm8226_l1: l1 { > + regulator-min-microvolt = <1225000>; > + regulator-max-microvolt = <1225000>; > + }; > + > + pm8226_l2: l2 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + pm8226_l3: l3 { > + regulator-min-microvolt = <750000>; > + regulator-max-microvolt = <1337500>; > + regulator-always-on; > + }; > + > + pm8226_l4: l4 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + pm8226_l5: l5 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + pm8226_l6: l6 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + pm8226_l7: l7 { > + regulator-min-microvolt = <1850000>; > + regulator-max-microvolt = <1850000>; > + }; > + > + pm8226_l8: l8 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + pm8226_l9: l9 { > + regulator-min-microvolt = <2050000>; > + regulator-max-microvolt = <2050000>; > + }; > + > + pm8226_l10: l10 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + pm8226_l12: l12 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + pm8226_l14: l14 { > + regulator-min-microvolt = <2750000>; > + regulator-max-microvolt = <2750000>; > + }; > + > + pm8226_l15: l15 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + pm8226_l16: l16 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3350000>; > + }; > + > + pm8226_l17: l17 { > + regulator-min-microvolt = <2950000>; > + regulator-max-microvolt = <2950000>; > + > + regulator-system-load = <200000>; > + regulator-allow-set-load; > + regulator-always-on; > + }; > + > + pm8226_l18: l18 { > + regulator-min-microvolt = <2950000>; > + regulator-max-microvolt = <2950000>; > + }; > + > + pm8226_l19: l19 { > + regulator-min-microvolt = <2850000>; > + regulator-max-microvolt = <3000000>; > + }; > + > + pm8226_l20: l20 { > + regulator-min-microvolt = <3075000>; > + regulator-max-microvolt = <3075000>; > + }; > + > + pm8226_l21: l21 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2950000>; > + }; > + > + pm8226_l22: l22 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3000000>; > + }; > + > + pm8226_l23: l23 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + pm8226_l24: l24 { > + regulator-min-microvolt = <1300000>; > + regulator-max-microvolt = <1350000>; > + }; > + > + pm8226_l25: l25 { > + regulator-min-microvolt = <1775000>; > + regulator-max-microvolt = <2125000>; > + }; > + > + pm8226_l26: l26 { > + regulator-min-microvolt = <1225000>; > + regulator-max-microvolt = <1300000>; > + }; > + > + pm8226_l27: l27 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + pm8226_l28: l28 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2950000>; > + }; > + > + pm8226_lvs1: lvs1 {}; > + }; > +}; > + > +&sdhc_1 { > + status = "okay"; Status last, please. > + > + vmmc-supply = <&pm8226_l17>; > + vqmmc-supply = <&pm8226_l6>; > + > + bus-width = <8>; > + non-removable; > +}; > + > +&sdhc_2 { > + status = "okay"; Status last, please. > + > + vmmc-supply = <&pm8226_l18>; > + vqmmc-supply = <&pm8226_l21>; > + > + bus-width = <4>; > + cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; > +}; > + > +&tlmm { > + accel_int_default_state: accel-int-default-state { > + pins = "gpio54"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + muic_int_default_state: muic-int-default-state { > + pins = "gpio67"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + tsp_en_default_state: tsp-en-default-state { > + pins = "gpio31"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + tsp_en1_default_state: tsp-en1-default-state { > + pins = "gpio73"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > + tsp_int_rst_default_state: tsp-int-rst-default-state { > + pins = "gpio17"; > + function = "gpio"; > + drive-strength = <10>; > + bias-pull-up; > + }; > +}; > + > +&usb { > + status = "okay"; > + extcon = <&muic>, <&muic>; Status last, please. Konrad > +}; > + > +&usb_hs_phy { > + extcon = <&muic>; > + v1p8-supply = <&pm8226_l10>; > + v3p3-supply = <&pm8226_l20>; > +};