From nobody Mon Feb 9 05:35:43 2026 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C8DE3EA80 for ; Mon, 12 Feb 2024 13:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745033; cv=none; b=bHoewZsVus5D2aGAypL80Y/2dAZ7TOOV1XxgKOoQ38XANDrbngIAq25izKfQCHoJJ7MhebwA09rUbPoORDbGf7wAQ5DUXEy77jyLBG7VXhtnXso9UMeP1uf6S0Lo+gHCljd3QFAqxqg4jKieZIC1UIiBPmNNT6JsjpyVxq4fsi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745033; c=relaxed/simple; bh=EabtM/lM7B9y8LnUGZv/H+KjH9qiCo4jt/n1JJW5V9Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=m3XIMB9HTSmh9U4LvBjnpzvWI7BMFGrhw0tc4+PKIA7csf6ZXIH7bkrwZizszqbt8E8rg4y3yPnAkqpbC1rs5/L22LcKItmxZTdd99yj6EDi8kZBDn/bCBPK+BKqNmQEhQpyldWGFdvRGDjofm5W13Mer8tr21/U5casBHub7+M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tH9lQXWR; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tH9lQXWR" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a271a28aeb4so400024566b.2 for ; Mon, 12 Feb 2024 05:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707745029; x=1708349829; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=V79hha4/rxfxtxNToMm4h31PlM1pf1aXvBWpdTlosiY=; b=tH9lQXWRONOFb+YGAWa0BNW8g4o9yQBODjMPkhw7Ffp3wfo4/+zVnvRXjR489+JFki nd1FUzAKPVALWdkgaHMwWwKswu1uQckSUC1mG6oPQMD/gjNbzS357XeLwhg187c+WHwS btNSDm3XmJeJsr28Dbwjmv33Zggep0A0kcuGbpvoBM0QuHrt7+MGmMUCXai2sxtgPXYF DFlmZXscQMOkgtKpaD12+8xY7QX/YAf7Eu1qthFVO4M/8Ba1yULrsABYXZKsfv2RoEWH bhFLBVdpt9ucSzFRL4puIV+/cG/ozAyfvVr3uvtM5xV+Il9vo0bYgn26eWyQXiamdJDK uYMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707745029; x=1708349829; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V79hha4/rxfxtxNToMm4h31PlM1pf1aXvBWpdTlosiY=; b=D8nZjsUqmkaksqMRRmadYzVqwJE/B/vko+Nj5Ni++BfOBKJ1E6g6OdzW15VZPfY/eC T+1datTF0QDI+Y0TWis2ImpCMrsMrGKmycfk2unvTXu3qyZ4ahfYtWFH+TKOkohVHcUg hyEww9WF1UdS3rb3xwfEnCxcu+6VOZU4NazekIFLamiKeMPD8jxtnu08HRaniS9WNbsI 3KM3+hW+cHIDPaKxQYs5269kvND/PevWamiw5O4X1V7/PJSutS/WZ26vGYQ5eUCZeEUa SOo576rFFy97JkztoW90DSeZGdcRjr1iaNFgpYlBliW5K51HXZw2rWc7fyn/1/EXb3Ij ez5Q== X-Forwarded-Encrypted: i=1; AJvYcCV+kVlxjWALFaSTKNhnpOzLukg0Huhz2YgFTZUgKL6msyFs/zqGWAC63OYINI08bprWeiuAiPLvUzNfSm8t5+QMYnzhH9/453Xwqb6N X-Gm-Message-State: AOJu0YwogXn+QG5gDIAXjwsPlFocTV3jpMH8gQ0T5osouUc2TiV8H3IA uBofN56Z3Bm7c3gl9gGABIkif+5tg/iMjDQvmPfcbeUp6bQWJp8UZFNf6hV+09c= X-Google-Smtp-Source: AGHT+IGAjvUAMeKyidVeXVi18QPToU+9JBqAD02+uCdTuuvdTYN23BWqJj7iOjEX+0sErkOjQzRiJA== X-Received: by 2002:a17:906:b259:b0:a3c:6052:2f53 with SMTP id ce25-20020a170906b25900b00a3c60522f53mr3043573ejb.37.1707745029624; Mon, 12 Feb 2024 05:37:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXyzMnDGLin32E472hDHaMUv9aaM/W91vsxYNAH+H7s6LDyYgmU9ezmMG+JiA8Rwg6I9qrN4ad6birgjIV2atCWSlfBh8iMPUXvnEKiBCFF6WWkyRtMy4BjOasFGg+TIR6pK6iQS2YY3HweRvNVjscs/pI9TOfzINsOCQ/FgtWAMIKzu/Fz+7n20xznu3tLCr4WZhxyBtw4c62lXvmLCe/2TTJno/7fiSuJ0776d/QZnmsbJ1qJZ/9dSziAvCJ3BGjmuCDaIoxjGiJYXYrKhSDxGfBRFspEe04QeKHOjTc0PgGoyP7Yy0S492A= Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id cu3-20020a170906ba8300b00a3cb30d6271sm217431ejd.143.2024.02.12.05.37.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:37:09 -0800 (PST) From: Konrad Dybcio Date: Mon, 12 Feb 2024 14:37:04 +0100 Subject: [PATCH] arm64: dts: qcom: sm6115p-j606f: Add some peripherals Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240212-topic-j606f_periphs-v1-1-5dcacd483e28@linaro.org> X-B4-Tracking: v=1; b=H4sIAP8eymUC/x3N0QrCMAyF4VcZuTbQdrpNX0WGdG22RkZXGhVh7 N0NXv4HPs4OQpVJ4NbsUOnDwlvWsKcGQvJ5IeSoDc64s3HW4WsrHPDZmW5+FLUlCQ59jMO1JWs uAVROXgin6nNIavN7XXUslWb+/q/u43H8ABFukWt6AAAA To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707745028; l=4159; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EabtM/lM7B9y8LnUGZv/H+KjH9qiCo4jt/n1JJW5V9Y=; b=AxcNsfocdW3cjHaT9tRn3AFmT3pFhiw1Ozv0R4vN3BuzAIfh6DJ0Q5L1Sz5KlKapEDeccluT4 mAq3zsYz48AAzZTxBGO96b85ue0ueFZhff2987JNOk1Ab/k9Z8Z9ayT X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= This tablet features quite a bunch of I2C-connected devices, such as a Richtek RT1715 USB-C controller, a MM8013 fuel gauge, FSA4480 Type-C audio mux, TPS65132 regulator and some more. Add the aforementioned ones and document others. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 7 ++ arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts | 103 ++++++++++++++++++= +++- 2 files changed, 109 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qco= m/sm6115.dtsi index ee65ab073ba6..7df7b2045b71 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1676,6 +1676,13 @@ usb_dwc3_ss: endpoint { remote-endpoint =3D <&usb_qmpphy_usb_ss_in>; }; }; + + port@2 { + reg =3D <2>; + + usb_dwc3_sbu: endpoint { + }; + }; }; }; }; diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64= /boot/dts/qcom/sm6115p-lenovo-j606f.dts index 54da053a8042..eb65c2806345 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -73,6 +73,81 @@ zap-shader { }; }; =20 +&gpi_dma0 { + status =3D "okay"; +}; + +&i2c0 { + clock-frequency =3D <400000>; + status =3D "okay"; + + /* Some devices use FUSB302(@22) instead of the RT1715. */ + + rt1715: typec-portc@4e { + compatible =3D "richtek,rt1715"; + reg =3D <0x4e>; + interrupts-extended =3D <&tlmm 97 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&typec_int>; + pinctrl-names =3D "default"; + + usb_con: connector { + compatible =3D "usb-c-connector"; + label =3D "USB-C"; + data-role =3D "dual"; + + /* TODO: Add a proper PD setup */ + typec-power-opmode =3D "default"; + try-power-role =3D "sink"; + power-role =3D "dual"; + pd-disable; + + port { + rt1715_hs_ep: endpoint { + remote-endpoint =3D <&usb_dwc3_hs>; + }; + }; + }; + }; + + fuel-gauge@55 { + compatible =3D "mitsumi,mm8013"; + reg =3D <0x55>; + }; + + /* AW882xx speaker amp @ 34, 35, 36, 37 (CHIP_ID =3D 0x1852) */ + /* HID-over-I2C for the touchpad on keyboard folio @ 60 */ +}; + +&i2c1 { + clock-frequency =3D <400000>; + status =3D "okay"; + + tps65132@3e { + compatible =3D "ti,tps65132"; + reg =3D <0x3e>; + }; + + fsa4480: typec-mux@42 { + compatible =3D "fcs,fsa4480"; + reg =3D <0x42>; + interrupts-extended =3D <&tlmm 89 IRQ_TYPE_LEVEL_LOW>; + orientation-switch; + mode-switch; + + port { + fsa4480_sbu_mux: endpoint { + remote-endpoint =3D <&usb_dwc3_sbu>; + }; + }; + }; + + /* PM8008 @ 8, 9 */ + /* SMB1355 @ c */ + /* SGM37604A WLED driver @ 36 */ + /* ES7210 audio ADC @ 40 */ + /* HID-over-I2C for the keyboard on keyboard folio @ 61 */ +}; + &mdss { status =3D "okay"; }; @@ -129,6 +204,10 @@ &pon_resin { status =3D "okay"; }; =20 +&qupv3_id_0 { + status =3D "okay"; +}; + &remoteproc_adsp { firmware-name =3D "qcom/sm6115/LENOVO/J606F/adsp.mbn"; status =3D "okay"; @@ -309,6 +388,12 @@ &sleep_clk { clock-frequency =3D <32764>; }; =20 +&spi2 { + status =3D "okay"; + + /* HIMAX83102P or NT36523W touchscreen */ +}; + &tlmm { gpio-reserved-ranges =3D <14 4>; =20 @@ -337,6 +422,14 @@ mdss_dsi_active: dsi-active-state { drive-strength =3D <8>; bias-disable; }; + + typec_int: typec-int-state { + pins =3D "gpio97"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + input-enable; + }; }; =20 &ufs_mem_hc { @@ -360,12 +453,20 @@ &usb { =20 &usb_dwc3 { maximum-speed =3D "high-speed"; - dr_mode =3D "peripheral"; + dr_mode =3D "otg"; =20 phys =3D <&usb_hsphy>; phy-names =3D "usb2-phy"; }; =20 +&usb_dwc3_hs { + remote-endpoint =3D <&rt1715_hs_ep>; +}; + +&usb_dwc3_sbu { + remote-endpoint =3D <&fsa4480_sbu_mux>; +}; + &usb_hsphy { vdd-supply =3D <&pm6125_l4>; vdda-pll-supply =3D <&pm6125_l12>; --- base-commit: ae00c445390b349e070a64dc62f08aa878db7248 change-id: 20240212-topic-j606f_periphs-87dd893e105c Best regards, --=20 Konrad Dybcio