From patchwork Sat Nov 11 16:42:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 743112 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 893C41A282 for ; Sat, 11 Nov 2023 16:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hWqmg3GO" Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A7423C3C for ; Sat, 11 Nov 2023 08:42:42 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53e08e439c7so5138944a12.0 for ; Sat, 11 Nov 2023 08:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699720960; x=1700325760; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Mk3Wy2SuYkImZWPXHt6qqgECjvIgKtTdRVHxjkc3s0=; b=hWqmg3GOPLD2UtABdtyZw22Ejardbgdwbiajzxzj0a6wj/sj9TFxveq55ggBWYaJIo sR1kwITMhdgv0f4hddZVFMiFNz5rm+AuYiAHtCm+24RwKwzOWwhVJKxQHVs2lcUbThHM 94CHXKYTXR9N3z8ox6MsupxklpL3tudjnZLuVLmMLHYXIeYRuQF162YfS8cqvBm5SbSG TuYQqqosqxHL68NzLJ3LiD/dEDxPEYLa4buFnZxyBwa/eiw/9thjI0EWdIC81JnlG802 kbxj3W0S0XaHetjjJDDHTiS3Zh4ZdXqbYzeY0X0p8/O/MjZIUges2NbsT3gzJifFeMGh 0xuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699720960; x=1700325760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Mk3Wy2SuYkImZWPXHt6qqgECjvIgKtTdRVHxjkc3s0=; b=ssQm4PGIlN0ONvU//d/PWWDuLxl9NREivEXkoUZRxclqyFTx3qrT+ZC3Oc6SQU4wlB JWGpt1uJ6gfLnC6vaP7sbf4QGTSWEy8jUN7tH4ubappiju/zvUO/Frc+JBkqTw4ktn4t Jx6qk9MZW1l+cyqia3Ej+pK2oj5Z9zLhFe7/qqYNzWLlQvrJeY6ZIMUKsu7Bo8traRn/ lPANtry6HEbQSPtMOXafk1cAldYucvtoArteyvZh0rJEyDLXYpcUrcNZt7m2pcZy7AU2 ZN5W1ZDfCvbqgLIXXDu3olrOMU8P4kOmwWmHtyoWKSokn6IWs7aYSpYnZKEKW2fv7jsz QS8w== X-Gm-Message-State: AOJu0YwTsYczoEbwEpv3505CwkbVeihzqb6ijEpzmFTFjHn3DeOQzCcq Y2/d+eZKlto/aoWMXuq7Byxsjw== X-Google-Smtp-Source: AGHT+IGLT9FdCNCGVJ2KjdPrarNpwkIwb7a8z+WpS9aOBLwDqoCwqI1BlnBg4yBrMgsaA/BtSyrfuA== X-Received: by 2002:aa7:c788:0:b0:543:8391:a19a with SMTP id n8-20020aa7c788000000b005438391a19amr1351243eds.40.1699720960674; Sat, 11 Nov 2023 08:42:40 -0800 (PST) Received: from krzk-bin.. ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id k25-20020aa7c059000000b0053dd8898f75sm1161917edo.81.2023.11.11.08.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 08:42:40 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFT PATCH 6/6] arm64: dts: qcom: sm6375-pdx225: add fixed touchscreen AVDD regulator Date: Sat, 11 Nov 2023 17:42:29 +0100 Message-Id: <20231111164229.63803-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231111164229.63803-1-krzysztof.kozlowski@linaro.org> References: <20231111164229.63803-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The Samsung S6SY761 touchscreen bindings expect AVDD regulator which is missing in the Sony Xperia PDX225 DTS. There is however pinctrl setting for in the touchscreen device node with similar name: "avdd", so assume author wanted to control a fixed regulator with a GPIO. This fixes dtbs_check warning: sm6375-sony-xperia-murray-pdx225.dtb: touchscreen@48: 'avdd-supply' is a required property Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. Bindings for touchscreen: https://lore.kernel.org/linux-devicetree/20231111-mothball-diploma-c034c0622bc6@squawk/T/#t --- .../dts/qcom/sm6375-sony-xperia-murray-pdx225.dts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index 0ce4fa8de8b0..cca2c2eb88ad 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -80,6 +80,15 @@ ramoops@ffc40000 { }; }; + touch_avdd: touch-avdd-regulator { + compatible = "regulator-fixed"; + regulator-name = "touch_avdd"; + gpio = <&tlmm 59 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_avdd_default>; + enable-active-high; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -136,9 +145,10 @@ touchscreen@48 { interrupts = <22 0x2008>; vdd-supply = <&pm6125_l13>; + avdd-supply = <&touch_avdd>; pinctrl-names = "default"; - pinctrl-0 = <&ts_int_default &ts_avdd_default>; + pinctrl-0 = <&ts_int_default>; }; }; @@ -417,7 +427,7 @@ ts_avdd_default: ts-avdd-default-state { pins = "gpio59"; function = "gpio"; drive-strength = <8>; - output-high; + output-low; }; };