From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 178203672B2 for ; Sun, 12 Jul 2026 02:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783822382; cv=none; b=QVCnZ50FzwtU1wM2M45q76AW4yCrQx3yC+cpGrLfRvytPy7RjqTcAZ0wAD21XzARjnDVu24RFsnJPLWNEBk1NtkpC0SYWLIxbAwt1r0t3PxqVqFJciMJetWvoOPPTUanDkcL50OG6QBkGyIOczSqukHcQKCCUAoxCqoJunegKXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783822382; c=relaxed/simple; bh=inHrGenU9l5rc/MsDfy36HBy3TFchQ5sRRxPsmZvATI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sYa+gbCSTHCDfbT0xeFDGoqg/SIAIDtuC2sb/Js+EFDCZIzYoTl4W/EYBVcQzxsMjOA3CTA5l6uurQ7MumujwHkLpZ4z66X+1potlL48mjpxt0IO/4OtTkROXoFzY6/H7BOQRHK+Dq8py6Vb0dlvNsxpIDiiHnqP+or2XSeKNm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VepO+Y3F; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VepO+Y3F" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3847e8b0f3aso1820528a91.3 for ; Sat, 11 Jul 2026 19:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783822380; x=1784427180; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GPnxdbYjtS3rIw4TZCTR8RjPhBMqf8pgHE5GaqnnX44=; b=VepO+Y3Fe8JWUxzFuZPAdI/3Kw+5kgRcrc3ZliQuUTCjrXq7ESI0JDPc05uROO4Run ykUFBvNE37uhSqkCd6VIbu3BrqVdnlw18dUv3+pWRTrPOGdrwCf9l28Mx9tIlVgtEw3w dThDLF3fC1MQYeETky+f1RiEzCo7mKLXOqehz3PGeWLiLeiZdMLw6idI/jW9sfa3X1xf orq/kMygT330gQ5LmFrHtIbHDysqqbkJji3DpMr1FBEwS0+VtkNoJt2fwkxSTztFTicr 9WXxDhYfyPGtCQXKmp9oS8bolzd4a5tCyHOtW1lS0K23HAkyBDXn+z7Qii2NAXI0VUnz Pbtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783822380; x=1784427180; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GPnxdbYjtS3rIw4TZCTR8RjPhBMqf8pgHE5GaqnnX44=; b=nwhqDFmjBBU1LKm+kBG6hmfgY57i5COubectNsclBJEts6WyOqYju1nqFpWixqCEp0 dCr+MFJQjsRx8IQe4J9cn53Podm+mP6lDjKL35v2LqySmkZaUpAeQqwmCSS+RT+F+r3W X9Hy1OHq6uP9aILuQyN5TZp3hGQg1YQ0OIFMCxn35kVgWzGglAhMKAhyLxzOEdkfgp/q vMCZfGWNGyyF0eqZT78jnMSgvaAYe2CAD/T8+PdnfQjWJWZ48wHmxBN1wwIjSCPpkz6X u0bywosP6H1OvPjVupG697tZlboZl894VYCefAhorCwihfx0mj9b5hCD1o1ykv+sKcR2 xNaw== X-Forwarded-Encrypted: i=1; AHgh+RqDikkSFBjVeMPrIl7v0VobTTwu8h+Z/yza32TnX7gAOv19ADQrzRqYategFDbFO0itFGlfSHwMkGPb2CM=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+zDVJW8k+AwVJpDJSYwJkaB9C5IxhUEiHvUd28jH5i5NvVKCo ln/Wr8rMMPxFD3irW3gqBFpxQjPocv7EtVy9cO1WEoS0C5bEoi9zcy8k X-Gm-Gg: AfdE7cnQrURvlp0zZ8MFp8LOB5Irna98gGiJinI/Kf14sozCrJzWq+ZT+qkIwPw/Qfl htlfsxoYfkJwaURD8XRWuLwS4ZlsELCRN3Yv1KXSonPC3m33rauQVqXqhsmqt18+4no7/ZrarAq IITYIwLc0r/QfwG3UqvCrJp5tIYbtN2v+hKf5BzSs7H1bdauEI0BPM44RY2KIorbdZfRMu9IMdk yUU3sZDsBI2nd049dGX3XEG1oSCb3T8y9lPwAmD/mqn3MjCfSz5drYcI5ROfs3jEtvPoLP3rXp1 W8gAsUdHuSiDHgqPyOACnfu2kRG0BO09QQTFfB0k7u7FmNBFMxKnnjQek8c43iBxPI5VCcmzpuj sXi49XH4zWcdV0WN/SHBQgJZytw/hxNKUurBwvAtN5U7PwjX7LUzEguDNkzkA4L1Q3cjpcQxnlV cExc91gZaEh+c8Df+5oZqhXfvY37/DlmWzkVbM3ugGWqN9EtocoXkYQ9V73sTGh56bK5tRJJs2s Wo= X-Received: by 2002:a17:90b:28d0:b0:381:a766:efcc with SMTP id 98e67ed59e1d1-38dc75d1e58mr4349557a91.14.1783822380321; Sat, 11 Jul 2026 19:13:00 -0700 (PDT) Received: from dtor-ws.sjc.corp.google.com ([2a00:79e0:2ebe:8:c63e:9756:a95c:c75]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3117d847e17sm54796692eec.18.2026.07.11.19.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 19:12:59 -0700 (PDT) From: Dmitry Torokhov Date: Sat, 11 Jul 2026 19:12:42 -0700 Subject: [PATCH v3 01/10] dt-bindings: input: samsung,s3c6410-keypad: introduce compact binding 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: 7bit Message-Id: <20260711-samsung-kp-v3-1-b2fcaba77aff@gmail.com> References: <20260711-samsung-kp-v3-0-b2fcaba77aff@gmail.com> In-Reply-To: <20260711-samsung-kp-v3-0-b2fcaba77aff@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Alim Akhtar , Russell King , Mark Brown , Linus Walleij , Charles Keepax , Sam Protsenko , Arnd Bergmann , Bartosz Golaszewski Cc: Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, patches@opensource.cirrus.com, Conor Dooley , Bartosz Golaszewski X-Mailer: b4 0.16-dev-b242f The binding with a sub-node per each key is very verbose and is hard to use with static device properties. Allow standard matrix keymap binding in addition to the verbose one. Acked-by: Conor Dooley Acked-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Signed-off-by: Dmitry Torokhov --- .../bindings/input/samsung,s3c6410-keypad.yaml | 53 ++++++++++++++++++++-- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/input/samsung,s3c6410-keypad.yaml b/Documentation/devicetree/bindings/input/samsung,s3c6410-keypad.yaml index a53569aa0ee7..2498c62444a1 100644 --- a/Documentation/devicetree/bindings/input/samsung,s3c6410-keypad.yaml +++ b/Documentation/devicetree/bindings/input/samsung,s3c6410-keypad.yaml @@ -37,6 +37,10 @@ properties: wakeup-source: true + keypad,num-columns: true + keypad,num-rows: true + linux,keymap: true + linux,input-no-autorepeat: type: boolean description: @@ -81,12 +85,33 @@ patternProperties: - keypad,row - linux,code +dependencies: + linux,keymap: [ "keypad,num-columns", "keypad,num-rows" ] + required: - compatible - reg - interrupts - - samsung,keypad-num-columns - - samsung,keypad-num-rows + +allOf: + - $ref: input.yaml# + - $ref: matrix-keymap.yaml# + - if: + required: + - linux,keymap + then: + properties: + samsung,keypad-num-columns: false + samsung,keypad-num-rows: false + patternProperties: + '^key-[0-9a-z]+$': false + else: + properties: + keypad,num-columns: false + keypad,num-rows: false + required: + - samsung,keypad-num-columns + - samsung,keypad-num-rows additionalProperties: false @@ -94,8 +119,9 @@ examples: - | #include #include + #include - keypad@100a0000 { + keypad1@100a0000 { compatible = "samsung,s5pv210-keypad"; reg = <0x100a0000 0x100>; interrupts = ; @@ -119,3 +145,24 @@ examples: linux,code = <3>; }; }; + - | + #include + #include + #include + + keypad2@100a0000 { + compatible = "samsung,s5pv210-keypad"; + reg = <0x100a0000 0x100>; + interrupts = ; + clocks = <&clock CLK_KEYIF>; + clock-names = "keypad"; + + keypad,num-rows = <2>; + keypad,num-columns = <8>; + linux,keymap = < + MATRIX_KEY(0, 3, 2) + MATRIX_KEY(0, 4, 3) + >; + linux,input-no-autorepeat; + wakeup-source; + }; -- 2.55.0.795.g602f6c329a-goog